@und-ui/tokens 0.0.0-stage → 0.1.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.
Files changed (172) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -2
  3. package/dist/android/values/und_colors.xml +91 -0
  4. package/dist/android/values/und_dimens.xml +93 -0
  5. package/dist/android/values-night/und_colors.xml +91 -0
  6. package/dist/css/base.css +2335 -0
  7. package/dist/css/motion.css +223 -0
  8. package/dist/css/themes/kesar.css +68 -0
  9. package/dist/css/themes/mitti.css +84 -0
  10. package/dist/css/themes/neem.css +84 -0
  11. package/dist/css/themes/raat.css +507 -0
  12. package/dist/css/themes/sutra.css +109 -0
  13. package/dist/css/themes/ujala.css +67 -0
  14. package/dist/css/tokens.css +3167 -0
  15. package/dist/dart/und_tokens.dart +3223 -0
  16. package/dist/js/contexts.d.ts +2 -0
  17. package/dist/js/contexts.js +3 -0
  18. package/dist/js/index.d.ts +1883 -0
  19. package/dist/js/index.js +2230 -0
  20. package/dist/json/flat/kesar.dark.json +737 -0
  21. package/dist/json/flat/kesar.darkMore.json +737 -0
  22. package/dist/json/flat/kesar.light.json +737 -0
  23. package/dist/json/flat/kesar.lightMore.json +737 -0
  24. package/dist/json/flat/mitti.dark.json +737 -0
  25. package/dist/json/flat/mitti.darkMore.json +737 -0
  26. package/dist/json/flat/mitti.light.json +737 -0
  27. package/dist/json/flat/mitti.lightMore.json +737 -0
  28. package/dist/json/flat/neem.dark.json +737 -0
  29. package/dist/json/flat/neem.darkMore.json +737 -0
  30. package/dist/json/flat/neem.light.json +737 -0
  31. package/dist/json/flat/neem.lightMore.json +737 -0
  32. package/dist/json/flat/raat.dark.json +737 -0
  33. package/dist/json/flat/raat.darkMore.json +737 -0
  34. package/dist/json/flat/sutra.dark.json +738 -0
  35. package/dist/json/flat/sutra.darkMore.json +738 -0
  36. package/dist/json/flat/sutra.light.json +738 -0
  37. package/dist/json/flat/sutra.lightMore.json +738 -0
  38. package/dist/json/flat/ujala.dark.json +737 -0
  39. package/dist/json/flat/ujala.darkMore.json +737 -0
  40. package/dist/json/flat/ujala.light.json +737 -0
  41. package/dist/json/flat/ujala.lightMore.json +737 -0
  42. package/dist/json/nested/kesar.dark.json +885 -0
  43. package/dist/json/nested/kesar.darkMore.json +885 -0
  44. package/dist/json/nested/kesar.light.json +885 -0
  45. package/dist/json/nested/kesar.lightMore.json +885 -0
  46. package/dist/json/nested/mitti.dark.json +885 -0
  47. package/dist/json/nested/mitti.darkMore.json +885 -0
  48. package/dist/json/nested/mitti.light.json +885 -0
  49. package/dist/json/nested/mitti.lightMore.json +885 -0
  50. package/dist/json/nested/neem.dark.json +885 -0
  51. package/dist/json/nested/neem.darkMore.json +885 -0
  52. package/dist/json/nested/neem.light.json +885 -0
  53. package/dist/json/nested/neem.lightMore.json +885 -0
  54. package/dist/json/nested/raat.dark.json +885 -0
  55. package/dist/json/nested/raat.darkMore.json +885 -0
  56. package/dist/json/nested/sutra.dark.json +886 -0
  57. package/dist/json/nested/sutra.darkMore.json +886 -0
  58. package/dist/json/nested/sutra.light.json +886 -0
  59. package/dist/json/nested/sutra.lightMore.json +886 -0
  60. package/dist/json/nested/ujala.dark.json +885 -0
  61. package/dist/json/nested/ujala.darkMore.json +885 -0
  62. package/dist/json/nested/ujala.light.json +885 -0
  63. package/dist/json/nested/ujala.lightMore.json +885 -0
  64. package/dist/kotlin/UndTokens.kt +2870 -0
  65. package/dist/lib/build/contexts.d.ts +13 -0
  66. package/dist/lib/build/contexts.js +20 -0
  67. package/dist/lib/build/css-values.d.ts +31 -0
  68. package/dist/lib/build/css-values.js +191 -0
  69. package/dist/lib/build/formats/css.d.ts +43 -0
  70. package/dist/lib/build/formats/css.js +380 -0
  71. package/dist/lib/build/formats/dart.d.ts +9 -0
  72. package/dist/lib/build/formats/dart.js +342 -0
  73. package/dist/lib/build/formats/js.d.ts +29 -0
  74. package/dist/lib/build/formats/js.js +297 -0
  75. package/dist/lib/build/formats/kotlin.d.ts +8 -0
  76. package/dist/lib/build/formats/kotlin.js +232 -0
  77. package/dist/lib/build/formats/react-native.d.ts +2 -0
  78. package/dist/lib/build/formats/react-native.js +208 -0
  79. package/dist/lib/build/formats/style-dictionary.d.ts +8 -0
  80. package/dist/lib/build/formats/style-dictionary.js +163 -0
  81. package/dist/lib/build/formats/swift.d.ts +8 -0
  82. package/dist/lib/build/formats/swift.js +395 -0
  83. package/dist/lib/build/formats/tailwind.d.ts +9 -0
  84. package/dist/lib/build/formats/tailwind.js +105 -0
  85. package/dist/lib/build/index.d.ts +12 -0
  86. package/dist/lib/build/index.js +133 -0
  87. package/dist/lib/build/materialize.d.ts +102 -0
  88. package/dist/lib/build/materialize.js +170 -0
  89. package/dist/lib/build/native-model.d.ts +46 -0
  90. package/dist/lib/build/native-model.js +177 -0
  91. package/dist/lib/color/contrast.d.ts +24 -0
  92. package/dist/lib/color/contrast.js +95 -0
  93. package/dist/lib/color/convert.d.ts +39 -0
  94. package/dist/lib/color/convert.js +91 -0
  95. package/dist/lib/color/pairs.d.ts +29 -0
  96. package/dist/lib/color/pairs.js +90 -0
  97. package/dist/lib/color/palette.d.ts +118 -0
  98. package/dist/lib/color/palette.js +199 -0
  99. package/dist/lib/color/scales.d.ts +18 -0
  100. package/dist/lib/color/scales.js +115 -0
  101. package/dist/lib/dtcg/engine.d.ts +75 -0
  102. package/dist/lib/dtcg/engine.js +395 -0
  103. package/dist/lib/dtcg/format-json.d.ts +1 -0
  104. package/dist/lib/dtcg/format-json.js +59 -0
  105. package/dist/lib/dtcg/types.d.ts +124 -0
  106. package/dist/lib/dtcg/types.js +54 -0
  107. package/dist/lib/index.d.ts +20 -0
  108. package/dist/lib/index.js +14 -0
  109. package/dist/lib/motion/spring.d.ts +40 -0
  110. package/dist/lib/motion/spring.js +129 -0
  111. package/dist/lib/source/generate.d.ts +28 -0
  112. package/dist/lib/source/generate.js +468 -0
  113. package/dist/lib/themes/definitions.d.ts +43 -0
  114. package/dist/lib/themes/definitions.js +140 -0
  115. package/dist/react-native/index.d.ts +130 -0
  116. package/dist/react-native/index.js +15 -0
  117. package/dist/react-native/tokens.d.ts +2 -0
  118. package/dist/react-native/tokens.js +4413 -0
  119. package/dist/scss/_variables.scss +738 -0
  120. package/dist/scss/_vars.scss +857 -0
  121. package/dist/scss/kesar.dark.scss +738 -0
  122. package/dist/scss/kesar.darkMore.scss +738 -0
  123. package/dist/scss/kesar.light.scss +738 -0
  124. package/dist/scss/kesar.lightMore.scss +738 -0
  125. package/dist/scss/mitti.dark.scss +738 -0
  126. package/dist/scss/mitti.darkMore.scss +738 -0
  127. package/dist/scss/mitti.light.scss +738 -0
  128. package/dist/scss/mitti.lightMore.scss +738 -0
  129. package/dist/scss/neem.dark.scss +738 -0
  130. package/dist/scss/neem.darkMore.scss +738 -0
  131. package/dist/scss/neem.light.scss +738 -0
  132. package/dist/scss/neem.lightMore.scss +738 -0
  133. package/dist/scss/raat.dark.scss +738 -0
  134. package/dist/scss/raat.darkMore.scss +738 -0
  135. package/dist/scss/sutra.dark.scss +739 -0
  136. package/dist/scss/sutra.darkMore.scss +739 -0
  137. package/dist/scss/sutra.light.scss +739 -0
  138. package/dist/scss/sutra.lightMore.scss +739 -0
  139. package/dist/scss/ujala.dark.scss +738 -0
  140. package/dist/scss/ujala.darkMore.scss +738 -0
  141. package/dist/scss/ujala.light.scss +738 -0
  142. package/dist/scss/ujala.lightMore.scss +738 -0
  143. package/dist/swift/UndTokens.swift +4117 -0
  144. package/dist/tailwind/und.css +586 -0
  145. package/package.json +84 -3
  146. package/tokens/contrast/more.tokens.json +46 -0
  147. package/tokens/density/comfortable.tokens.json +64 -0
  148. package/tokens/density/compact.tokens.json +68 -0
  149. package/tokens/density/touch.tokens.json +64 -0
  150. package/tokens/modes/dark.tokens.json +197 -0
  151. package/tokens/modes/light.tokens.json +166 -0
  152. package/tokens/motion/reduced.tokens.json +119 -0
  153. package/tokens/primitives/color.dark.tokens.json +2001 -0
  154. package/tokens/primitives/color.light.tokens.json +2077 -0
  155. package/tokens/primitives/dimension.tokens.json +181 -0
  156. package/tokens/primitives/motion.tokens.json +41 -0
  157. package/tokens/primitives/spring.tokens.json +138 -0
  158. package/tokens/primitives/typography.tokens.json +107 -0
  159. package/tokens/semantic/bridge.tokens.json +52 -0
  160. package/tokens/semantic/color.tokens.json +129 -0
  161. package/tokens/semantic/layout.tokens.json +84 -0
  162. package/tokens/semantic/motion.tokens.json +111 -0
  163. package/tokens/semantic/scale.tokens.json +66 -0
  164. package/tokens/semantic/typography.tokens.json +281 -0
  165. package/tokens/themes/kesar.tokens.json +105 -0
  166. package/tokens/themes/mitti.tokens.json +123 -0
  167. package/tokens/themes/neem.tokens.json +123 -0
  168. package/tokens/themes/raat.tokens.json +104 -0
  169. package/tokens/themes/sutra.tokens.json +126 -0
  170. package/tokens/themes/ujala.tokens.json +96 -0
  171. package/tokens/transparency/reduced.tokens.json +30 -0
  172. package/tokens/und.resolver.json +83 -0
@@ -0,0 +1,181 @@
1
+ {
2
+ "space": {
3
+ "$description": "4px base spacing scale (report 3.1). Density never changes these primitives.",
4
+ "0": { "$type": "dimension", "$value": { "value": 0, "unit": "rem" } },
5
+ "0_5": { "$type": "dimension", "$value": { "value": 0.125, "unit": "rem" } },
6
+ "1": { "$type": "dimension", "$value": { "value": 0.25, "unit": "rem" } },
7
+ "1_5": { "$type": "dimension", "$value": { "value": 0.375, "unit": "rem" } },
8
+ "2": { "$type": "dimension", "$value": { "value": 0.5, "unit": "rem" } },
9
+ "3": { "$type": "dimension", "$value": { "value": 0.75, "unit": "rem" } },
10
+ "4": { "$type": "dimension", "$value": { "value": 1, "unit": "rem" } },
11
+ "5": { "$type": "dimension", "$value": { "value": 1.25, "unit": "rem" } },
12
+ "6": { "$type": "dimension", "$value": { "value": 1.5, "unit": "rem" } },
13
+ "8": { "$type": "dimension", "$value": { "value": 2, "unit": "rem" } },
14
+ "10": { "$type": "dimension", "$value": { "value": 2.5, "unit": "rem" } },
15
+ "12": { "$type": "dimension", "$value": { "value": 3, "unit": "rem" } },
16
+ "16": { "$type": "dimension", "$value": { "value": 4, "unit": "rem" } },
17
+ "20": { "$type": "dimension", "$value": { "value": 5, "unit": "rem" } },
18
+ "24": { "$type": "dimension", "$value": { "value": 6, "unit": "rem" } },
19
+ "32": { "$type": "dimension", "$value": { "value": 8, "unit": "rem" } },
20
+ "px": { "$type": "dimension", "$value": { "value": 1, "unit": "px" } }
21
+ },
22
+ "size": {
23
+ "$description": "Control, icon and avatar sizes (report 3.2) and touch targets (3.9).",
24
+ "control": {
25
+ "$description": "Control heights, comfortable density.",
26
+ "xs": { "$type": "dimension", "$value": { "value": 24, "unit": "px" } },
27
+ "sm": { "$type": "dimension", "$value": { "value": 32, "unit": "px" } },
28
+ "md": { "$type": "dimension", "$value": { "value": 40, "unit": "px" } },
29
+ "lg": { "$type": "dimension", "$value": { "value": 48, "unit": "px" } },
30
+ "xl": { "$type": "dimension", "$value": { "value": 56, "unit": "px" } }
31
+ },
32
+ "control-compact": {
33
+ "$description": "Control heights, compact density (one size step down).",
34
+ "xs": { "$type": "dimension", "$value": { "value": 20, "unit": "px" } },
35
+ "sm": { "$type": "dimension", "$value": { "value": 28, "unit": "px" } },
36
+ "md": { "$type": "dimension", "$value": { "value": 32, "unit": "px" } },
37
+ "lg": { "$type": "dimension", "$value": { "value": 40, "unit": "px" } },
38
+ "xl": { "$type": "dimension", "$value": { "value": 48, "unit": "px" } }
39
+ },
40
+ "control-touch": {
41
+ "$description": "Control heights, touch density (md is 44).",
42
+ "xs": { "$type": "dimension", "$value": { "value": 32, "unit": "px" } },
43
+ "sm": { "$type": "dimension", "$value": { "value": 40, "unit": "px" } },
44
+ "md": { "$type": "dimension", "$value": { "value": 44, "unit": "px" } },
45
+ "lg": { "$type": "dimension", "$value": { "value": 48, "unit": "px" } },
46
+ "xl": { "$type": "dimension", "$value": { "value": 56, "unit": "px" } }
47
+ },
48
+ "icon": {
49
+ "xs": { "$type": "dimension", "$value": { "value": 12, "unit": "px" } },
50
+ "sm": { "$type": "dimension", "$value": { "value": 16, "unit": "px" } },
51
+ "md": { "$type": "dimension", "$value": { "value": 20, "unit": "px" } },
52
+ "lg": { "$type": "dimension", "$value": { "value": 24, "unit": "px" } },
53
+ "xl": { "$type": "dimension", "$value": { "value": 32, "unit": "px" } }
54
+ },
55
+ "icon-stroke": {
56
+ "$type": "number",
57
+ "xs": { "$value": 1.5 },
58
+ "sm": { "$value": 1.5 },
59
+ "md": { "$value": 1.75 },
60
+ "lg": { "$value": 2 },
61
+ "xl": { "$value": 2 }
62
+ },
63
+ "avatar": {
64
+ "xs": { "$type": "dimension", "$value": { "value": 20, "unit": "px" } },
65
+ "sm": { "$type": "dimension", "$value": { "value": 24, "unit": "px" } },
66
+ "md": { "$type": "dimension", "$value": { "value": 32, "unit": "px" } },
67
+ "lg": { "$type": "dimension", "$value": { "value": 40, "unit": "px" } },
68
+ "xl": { "$type": "dimension", "$value": { "value": 56, "unit": "px" } },
69
+ "profile-md": { "$type": "dimension", "$value": { "value": 72, "unit": "px" } },
70
+ "profile-lg": { "$type": "dimension", "$value": { "value": 96, "unit": "px" } }
71
+ },
72
+ "target": {
73
+ "$description": "Minimum hit areas. fine = WCAG 2.5.8 AA; touch = Apple HIG and coarse pointers; android = Material 48dp.",
74
+ "fine": { "$type": "dimension", "$value": { "value": 24, "unit": "px" } },
75
+ "touch": { "$type": "dimension", "$value": { "value": 44, "unit": "px" } },
76
+ "android": { "$type": "dimension", "$value": { "value": 48, "unit": "px" } }
77
+ }
78
+ },
79
+ "radius": {
80
+ "$description": "Base radius scale (report 3.3). Every step except none and full is multiplied by radius.factor per theme.",
81
+ "factor": {
82
+ "$type": "number",
83
+ "$value": 1,
84
+ "$description": "Theme radius multiplier, 0.5 (sharp) to 1.5 (soft). CSS: --und-radius-factor."
85
+ },
86
+ "none": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
87
+ "xs": {
88
+ "$type": "dimension",
89
+ "$value": { "value": 2, "unit": "px" },
90
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
91
+ },
92
+ "sm": {
93
+ "$type": "dimension",
94
+ "$value": { "value": 4, "unit": "px" },
95
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
96
+ },
97
+ "md": {
98
+ "$type": "dimension",
99
+ "$value": { "value": 6, "unit": "px" },
100
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
101
+ },
102
+ "lg": {
103
+ "$type": "dimension",
104
+ "$value": { "value": 8, "unit": "px" },
105
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
106
+ },
107
+ "xl": {
108
+ "$type": "dimension",
109
+ "$value": { "value": 12, "unit": "px" },
110
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
111
+ },
112
+ "2xl": {
113
+ "$type": "dimension",
114
+ "$value": { "value": 16, "unit": "px" },
115
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
116
+ },
117
+ "3xl": {
118
+ "$type": "dimension",
119
+ "$value": { "value": 24, "unit": "px" },
120
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
121
+ },
122
+ "full": { "$type": "dimension", "$value": { "value": 9999, "unit": "px" } }
123
+ },
124
+ "border-width": {
125
+ "$type": "dimension",
126
+ "hairline": {
127
+ "$value": { "value": 1, "unit": "px" },
128
+ "$description": "Dividers only; 0.5px at >= 2dppx (native: 1 / displayScale).",
129
+ "$extensions": { "com.urnextdoor.und": { "hiDpiPx": 0.5 } }
130
+ },
131
+ "thin": { "$value": { "value": 1, "unit": "px" }, "$description": "Default border." },
132
+ "thick": { "$value": { "value": 2, "unit": "px" }, "$description": "Selected, invalid emphasis, focus." },
133
+ "heavy": { "$value": { "value": 3, "unit": "px" }, "$description": "High-contrast focus." }
134
+ },
135
+ "breakpoint": {
136
+ "$type": "dimension",
137
+ "$description": "Viewport and container breakpoints; match Tailwind v4 (report 3.8).",
138
+ "xs": { "$value": { "value": 30, "unit": "rem" } },
139
+ "sm": { "$value": { "value": 40, "unit": "rem" } },
140
+ "md": { "$value": { "value": 48, "unit": "rem" } },
141
+ "lg": { "$value": { "value": 64, "unit": "rem" } },
142
+ "xl": { "$value": { "value": 80, "unit": "rem" } },
143
+ "2xl": { "$value": { "value": 96, "unit": "rem" } }
144
+ },
145
+ "container": {
146
+ "content": { "$type": "dimension", "$value": { "value": 1200, "unit": "px" } },
147
+ "wide": { "$type": "dimension", "$value": { "value": 1440, "unit": "px" } },
148
+ "prose": {
149
+ "$type": "number",
150
+ "$value": 68,
151
+ "$description": "Prose measure for Latin text, in ch.",
152
+ "$extensions": { "com.urnextdoor.und": { "unit": "ch" } }
153
+ },
154
+ "prose-indic": {
155
+ "$type": "number",
156
+ "$value": 60,
157
+ "$description": "Prose measure for Indic text, in ch (wider glyphs).",
158
+ "$extensions": { "com.urnextdoor.und": { "unit": "ch" } }
159
+ }
160
+ },
161
+ "gutter": {
162
+ "$type": "dimension",
163
+ "sm": { "$value": { "value": 16, "unit": "px" }, "$description": "< md" },
164
+ "md": { "$value": { "value": 24, "unit": "px" }, "$description": "md to lg" },
165
+ "xl": { "$value": { "value": 32, "unit": "px" }, "$description": ">= xl" }
166
+ },
167
+ "z": {
168
+ "$type": "number",
169
+ "$description": "Z-index layers for elements outside the top layer (report 3.7). Prefer <dialog> and the Popover API.",
170
+ "base": { "$value": 0 },
171
+ "raised": { "$value": 1 },
172
+ "dropdown": { "$value": 1000 },
173
+ "sticky": { "$value": 1100 },
174
+ "banner": { "$value": 1200 },
175
+ "overlay": { "$value": 1300 },
176
+ "modal": { "$value": 1400 },
177
+ "popover": { "$value": 1500 },
178
+ "toast": { "$value": 1600 },
179
+ "tooltip": { "$value": 1700 }
180
+ }
181
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "duration": {
3
+ "$type": "duration",
4
+ "$description": "Perceptual duration ladder (report 4.2), each step about 1.3x. CSS multiplies by the clamped tempo.",
5
+ "instant": { "$value": { "value": 0, "unit": "ms" } },
6
+ "micro": { "$value": { "value": 90, "unit": "ms" } },
7
+ "fast-min": { "$value": { "value": 130, "unit": "ms" } },
8
+ "fast": { "$value": { "value": 175, "unit": "ms" } },
9
+ "fast-max": { "$value": { "value": 230, "unit": "ms" } },
10
+ "medium-min": { "$value": { "value": 310, "unit": "ms" } },
11
+ "medium": { "$value": { "value": 410, "unit": "ms" } },
12
+ "medium-max": { "$value": { "value": 550, "unit": "ms" } },
13
+ "slow-min": { "$value": { "value": 730, "unit": "ms" } },
14
+ "slow": { "$value": { "value": 975, "unit": "ms" } },
15
+ "slow-max": {
16
+ "$value": { "value": 1300, "unit": "ms" },
17
+ "$description": "Ceiling. Nothing in UI chrome is longer."
18
+ }
19
+ },
20
+ "ease": {
21
+ "$type": "cubicBezier",
22
+ "$description": "Easing curves (report 4.3).",
23
+ "enter": {
24
+ "$value": [0.24, 1, 0.4, 1],
25
+ "$description": "Astryx entrance: fast start, long soft landing."
26
+ },
27
+ "exit": { "$value": [0.3, 0, 0.6, 0.6], "$description": "Astryx exit: accelerates away, ends moving." },
28
+ "move": { "$value": [0.2, 0, 0, 1], "$description": "M3 standard: on-screen to on-screen." },
29
+ "emphasized": { "$value": [0.05, 0.7, 0.1, 1], "$description": "M3 emphasized-decelerate: hero entrances." },
30
+ "linear": { "$value": [0, 0, 1, 1], "$description": "Progress, spinners, scrubbed cross-fades." }
31
+ },
32
+ "tempo": {
33
+ "$type": "number",
34
+ "$description": "Tempo knob bounds and platform factors (report 4.3).",
35
+ "min": { "$value": 0.75 },
36
+ "max": { "$value": 1.5 },
37
+ "desktop": { "$value": 0.9, "$description": "Fine pointer with hover: hover UIs feel quicker." },
38
+ "tablet": { "$value": 1.1, "$description": "Larger distances to travel." },
39
+ "default": { "$value": 1, "$description": "Phones, watch and TV." }
40
+ }
41
+ }
@@ -0,0 +1,138 @@
1
+ {
2
+ "spring": {
3
+ "$type": "transition",
4
+ "$description": "Spring presets (report 4.4). Springs are not a DTCG type: the $value is a transition whose duration is the settle time (+-0.1%) and whose timing function is the cubic-bezier fallback. The physical parameters and a CSS linear() approximation live in $extensions.",
5
+ "snap": {
6
+ "$value": {
7
+ "duration": { "value": 368, "unit": "ms" },
8
+ "delay": { "value": 0, "unit": "ms" },
9
+ "timingFunction": [0.2, 0, 0, 1]
10
+ },
11
+ "$description": "Press-down, toggles, checkbox tick",
12
+ "$extensions": {
13
+ "com.urnextdoor.und": {
14
+ "kind": "spring",
15
+ "response": 0.25,
16
+ "dampingRatio": 1,
17
+ "mass": 1,
18
+ "stiffness": 631.7,
19
+ "damping": 50.27,
20
+ "bounce": 0,
21
+ "overshoot": 0,
22
+ "settleMs": 368,
23
+ "linear": "linear(0, 0.024, 0.082, 0.159, 0.245, 0.332, 0.415, 0.494, 0.565, 0.628, 0.685, 0.734, 0.776, 0.812, 0.843, 0.87, 0.892, 0.91, 0.926, 0.939, 0.95, 0.959, 0.966, 0.972, 0.977, 0.981, 0.985, 0.988, 0.99, 0.992, 0.993, 0.995, 0.996, 0.996, 0.997, 0.998, 0.998, 0.998, 0.999, 1)"
24
+ }
25
+ }
26
+ },
27
+ "smooth": {
28
+ "$value": {
29
+ "duration": { "value": 588, "unit": "ms" },
30
+ "delay": { "value": 0, "unit": "ms" },
31
+ "timingFunction": [0.2, 0, 0, 1]
32
+ },
33
+ "$description": "Default. Layout moves, accordions, popover position",
34
+ "$extensions": {
35
+ "com.urnextdoor.und": {
36
+ "kind": "spring",
37
+ "response": 0.4,
38
+ "dampingRatio": 1,
39
+ "mass": 1,
40
+ "stiffness": 246.7,
41
+ "damping": 31.42,
42
+ "bounce": 0,
43
+ "overshoot": 0,
44
+ "settleMs": 588,
45
+ "linear": "linear(0, 0.024, 0.082, 0.159, 0.245, 0.332, 0.415, 0.494, 0.565, 0.628, 0.685, 0.734, 0.776, 0.812, 0.843, 0.87, 0.892, 0.91, 0.926, 0.939, 0.95, 0.959, 0.966, 0.972, 0.977, 0.981, 0.985, 0.988, 0.99, 0.992, 0.993, 0.995, 0.996, 0.996, 0.997, 0.998, 0.998, 0.998, 0.999, 1)"
46
+ }
47
+ }
48
+ },
49
+ "snappy": {
50
+ "$value": {
51
+ "duration": { "value": 488, "unit": "ms" },
52
+ "delay": { "value": 0, "unit": "ms" },
53
+ "timingFunction": [0.2, 0, 0, 1.04]
54
+ },
55
+ "$description": "Press-release, segmented control thumb, tab indicator",
56
+ "$extensions": {
57
+ "com.urnextdoor.und": {
58
+ "kind": "spring",
59
+ "response": 0.35,
60
+ "dampingRatio": 0.85,
61
+ "mass": 1,
62
+ "stiffness": 322.3,
63
+ "damping": 30.52,
64
+ "bounce": 0.15,
65
+ "overshoot": 0.0063,
66
+ "settleMs": 488,
67
+ "linear": "linear(0, 0.022, 0.078, 0.155, 0.243, 0.334, 0.424, 0.51, 0.589, 0.66, 0.723, 0.777, 0.823, 0.863, 0.895, 0.921, 0.943, 0.96, 0.973, 0.983, 0.991, 0.996, 1, 1.003, 1.005, 1.006, 1.006, 1.006, 1.006, 1.006, 1.005, 1.005, 1.004, 1.003, 1.003, 1.002, 1.002, 1.002, 1.001, 1)"
68
+ }
69
+ }
70
+ },
71
+ "gentle": {
72
+ "$value": {
73
+ "duration": { "value": 882, "unit": "ms" },
74
+ "delay": { "value": 0, "unit": "ms" },
75
+ "timingFunction": [0.2, 0, 0, 1]
76
+ },
77
+ "$description": "Sheets and drawers settling, large surfaces",
78
+ "$extensions": {
79
+ "com.urnextdoor.und": {
80
+ "kind": "spring",
81
+ "response": 0.6,
82
+ "dampingRatio": 1,
83
+ "mass": 1,
84
+ "stiffness": 109.7,
85
+ "damping": 20.94,
86
+ "bounce": 0,
87
+ "overshoot": 0,
88
+ "settleMs": 882,
89
+ "linear": "linear(0, 0.024, 0.082, 0.159, 0.245, 0.332, 0.415, 0.494, 0.565, 0.628, 0.685, 0.734, 0.776, 0.812, 0.843, 0.87, 0.892, 0.91, 0.926, 0.939, 0.95, 0.959, 0.966, 0.972, 0.977, 0.981, 0.985, 0.988, 0.99, 0.992, 0.993, 0.995, 0.996, 0.996, 0.997, 0.998, 0.998, 0.998, 0.999, 1)"
90
+ }
91
+ }
92
+ },
93
+ "bouncy": {
94
+ "$value": {
95
+ "duration": { "value": 819, "unit": "ms" },
96
+ "delay": { "value": 0, "unit": "ms" },
97
+ "timingFunction": [0.2, 0, 0, 1.28]
98
+ },
99
+ "$description": "Expressive character: like, reaction, FAB morph",
100
+ "$extensions": {
101
+ "com.urnextdoor.und": {
102
+ "kind": "spring",
103
+ "response": 0.5,
104
+ "dampingRatio": 0.7,
105
+ "mass": 1,
106
+ "stiffness": 157.9,
107
+ "damping": 17.59,
108
+ "bounce": 0.3,
109
+ "overshoot": 0.046,
110
+ "settleMs": 819,
111
+ "linear": "linear(0, 0.031, 0.108, 0.213, 0.331, 0.452, 0.567, 0.671, 0.762, 0.839, 0.902, 0.95, 0.987, 1.013, 1.03, 1.041, 1.045, 1.046, 1.044, 1.04, 1.034, 1.029, 1.023, 1.018, 1.014, 1.01, 1.006, 1.004, 1.002, 1, 0.999, 0.998, 0.998, 0.998, 0.998, 0.998, 0.998, 0.998, 0.999, 1)"
112
+ }
113
+ }
114
+ },
115
+ "expressive": {
116
+ "$value": {
117
+ "duration": { "value": 890, "unit": "ms" },
118
+ "delay": { "value": 0, "unit": "ms" },
119
+ "timingFunction": [0.2, 0, 0, 1.57]
120
+ },
121
+ "$description": "Celebrations only (never core navigation)",
122
+ "$extensions": {
123
+ "com.urnextdoor.und": {
124
+ "kind": "spring",
125
+ "response": 0.55,
126
+ "dampingRatio": 0.6,
127
+ "mass": 1,
128
+ "stiffness": 130.5,
129
+ "damping": 13.71,
130
+ "bounce": 0.4,
131
+ "overshoot": 0.0948,
132
+ "settleMs": 890,
133
+ "linear": "linear(0, 0.031, 0.109, 0.218, 0.344, 0.473, 0.599, 0.714, 0.814, 0.899, 0.966, 1.018, 1.054, 1.078, 1.091, 1.095, 1.092, 1.085, 1.075, 1.063, 1.051, 1.039, 1.028, 1.018, 1.01, 1.004, 0.999, 0.995, 0.993, 0.991, 0.991, 0.991, 0.992, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 1)"
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "font": {
3
+ "$type": "fontFamily",
4
+ "$description": "Font stacks (report 2.2). Fonts ship separately in @und-ui/fonts (OFL).",
5
+ "sans": {
6
+ "$value": [
7
+ "Inter",
8
+ "Inter Fallback",
9
+ "Noto Sans Devanagari",
10
+ "Noto Sans Devanagari Fallback",
11
+ "Noto Sans",
12
+ "system-ui",
13
+ "-apple-system",
14
+ "Segoe UI",
15
+ "Roboto",
16
+ "Nirmala UI",
17
+ "Kohinoor Devanagari",
18
+ "Helvetica Neue",
19
+ "Arial",
20
+ "sans-serif"
21
+ ],
22
+ "$description": "UI face. Inter variable with opsz; Noto per Indic script."
23
+ },
24
+ "display": {
25
+ "$value": [
26
+ "Inter",
27
+ "Inter Fallback",
28
+ "Noto Sans Devanagari",
29
+ "Noto Sans Devanagari Fallback",
30
+ "Noto Sans",
31
+ "system-ui",
32
+ "-apple-system",
33
+ "Segoe UI",
34
+ "Roboto",
35
+ "Nirmala UI",
36
+ "Kohinoor Devanagari",
37
+ "Helvetica Neue",
38
+ "Arial",
39
+ "sans-serif"
40
+ ],
41
+ "$description": "Inter Display via the opsz axis."
42
+ },
43
+ "mono": {
44
+ "$value": [
45
+ "Geist Mono",
46
+ "Geist Mono Fallback",
47
+ "ui-monospace",
48
+ "SF Mono",
49
+ "Cascadia Code",
50
+ "Menlo",
51
+ "Consolas",
52
+ "monospace"
53
+ ]
54
+ },
55
+ "serif": {
56
+ "$value": ["Noto Serif", "Noto Serif Devanagari", "Georgia", "Nirmala UI", "serif"],
57
+ "$description": "Mitti headings."
58
+ },
59
+ "anek": {
60
+ "$value": [
61
+ "Anek Latin",
62
+ "Anek Latin Fallback",
63
+ "Anek Devanagari",
64
+ "Inter",
65
+ "Inter Fallback",
66
+ "Noto Sans Devanagari",
67
+ "Noto Sans Devanagari Fallback",
68
+ "system-ui",
69
+ "-apple-system",
70
+ "Segoe UI",
71
+ "Roboto",
72
+ "Nirmala UI",
73
+ "Kohinoor Devanagari",
74
+ "Helvetica Neue",
75
+ "Arial",
76
+ "sans-serif"
77
+ ],
78
+ "$description": "Kesar headings (display)."
79
+ },
80
+ "geist": {
81
+ "$value": [
82
+ "Geist",
83
+ "Noto Sans Devanagari",
84
+ "Noto Sans Devanagari Fallback",
85
+ "Noto Sans",
86
+ "system-ui",
87
+ "-apple-system",
88
+ "Segoe UI",
89
+ "Roboto",
90
+ "Nirmala UI",
91
+ "Kohinoor Devanagari",
92
+ "Helvetica Neue",
93
+ "Arial",
94
+ "sans-serif"
95
+ ],
96
+ "$description": "Sutra UI face."
97
+ }
98
+ },
99
+ "font-weight": {
100
+ "$type": "fontWeight",
101
+ "regular": { "$value": 400 },
102
+ "medium": { "$value": 500 },
103
+ "semibold": { "$value": 600 },
104
+ "display": { "$value": 650, "$description": "Display sizes (variable font)." },
105
+ "bold": { "$value": 700 }
106
+ }
107
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$description": "Bridge for the names read by the v0 components in @und-ui/core and @und-ui/css (und-button). Each name aliases the semantic layer. The button uses one tone both as a fill (with on-tone text) and as text on the page, so tones map to step 11 and on-tones to bg.canvas, which keeps both uses at WCAG AA in every theme and mode. New code should read the semantic names (accent.solid, accent.fg, status.*, focus.*). CSS and JS only; native outputs expose semantic roles.",
3
+ "color": {
4
+ "$type": "color",
5
+ "accent": { "$value": "{scale.accent.11}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
6
+ "on-accent": { "$value": "{bg.canvas}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
7
+ "neutral": {
8
+ "$root": { "$value": "{scale.neutral.12}", "$description": "--und-color-neutral (the color.neutral group is the neutral scale).", "$extensions": { "com.urnextdoor.und": { "bridge": true } } }
9
+ },
10
+ "on-neutral": { "$value": "{bg.canvas}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
11
+ "success": { "$value": "{status.success.fg}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
12
+ "on-success": { "$value": "{bg.canvas}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
13
+ "warning": { "$value": "{status.warning.fg}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
14
+ "on-warning": { "$value": "{bg.canvas}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
15
+ "danger": { "$value": "{status.danger.fg}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
16
+ "on-danger": { "$value": "{bg.canvas}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } }
17
+ },
18
+ "radius": {
19
+ "control": { "$type": "dimension", "$value": "{shape.control}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } }
20
+ },
21
+ "border-width": {
22
+ "$root": {
23
+ "$type": "dimension",
24
+ "$value": "{border-width.thin}",
25
+ "$description": "--und-border-width",
26
+ "$extensions": { "com.urnextdoor.und": { "bridge": true } }
27
+ }
28
+ },
29
+ "focus": {
30
+ "ring-color": { "$type": "color", "$value": "{focus.ring}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
31
+ "ring-width": { "$type": "dimension", "$value": "{focus.width}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } },
32
+ "ring-offset": { "$type": "dimension", "$value": "{focus.offset}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } }
33
+ },
34
+ "target": {
35
+ "min-coarse": { "$type": "dimension", "$value": "{size.target.touch}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } }
36
+ },
37
+ "duration": {
38
+ "spin": { "$type": "duration", "$value": "{motion.spinner}", "$extensions": { "com.urnextdoor.und": { "bridge": true } } }
39
+ },
40
+ "disabled-opacity": {
41
+ "$type": "number",
42
+ "$value": 0.55,
43
+ "$description": "Used by the v0 button. The design language prefers explicit disabled colours (fg.disabled) over opacity.",
44
+ "$extensions": { "com.urnextdoor.und": { "bridge": true } }
45
+ },
46
+ "line-height-body": {
47
+ "$type": "number",
48
+ "$value": 1.5,
49
+ "$description": "Body line height; the Indic :lang() block switches it to text.body-md's Indic value.",
50
+ "$extensions": { "com.urnextdoor.und": { "bridge": true } }
51
+ }
52
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "bg": {
3
+ "$type": "color",
4
+ "canvas": { "$value": "{scale.neutral.1}", "$description": "App or page background." },
5
+ "subtle": { "$value": "{scale.neutral.2}", "$description": "Sidebars, code blocks, table stripes." },
6
+ "muted": { "$value": "{scale.neutral.3}", "$description": "Neutral component fill (rest)." },
7
+ "muted-hover": { "$value": "{scale.neutral.4}" },
8
+ "muted-active": { "$value": "{scale.neutral.5}", "$description": "Pressed or selected." },
9
+ "inverse": { "$value": "{scale.neutral.12}", "$description": "Tooltips, inverse toasts." }
10
+ },
11
+ "fg": {
12
+ "$type": "color",
13
+ "default": { "$value": "{scale.neutral.12}", "$description": "Body text, primary icons." },
14
+ "muted": { "$value": "{scale.neutral.11}", "$description": "Secondary text." },
15
+ "subtle": {
16
+ "$value": "{scale.neutral.10}",
17
+ "$description": "Placeholder or meta text only: large text or non-essential (3:1)."
18
+ },
19
+ "on-accent": {
20
+ "$value": "{scale.accent.contrast}",
21
+ "$description": "Text on accent.solid (white or the scale step 12, per scale)."
22
+ },
23
+ "inverse": { "$value": "{scale.neutral.1}", "$description": "Text on bg.inverse." },
24
+ "disabled": {
25
+ "$value": "{scale.neutral.8}",
26
+ "$description": "Disabled labels (exempt under 1.4.3, still legible)."
27
+ }
28
+ },
29
+ "border": {
30
+ "$type": "color",
31
+ "subtle": { "$value": "{scale.neutral.6}", "$description": "Dividers, card outlines (decorative)." },
32
+ "default": { "$value": "{scale.neutral.7}", "$description": "Interactive component outlines." },
33
+ "strong": { "$value": "{scale.neutral.8}", "$description": "Hovered component outlines." },
34
+ "control": {
35
+ "$value": "{scale.neutral.9}",
36
+ "$description": "Input and checkbox boundaries (3:1, WCAG 1.4.11)."
37
+ },
38
+ "control-hover": { "$value": "{scale.neutral.10}" }
39
+ },
40
+ "accent": {
41
+ "$type": "color",
42
+ "bg": { "$value": "{scale.accent.3}", "$description": "Selected rows, subtle accent fills." },
43
+ "bg-hover": { "$value": "{scale.accent.4}" },
44
+ "bg-active": { "$value": "{scale.accent.5}" },
45
+ "border": { "$value": "{scale.accent.7}" },
46
+ "solid": { "$value": "{scale.accent.9}", "$description": "Primary buttons, switches on, checkmarks." },
47
+ "solid-hover": { "$value": "{scale.accent.10}" },
48
+ "fg": { "$value": "{scale.accent-text.11}", "$description": "Links, accent text, active nav." },
49
+ "fg-strong": { "$value": "{scale.accent.12}", "$description": "Accent headings on accent.bg." }
50
+ },
51
+ "focus": {
52
+ "ring": {
53
+ "$type": "color",
54
+ "$value": "{scale.accent.11}",
55
+ "$description": "Focus outline. Step 11 is >= 4.5:1 on steps 1-3 in both modes, so the ring always clears 3:1."
56
+ }
57
+ },
58
+ "status": {
59
+ "$type": "color",
60
+ "$description": "Success = green, warning = amber, danger = red, info = blue.",
61
+ "success": {
62
+ "bg": { "$value": "{color.green.3}" },
63
+ "bg-hover": { "$value": "{color.green.4}" },
64
+ "border": { "$value": "{color.green.7}" },
65
+ "solid": { "$value": "{color.green.9}" },
66
+ "solid-hover": { "$value": "{color.green.10}" },
67
+ "fg": { "$value": "{color.green.11}" },
68
+ "fg-strong": { "$value": "{color.green.12}" },
69
+ "on-solid": { "$value": "{color.green.contrast}" }
70
+ },
71
+ "warning": {
72
+ "bg": { "$value": "{color.amber.3}" },
73
+ "bg-hover": { "$value": "{color.amber.4}" },
74
+ "border": { "$value": "{color.amber.7}" },
75
+ "solid": { "$value": "{color.amber.9}" },
76
+ "solid-hover": { "$value": "{color.amber.10}" },
77
+ "fg": { "$value": "{color.amber.11}" },
78
+ "fg-strong": { "$value": "{color.amber.12}" },
79
+ "on-solid": { "$value": "{color.amber.contrast}" }
80
+ },
81
+ "danger": {
82
+ "bg": { "$value": "{color.red.3}" },
83
+ "bg-hover": { "$value": "{color.red.4}" },
84
+ "border": { "$value": "{color.red.7}" },
85
+ "solid": { "$value": "{color.red.9}" },
86
+ "solid-hover": { "$value": "{color.red.10}" },
87
+ "fg": { "$value": "{color.red.11}" },
88
+ "fg-strong": { "$value": "{color.red.12}" },
89
+ "on-solid": { "$value": "{color.red.contrast}" }
90
+ },
91
+ "info": {
92
+ "bg": { "$value": "{color.blue.3}" },
93
+ "bg-hover": { "$value": "{color.blue.4}" },
94
+ "border": { "$value": "{color.blue.7}" },
95
+ "solid": { "$value": "{color.blue.9}" },
96
+ "solid-hover": { "$value": "{color.blue.10}" },
97
+ "fg": { "$value": "{color.blue.11}" },
98
+ "fg-strong": { "$value": "{color.blue.12}" },
99
+ "on-solid": { "$value": "{color.blue.contrast}" }
100
+ }
101
+ },
102
+ "link": {
103
+ "$type": "color",
104
+ "$description": "Underline body links by default (WCAG 1.4.1).",
105
+ "default": { "$value": "{scale.accent-text.11}" },
106
+ "visited": { "$value": "{color.pink.11}" }
107
+ },
108
+ "dataviz": {
109
+ "$type": "color",
110
+ "$description": "Categorical order alternates warm/cool and light/dark (report 6.3). Never rely on hue alone.",
111
+ "1": { "$value": "{color.indigo.9}" },
112
+ "2": { "$value": "{color.saffron.9}" },
113
+ "3": { "$value": "{color.teal.9}" },
114
+ "4": { "$value": "{color.pink.9}" },
115
+ "5": { "$value": "{color.green.9}" },
116
+ "6": { "$value": "{color.blue.9}" },
117
+ "7": { "$value": "{color.terracotta.9}" },
118
+ "8": { "$value": "{color.amber.9}" },
119
+ "gridline": { "$value": "{scale.neutral.a4}" },
120
+ "axis": { "$value": "{scale.neutral.a7}" }
121
+ },
122
+ "material": {
123
+ "$description": "Glass borders (report 3.6). Backgrounds are per mode.",
124
+ "thin": { "border": { "$type": "color", "$value": "{scale.neutral.a4}" } },
125
+ "regular": { "border": { "$type": "color", "$value": "{scale.neutral.a5}" } },
126
+ "thick": { "border": { "$type": "color", "$value": "{scale.neutral.a6}" } },
127
+ "chrome": { "border": { "$type": "color", "$value": "{scale.neutral.a5}" } }
128
+ }
129
+ }