Skip to content

Commit

Permalink
undo change to css build
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank committed Mar 28, 2023
1 parent 1f024b8 commit 99be152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const getCssSelectors = (outputFile: string): {selector: string; selectorLight:
const lastSlash = outputFile.lastIndexOf('/')
const outputBasename = outputFile.substring(lastSlash + 1, outputFile.indexOf('.'))
const themeName = outputBasename.replace(/-/g, '_')
// const mode = outputBasename.substring(0, 4) === 'dark' ? 'dark' : 'light'
const mode = outputBasename.substring(0, 4) === 'dark' ? 'dark' : 'light'

return {
selector: `[data-color-mode="light"][data-light-theme="${themeName}"], [data-color-mode="dark"][data-dark-theme="${themeName}"]`,
selector: `[data-color-mode="${mode}"][data-${mode}-theme="${themeName}"]`,
selectorLight: `[data-color-mode="auto"][data-light-theme="${themeName}"]`,
selectorDark: `[data-color-mode="auto"][data-dark-theme="${themeName}"]`,
}
Expand Down

0 comments on commit 99be152

Please sign in to comment.