Skip to content

Commit 9e3e8c7

Browse files
fix: made the import order of light/dark-files irrelevant (#2211)
changed where(.dark) to .dark to made the import order of theme CSS files irrelevant
1 parent a326e7c commit 9e3e8c7

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

.changeset/ten-buckets-nail.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"sit-onyx": minor
3+
---
4+
5+
- made the import order of light/dark theme files irrelevant
6+
- changed figma dark-themes import from where(dark) to dark

.github/workflows/import-figma.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: 🎨 Import onyx dark variables
2121
run: |
22-
pnpm run @sit-onyx/figma-utils import-variables -k "${{ vars.FIGMA_FILE_KEY }}" -t "${{ secrets.FIGMA_TOKEN }}" -d "../sit-onyx/src/styles/variables/themes" -m onyx-dark -f CSS -s ":where(.dark), .onyx-theme-default-dark"
22+
pnpm run @sit-onyx/figma-utils import-variables -k "${{ vars.FIGMA_FILE_KEY }}" -t "${{ secrets.FIGMA_TOKEN }}" -d "../sit-onyx/src/styles/variables/themes" -m onyx-dark -f CSS -s ".dark, .onyx-theme-default-dark"
2323
working-directory: packages/figma-utils
2424

2525
- name: 🎨 Import additional light-themes
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: 🎨 Import additional dark-themes
3131
run: |
32-
pnpm run @sit-onyx/figma-utils import-variables -k "${{ vars.FIGMA_FILE_KEY }}" -t "${{ secrets.FIGMA_TOKEN }}" -d "../sit-onyx/src/styles/variables/themes" -m lidl-dark kaufland-dark digits-dark schwarz-dark -f CSS -s ":where(.dark), .onyx-theme-{mode}"
32+
pnpm run @sit-onyx/figma-utils import-variables -k "${{ vars.FIGMA_FILE_KEY }}" -t "${{ secrets.FIGMA_TOKEN }}" -d "../sit-onyx/src/styles/variables/themes" -m lidl-dark kaufland-dark digits-dark schwarz-dark -f CSS -s ".dark, .onyx-theme-{mode}"
3333
working-directory: packages/figma-utils
3434

3535
- name: 🛠️ Import spacing variables

packages/sit-onyx/src/styles/variables/themes/digits-dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file contains the specific variables for the "digits-dark" theme.
44
* Imported from Figma API on Tue, 03 Dec 2024 10:20:05 GMT
55
*/
6-
:where(.dark),
6+
.dark,
77
.onyx-theme-digits-dark {
88
--onyx-color-base-background-blank: var(--onyx-color-steel-1100);
99
--onyx-color-base-background-tinted: var(--onyx-color-steel-1200);

packages/sit-onyx/src/styles/variables/themes/kaufland-dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file contains the specific variables for the "kaufland-dark" theme.
44
* Imported from Figma API on Tue, 03 Dec 2024 10:20:05 GMT
55
*/
6-
:where(.dark),
6+
.dark,
77
.onyx-theme-kaufland-dark {
88
--onyx-color-base-background-blank: var(--onyx-color-stone-1100);
99
--onyx-color-base-background-tinted: var(--onyx-color-stone-1200);

packages/sit-onyx/src/styles/variables/themes/lidl-dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file contains the specific variables for the "lidl-dark" theme.
44
* Imported from Figma API on Tue, 03 Dec 2024 10:20:05 GMT
55
*/
6-
:where(.dark),
6+
.dark,
77
.onyx-theme-lidl-dark {
88
--onyx-color-base-background-blank: var(--onyx-color-stone-1100);
99
--onyx-color-base-background-tinted: var(--onyx-color-stone-1200);

packages/sit-onyx/src/styles/variables/themes/onyx-dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file contains the specific variables for the "onyx-dark" theme.
44
* Imported from Figma API on Tue, 03 Dec 2024 10:19:51 GMT
55
*/
6-
:where(.dark),
6+
.dark,
77
.onyx-theme-default-dark {
88
--onyx-color-base-background-blank: var(--onyx-color-steel-1100);
99
--onyx-color-base-background-tinted: var(--onyx-color-steel-1200);

0 commit comments

Comments
 (0)