@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
@@ -0,0 +1,254 @@
1
+ {
2
+ "$description": "Butter: Warm, creamy yellows with a friendly blue accent. Playful enough for consumer surfaces, soft enough to stay readable.",
3
+ "$extensions": {
4
+ "com.urnextdoor.und": {
5
+ "theme": {
6
+ "name": "butter",
7
+ "label": "Butter",
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.blue.1}" },
22
+ "2": { "$value": "{color.blue.2}" },
23
+ "3": { "$value": "{color.blue.3}" },
24
+ "4": { "$value": "{color.blue.4}" },
25
+ "5": { "$value": "{color.blue.5}" },
26
+ "6": { "$value": "{color.blue.6}" },
27
+ "7": { "$value": "{color.blue.7}" },
28
+ "8": { "$value": "{color.blue.8}" },
29
+ "9": { "$value": "{color.blue.9}" },
30
+ "10": { "$value": "{color.blue.10}" },
31
+ "11": { "$value": "{color.blue.11}" },
32
+ "12": { "$value": "{color.blue.12}" },
33
+ "a1": { "$value": "{color.blue.a1}" },
34
+ "a2": { "$value": "{color.blue.a2}" },
35
+ "a3": { "$value": "{color.blue.a3}" },
36
+ "a4": { "$value": "{color.blue.a4}" },
37
+ "a5": { "$value": "{color.blue.a5}" },
38
+ "a6": { "$value": "{color.blue.a6}" },
39
+ "a7": { "$value": "{color.blue.a7}" },
40
+ "a8": { "$value": "{color.blue.a8}" },
41
+ "a9": { "$value": "{color.blue.a9}" },
42
+ "a10": { "$value": "{color.blue.a10}" },
43
+ "a11": { "$value": "{color.blue.a11}" },
44
+ "a12": { "$value": "{color.blue.a12}" },
45
+ "contrast": { "$value": "{color.blue.contrast}" }
46
+ },
47
+ "neutral": {
48
+ "$description": "Theme neutral scale.",
49
+ "1": { "$value": "{color.warm.1}" },
50
+ "2": { "$value": "{color.warm.2}" },
51
+ "3": { "$value": "{color.warm.3}" },
52
+ "4": { "$value": "{color.warm.4}" },
53
+ "5": { "$value": "{color.warm.5}" },
54
+ "6": { "$value": "{color.warm.6}" },
55
+ "7": { "$value": "{color.warm.7}" },
56
+ "8": { "$value": "{color.warm.8}" },
57
+ "9": { "$value": "{color.warm.9}" },
58
+ "10": { "$value": "{color.warm.10}" },
59
+ "11": { "$value": "{color.warm.11}" },
60
+ "12": { "$value": "{color.warm.12}" },
61
+ "a1": { "$value": "{color.warm.a1}" },
62
+ "a2": { "$value": "{color.warm.a2}" },
63
+ "a3": { "$value": "{color.warm.a3}" },
64
+ "a4": { "$value": "{color.warm.a4}" },
65
+ "a5": { "$value": "{color.warm.a5}" },
66
+ "a6": { "$value": "{color.warm.a6}" },
67
+ "a7": { "$value": "{color.warm.a7}" },
68
+ "a8": { "$value": "{color.warm.a8}" },
69
+ "a9": { "$value": "{color.warm.a9}" },
70
+ "a10": { "$value": "{color.warm.a10}" },
71
+ "a11": { "$value": "{color.warm.a11}" },
72
+ "a12": { "$value": "{color.warm.a12}" }
73
+ },
74
+ "accent-text": {
75
+ "$description": "Scale for accent text and links (Sutra uses blue).",
76
+ "11": { "$value": "{color.blue.11}" },
77
+ "12": { "$value": "{color.blue.12}" }
78
+ }
79
+ },
80
+ "radius": {
81
+ "factor": { "$type": "number", "$value": 1 },
82
+ "inner": {
83
+ "$type": "dimension",
84
+ "$value": { "value": 0.375, "unit": "rem" },
85
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
86
+ },
87
+ "element": {
88
+ "$type": "dimension",
89
+ "$value": { "value": 0.5, "unit": "rem" },
90
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
91
+ },
92
+ "container": {
93
+ "$type": "dimension",
94
+ "$value": { "value": 0.75, "unit": "rem" },
95
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
96
+ },
97
+ "page": {
98
+ "$type": "dimension",
99
+ "$value": { "value": 1.5, "unit": "rem" },
100
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
101
+ },
102
+ "chat": {
103
+ "$type": "dimension",
104
+ "$value": { "value": 28, "unit": "px" },
105
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
106
+ }
107
+ },
108
+ "motion": {
109
+ "tempo": { "$type": "number", "$value": 1 },
110
+ "ease": {
111
+ "$type": "cubicBezier",
112
+ "enter": { "$value": "{ease.enter}" },
113
+ "move": { "$type": "cubicBezier", "$value": "{ease.standard}" }
114
+ }
115
+ },
116
+ "typeface": {
117
+ "$type": "fontFamily",
118
+ "$extensions": { "com.urnextdoor.und": { "webFonts": ["outfit", "sarina", "jetbrains-mono"] } },
119
+ "body": {
120
+ "$value": [
121
+ "Outfit",
122
+ "Outfit Fallback",
123
+ "-apple-system",
124
+ "BlinkMacSystemFont",
125
+ "Segoe UI",
126
+ "Roboto",
127
+ "Helvetica",
128
+ "Arial",
129
+ "Noto Sans Devanagari",
130
+ "Noto Sans",
131
+ "Nirmala UI",
132
+ "Kohinoor Devanagari",
133
+ "sans-serif"
134
+ ]
135
+ },
136
+ "heading": {
137
+ "$value": [
138
+ "Outfit",
139
+ "Outfit Fallback",
140
+ "-apple-system",
141
+ "BlinkMacSystemFont",
142
+ "Segoe UI",
143
+ "Roboto",
144
+ "Helvetica",
145
+ "Arial",
146
+ "Noto Sans Devanagari",
147
+ "Noto Sans",
148
+ "Nirmala UI",
149
+ "Kohinoor Devanagari",
150
+ "sans-serif"
151
+ ]
152
+ },
153
+ "display": {
154
+ "$value": [
155
+ "Sarina",
156
+ "Brush Script MT",
157
+ "Snell Roundhand",
158
+ "Noto Sans Devanagari",
159
+ "Noto Sans",
160
+ "Nirmala UI",
161
+ "Kohinoor Devanagari",
162
+ "cursive"
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
+ "size": {
176
+ "element": {
177
+ "sm": { "$type": "dimension", "$value": { "value": 32, "unit": "px" } },
178
+ "md": { "$type": "dimension", "$value": { "value": 40, "unit": "px" } },
179
+ "lg": { "$type": "dimension", "$value": { "value": 48, "unit": "px" } }
180
+ }
181
+ },
182
+ "font-size": {
183
+ "4xs": { "$type": "dimension", "$value": { "value": 0.3125, "unit": "rem" } },
184
+ "3xs": { "$type": "dimension", "$value": { "value": 0.375, "unit": "rem" } },
185
+ "2xs": { "$type": "dimension", "$value": { "value": 0.4375, "unit": "rem" } },
186
+ "xs": { "$type": "dimension", "$value": { "value": 0.5625, "unit": "rem" } },
187
+ "sm": { "$type": "dimension", "$value": { "value": 0.6875, "unit": "rem" } },
188
+ "lg": { "$type": "dimension", "$value": { "value": 1.125, "unit": "rem" } },
189
+ "xl": { "$type": "dimension", "$value": { "value": 1.375, "unit": "rem" } },
190
+ "2xl": { "$type": "dimension", "$value": { "value": 1.6875, "unit": "rem" } },
191
+ "3xl": { "$type": "dimension", "$value": { "value": 2.125, "unit": "rem" } },
192
+ "4xl": { "$type": "dimension", "$value": { "value": 2.6875, "unit": "rem" } },
193
+ "5xl": { "$type": "dimension", "$value": { "value": 3.3125, "unit": "rem" } }
194
+ },
195
+ "type": {
196
+ "heading-2": { "leading": { "$type": "number", "$value": 1.4545 } },
197
+ "heading-3": {
198
+ "weight": { "$type": "fontWeight", "$value": 700 },
199
+ "leading": { "$type": "number", "$value": 1.5556 }
200
+ },
201
+ "heading-4": { "weight": { "$type": "fontWeight", "$value": 700 } },
202
+ "heading-5": { "leading": { "$type": "number", "$value": 1.4545 } },
203
+ "heading-6": { "leading": { "$type": "number", "$value": 1.7778 } },
204
+ "display-1": { "leading": { "$type": "number", "$value": 1.283 } },
205
+ "display-2": { "leading": { "$type": "number", "$value": 1.2093 } },
206
+ "display-3": { "leading": { "$type": "number", "$value": 1.2941 } },
207
+ "large": { "leading": { "$type": "number", "$value": 1.5556 } },
208
+ "supporting": {
209
+ "size": { "$type": "dimension", "$value": { "value": 0.75, "unit": "rem" } },
210
+ "leading": { "$type": "number", "$value": 1.4545 }
211
+ }
212
+ },
213
+ "duration": {
214
+ "fast-min": { "$type": "duration", "$value": { "value": 95, "unit": "ms" } },
215
+ "fast": { "$type": "duration", "$value": { "value": 125, "unit": "ms" } },
216
+ "fast-max": { "$type": "duration", "$value": { "value": 165, "unit": "ms" } },
217
+ "medium-min": { "$type": "duration", "$value": { "value": 225, "unit": "ms" } },
218
+ "medium": { "$type": "duration", "$value": { "value": 300, "unit": "ms" } },
219
+ "medium-max": { "$type": "duration", "$value": { "value": 400, "unit": "ms" } },
220
+ "slow-min": { "$type": "duration", "$value": { "value": 525, "unit": "ms" } },
221
+ "slow": { "$type": "duration", "$value": { "value": 700, "unit": "ms" } },
222
+ "slow-max": { "$type": "duration", "$value": { "value": 935, "unit": "ms" } }
223
+ },
224
+ "focus": {
225
+ "offset": { "$type": "dimension", "$value": { "value": 3, "unit": "px" } }
226
+ },
227
+ "material": {
228
+ "thin": {
229
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
230
+ "border": { "$type": "color", "$value": "{border.default}" },
231
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
232
+ "saturate": { "$type": "number", "$value": 1 }
233
+ },
234
+ "regular": {
235
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
236
+ "border": { "$type": "color", "$value": "{border.default}" },
237
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
238
+ "saturate": { "$type": "number", "$value": 1 }
239
+ },
240
+ "thick": {
241
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
242
+ "border": { "$type": "color", "$value": "{border.default}" },
243
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
244
+ "saturate": { "$type": "number", "$value": 1 }
245
+ },
246
+ "chrome": {
247
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
248
+ "border": { "$type": "color", "$value": "{border.default}" },
249
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
250
+ "saturate": { "$type": "number", "$value": 1 },
251
+ "highlight": { "$type": "color", "$value": "{color.transparent}" }
252
+ }
253
+ }
254
+ }
@@ -0,0 +1,214 @@
1
+ {
2
+ "$description": "Chocolate: Rich browns with Fraunces headings and Albert Sans body: warm, editorial and tactile.",
3
+ "$extensions": {
4
+ "com.urnextdoor.und": {
5
+ "theme": {
6
+ "name": "chocolate",
7
+ "label": "Chocolate",
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.terracotta.1}" },
22
+ "2": { "$value": "{color.terracotta.2}" },
23
+ "3": { "$value": "{color.terracotta.3}" },
24
+ "4": { "$value": "{color.terracotta.4}" },
25
+ "5": { "$value": "{color.terracotta.5}" },
26
+ "6": { "$value": "{color.terracotta.6}" },
27
+ "7": { "$value": "{color.terracotta.7}" },
28
+ "8": { "$value": "{color.terracotta.8}" },
29
+ "9": { "$value": "{color.terracotta.9}" },
30
+ "10": { "$value": "{color.terracotta.10}" },
31
+ "11": { "$value": "{color.terracotta.11}" },
32
+ "12": { "$value": "{color.terracotta.12}" },
33
+ "a1": { "$value": "{color.terracotta.a1}" },
34
+ "a2": { "$value": "{color.terracotta.a2}" },
35
+ "a3": { "$value": "{color.terracotta.a3}" },
36
+ "a4": { "$value": "{color.terracotta.a4}" },
37
+ "a5": { "$value": "{color.terracotta.a5}" },
38
+ "a6": { "$value": "{color.terracotta.a6}" },
39
+ "a7": { "$value": "{color.terracotta.a7}" },
40
+ "a8": { "$value": "{color.terracotta.a8}" },
41
+ "a9": { "$value": "{color.terracotta.a9}" },
42
+ "a10": { "$value": "{color.terracotta.a10}" },
43
+ "a11": { "$value": "{color.terracotta.a11}" },
44
+ "a12": { "$value": "{color.terracotta.a12}" },
45
+ "contrast": { "$value": "{color.terracotta.contrast}" }
46
+ },
47
+ "neutral": {
48
+ "$description": "Theme neutral scale.",
49
+ "1": { "$value": "{color.sand.1}" },
50
+ "2": { "$value": "{color.sand.2}" },
51
+ "3": { "$value": "{color.sand.3}" },
52
+ "4": { "$value": "{color.sand.4}" },
53
+ "5": { "$value": "{color.sand.5}" },
54
+ "6": { "$value": "{color.sand.6}" },
55
+ "7": { "$value": "{color.sand.7}" },
56
+ "8": { "$value": "{color.sand.8}" },
57
+ "9": { "$value": "{color.sand.9}" },
58
+ "10": { "$value": "{color.sand.10}" },
59
+ "11": { "$value": "{color.sand.11}" },
60
+ "12": { "$value": "{color.sand.12}" },
61
+ "a1": { "$value": "{color.sand.a1}" },
62
+ "a2": { "$value": "{color.sand.a2}" },
63
+ "a3": { "$value": "{color.sand.a3}" },
64
+ "a4": { "$value": "{color.sand.a4}" },
65
+ "a5": { "$value": "{color.sand.a5}" },
66
+ "a6": { "$value": "{color.sand.a6}" },
67
+ "a7": { "$value": "{color.sand.a7}" },
68
+ "a8": { "$value": "{color.sand.a8}" },
69
+ "a9": { "$value": "{color.sand.a9}" },
70
+ "a10": { "$value": "{color.sand.a10}" },
71
+ "a11": { "$value": "{color.sand.a11}" },
72
+ "a12": { "$value": "{color.sand.a12}" }
73
+ },
74
+ "accent-text": {
75
+ "$description": "Scale for accent text and links (Sutra uses blue).",
76
+ "11": { "$value": "{color.terracotta.11}" },
77
+ "12": { "$value": "{color.terracotta.12}" }
78
+ }
79
+ },
80
+ "radius": {
81
+ "factor": { "$type": "number", "$value": 1 },
82
+ "inner": {
83
+ "$type": "dimension",
84
+ "$value": { "value": 0.375, "unit": "rem" },
85
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
86
+ },
87
+ "element": {
88
+ "$type": "dimension",
89
+ "$value": { "value": 0.625, "unit": "rem" },
90
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
91
+ },
92
+ "container": {
93
+ "$type": "dimension",
94
+ "$value": { "value": 0.75, "unit": "rem" },
95
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
96
+ },
97
+ "page": {
98
+ "$type": "dimension",
99
+ "$value": { "value": 1.5, "unit": "rem" },
100
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
101
+ },
102
+ "chat": {
103
+ "$type": "dimension",
104
+ "$value": { "value": 28, "unit": "px" },
105
+ "$extensions": { "com.urnextdoor.und": { "radiusScale": true } }
106
+ }
107
+ },
108
+ "motion": {
109
+ "tempo": { "$type": "number", "$value": 1 },
110
+ "ease": {
111
+ "$type": "cubicBezier",
112
+ "enter": { "$value": "{ease.enter}" },
113
+ "move": { "$type": "cubicBezier", "$value": "{ease.standard}" }
114
+ }
115
+ },
116
+ "typeface": {
117
+ "$type": "fontFamily",
118
+ "$extensions": { "com.urnextdoor.und": { "webFonts": ["albert-sans", "fraunces", "jetbrains-mono"] } },
119
+ "body": {
120
+ "$value": [
121
+ "Albert Sans",
122
+ "Albert Sans Fallback",
123
+ "-apple-system",
124
+ "BlinkMacSystemFont",
125
+ "Segoe UI",
126
+ "Roboto",
127
+ "Helvetica",
128
+ "Arial",
129
+ "Noto Sans Devanagari",
130
+ "Noto Sans",
131
+ "Nirmala UI",
132
+ "Kohinoor Devanagari",
133
+ "sans-serif"
134
+ ]
135
+ },
136
+ "heading": {
137
+ "$value": [
138
+ "Fraunces",
139
+ "Georgia",
140
+ "Times New Roman",
141
+ "Times",
142
+ "Noto Serif Devanagari",
143
+ "Nirmala UI",
144
+ "serif"
145
+ ]
146
+ },
147
+ "display": {
148
+ "$value": [
149
+ "Fraunces",
150
+ "Georgia",
151
+ "Times New Roman",
152
+ "Times",
153
+ "Noto Serif Devanagari",
154
+ "Nirmala UI",
155
+ "serif"
156
+ ]
157
+ },
158
+ "code": {
159
+ "$value": ["JetBrains Mono", "JetBrains Mono Fallback", "SF Mono", "Monaco", "Consolas", "monospace"]
160
+ }
161
+ },
162
+ "shape": {
163
+ "control": { "$type": "dimension", "$value": "{radius.element}" },
164
+ "card": { "$type": "dimension", "$value": "{radius.container}" },
165
+ "dialog": { "$type": "dimension", "$value": "{radius.container}" },
166
+ "popover": { "$type": "dimension", "$value": "{radius.container}" }
167
+ },
168
+ "type": {
169
+ "heading-3": { "weight": { "$type": "fontWeight", "$value": 700 } },
170
+ "heading-4": { "weight": { "$type": "fontWeight", "$value": 700 } },
171
+ "display-3": { "leading": { "$type": "number", "$value": 1.3793 } }
172
+ },
173
+ "duration": {
174
+ "fast-min": { "$type": "duration", "$value": { "value": 95, "unit": "ms" } },
175
+ "fast": { "$type": "duration", "$value": { "value": 125, "unit": "ms" } },
176
+ "fast-max": { "$type": "duration", "$value": { "value": 165, "unit": "ms" } },
177
+ "medium-min": { "$type": "duration", "$value": { "value": 225, "unit": "ms" } },
178
+ "medium": { "$type": "duration", "$value": { "value": 300, "unit": "ms" } },
179
+ "medium-max": { "$type": "duration", "$value": { "value": 400, "unit": "ms" } },
180
+ "slow-min": { "$type": "duration", "$value": { "value": 525, "unit": "ms" } },
181
+ "slow": { "$type": "duration", "$value": { "value": 700, "unit": "ms" } },
182
+ "slow-max": { "$type": "duration", "$value": { "value": 935, "unit": "ms" } }
183
+ },
184
+ "focus": {
185
+ "offset": { "$type": "dimension", "$value": { "value": 3, "unit": "px" } }
186
+ },
187
+ "material": {
188
+ "thin": {
189
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
190
+ "border": { "$type": "color", "$value": "{border.default}" },
191
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
192
+ "saturate": { "$type": "number", "$value": 1 }
193
+ },
194
+ "regular": {
195
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
196
+ "border": { "$type": "color", "$value": "{border.default}" },
197
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
198
+ "saturate": { "$type": "number", "$value": 1 }
199
+ },
200
+ "thick": {
201
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
202
+ "border": { "$type": "color", "$value": "{border.default}" },
203
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
204
+ "saturate": { "$type": "number", "$value": 1 }
205
+ },
206
+ "chrome": {
207
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
208
+ "border": { "$type": "color", "$value": "{border.default}" },
209
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
210
+ "saturate": { "$type": "number", "$value": 1 },
211
+ "highlight": { "$type": "color", "$value": "{color.transparent}" }
212
+ }
213
+ }
214
+ }