@nexub/tokens 2.6.0 → 2.8.0
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/dist/json/component.json +28 -0
- package/package.json +3 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Component tier. Unset by default: each component reads var(--<name>, <css>), so the default resolves where the component sits and nested data-contrast / data-product / data-theme keep working. Set one on any element to restyle that component below it. Kept out of variables.css on purpose (a :root declaration would freeze the role at :root).",
|
|
3
|
+
"button": {
|
|
4
|
+
"filled-bg": { "$type": "color", "$value": "{color.primary}", "$extensions": { "dev.nexub": { "css": "var(--color-primary)" } } },
|
|
5
|
+
"filled-fg": { "$type": "color", "$value": "{color.on-primary}", "$extensions": { "dev.nexub": { "css": "var(--color-on-primary)" } } },
|
|
6
|
+
"tonal-bg": { "$type": "color", "$value": "{color.secondary-container}", "$extensions": { "dev.nexub": { "css": "var(--color-secondary-container)" } } },
|
|
7
|
+
"tonal-fg": { "$type": "color", "$value": "{color.on-secondary-container}", "$extensions": { "dev.nexub": { "css": "var(--color-on-secondary-container)" } } },
|
|
8
|
+
"outlined-border": { "$type": "color", "$value": "{color.outline-variant}", "$extensions": { "dev.nexub": { "css": "var(--color-outline-variant)" } } },
|
|
9
|
+
"outlined-fg": { "$type": "color", "$value": "{color.on-surface}", "$extensions": { "dev.nexub": { "css": "var(--color-on-surface)" } } },
|
|
10
|
+
"text-fg": { "$type": "color", "$value": "{color.on-surface}", "$extensions": { "dev.nexub": { "css": "var(--color-on-surface)" } } }
|
|
11
|
+
},
|
|
12
|
+
"field": {
|
|
13
|
+
"$description": "Input, Textarea, Select and Combobox triggers.",
|
|
14
|
+
"bg": { "$type": "color", "$value": "{color.surface-container-lowest}", "$extensions": { "dev.nexub": { "css": "var(--color-surface-container-lowest)" } } },
|
|
15
|
+
"fg": { "$type": "color", "$value": "{color.on-surface}", "$extensions": { "dev.nexub": { "css": "var(--color-on-surface)" } } },
|
|
16
|
+
"border": { "$type": "color", "$value": "{color.outline}", "$extensions": { "dev.nexub": { "css": "var(--color-outline)" } } },
|
|
17
|
+
"radius": { "$type": "dimension", "$value": "{shape.field}", "$extensions": { "dev.nexub": { "css": "var(--shape-field)" } } }
|
|
18
|
+
},
|
|
19
|
+
"card": {
|
|
20
|
+
"bg": { "$type": "color", "$value": "{color.surface-elevated}", "$extensions": { "dev.nexub": { "css": "var(--color-surface-elevated)" } } },
|
|
21
|
+
"fg": { "$type": "color", "$value": "{color.on-surface}", "$extensions": { "dev.nexub": { "css": "var(--color-on-surface)" } } },
|
|
22
|
+
"border": { "$type": "color", "$value": "{color.outline-variant}", "$description": "At 60% opacity.", "$extensions": { "dev.nexub": { "css": "color-mix(in srgb,var(--color-outline-variant) 60%,transparent)" } } },
|
|
23
|
+
"radius": { "$type": "dimension", "$value": "{shape.container}", "$extensions": { "dev.nexub": { "css": "var(--shape-container)" } } }
|
|
24
|
+
},
|
|
25
|
+
"badge": {
|
|
26
|
+
"radius": { "$type": "dimension", "$value": "{shape.control}", "$extensions": { "dev.nexub": { "css": "var(--shape-control)" } } }
|
|
27
|
+
}
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexub/tokens",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Design tokens for Nexub Design System — colours, typography, spacing, radii, shadows, and motion as CSS variables, Tailwind presets and React Native objects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,13 +53,14 @@
|
|
|
53
53
|
},
|
|
54
54
|
"./tailwind.css": "./dist/tailwind/theme.css",
|
|
55
55
|
"./json": "./dist/json/tokens.json",
|
|
56
|
+
"./json/component": "./dist/json/component.json",
|
|
56
57
|
"./package.json": "./package.json"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"style-dictionary": "^5.7.0",
|
|
60
61
|
"tailwindcss": "^4.3.3",
|
|
61
62
|
"tailwindcss-v3": "npm:tailwindcss@^3.4.19",
|
|
62
|
-
"typescript": "
|
|
63
|
+
"typescript": "~6.0.3"
|
|
63
64
|
},
|
|
64
65
|
"dependencies": {
|
|
65
66
|
"@material/material-color-utilities": "0.3.0",
|