@und-ui/tokens 0.2.0 → 0.3.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 (247) hide show
  1. package/README.md +100 -11
  2. package/dist/android/values/und_colors.xml +204 -73
  3. package/dist/android/values/und_dimens.xml +15 -4
  4. package/dist/android/values-night/und_colors.xml +207 -76
  5. package/dist/css/base.css +610 -35
  6. package/dist/css/motion.css +129 -1
  7. package/dist/css/themes/butter.css +278 -0
  8. package/dist/css/themes/chocolate.css +255 -0
  9. package/dist/css/themes/gothic.css +710 -0
  10. package/dist/css/themes/kesar.css +1 -1
  11. package/dist/css/themes/matcha.css +291 -0
  12. package/dist/css/themes/mitti.css +1 -1
  13. package/dist/css/themes/nabh.css +179 -0
  14. package/dist/css/themes/neem.css +1 -1
  15. package/dist/css/themes/neutral.css +255 -0
  16. package/dist/css/themes/raat.css +35 -1
  17. package/dist/css/themes/stone.css +275 -0
  18. package/dist/css/themes/sutra.css +1 -1
  19. package/dist/css/themes/ujala.css +1 -1
  20. package/dist/css/themes/y2k.css +289 -0
  21. package/dist/css/tokens.css +2998 -1
  22. package/dist/dart/und_tokens.dart +11414 -320
  23. package/dist/js/contexts.js +1 -1
  24. package/dist/js/index.d.ts +583 -1
  25. package/dist/js/index.js +850 -157
  26. package/dist/json/flat/butter.dark.json +945 -0
  27. package/dist/json/flat/butter.darkMore.json +945 -0
  28. package/dist/json/flat/butter.light.json +945 -0
  29. package/dist/json/flat/butter.lightMore.json +945 -0
  30. package/dist/json/flat/chocolate.dark.json +945 -0
  31. package/dist/json/flat/chocolate.darkMore.json +945 -0
  32. package/dist/json/flat/chocolate.light.json +945 -0
  33. package/dist/json/flat/chocolate.lightMore.json +945 -0
  34. package/dist/json/flat/gothic.dark.json +945 -0
  35. package/dist/json/flat/gothic.darkMore.json +945 -0
  36. package/dist/json/flat/kesar.dark.json +207 -0
  37. package/dist/json/flat/kesar.darkMore.json +207 -0
  38. package/dist/json/flat/kesar.light.json +207 -0
  39. package/dist/json/flat/kesar.lightMore.json +207 -0
  40. package/dist/json/flat/matcha.dark.json +945 -0
  41. package/dist/json/flat/matcha.darkMore.json +945 -0
  42. package/dist/json/flat/matcha.light.json +945 -0
  43. package/dist/json/flat/matcha.lightMore.json +945 -0
  44. package/dist/json/flat/mitti.dark.json +207 -0
  45. package/dist/json/flat/mitti.darkMore.json +207 -0
  46. package/dist/json/flat/mitti.light.json +207 -0
  47. package/dist/json/flat/mitti.lightMore.json +207 -0
  48. package/dist/json/flat/nabh.dark.json +945 -0
  49. package/dist/json/flat/nabh.darkMore.json +945 -0
  50. package/dist/json/flat/nabh.light.json +945 -0
  51. package/dist/json/flat/nabh.lightMore.json +945 -0
  52. package/dist/json/flat/neem.dark.json +207 -0
  53. package/dist/json/flat/neem.darkMore.json +207 -0
  54. package/dist/json/flat/neem.light.json +207 -0
  55. package/dist/json/flat/neem.lightMore.json +207 -0
  56. package/dist/json/flat/neutral.dark.json +945 -0
  57. package/dist/json/flat/neutral.darkMore.json +945 -0
  58. package/dist/json/flat/neutral.light.json +945 -0
  59. package/dist/json/flat/neutral.lightMore.json +945 -0
  60. package/dist/json/flat/raat.dark.json +207 -0
  61. package/dist/json/flat/raat.darkMore.json +207 -0
  62. package/dist/json/flat/stone.dark.json +945 -0
  63. package/dist/json/flat/stone.darkMore.json +945 -0
  64. package/dist/json/flat/stone.light.json +945 -0
  65. package/dist/json/flat/stone.lightMore.json +945 -0
  66. package/dist/json/flat/sutra.dark.json +207 -0
  67. package/dist/json/flat/sutra.darkMore.json +207 -0
  68. package/dist/json/flat/sutra.light.json +207 -0
  69. package/dist/json/flat/sutra.lightMore.json +207 -0
  70. package/dist/json/flat/ujala.dark.json +207 -0
  71. package/dist/json/flat/ujala.darkMore.json +207 -0
  72. package/dist/json/flat/ujala.light.json +207 -0
  73. package/dist/json/flat/ujala.lightMore.json +207 -0
  74. package/dist/json/flat/y2k.dark.json +945 -0
  75. package/dist/json/flat/y2k.darkMore.json +945 -0
  76. package/dist/json/flat/y2k.light.json +945 -0
  77. package/dist/json/flat/y2k.lightMore.json +945 -0
  78. package/dist/json/nested/butter.dark.json +1177 -0
  79. package/dist/json/nested/butter.darkMore.json +1177 -0
  80. package/dist/json/nested/butter.light.json +1177 -0
  81. package/dist/json/nested/butter.lightMore.json +1177 -0
  82. package/dist/json/nested/chocolate.dark.json +1177 -0
  83. package/dist/json/nested/chocolate.darkMore.json +1177 -0
  84. package/dist/json/nested/chocolate.light.json +1177 -0
  85. package/dist/json/nested/chocolate.lightMore.json +1177 -0
  86. package/dist/json/nested/gothic.dark.json +1177 -0
  87. package/dist/json/nested/gothic.darkMore.json +1177 -0
  88. package/dist/json/nested/kesar.dark.json +295 -4
  89. package/dist/json/nested/kesar.darkMore.json +295 -4
  90. package/dist/json/nested/kesar.light.json +295 -4
  91. package/dist/json/nested/kesar.lightMore.json +295 -4
  92. package/dist/json/nested/matcha.dark.json +1177 -0
  93. package/dist/json/nested/matcha.darkMore.json +1177 -0
  94. package/dist/json/nested/matcha.light.json +1177 -0
  95. package/dist/json/nested/matcha.lightMore.json +1177 -0
  96. package/dist/json/nested/mitti.dark.json +295 -4
  97. package/dist/json/nested/mitti.darkMore.json +295 -4
  98. package/dist/json/nested/mitti.light.json +295 -4
  99. package/dist/json/nested/mitti.lightMore.json +295 -4
  100. package/dist/json/nested/nabh.dark.json +1177 -0
  101. package/dist/json/nested/nabh.darkMore.json +1177 -0
  102. package/dist/json/nested/nabh.light.json +1177 -0
  103. package/dist/json/nested/nabh.lightMore.json +1177 -0
  104. package/dist/json/nested/neem.dark.json +295 -4
  105. package/dist/json/nested/neem.darkMore.json +295 -4
  106. package/dist/json/nested/neem.light.json +295 -4
  107. package/dist/json/nested/neem.lightMore.json +295 -4
  108. package/dist/json/nested/neutral.dark.json +1177 -0
  109. package/dist/json/nested/neutral.darkMore.json +1177 -0
  110. package/dist/json/nested/neutral.light.json +1177 -0
  111. package/dist/json/nested/neutral.lightMore.json +1177 -0
  112. package/dist/json/nested/raat.dark.json +295 -4
  113. package/dist/json/nested/raat.darkMore.json +295 -4
  114. package/dist/json/nested/stone.dark.json +1177 -0
  115. package/dist/json/nested/stone.darkMore.json +1177 -0
  116. package/dist/json/nested/stone.light.json +1177 -0
  117. package/dist/json/nested/stone.lightMore.json +1177 -0
  118. package/dist/json/nested/sutra.dark.json +295 -4
  119. package/dist/json/nested/sutra.darkMore.json +295 -4
  120. package/dist/json/nested/sutra.light.json +295 -4
  121. package/dist/json/nested/sutra.lightMore.json +295 -4
  122. package/dist/json/nested/ujala.dark.json +295 -4
  123. package/dist/json/nested/ujala.darkMore.json +295 -4
  124. package/dist/json/nested/ujala.light.json +295 -4
  125. package/dist/json/nested/ujala.lightMore.json +295 -4
  126. package/dist/json/nested/y2k.dark.json +1177 -0
  127. package/dist/json/nested/y2k.darkMore.json +1177 -0
  128. package/dist/json/nested/y2k.light.json +1177 -0
  129. package/dist/json/nested/y2k.lightMore.json +1177 -0
  130. package/dist/kotlin/UndTokens.kt +15338 -2190
  131. package/dist/lib/build/formats/css.d.ts +7 -0
  132. package/dist/lib/build/formats/css.js +113 -3
  133. package/dist/lib/build/formats/dart.d.ts +0 -7
  134. package/dist/lib/build/formats/dart.js +22 -4
  135. package/dist/lib/build/formats/js.d.ts +0 -6
  136. package/dist/lib/build/formats/js.js +8 -1
  137. package/dist/lib/build/formats/kotlin.d.ts +1 -1
  138. package/dist/lib/build/formats/kotlin.js +43 -14
  139. package/dist/lib/build/formats/react-native.js +2 -1
  140. package/dist/lib/build/formats/swift.d.ts +0 -6
  141. package/dist/lib/build/formats/swift.js +78 -15
  142. package/dist/lib/build/formats/tailwind.js +22 -2
  143. package/dist/lib/build/index.js +6 -5
  144. package/dist/lib/build/native-model.d.ts +16 -0
  145. package/dist/lib/build/native-model.js +33 -0
  146. package/dist/lib/color/pairs.js +2 -1
  147. package/dist/lib/dtcg/engine.d.ts +6 -0
  148. package/dist/lib/dtcg/engine.js +21 -1
  149. package/dist/lib/source/generate.d.ts +3 -1
  150. package/dist/lib/source/generate.js +56 -7
  151. package/dist/lib/themes/aa.d.ts +44 -0
  152. package/dist/lib/themes/aa.js +168 -0
  153. package/dist/lib/themes/definitions.d.ts +21 -10
  154. package/dist/lib/themes/definitions.js +181 -5
  155. package/dist/lib/themes/generate.d.ts +47 -0
  156. package/dist/lib/themes/generate.js +329 -0
  157. package/dist/lib/themes/ported-map.d.ts +59 -0
  158. package/dist/lib/themes/ported-map.js +618 -0
  159. package/dist/lib/themes/ported.d.ts +10 -0
  160. package/dist/lib/themes/ported.js +1764 -0
  161. package/dist/react-native/index.d.ts +132 -1
  162. package/dist/react-native/tokens.js +16487 -1656
  163. package/dist/scss/_variables.scss +346 -138
  164. package/dist/scss/_vars.scss +208 -1
  165. package/dist/scss/butter.dark.scss +946 -0
  166. package/dist/scss/butter.darkMore.scss +946 -0
  167. package/dist/scss/butter.light.scss +946 -0
  168. package/dist/scss/butter.lightMore.scss +946 -0
  169. package/dist/scss/chocolate.dark.scss +946 -0
  170. package/dist/scss/chocolate.darkMore.scss +946 -0
  171. package/dist/scss/chocolate.light.scss +946 -0
  172. package/dist/scss/chocolate.lightMore.scss +946 -0
  173. package/dist/scss/gothic.dark.scss +946 -0
  174. package/dist/scss/gothic.darkMore.scss +946 -0
  175. package/dist/scss/kesar.dark.scss +207 -0
  176. package/dist/scss/kesar.darkMore.scss +207 -0
  177. package/dist/scss/kesar.light.scss +207 -0
  178. package/dist/scss/kesar.lightMore.scss +207 -0
  179. package/dist/scss/matcha.dark.scss +946 -0
  180. package/dist/scss/matcha.darkMore.scss +946 -0
  181. package/dist/scss/matcha.light.scss +946 -0
  182. package/dist/scss/matcha.lightMore.scss +946 -0
  183. package/dist/scss/mitti.dark.scss +207 -0
  184. package/dist/scss/mitti.darkMore.scss +207 -0
  185. package/dist/scss/mitti.light.scss +207 -0
  186. package/dist/scss/mitti.lightMore.scss +207 -0
  187. package/dist/scss/nabh.dark.scss +946 -0
  188. package/dist/scss/nabh.darkMore.scss +946 -0
  189. package/dist/scss/nabh.light.scss +946 -0
  190. package/dist/scss/nabh.lightMore.scss +946 -0
  191. package/dist/scss/neem.dark.scss +207 -0
  192. package/dist/scss/neem.darkMore.scss +207 -0
  193. package/dist/scss/neem.light.scss +207 -0
  194. package/dist/scss/neem.lightMore.scss +207 -0
  195. package/dist/scss/neutral.dark.scss +946 -0
  196. package/dist/scss/neutral.darkMore.scss +946 -0
  197. package/dist/scss/neutral.light.scss +946 -0
  198. package/dist/scss/neutral.lightMore.scss +946 -0
  199. package/dist/scss/raat.dark.scss +207 -0
  200. package/dist/scss/raat.darkMore.scss +207 -0
  201. package/dist/scss/stone.dark.scss +946 -0
  202. package/dist/scss/stone.darkMore.scss +946 -0
  203. package/dist/scss/stone.light.scss +946 -0
  204. package/dist/scss/stone.lightMore.scss +946 -0
  205. package/dist/scss/sutra.dark.scss +207 -0
  206. package/dist/scss/sutra.darkMore.scss +207 -0
  207. package/dist/scss/sutra.light.scss +207 -0
  208. package/dist/scss/sutra.lightMore.scss +207 -0
  209. package/dist/scss/ujala.dark.scss +207 -0
  210. package/dist/scss/ujala.darkMore.scss +207 -0
  211. package/dist/scss/ujala.light.scss +207 -0
  212. package/dist/scss/ujala.lightMore.scss +207 -0
  213. package/dist/scss/y2k.dark.scss +946 -0
  214. package/dist/scss/y2k.darkMore.scss +946 -0
  215. package/dist/scss/y2k.light.scss +946 -0
  216. package/dist/scss/y2k.lightMore.scss +946 -0
  217. package/dist/swift/UndTokens.swift +6061 -3432
  218. package/dist/tailwind/und.css +198 -2
  219. package/package.json +5 -1
  220. package/tokens/modes/dark.tokens.json +241 -0
  221. package/tokens/modes/light.tokens.json +246 -0
  222. package/tokens/palettes/butter.dark.tokens.json +887 -0
  223. package/tokens/palettes/butter.light.tokens.json +872 -0
  224. package/tokens/palettes/chocolate.dark.tokens.json +917 -0
  225. package/tokens/palettes/chocolate.light.tokens.json +902 -0
  226. package/tokens/palettes/gothic.dark.tokens.json +831 -0
  227. package/tokens/palettes/matcha.dark.tokens.json +932 -0
  228. package/tokens/palettes/matcha.light.tokens.json +907 -0
  229. package/tokens/palettes/nabh.dark.tokens.json +498 -0
  230. package/tokens/palettes/nabh.light.tokens.json +498 -0
  231. package/tokens/palettes/neutral.dark.tokens.json +837 -0
  232. package/tokens/palettes/neutral.light.tokens.json +817 -0
  233. package/tokens/palettes/stone.dark.tokens.json +877 -0
  234. package/tokens/palettes/stone.light.tokens.json +877 -0
  235. package/tokens/palettes/y2k.dark.tokens.json +877 -0
  236. package/tokens/palettes/y2k.light.tokens.json +877 -0
  237. package/tokens/semantic/roles.tokens.json +521 -0
  238. package/tokens/themes/butter.tokens.json +254 -0
  239. package/tokens/themes/chocolate.tokens.json +214 -0
  240. package/tokens/themes/gothic.tokens.json +249 -0
  241. package/tokens/themes/matcha.tokens.json +258 -0
  242. package/tokens/themes/nabh.tokens.json +174 -0
  243. package/tokens/themes/neutral.tokens.json +234 -0
  244. package/tokens/themes/stone.tokens.json +254 -0
  245. package/tokens/themes/ujala.tokens.json +1 -1
  246. package/tokens/themes/y2k.tokens.json +264 -0
  247. package/tokens/und.resolver.json +40 -4
@@ -1,5 +1,5 @@
1
1
  {
2
- "$description": "Ujala: Default. Confident, friendly, modern civic. The UND brand.",
2
+ "$description": "Ujala: Confident, friendly, modern civic: the UND brand indigo (the default theme before 0.3).",
3
3
  "$extensions": {
4
4
  "com.urnextdoor.und": {
5
5
  "theme": {
@@ -0,0 +1,264 @@
1
+ {
2
+ "$description": "Y2K: Periwinkle, hot pink and lime with square corners and Poppins. Bubbly, playful and unmistakably retro.",
3
+ "$extensions": {
4
+ "com.urnextdoor.und": {
5
+ "theme": {
6
+ "name": "y2k",
7
+ "label": "Y2K",
8
+ "modes": ["light", "dark"],
9
+ "radiusFactor": 1,
10
+ "tempo": 1,
11
+ "character": "standard",
12
+ "density": "comfortable",
13
+ "glass": "off"
14
+ }
15
+ }
16
+ },
17
+ "scale": {
18
+ "$type": "color",
19
+ "accent": {
20
+ "$description": "Theme accent scale. Semantic tokens read these, never hue names.",
21
+ "1": { "$value": "{color.pink.1}" },
22
+ "2": { "$value": "{color.pink.2}" },
23
+ "3": { "$value": "{color.pink.3}" },
24
+ "4": { "$value": "{color.pink.4}" },
25
+ "5": { "$value": "{color.pink.5}" },
26
+ "6": { "$value": "{color.pink.6}" },
27
+ "7": { "$value": "{color.pink.7}" },
28
+ "8": { "$value": "{color.pink.8}" },
29
+ "9": { "$value": "{color.pink.9}" },
30
+ "10": { "$value": "{color.pink.10}" },
31
+ "11": { "$value": "{color.pink.11}" },
32
+ "12": { "$value": "{color.pink.12}" },
33
+ "a1": { "$value": "{color.pink.a1}" },
34
+ "a2": { "$value": "{color.pink.a2}" },
35
+ "a3": { "$value": "{color.pink.a3}" },
36
+ "a4": { "$value": "{color.pink.a4}" },
37
+ "a5": { "$value": "{color.pink.a5}" },
38
+ "a6": { "$value": "{color.pink.a6}" },
39
+ "a7": { "$value": "{color.pink.a7}" },
40
+ "a8": { "$value": "{color.pink.a8}" },
41
+ "a9": { "$value": "{color.pink.a9}" },
42
+ "a10": { "$value": "{color.pink.a10}" },
43
+ "a11": { "$value": "{color.pink.a11}" },
44
+ "a12": { "$value": "{color.pink.a12}" },
45
+ "contrast": { "$value": "{color.pink.contrast}" }
46
+ },
47
+ "neutral": {
48
+ "$description": "Theme neutral scale.",
49
+ "1": { "$value": "{color.neutral.1}" },
50
+ "2": { "$value": "{color.neutral.2}" },
51
+ "3": { "$value": "{color.neutral.3}" },
52
+ "4": { "$value": "{color.neutral.4}" },
53
+ "5": { "$value": "{color.neutral.5}" },
54
+ "6": { "$value": "{color.neutral.6}" },
55
+ "7": { "$value": "{color.neutral.7}" },
56
+ "8": { "$value": "{color.neutral.8}" },
57
+ "9": { "$value": "{color.neutral.9}" },
58
+ "10": { "$value": "{color.neutral.10}" },
59
+ "11": { "$value": "{color.neutral.11}" },
60
+ "12": { "$value": "{color.neutral.12}" },
61
+ "a1": { "$value": "{color.neutral.a1}" },
62
+ "a2": { "$value": "{color.neutral.a2}" },
63
+ "a3": { "$value": "{color.neutral.a3}" },
64
+ "a4": { "$value": "{color.neutral.a4}" },
65
+ "a5": { "$value": "{color.neutral.a5}" },
66
+ "a6": { "$value": "{color.neutral.a6}" },
67
+ "a7": { "$value": "{color.neutral.a7}" },
68
+ "a8": { "$value": "{color.neutral.a8}" },
69
+ "a9": { "$value": "{color.neutral.a9}" },
70
+ "a10": { "$value": "{color.neutral.a10}" },
71
+ "a11": { "$value": "{color.neutral.a11}" },
72
+ "a12": { "$value": "{color.neutral.a12}" }
73
+ },
74
+ "accent-text": {
75
+ "$description": "Scale for accent text and links (Sutra uses blue).",
76
+ "11": { "$value": "{color.pink.11}" },
77
+ "12": { "$value": "{color.pink.12}" }
78
+ }
79
+ },
80
+ "radius": {
81
+ "factor": { "$type": "number", "$value": 1 },
82
+ "inner": {
83
+ "$type": "dimension",
84
+ "$value": { "value": 0, "unit": "px" },
85
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
86
+ },
87
+ "element": {
88
+ "$type": "dimension",
89
+ "$value": { "value": 0, "unit": "px" },
90
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
91
+ },
92
+ "container": {
93
+ "$type": "dimension",
94
+ "$value": { "value": 0, "unit": "px" },
95
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
96
+ },
97
+ "page": {
98
+ "$type": "dimension",
99
+ "$value": { "value": 0, "unit": "px" },
100
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
101
+ },
102
+ "chat": {
103
+ "$type": "dimension",
104
+ "$value": { "value": 0, "unit": "px" },
105
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
106
+ },
107
+ "full": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } }
108
+ },
109
+ "motion": {
110
+ "tempo": { "$type": "number", "$value": 1 },
111
+ "ease": {
112
+ "$type": "cubicBezier",
113
+ "enter": { "$value": "{ease.enter}" },
114
+ "move": { "$type": "cubicBezier", "$value": "{ease.standard}" }
115
+ }
116
+ },
117
+ "typeface": {
118
+ "$type": "fontFamily",
119
+ "$extensions": { "com.urnextdoor.und": { "webFonts": ["poppins", "crimson-text", "jetbrains-mono"] } },
120
+ "body": {
121
+ "$value": [
122
+ "Poppins",
123
+ "Poppins Fallback",
124
+ "-apple-system",
125
+ "BlinkMacSystemFont",
126
+ "Segoe UI",
127
+ "Roboto",
128
+ "Helvetica",
129
+ "Arial",
130
+ "Noto Sans Devanagari",
131
+ "Noto Sans",
132
+ "Nirmala UI",
133
+ "Kohinoor Devanagari",
134
+ "sans-serif"
135
+ ]
136
+ },
137
+ "heading": {
138
+ "$value": [
139
+ "Poppins",
140
+ "Poppins Fallback",
141
+ "-apple-system",
142
+ "BlinkMacSystemFont",
143
+ "Segoe UI",
144
+ "Roboto",
145
+ "Helvetica",
146
+ "Arial",
147
+ "Noto Sans Devanagari",
148
+ "Noto Sans",
149
+ "Nirmala UI",
150
+ "Kohinoor Devanagari",
151
+ "sans-serif"
152
+ ]
153
+ },
154
+ "display": {
155
+ "$value": [
156
+ "Crimson Text",
157
+ "Georgia",
158
+ "Times New Roman",
159
+ "Times",
160
+ "Noto Serif Devanagari",
161
+ "Nirmala UI",
162
+ "serif"
163
+ ]
164
+ },
165
+ "code": {
166
+ "$value": ["JetBrains Mono", "JetBrains Mono Fallback", "SF Mono", "Monaco", "Consolas", "monospace"]
167
+ }
168
+ },
169
+ "shape": {
170
+ "control": { "$type": "dimension", "$value": "{radius.element}" },
171
+ "card": { "$type": "dimension", "$value": "{radius.container}" },
172
+ "dialog": { "$type": "dimension", "$value": "{radius.container}" },
173
+ "popover": { "$type": "dimension", "$value": "{radius.container}" }
174
+ },
175
+ "space": {
176
+ "0_5": { "$type": "dimension", "$value": { "value": 0.1875, "unit": "rem" } },
177
+ "1": { "$type": "dimension", "$value": { "value": 0.375, "unit": "rem" } },
178
+ "1_5": { "$type": "dimension", "$value": { "value": 0.5625, "unit": "rem" } },
179
+ "2": { "$type": "dimension", "$value": { "value": 0.75, "unit": "rem" } },
180
+ "3": { "$type": "dimension", "$value": { "value": 1.125, "unit": "rem" } },
181
+ "4": { "$type": "dimension", "$value": { "value": 1.5, "unit": "rem" } },
182
+ "5": { "$type": "dimension", "$value": { "value": 1.875, "unit": "rem" } },
183
+ "6": { "$type": "dimension", "$value": { "value": 2.25, "unit": "rem" } },
184
+ "7": { "$type": "dimension", "$value": { "value": 2.625, "unit": "rem" } },
185
+ "8": { "$type": "dimension", "$value": { "value": 3, "unit": "rem" } }
186
+ },
187
+ "size": {
188
+ "element": {
189
+ "sm": { "$type": "dimension", "$value": { "value": 32, "unit": "px" } },
190
+ "md": { "$type": "dimension", "$value": { "value": 40, "unit": "px" } },
191
+ "lg": { "$type": "dimension", "$value": { "value": 48, "unit": "px" } }
192
+ }
193
+ },
194
+ "font-size": {
195
+ "4xs": { "$type": "dimension", "$value": { "value": 0.3125, "unit": "rem" } },
196
+ "sm": { "$type": "dimension", "$value": { "value": 0.8125, "unit": "rem" } },
197
+ "base": { "$type": "dimension", "$value": { "value": 1, "unit": "rem" } },
198
+ "lg": { "$type": "dimension", "$value": { "value": 1.25, "unit": "rem" } },
199
+ "xl": { "$type": "dimension", "$value": { "value": 1.5625, "unit": "rem" } },
200
+ "2xl": { "$type": "dimension", "$value": { "value": 1.9375, "unit": "rem" } },
201
+ "3xl": { "$type": "dimension", "$value": { "value": 2.4375, "unit": "rem" } },
202
+ "4xl": { "$type": "dimension", "$value": { "value": 3.0625, "unit": "rem" } },
203
+ "5xl": { "$type": "dimension", "$value": { "value": 3.8125, "unit": "rem" } }
204
+ },
205
+ "type": {
206
+ "heading-1": { "leading": { "$type": "number", "$value": 1.4194 } },
207
+ "heading-2": { "leading": { "$type": "number", "$value": 1.44 } },
208
+ "heading-3": { "leading": { "$type": "number", "$value": 1.4 } },
209
+ "heading-4": { "leading": { "$type": "number", "$value": 1.5 } },
210
+ "heading-5": { "leading": { "$type": "number", "$value": 1.5385 } },
211
+ "display-1": { "leading": { "$type": "number", "$value": 1.2459 } },
212
+ "display-2": { "leading": { "$type": "number", "$value": 1.2245 } },
213
+ "display-3": { "leading": { "$type": "number", "$value": 1.2308 } },
214
+ "body": { "leading": { "$type": "number", "$value": 1.5 } },
215
+ "large": { "leading": { "$type": "number", "$value": 1.4 } },
216
+ "label": { "leading": { "$type": "number", "$value": 1.5 } },
217
+ "code": { "leading": { "$type": "number", "$value": 1.5 } },
218
+ "supporting": {
219
+ "size": { "$type": "dimension", "$value": { "value": 0.75, "unit": "rem" } },
220
+ "leading": { "$type": "number", "$value": 1.5385 }
221
+ }
222
+ },
223
+ "duration": {
224
+ "fast-min": { "$type": "duration", "$value": { "value": 80, "unit": "ms" } },
225
+ "fast": { "$type": "duration", "$value": { "value": 100, "unit": "ms" } },
226
+ "fast-max": { "$type": "duration", "$value": { "value": 125, "unit": "ms" } },
227
+ "medium-min": { "$type": "duration", "$value": { "value": 200, "unit": "ms" } },
228
+ "medium": { "$type": "duration", "$value": { "value": 250, "unit": "ms" } },
229
+ "medium-max": { "$type": "duration", "$value": { "value": 315, "unit": "ms" } },
230
+ "slow-min": { "$type": "duration", "$value": { "value": 480, "unit": "ms" } },
231
+ "slow": { "$type": "duration", "$value": { "value": 600, "unit": "ms" } },
232
+ "slow-max": { "$type": "duration", "$value": { "value": 750, "unit": "ms" } }
233
+ },
234
+ "focus": {
235
+ "offset": { "$type": "dimension", "$value": { "value": 3, "unit": "px" } }
236
+ },
237
+ "material": {
238
+ "thin": {
239
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
240
+ "border": { "$type": "color", "$value": "{border.default}" },
241
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
242
+ "saturate": { "$type": "number", "$value": 1 }
243
+ },
244
+ "regular": {
245
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
246
+ "border": { "$type": "color", "$value": "{border.default}" },
247
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
248
+ "saturate": { "$type": "number", "$value": 1 }
249
+ },
250
+ "thick": {
251
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
252
+ "border": { "$type": "color", "$value": "{border.default}" },
253
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
254
+ "saturate": { "$type": "number", "$value": 1 }
255
+ },
256
+ "chrome": {
257
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
258
+ "border": { "$type": "color", "$value": "{border.default}" },
259
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
260
+ "saturate": { "$type": "number", "$value": 1 },
261
+ "highlight": { "$type": "color", "$value": "{color.transparent}" }
262
+ }
263
+ }
264
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://www.designtokens.org/schemas/2025.10/resolver.json",
3
3
  "name": "UND UI tokens",
4
4
  "version": "2025.10",
5
- "description": "Resolution order: base, mode, theme, contrast, density, transparency, motion. Theme overrides are mode- and contrast-independent; Raat (dark-only) pulls in the dark mode sources itself; Sutra pulls in compact density as its default.",
5
+ "description": "Resolution order: base, mode, theme, palette, contrast, density, transparency, motion. Theme overrides are mode- and contrast-independent; Raat and Gothic (dark-only) pull in the dark mode sources themselves; Sutra pulls in compact density as its default. The palette input is derived, not chosen: \"<theme>-<mode>\" when that context exists, else the theme's only palette context (dark-only themes), else \"none\".",
6
6
  "sets": {
7
7
  "base": {
8
8
  "description": "Primitives and the semantic layer.",
@@ -13,6 +13,7 @@
13
13
  { "$ref": "primitives/spring.tokens.json" },
14
14
  { "$ref": "semantic/scale.tokens.json" },
15
15
  { "$ref": "semantic/color.tokens.json" },
16
+ { "$ref": "semantic/roles.tokens.json" },
16
17
  { "$ref": "semantic/layout.tokens.json" },
17
18
  { "$ref": "semantic/typography.tokens.json" },
18
19
  { "$ref": "semantic/motion.tokens.json" },
@@ -30,8 +31,9 @@
30
31
  "default": "light"
31
32
  },
32
33
  "theme": {
33
- "description": "The six UND UI themes.",
34
+ "description": "The UND UI themes.",
34
35
  "contexts": {
36
+ "nabh": [{ "$ref": "themes/nabh.tokens.json" }],
35
37
  "ujala": [{ "$ref": "themes/ujala.tokens.json" }],
36
38
  "kesar": [{ "$ref": "themes/kesar.tokens.json" }],
37
39
  "neem": [{ "$ref": "themes/neem.tokens.json" }],
@@ -41,9 +43,42 @@
41
43
  { "$ref": "modes/dark.tokens.json" },
42
44
  { "$ref": "themes/raat.tokens.json" }
43
45
  ],
44
- "sutra": [{ "$ref": "themes/sutra.tokens.json" }, { "$ref": "density/compact.tokens.json" }]
46
+ "sutra": [{ "$ref": "themes/sutra.tokens.json" }, { "$ref": "density/compact.tokens.json" }],
47
+ "neutral": [{ "$ref": "themes/neutral.tokens.json" }],
48
+ "stone": [{ "$ref": "themes/stone.tokens.json" }],
49
+ "butter": [{ "$ref": "themes/butter.tokens.json" }],
50
+ "chocolate": [{ "$ref": "themes/chocolate.tokens.json" }],
51
+ "gothic": [
52
+ { "$ref": "primitives/color.dark.tokens.json" },
53
+ { "$ref": "modes/dark.tokens.json" },
54
+ { "$ref": "themes/gothic.tokens.json" }
55
+ ],
56
+ "matcha": [{ "$ref": "themes/matcha.tokens.json" }],
57
+ "y2k": [{ "$ref": "themes/y2k.tokens.json" }]
58
+ },
59
+ "default": "nabh"
60
+ },
61
+ "palette": {
62
+ "description": "Literal per-mode values of palette themes. Derived from theme and mode (see the resolver description).",
63
+ "contexts": {
64
+ "none": [],
65
+ "nabh-light": [{ "$ref": "palettes/nabh.light.tokens.json" }],
66
+ "nabh-dark": [{ "$ref": "palettes/nabh.dark.tokens.json" }],
67
+ "neutral-light": [{ "$ref": "palettes/neutral.light.tokens.json" }],
68
+ "neutral-dark": [{ "$ref": "palettes/neutral.dark.tokens.json" }],
69
+ "stone-light": [{ "$ref": "palettes/stone.light.tokens.json" }],
70
+ "stone-dark": [{ "$ref": "palettes/stone.dark.tokens.json" }],
71
+ "butter-light": [{ "$ref": "palettes/butter.light.tokens.json" }],
72
+ "butter-dark": [{ "$ref": "palettes/butter.dark.tokens.json" }],
73
+ "chocolate-light": [{ "$ref": "palettes/chocolate.light.tokens.json" }],
74
+ "chocolate-dark": [{ "$ref": "palettes/chocolate.dark.tokens.json" }],
75
+ "gothic-dark": [{ "$ref": "palettes/gothic.dark.tokens.json" }],
76
+ "matcha-light": [{ "$ref": "palettes/matcha.light.tokens.json" }],
77
+ "matcha-dark": [{ "$ref": "palettes/matcha.dark.tokens.json" }],
78
+ "y2k-light": [{ "$ref": "palettes/y2k.light.tokens.json" }],
79
+ "y2k-dark": [{ "$ref": "palettes/y2k.dark.tokens.json" }]
45
80
  },
46
- "default": "ujala"
81
+ "default": "none"
47
82
  },
48
83
  "contrast": {
49
84
  "description": "prefers-contrast: more / Increase Contrast.",
@@ -75,6 +110,7 @@
75
110
  { "$ref": "#/sets/base" },
76
111
  { "$ref": "#/modifiers/mode" },
77
112
  { "$ref": "#/modifiers/theme" },
113
+ { "$ref": "#/modifiers/palette" },
78
114
  { "$ref": "#/modifiers/contrast" },
79
115
  { "$ref": "#/modifiers/density" },
80
116
  { "$ref": "#/modifiers/transparency" },