-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Use `.dark` selector for the dark theme instead of `html.dark`. Similarly we could use e.g. `.onyx-lidl`, `.onyx-kaufland` for our future themes. This will give us more flexibility because it allows us to use a specific theme only for a single component (e.g. by setting `class="onyx-lidl"` on a `<div>`.
- Loading branch information
1 parent
113d661
commit d1fe8e3
Showing
10 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
"@sit-onyx/figma-utils": major | ||
--- | ||
|
||
feat: support {mode} placeholder for CSS selector | ||
|
||
Previously the mode name was automatically appended to the selector if the selector was | ||
something other than `:root`. This is no longer the case. | ||
Instead use the more explicit/flexible placeholder `{mode}` for this. | ||
|
||
**Old** | ||
|
||
```sh | ||
npx @sit-onyx/figma-utils import-variables -k "your-file-key" -t "your-token" -m dark -s html | ||
# resulted in selector "html.dark" | ||
``` | ||
|
||
**New** | ||
|
||
```sh | ||
npx @sit-onyx/figma-utils import-variables -k "your-file-key" -t "your-token" -m dark -s html.{mode} | ||
# results in selector "html.dark" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+130 Bytes
(100%)
packages/sit-onyx/playwright/snapshots/TestInput/default-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+681 Bytes
(110%)
packages/sit-onyx/playwright/snapshots/TestInput/default-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+160 Bytes
(100%)
packages/sit-onyx/playwright/snapshots/TestInput/default-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters