@uncinq/design-tokens 1.8.0 → 1.8.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/docs/colors.md +1 -0
- package/docs/customizing.md +1 -0
- package/docs/dark-mode.md +1 -0
- package/docs/dtcg.md +1 -0
- package/docs/naming.md +1 -0
- package/docs/reference.md +1 -0
- package/docs/style-dictionary.md +1 -0
- package/docs/utopia.md +1 -0
- package/package.json +1 -1
package/docs/colors.md
CHANGED
package/docs/customizing.md
CHANGED
|
@@ -3,6 +3,7 @@ isIndex: false
|
|
|
3
3
|
title: Customizing
|
|
4
4
|
description: The two override strategies, CSS layer override and JSON plus build, and when each one is the right tool.
|
|
5
5
|
weight: 4
|
|
6
|
+
icon: sliders
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
There are two ways to change what this package produces. Pick by how deep the change goes, not by preference.
|
package/docs/dark-mode.md
CHANGED
|
@@ -3,6 +3,7 @@ isIndex: false
|
|
|
3
3
|
title: Dark mode
|
|
4
4
|
description: How the dark theme overlays 13 semantic tokens, how a page opts out, and why there is no forced-dark selector.
|
|
5
5
|
weight: 3
|
|
6
|
+
icon: moon-stars
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
The dark theme is an **overlay**, not a second palette. `tokens/themes/dark.json` re-declares 13 semantic tokens and nothing else. Every other token, including the whole primitive palette, is shared.
|
package/docs/dtcg.md
CHANGED
package/docs/naming.md
CHANGED
|
@@ -3,6 +3,7 @@ isIndex: false
|
|
|
3
3
|
title: Naming
|
|
4
4
|
description: The naming grammar for semantic and component tokens, the rules that keep it consistent, and the scales in use.
|
|
5
5
|
weight: 1
|
|
6
|
+
icon: tag
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
A token name is an API. Once a project references `--color-text-muted`, renaming it is a breaking change, so the grammar below is worth following closely.
|
package/docs/reference.md
CHANGED
|
@@ -3,6 +3,7 @@ isIndex: false
|
|
|
3
3
|
title: Reference
|
|
4
4
|
description: Every token in the package, generated from the JSON sources so it can never drift from the shipped CSS.
|
|
5
5
|
weight: 5
|
|
6
|
+
icon: table
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
Every table below is generated at build time from `dist/tokens.json`, which Style Dictionary produces from the same JSON sources as the CSS. Nothing here is written by hand, so a token cannot appear in the reference without existing in the package, or change value without the page changing with it.
|
package/docs/style-dictionary.md
CHANGED
package/docs/utopia.md
CHANGED