@nice2dev/design-tokens 1.0.28

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/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@nice2dev/design-tokens",
3
+ "version": "1.0.28",
4
+ "description": "W3C Design Tokens for Nice2Dev UI with CLI generator",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "sideEffects": false,
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs",
14
+ "types": "./dist/index.d.ts"
15
+ },
16
+ "./tokens/*": "./tokens/*",
17
+ "./cli": "./dist/cli/index.js"
18
+ },
19
+ "bin": {
20
+ "nice-tokens": "./dist/cli/index.js"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "tokens"
25
+ ],
26
+ "scripts": {
27
+ "build": "tsup src/index.ts src/cli/index.ts --format esm,cjs --dts --clean",
28
+ "dev": "tsup src/index.ts src/cli/index.ts --format esm,cjs --dts --watch",
29
+ "generate": "node dist/cli/index.js generate",
30
+ "test": "vitest run --passWithNoTests",
31
+ "typecheck": "tsc --noEmit"
32
+ },
33
+ "dependencies": {
34
+ "chroma-js": "^2.4.2",
35
+ "commander": "^12.1.0",
36
+ "fast-glob": "^3.3.2"
37
+ },
38
+ "devDependencies": {
39
+ "@types/chroma-js": "^2.4.4",
40
+ "@types/node": "^20.14.10",
41
+ "tsup": "^8.3.5",
42
+ "typescript": "^5.7.2",
43
+ "vitest": "^2.1.8"
44
+ },
45
+ "keywords": [
46
+ "design-tokens",
47
+ "w3c",
48
+ "css-variables",
49
+ "nice2dev",
50
+ "design-system"
51
+ ],
52
+ "author": "Nice2Dev",
53
+ "license": "MIT",
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "https://github.com/nicetogit/nice2dev-ui.git",
57
+ "directory": "packages/design-tokens"
58
+ }
59
+ }
@@ -0,0 +1,147 @@
1
+ {
2
+ "$name": "animation",
3
+ "$description": "Animation and transition tokens (W3C Format)",
4
+
5
+ "duration": {
6
+ "$type": "duration",
7
+
8
+ "instant": { "$value": "0ms" },
9
+ "fastest": { "$value": "50ms" },
10
+ "faster": { "$value": "100ms" },
11
+ "fast": { "$value": "150ms" },
12
+ "normal": { "$value": "200ms" },
13
+ "slow": { "$value": "300ms" },
14
+ "slower": { "$value": "400ms" },
15
+ "slowest": { "$value": "500ms" },
16
+ "deliberate": { "$value": "700ms" }
17
+ },
18
+
19
+ "easing": {
20
+ "$type": "cubicBezier",
21
+
22
+ "linear": { "$value": [0, 0, 1, 1] },
23
+ "ease": { "$value": [0.25, 0.1, 0.25, 1] },
24
+ "ease-in": { "$value": [0.42, 0, 1, 1] },
25
+ "ease-out": { "$value": [0, 0, 0.58, 1] },
26
+ "ease-in-out": { "$value": [0.42, 0, 0.58, 1] },
27
+
28
+ "ease-in-quad": { "$value": [0.55, 0.085, 0.68, 0.53] },
29
+ "ease-out-quad": { "$value": [0.25, 0.46, 0.45, 0.94] },
30
+ "ease-in-out-quad": { "$value": [0.455, 0.03, 0.515, 0.955] },
31
+
32
+ "ease-in-cubic": { "$value": [0.55, 0.055, 0.675, 0.19] },
33
+ "ease-out-cubic": { "$value": [0.215, 0.61, 0.355, 1] },
34
+ "ease-in-out-cubic": { "$value": [0.645, 0.045, 0.355, 1] },
35
+
36
+ "ease-in-expo": { "$value": [0.95, 0.05, 0.795, 0.035] },
37
+ "ease-out-expo": { "$value": [0.19, 1, 0.22, 1] },
38
+ "ease-in-out-expo": { "$value": [1, 0, 0, 1] },
39
+
40
+ "ease-in-back": { "$value": [0.6, -0.28, 0.735, 0.045] },
41
+ "ease-out-back": { "$value": [0.175, 0.885, 0.32, 1.275] },
42
+ "ease-in-out-back": { "$value": [0.68, -0.55, 0.265, 1.55] },
43
+
44
+ "spring": { "$value": [0.5, 1.8, 0.5, 0.8] },
45
+ "bounce": { "$value": [0.175, 0.885, 0.32, 1.275] }
46
+ },
47
+
48
+ "transition": {
49
+ "$description": "Common transition presets",
50
+
51
+ "none": {
52
+ "$value": "none"
53
+ },
54
+
55
+ "all": {
56
+ "$value": "all {duration.normal} {easing.ease-out}"
57
+ },
58
+
59
+ "colors": {
60
+ "$value": "color {duration.fast} {easing.ease}, background-color {duration.fast} {easing.ease}, border-color {duration.fast} {easing.ease}"
61
+ },
62
+
63
+ "opacity": {
64
+ "$value": "opacity {duration.fast} {easing.ease}"
65
+ },
66
+
67
+ "shadow": {
68
+ "$value": "box-shadow {duration.normal} {easing.ease-out}"
69
+ },
70
+
71
+ "transform": {
72
+ "$value": "transform {duration.normal} {easing.ease-out}"
73
+ },
74
+
75
+ "width": {
76
+ "$value": "width {duration.slow} {easing.ease-out}"
77
+ },
78
+
79
+ "height": {
80
+ "$value": "height {duration.slow} {easing.ease-out}"
81
+ }
82
+ },
83
+
84
+ "animation": {
85
+ "$description": "Keyframe animation presets",
86
+
87
+ "spin": {
88
+ "keyframes": "@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }",
89
+ "value": "spin 1s linear infinite"
90
+ },
91
+
92
+ "ping": {
93
+ "keyframes": "@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }",
94
+ "value": "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"
95
+ },
96
+
97
+ "pulse": {
98
+ "keyframes": "@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }",
99
+ "value": "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"
100
+ },
101
+
102
+ "bounce": {
103
+ "keyframes": "@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); } 50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } }",
104
+ "value": "bounce 1s infinite"
105
+ },
106
+
107
+ "fade-in": {
108
+ "keyframes": "@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }",
109
+ "value": "fadeIn {duration.normal} {easing.ease-out}"
110
+ },
111
+
112
+ "fade-out": {
113
+ "keyframes": "@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }",
114
+ "value": "fadeOut {duration.normal} {easing.ease-in}"
115
+ },
116
+
117
+ "slide-in-up": {
118
+ "keyframes": "@keyframes slideInUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }",
119
+ "value": "slideInUp {duration.normal} {easing.ease-out}"
120
+ },
121
+
122
+ "slide-in-down": {
123
+ "keyframes": "@keyframes slideInDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }",
124
+ "value": "slideInDown {duration.normal} {easing.ease-out}"
125
+ },
126
+
127
+ "scale-in": {
128
+ "keyframes": "@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }",
129
+ "value": "scaleIn {duration.fast} {easing.ease-out}"
130
+ },
131
+
132
+ "shake": {
133
+ "keyframes": "@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }",
134
+ "value": "shake 0.5s ease-in-out"
135
+ }
136
+ },
137
+
138
+ "motion": {
139
+ "$description": "Reduced motion alternatives",
140
+
141
+ "reduced": {
142
+ "transition-duration": { "$value": "0.01ms" },
143
+ "animation-duration": { "$value": "0.01ms" },
144
+ "animation-iteration-count": { "$value": "1" }
145
+ }
146
+ }
147
+ }
@@ -0,0 +1,184 @@
1
+ {
2
+ "$name": "@nice2dev/design-tokens",
3
+ "$version": "1.0.9",
4
+ "$description": "Nice2Dev Design System Tokens (W3C Format)",
5
+
6
+ "color": {
7
+ "$type": "color",
8
+
9
+ "primitive": {
10
+ "$description": "Raw color palette - do not use directly in components",
11
+
12
+ "blue": {
13
+ "50": { "$value": "#eff6ff" },
14
+ "100": { "$value": "#dbeafe" },
15
+ "200": { "$value": "#bfdbfe" },
16
+ "300": { "$value": "#93c5fd" },
17
+ "400": { "$value": "#60a5fa" },
18
+ "500": { "$value": "#3b82f6" },
19
+ "600": { "$value": "#2563eb" },
20
+ "700": { "$value": "#1d4ed8" },
21
+ "800": { "$value": "#1e40af" },
22
+ "900": { "$value": "#1e3a8a" },
23
+ "950": { "$value": "#172554" }
24
+ },
25
+
26
+ "green": {
27
+ "50": { "$value": "#f0fdf4" },
28
+ "100": { "$value": "#dcfce7" },
29
+ "200": { "$value": "#bbf7d0" },
30
+ "300": { "$value": "#86efac" },
31
+ "400": { "$value": "#4ade80" },
32
+ "500": { "$value": "#22c55e" },
33
+ "600": { "$value": "#16a34a" },
34
+ "700": { "$value": "#15803d" },
35
+ "800": { "$value": "#166534" },
36
+ "900": { "$value": "#14532d" },
37
+ "950": { "$value": "#052e16" }
38
+ },
39
+
40
+ "red": {
41
+ "50": { "$value": "#fef2f2" },
42
+ "100": { "$value": "#fee2e2" },
43
+ "200": { "$value": "#fecaca" },
44
+ "300": { "$value": "#fca5a5" },
45
+ "400": { "$value": "#f87171" },
46
+ "500": { "$value": "#ef4444" },
47
+ "600": { "$value": "#dc2626" },
48
+ "700": { "$value": "#b91c1c" },
49
+ "800": { "$value": "#991b1b" },
50
+ "900": { "$value": "#7f1d1d" },
51
+ "950": { "$value": "#450a0a" }
52
+ },
53
+
54
+ "amber": {
55
+ "50": { "$value": "#fffbeb" },
56
+ "100": { "$value": "#fef3c7" },
57
+ "200": { "$value": "#fde68a" },
58
+ "300": { "$value": "#fcd34d" },
59
+ "400": { "$value": "#fbbf24" },
60
+ "500": { "$value": "#f59e0b" },
61
+ "600": { "$value": "#d97706" },
62
+ "700": { "$value": "#b45309" },
63
+ "800": { "$value": "#92400e" },
64
+ "900": { "$value": "#78350f" },
65
+ "950": { "$value": "#451a03" }
66
+ },
67
+
68
+ "gray": {
69
+ "50": { "$value": "#f9fafb" },
70
+ "100": { "$value": "#f3f4f6" },
71
+ "200": { "$value": "#e5e7eb" },
72
+ "300": { "$value": "#d1d5db" },
73
+ "400": { "$value": "#9ca3af" },
74
+ "500": { "$value": "#6b7280" },
75
+ "600": { "$value": "#4b5563" },
76
+ "700": { "$value": "#374151" },
77
+ "800": { "$value": "#1f2937" },
78
+ "900": { "$value": "#111827" },
79
+ "950": { "$value": "#030712" }
80
+ },
81
+
82
+ "slate": {
83
+ "50": { "$value": "#f8fafc" },
84
+ "100": { "$value": "#f1f5f9" },
85
+ "200": { "$value": "#e2e8f0" },
86
+ "300": { "$value": "#cbd5e1" },
87
+ "400": { "$value": "#94a3b8" },
88
+ "500": { "$value": "#64748b" },
89
+ "600": { "$value": "#475569" },
90
+ "700": { "$value": "#334155" },
91
+ "800": { "$value": "#1e293b" },
92
+ "900": { "$value": "#0f172a" },
93
+ "950": { "$value": "#020617" }
94
+ },
95
+
96
+ "violet": {
97
+ "50": { "$value": "#f5f3ff" },
98
+ "100": { "$value": "#ede9fe" },
99
+ "200": { "$value": "#ddd6fe" },
100
+ "300": { "$value": "#c4b5fd" },
101
+ "400": { "$value": "#a78bfa" },
102
+ "500": { "$value": "#8b5cf6" },
103
+ "600": { "$value": "#7c3aed" },
104
+ "700": { "$value": "#6d28d9" },
105
+ "800": { "$value": "#5b21b6" },
106
+ "900": { "$value": "#4c1d95" },
107
+ "950": { "$value": "#2e1065" }
108
+ },
109
+
110
+ "cyan": {
111
+ "50": { "$value": "#ecfeff" },
112
+ "100": { "$value": "#cffafe" },
113
+ "200": { "$value": "#a5f3fc" },
114
+ "300": { "$value": "#67e8f9" },
115
+ "400": { "$value": "#22d3ee" },
116
+ "500": { "$value": "#06b6d4" },
117
+ "600": { "$value": "#0891b2" },
118
+ "700": { "$value": "#0e7490" },
119
+ "800": { "$value": "#155e75" },
120
+ "900": { "$value": "#164e63" },
121
+ "950": { "$value": "#083344" }
122
+ },
123
+
124
+ "white": { "$value": "#ffffff" },
125
+ "black": { "$value": "#000000" },
126
+ "transparent": { "$value": "transparent" }
127
+ },
128
+
129
+ "semantic": {
130
+ "$description": "Semantic colors - use these in components",
131
+
132
+ "brand": {
133
+ "primary": { "$value": "{color.primitive.blue.600}" },
134
+ "primary-hover": { "$value": "{color.primitive.blue.700}" },
135
+ "primary-active": { "$value": "{color.primitive.blue.800}" },
136
+ "primary-subtle": { "$value": "{color.primitive.blue.50}" },
137
+ "secondary": { "$value": "{color.primitive.violet.600}" },
138
+ "secondary-hover": { "$value": "{color.primitive.violet.700}" }
139
+ },
140
+
141
+ "feedback": {
142
+ "success": { "$value": "{color.primitive.green.600}" },
143
+ "success-subtle": { "$value": "{color.primitive.green.50}" },
144
+ "warning": { "$value": "{color.primitive.amber.500}" },
145
+ "warning-subtle": { "$value": "{color.primitive.amber.50}" },
146
+ "error": { "$value": "{color.primitive.red.600}" },
147
+ "error-subtle": { "$value": "{color.primitive.red.50}" },
148
+ "info": { "$value": "{color.primitive.cyan.600}" },
149
+ "info-subtle": { "$value": "{color.primitive.cyan.50}" }
150
+ },
151
+
152
+ "neutral": {
153
+ "background": { "$value": "{color.primitive.white}" },
154
+ "background-subtle": { "$value": "{color.primitive.gray.50}" },
155
+ "background-muted": { "$value": "{color.primitive.gray.100}" },
156
+ "surface": { "$value": "{color.primitive.white}" },
157
+ "surface-hover": { "$value": "{color.primitive.gray.50}" },
158
+ "surface-active": { "$value": "{color.primitive.gray.100}" },
159
+ "border": { "$value": "{color.primitive.gray.200}" },
160
+ "border-strong": { "$value": "{color.primitive.gray.300}" },
161
+ "divider": { "$value": "{color.primitive.gray.200}" }
162
+ },
163
+
164
+ "text": {
165
+ "primary": { "$value": "{color.primitive.gray.900}" },
166
+ "secondary": { "$value": "{color.primitive.gray.600}" },
167
+ "muted": { "$value": "{color.primitive.gray.500}" },
168
+ "disabled": { "$value": "{color.primitive.gray.400}" },
169
+ "inverse": { "$value": "{color.primitive.white}" },
170
+ "on-brand": { "$value": "{color.primitive.white}" },
171
+ "link": { "$value": "{color.primitive.blue.600}" },
172
+ "link-hover": { "$value": "{color.primitive.blue.700}" }
173
+ },
174
+
175
+ "interactive": {
176
+ "focus": { "$value": "{color.primitive.blue.500}" },
177
+ "focus-ring": { "$value": "rgba(59, 130, 246, 0.5)" },
178
+ "disabled": { "$value": "{color.primitive.gray.200}" },
179
+ "disabled-text": { "$value": "{color.primitive.gray.400}" },
180
+ "overlay": { "$value": "rgba(0, 0, 0, 0.5)" }
181
+ }
182
+ }
183
+ }
184
+ }
@@ -0,0 +1,201 @@
1
+ {
2
+ "$name": "components",
3
+ "$description": "Component-specific design tokens (W3C Format)",
4
+
5
+ "button": {
6
+ "$description": "Button component tokens",
7
+
8
+ "primary": {
9
+ "background": { "$value": "{color.semantic.brand.primary}" },
10
+ "background-hover": { "$value": "{color.semantic.brand.primary-hover}" },
11
+ "background-active": { "$value": "{color.semantic.brand.primary-active}" },
12
+ "text": { "$value": "{color.semantic.text.on-brand}" },
13
+ "border": { "$value": "transparent" }
14
+ },
15
+
16
+ "secondary": {
17
+ "background": { "$value": "transparent" },
18
+ "background-hover": { "$value": "{color.semantic.neutral.surface-hover}" },
19
+ "text": { "$value": "{color.semantic.text.primary}" },
20
+ "border": { "$value": "{color.semantic.neutral.border}" }
21
+ },
22
+
23
+ "ghost": {
24
+ "background": { "$value": "transparent" },
25
+ "background-hover": { "$value": "{color.semantic.neutral.surface-hover}" },
26
+ "text": { "$value": "{color.semantic.text.primary}" },
27
+ "border": { "$value": "transparent" }
28
+ },
29
+
30
+ "danger": {
31
+ "background": { "$value": "{color.semantic.feedback.error}" },
32
+ "background-hover": { "$value": "{color.primitive.red.700}" },
33
+ "text": { "$value": "{color.primitive.white}" },
34
+ "border": { "$value": "transparent" }
35
+ },
36
+
37
+ "padding": {
38
+ "xs": { "$value": "{spacing.1} {spacing.2}" },
39
+ "sm": { "$value": "{spacing.1.5} {spacing.3}" },
40
+ "base": { "$value": "{spacing.2} {spacing.4}" },
41
+ "lg": { "$value": "{spacing.2.5} {spacing.5}" },
42
+ "xl": { "$value": "{spacing.3} {spacing.6}" }
43
+ },
44
+
45
+ "radius": { "$value": "{border.radius.md}" },
46
+ "font-weight": { "$value": "{font.weight.medium}" },
47
+ "transition": { "$value": "{transition.colors}" }
48
+ },
49
+
50
+ "input": {
51
+ "$description": "Input/form field tokens",
52
+
53
+ "background": { "$value": "{color.semantic.neutral.background}" },
54
+ "background-disabled": { "$value": "{color.semantic.neutral.background-muted}" },
55
+ "border": { "$value": "{color.semantic.neutral.border}" },
56
+ "border-hover": { "$value": "{color.semantic.neutral.border-strong}" },
57
+ "border-focus": { "$value": "{color.semantic.brand.primary}" },
58
+ "border-error": { "$value": "{color.semantic.feedback.error}" },
59
+ "text": { "$value": "{color.semantic.text.primary}" },
60
+ "text-placeholder": { "$value": "{color.semantic.text.muted}" },
61
+
62
+ "padding": {
63
+ "sm": { "$value": "{spacing.2} {spacing.2.5}" },
64
+ "base": { "$value": "{spacing.2.5} {spacing.3}" },
65
+ "lg": { "$value": "{spacing.3} {spacing.4}" }
66
+ },
67
+
68
+ "radius": { "$value": "{border.radius.md}" },
69
+ "focus-ring": { "$value": "{shadow.focus}" }
70
+ },
71
+
72
+ "card": {
73
+ "$description": "Card component tokens",
74
+
75
+ "background": { "$value": "{color.semantic.neutral.surface}" },
76
+ "background-hover": { "$value": "{color.semantic.neutral.surface-hover}" },
77
+ "border": { "$value": "{color.semantic.neutral.border}" },
78
+ "shadow": { "$value": "{shadow.sm}" },
79
+ "shadow-hover": { "$value": "{shadow.md}" },
80
+
81
+ "padding": {
82
+ "sm": { "$value": "{spacing.3}" },
83
+ "base": { "$value": "{spacing.4}" },
84
+ "lg": { "$value": "{spacing.6}" }
85
+ },
86
+
87
+ "radius": { "$value": "{border.radius.lg}" }
88
+ },
89
+
90
+ "modal": {
91
+ "$description": "Modal/dialog tokens",
92
+
93
+ "background": { "$value": "{color.semantic.neutral.surface}" },
94
+ "overlay": { "$value": "{color.semantic.interactive.overlay}" },
95
+ "shadow": { "$value": "{shadow.2xl}" },
96
+ "radius": { "$value": "{border.radius.xl}" },
97
+
98
+ "padding": {
99
+ "header": { "$value": "{spacing.4} {spacing.6}" },
100
+ "body": { "$value": "{spacing.6}" },
101
+ "footer": { "$value": "{spacing.4} {spacing.6}" }
102
+ },
103
+
104
+ "width": {
105
+ "sm": { "$value": "24rem" },
106
+ "base": { "$value": "32rem" },
107
+ "lg": { "$value": "42rem" },
108
+ "xl": { "$value": "56rem" },
109
+ "full": { "$value": "calc(100vw - 2rem)" }
110
+ }
111
+ },
112
+
113
+ "tooltip": {
114
+ "$description": "Tooltip tokens",
115
+
116
+ "background": { "$value": "{color.primitive.gray.900}" },
117
+ "text": { "$value": "{color.primitive.white}" },
118
+ "padding": { "$value": "{spacing.1.5} {spacing.2.5}" },
119
+ "radius": { "$value": "{border.radius.md}" },
120
+ "shadow": { "$value": "{shadow.md}" },
121
+ "font-size": { "$value": "{font.size.xs}" },
122
+ "max-width": { "$value": "20rem" }
123
+ },
124
+
125
+ "badge": {
126
+ "$description": "Badge/tag tokens",
127
+
128
+ "padding": {
129
+ "sm": { "$value": "{spacing.0.5} {spacing.1.5}" },
130
+ "base": { "$value": "{spacing.1} {spacing.2}" }
131
+ },
132
+
133
+ "radius": { "$value": "{border.radius.full}" },
134
+ "font-size": { "$value": "{font.size.xs}" },
135
+ "font-weight": { "$value": "{font.weight.medium}" }
136
+ },
137
+
138
+ "avatar": {
139
+ "$description": "Avatar tokens",
140
+
141
+ "background": { "$value": "{color.semantic.neutral.background-muted}" },
142
+ "border": { "$value": "{color.semantic.neutral.border}" },
143
+ "text": { "$value": "{color.semantic.text.secondary}" },
144
+ "radius": { "$value": "{border.radius.full}" }
145
+ },
146
+
147
+ "table": {
148
+ "$description": "Table/DataGrid tokens",
149
+
150
+ "header-background": { "$value": "{color.semantic.neutral.background-subtle}" },
151
+ "header-text": { "$value": "{color.semantic.text.secondary}" },
152
+ "row-background": { "$value": "{color.semantic.neutral.background}" },
153
+ "row-background-hover": { "$value": "{color.semantic.neutral.surface-hover}" },
154
+ "row-background-selected": { "$value": "{color.semantic.brand.primary-subtle}" },
155
+ "row-background-striped": { "$value": "{color.semantic.neutral.background-subtle}" },
156
+ "border": { "$value": "{color.semantic.neutral.divider}" },
157
+
158
+ "cell-padding": {
159
+ "sm": { "$value": "{spacing.2} {spacing.3}" },
160
+ "base": { "$value": "{spacing.3} {spacing.4}" },
161
+ "lg": { "$value": "{spacing.4} {spacing.5}" }
162
+ }
163
+ },
164
+
165
+ "navigation": {
166
+ "$description": "Navigation/menu tokens",
167
+
168
+ "background": { "$value": "{color.semantic.neutral.surface}" },
169
+ "item-background-hover": { "$value": "{color.semantic.neutral.surface-hover}" },
170
+ "item-background-active": { "$value": "{color.semantic.brand.primary-subtle}" },
171
+ "item-text": { "$value": "{color.semantic.text.secondary}" },
172
+ "item-text-hover": { "$value": "{color.semantic.text.primary}" },
173
+ "item-text-active": { "$value": "{color.semantic.brand.primary}" },
174
+ "divider": { "$value": "{color.semantic.neutral.divider}" },
175
+
176
+ "item-padding": { "$value": "{spacing.2.5} {spacing.3}" },
177
+ "item-radius": { "$value": "{border.radius.md}" },
178
+
179
+ "level": {
180
+ "$description": "Per-depth nesting colors (sidebar/menu/tree). Vars --nice-{surface}-level-{1..10}-{bg|text|hover-bg|active-bg|border} are emitted at runtime by themeToCssVars() from NiceTheme.nesting. Defaults below are fallbacks used when no nesting config is provided.",
181
+ "1-bg": { "$value": "{color.semantic.neutral.surface}" },
182
+ "1-text": { "$value": "{color.semantic.text.primary}" },
183
+ "2-bg": { "$value": "{color.semantic.neutral.surface-hover}" },
184
+ "2-text": { "$value": "{color.semantic.text.primary}" },
185
+ "deep-bg": { "$value": "{color.semantic.neutral.background-subtle}" },
186
+ "deep-text": { "$value": "{color.semantic.text.secondary}" }
187
+ }
188
+ },
189
+
190
+ "tabs": {
191
+ "$description": "Tabs tokens",
192
+
193
+ "background": { "$value": "transparent" },
194
+ "border": { "$value": "{color.semantic.neutral.border}" },
195
+ "indicator": { "$value": "{color.semantic.brand.primary}" },
196
+ "text": { "$value": "{color.semantic.text.secondary}" },
197
+ "text-active": { "$value": "{color.semantic.brand.primary}" },
198
+
199
+ "padding": { "$value": "{spacing.2.5} {spacing.4}" }
200
+ }
201
+ }