@ctrliq/quantic-tokens 1.67.6 → 1.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -10
- package/dist/dark-mode.css +464 -462
- package/dist/dark-mode.json +464 -462
- package/dist/dark-mode.nested.json +1496 -0
- package/dist/dark-mode.scss +464 -462
- package/dist/light-mode.css +522 -520
- package/dist/light-mode.json +522 -520
- package/dist/light-mode.nested.json +1498 -0
- package/dist/light-mode.scss +522 -520
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
# Design tokens
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Currently design tokens are extracted programmatically from Figma variables in the [CIQ Core library Figma file](https://www.figma.com/design/3P9j1PCEa2WqzUQCyN6alr/CIQ-Core-Library?node-id=1480-0&t=DFExLiORXvDba9Vd-1), using the Design Tokens (W3C) Export plugin.
|
|
3
|
+
Design tokens are extracted from Figma variables in the [CIQ Core library](https://www.figma.com/design/3P9j1PCEa2WqzUQCyN6alr/CIQ-Core-Library?node-id=1480-0&t=DFExLiORXvDba9Vd-1), using the [Design Tokens (W3C) Export](https://www.figma.com/community/plugin/1377982390646186215/design-tokens-w3c-export) plugin.
|
|
6
4
|
|
|
7
5
|
## Export tokens from Figma
|
|
8
6
|
|
|
9
|
-
1
|
|
10
|
-
2
|
|
11
|
-
3
|
|
12
|
-
4
|
|
13
|
-
5
|
|
14
|
-
6
|
|
15
|
-
7
|
|
7
|
+
1. Open the [CIQ Core library](https://www.figma.com/design/3P9j1PCEa2WqzUQCyN6alr/CIQ-Core-Library?node-id=1480-0&t=DFExLiORXvDba9Vd-1) Figma file.
|
|
8
|
+
2. Run the [Design Tokens (W3C) Export](https://www.figma.com/community/plugin/1377982390646186215/design-tokens-w3c-export) plugin.
|
|
9
|
+
3. Extract the zip contents from the exported `tokens.zip` file.
|
|
10
|
+
4. Move every file except `color.json` into `src/tokens/common/`.
|
|
11
|
+
5. Copy the `"light"` object from `color.json` into `src/tokens/color/light.json`.
|
|
12
|
+
6. Copy the `"dark"` object from `color.json` into `src/tokens/color/dark.json`.
|
|
13
|
+
7. Keep `typography.json` flat (not wrapped in a `typography` group).
|
|
14
|
+
8. Restore repo-only edits that the plugin does not export:
|
|
15
|
+
- Font fallback stacks on `font-family-display`, `font-family-body`, and `font-family-mono`.
|
|
16
|
+
- `breakpoints.json` values as CSS dimensions (`576px`, not `576`).
|
|
17
|
+
9. Rebuild: `pnpm --filter @ctrliq/quantic-tokens build`.
|