@und-ui/tokens 0.0.0-stage → 0.2.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,84 @@
1
+ {
2
+ "control": {
3
+ "height": {
4
+ "$type": "dimension",
5
+ "xs": { "$value": "{size.control.xs}" },
6
+ "sm": { "$value": "{size.control.sm}" },
7
+ "md": { "$value": "{size.control.md}" },
8
+ "lg": { "$value": "{size.control.lg}" },
9
+ "xl": { "$value": "{size.control.xl}" }
10
+ },
11
+ "padding-x": { "$type": "dimension", "$value": "{space.3}" },
12
+ "gap": { "$type": "dimension", "$value": "{space.2}" }
13
+ },
14
+ "density": {
15
+ "scale": { "$type": "number", "$value": 1, "$description": "Padding multiplier for the active density." }
16
+ },
17
+ "target": {
18
+ "min": {
19
+ "$type": "dimension",
20
+ "$value": "{size.target.fine}",
21
+ "$description": "Minimum hit area for the active density."
22
+ }
23
+ },
24
+ "gap": {
25
+ "$type": "dimension",
26
+ "inline": {
27
+ "xs": { "$value": "{space.1}" },
28
+ "sm": { "$value": "{space.2}" },
29
+ "md": { "$value": "{space.3}" },
30
+ "lg": { "$value": "{space.4}" }
31
+ },
32
+ "stack": {
33
+ "sm": { "$value": "{space.2}" },
34
+ "md": { "$value": "{space.4}" },
35
+ "lg": { "$value": "{space.6}" },
36
+ "xl": { "$value": "{space.8}" }
37
+ }
38
+ },
39
+ "inset": {
40
+ "$type": "dimension",
41
+ "control-x": { "$value": "{space.3}" },
42
+ "card": { "$value": "{space.4}", "$description": "Mobile." },
43
+ "card-lg": { "$value": "{space.6}", "$description": "Desktop." }
44
+ },
45
+ "shape": {
46
+ "$type": "dimension",
47
+ "$description": "Component radius mapping (report 3.3).",
48
+ "control": { "$value": "{radius.md}", "$description": "Buttons and inputs." },
49
+ "card": { "$value": "{radius.xl}" },
50
+ "dialog": { "$value": "{radius.2xl}", "$description": "Dialogs and sheets." },
51
+ "popover": { "$value": "{radius.lg}" },
52
+ "chip": { "$value": "{radius.full}", "$description": "Chips and avatars." }
53
+ },
54
+ "focus": {
55
+ "width": { "$type": "dimension", "$value": "{border-width.thick}" },
56
+ "offset": { "$type": "dimension", "$value": { "value": 2, "unit": "px" } }
57
+ },
58
+ "elevation": {
59
+ "outline-width": {
60
+ "$type": "dimension",
61
+ "$value": { "value": 0, "unit": "px" },
62
+ "$description": "Extra outline on elevated surfaces; 1px under contrast more."
63
+ }
64
+ },
65
+ "material": {
66
+ "$description": "Glass geometry (report 3.6).",
67
+ "thin": {
68
+ "blur": { "$type": "dimension", "$value": { "value": 12, "unit": "px" } },
69
+ "saturate": { "$type": "number", "$value": 1.6 }
70
+ },
71
+ "regular": {
72
+ "blur": { "$type": "dimension", "$value": { "value": 20, "unit": "px" } },
73
+ "saturate": { "$type": "number", "$value": 1.8 }
74
+ },
75
+ "thick": {
76
+ "blur": { "$type": "dimension", "$value": { "value": 32, "unit": "px" } },
77
+ "saturate": { "$type": "number", "$value": 1.8 }
78
+ },
79
+ "chrome": {
80
+ "blur": { "$type": "dimension", "$value": { "value": 16, "unit": "px" } },
81
+ "saturate": { "$type": "number", "$value": 2 }
82
+ }
83
+ }
84
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "motion": {
3
+ "$description": "Semantic motion aliases (report 4.2 and 4.5). Exits run at about 70% of the entrance.",
4
+ "tempo": {
5
+ "$type": "number",
6
+ "$value": 1,
7
+ "$description": "Theme tempo, clamped to tempo.min..tempo.max. CSS: --und-motion-tempo."
8
+ },
9
+ "focus": {
10
+ "$type": "duration",
11
+ "$value": "{duration.instant}",
12
+ "$description": "Focus rings appear immediately. Never animate focus in."
13
+ },
14
+ "press": { "$type": "duration", "$value": "{duration.micro}" },
15
+ "hover": { "$type": "duration", "$value": "{duration.fast-min}" },
16
+ "hover-out": { "$type": "duration", "$value": "{duration.fast}" },
17
+ "tooltip-enter": { "$type": "duration", "$value": "{duration.fast}" },
18
+ "tooltip-exit": { "$type": "duration", "$value": "{duration.instant}" },
19
+ "menu-enter": { "$type": "duration", "$value": "{duration.fast-max}" },
20
+ "menu-exit": { "$type": "duration", "$value": "{duration.micro}" },
21
+ "dialog-enter": { "$type": "duration", "$value": "{duration.medium-min}" },
22
+ "dialog-exit": {
23
+ "$type": "duration",
24
+ "$value": { "value": 217, "unit": "ms" },
25
+ "$description": "70% of dialog-enter."
26
+ },
27
+ "sheet-enter": {
28
+ "$type": "duration",
29
+ "$value": "{duration.medium}",
30
+ "$description": "Time-based fallback when not using spring.gentle."
31
+ },
32
+ "sheet-exit": {
33
+ "$type": "duration",
34
+ "$value": { "value": 287, "unit": "ms" },
35
+ "$description": "70% of sheet-enter."
36
+ },
37
+ "toast-enter": { "$type": "duration", "$value": "{duration.medium-min}" },
38
+ "toast-exit": { "$type": "duration", "$value": { "value": 217, "unit": "ms" } },
39
+ "scrim": { "$type": "duration", "$value": "{duration.fast}" },
40
+ "page": {
41
+ "$type": "duration",
42
+ "$value": "{duration.medium-max}",
43
+ "$description": "Route or shared-element transitions."
44
+ },
45
+ "page-exit": { "$type": "duration", "$value": { "value": 385, "unit": "ms" } },
46
+ "reveal": { "$type": "duration", "$value": "{duration.slow-min}" },
47
+ "celebrate": { "$type": "duration", "$value": "{duration.slow}" },
48
+ "crossfade": {
49
+ "$type": "duration",
50
+ "$value": "{duration.fast}",
51
+ "$description": "Opacity cross-fade used when spatial motion is removed."
52
+ },
53
+ "crossfade-touch": {
54
+ "$type": "duration",
55
+ "$value": { "value": 200, "unit": "ms" },
56
+ "$description": "Reduced motion on coarse pointers: opacity only, capped at 200ms, never scaled by tempo.",
57
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
58
+ },
59
+ "spinner": {
60
+ "$type": "duration",
61
+ "$value": { "value": 800, "unit": "ms" },
62
+ "$description": "One spinner turn (linear).",
63
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
64
+ },
65
+ "shimmer": {
66
+ "$type": "duration",
67
+ "$value": { "value": 1600, "unit": "ms" },
68
+ "$description": "Skeleton shimmer loop (linear).",
69
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
70
+ },
71
+ "tooltip-delay": {
72
+ "$type": "duration",
73
+ "$value": { "value": 500, "unit": "ms" },
74
+ "$description": "Open delay.",
75
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
76
+ },
77
+ "tooltip-delay-toolbar": {
78
+ "$type": "duration",
79
+ "$value": { "value": 700, "unit": "ms" },
80
+ "$description": "Open delay for icon-only toolbars.",
81
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
82
+ },
83
+ "tooltip-skip": {
84
+ "$type": "duration",
85
+ "$value": { "value": 300, "unit": "ms" },
86
+ "$description": "Skip-delay window.",
87
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
88
+ },
89
+ "ease": {
90
+ "$type": "cubicBezier",
91
+ "$description": "Theme character sets enter and move; exit is fixed.",
92
+ "enter": { "$value": "{ease.enter}" },
93
+ "exit": { "$value": "{ease.exit}" },
94
+ "move": { "$value": "{ease.move}" },
95
+ "emphasized": { "$value": "{ease.emphasized}" }
96
+ },
97
+ "spatial": {
98
+ "$type": "number",
99
+ "$value": 1,
100
+ "$description": "Multiplier for translate/scale distances; 0 under reduced motion."
101
+ },
102
+ "loop": {
103
+ "$type": "number",
104
+ "$value": 1,
105
+ "$description": "1 = decorative loops may run; 0 = stop shimmer, marquee, auto-advance."
106
+ },
107
+ "press-scale": { "$type": "number", "$value": 0.97, "$description": "Buttons." },
108
+ "press-scale-card": { "$type": "number", "$value": 0.98, "$description": "Cards." },
109
+ "drag-scale": { "$type": "number", "$value": 1.02 }
110
+ }
111
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$description": "Default (Ujala) scale aliases. Themes repoint these.",
3
+ "scale": {
4
+ "$type": "color",
5
+ "accent": {
6
+ "$description": "Theme accent scale. Semantic tokens read these, never hue names.",
7
+ "1": { "$value": "{color.indigo.1}" },
8
+ "2": { "$value": "{color.indigo.2}" },
9
+ "3": { "$value": "{color.indigo.3}" },
10
+ "4": { "$value": "{color.indigo.4}" },
11
+ "5": { "$value": "{color.indigo.5}" },
12
+ "6": { "$value": "{color.indigo.6}" },
13
+ "7": { "$value": "{color.indigo.7}" },
14
+ "8": { "$value": "{color.indigo.8}" },
15
+ "9": { "$value": "{color.indigo.9}" },
16
+ "10": { "$value": "{color.indigo.10}" },
17
+ "11": { "$value": "{color.indigo.11}" },
18
+ "12": { "$value": "{color.indigo.12}" },
19
+ "a1": { "$value": "{color.indigo.a1}" },
20
+ "a2": { "$value": "{color.indigo.a2}" },
21
+ "a3": { "$value": "{color.indigo.a3}" },
22
+ "a4": { "$value": "{color.indigo.a4}" },
23
+ "a5": { "$value": "{color.indigo.a5}" },
24
+ "a6": { "$value": "{color.indigo.a6}" },
25
+ "a7": { "$value": "{color.indigo.a7}" },
26
+ "a8": { "$value": "{color.indigo.a8}" },
27
+ "a9": { "$value": "{color.indigo.a9}" },
28
+ "a10": { "$value": "{color.indigo.a10}" },
29
+ "a11": { "$value": "{color.indigo.a11}" },
30
+ "a12": { "$value": "{color.indigo.a12}" },
31
+ "contrast": { "$value": "{color.indigo.contrast}" }
32
+ },
33
+ "neutral": {
34
+ "$description": "Theme neutral scale.",
35
+ "1": { "$value": "{color.neutral.1}" },
36
+ "2": { "$value": "{color.neutral.2}" },
37
+ "3": { "$value": "{color.neutral.3}" },
38
+ "4": { "$value": "{color.neutral.4}" },
39
+ "5": { "$value": "{color.neutral.5}" },
40
+ "6": { "$value": "{color.neutral.6}" },
41
+ "7": { "$value": "{color.neutral.7}" },
42
+ "8": { "$value": "{color.neutral.8}" },
43
+ "9": { "$value": "{color.neutral.9}" },
44
+ "10": { "$value": "{color.neutral.10}" },
45
+ "11": { "$value": "{color.neutral.11}" },
46
+ "12": { "$value": "{color.neutral.12}" },
47
+ "a1": { "$value": "{color.neutral.a1}" },
48
+ "a2": { "$value": "{color.neutral.a2}" },
49
+ "a3": { "$value": "{color.neutral.a3}" },
50
+ "a4": { "$value": "{color.neutral.a4}" },
51
+ "a5": { "$value": "{color.neutral.a5}" },
52
+ "a6": { "$value": "{color.neutral.a6}" },
53
+ "a7": { "$value": "{color.neutral.a7}" },
54
+ "a8": { "$value": "{color.neutral.a8}" },
55
+ "a9": { "$value": "{color.neutral.a9}" },
56
+ "a10": { "$value": "{color.neutral.a10}" },
57
+ "a11": { "$value": "{color.neutral.a11}" },
58
+ "a12": { "$value": "{color.neutral.a12}" }
59
+ },
60
+ "accent-text": {
61
+ "$description": "Scale for accent text and links (Sutra uses blue).",
62
+ "11": { "$value": "{color.indigo.11}" },
63
+ "12": { "$value": "{color.indigo.12}" }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,281 @@
1
+ {
2
+ "typeface": {
3
+ "$type": "fontFamily",
4
+ "$description": "Semantic font roles; themes repoint these.",
5
+ "body": { "$value": "{font.sans}" },
6
+ "heading": { "$value": "{font.sans}" },
7
+ "display": { "$value": "{font.display}" },
8
+ "code": { "$value": "{font.mono}" }
9
+ },
10
+ "text": {
11
+ "$description": "Type scale (report 2.3). Web sizes are fluid clamp() between 360px and 1440px viewports; native sizes live in $extensions.",
12
+ "display-2xl": {
13
+ "$type": "typography",
14
+ "$value": {
15
+ "fontFamily": "{typeface.display}",
16
+ "fontSize": { "value": 4.5, "unit": "rem" },
17
+ "fontWeight": "{font-weight.display}",
18
+ "letterSpacing": { "value": -1.8, "unit": "px" },
19
+ "lineHeight": 1.05
20
+ },
21
+ "$extensions": {
22
+ "com.urnextdoor.und": {
23
+ "fluid": { "minPx": 44, "maxPx": 72, "minViewportPx": 360, "maxViewportPx": 1440 },
24
+ "letterSpacingEm": -0.025,
25
+ "lineHeightIndic": 1.3,
26
+ "ios": { "textStyle": "largeTitle", "size": 48, "weight": "semibold" },
27
+ "android": { "textStyle": "displayLarge", "size": 57, "lineHeight": 64 }
28
+ }
29
+ }
30
+ },
31
+ "display-xl": {
32
+ "$type": "typography",
33
+ "$value": {
34
+ "fontFamily": "{typeface.display}",
35
+ "fontSize": { "value": 3.5, "unit": "rem" },
36
+ "fontWeight": "{font-weight.display}",
37
+ "letterSpacing": { "value": -1.232, "unit": "px" },
38
+ "lineHeight": 1.08
39
+ },
40
+ "$extensions": {
41
+ "com.urnextdoor.und": {
42
+ "fluid": { "minPx": 36, "maxPx": 56, "minViewportPx": 360, "maxViewportPx": 1440 },
43
+ "letterSpacingEm": -0.022,
44
+ "lineHeightIndic": 1.32,
45
+ "ios": { "textStyle": "largeTitle", "size": 40, "weight": "semibold" },
46
+ "android": { "textStyle": "displayMedium", "size": 45, "lineHeight": 52 }
47
+ }
48
+ }
49
+ },
50
+ "display-lg": {
51
+ "$type": "typography",
52
+ "$value": {
53
+ "fontFamily": "{typeface.display}",
54
+ "fontSize": { "value": 2.75, "unit": "rem" },
55
+ "fontWeight": "{font-weight.semibold}",
56
+ "letterSpacing": { "value": -0.88, "unit": "px" },
57
+ "lineHeight": 1.12
58
+ },
59
+ "$extensions": {
60
+ "com.urnextdoor.und": {
61
+ "fluid": { "minPx": 30, "maxPx": 44, "minViewportPx": 360, "maxViewportPx": 1440 },
62
+ "letterSpacingEm": -0.02,
63
+ "lineHeightIndic": 1.35,
64
+ "ios": { "textStyle": "largeTitle", "size": 34, "weight": "semibold" },
65
+ "android": { "textStyle": "displaySmall", "size": 36, "lineHeight": 44 }
66
+ }
67
+ }
68
+ },
69
+ "heading-xl": {
70
+ "$type": "typography",
71
+ "$value": {
72
+ "fontFamily": "{typeface.heading}",
73
+ "fontSize": { "value": 2.125, "unit": "rem" },
74
+ "fontWeight": "{font-weight.semibold}",
75
+ "letterSpacing": { "value": -0.51, "unit": "px" },
76
+ "lineHeight": 1.18
77
+ },
78
+ "$description": "h1",
79
+ "$extensions": {
80
+ "com.urnextdoor.und": {
81
+ "fluid": { "minPx": 26, "maxPx": 34, "minViewportPx": 360, "maxViewportPx": 1440 },
82
+ "letterSpacingEm": -0.015,
83
+ "lineHeightIndic": 1.4,
84
+ "ios": { "textStyle": "title", "size": 28, "weight": "semibold" },
85
+ "android": { "textStyle": "headlineMedium", "size": 28, "lineHeight": 36 }
86
+ }
87
+ }
88
+ },
89
+ "heading-lg": {
90
+ "$type": "typography",
91
+ "$value": {
92
+ "fontFamily": "{typeface.heading}",
93
+ "fontSize": { "value": 1.75, "unit": "rem" },
94
+ "fontWeight": "{font-weight.semibold}",
95
+ "letterSpacing": { "value": -0.28, "unit": "px" },
96
+ "lineHeight": 1.25
97
+ },
98
+ "$description": "h2",
99
+ "$extensions": {
100
+ "com.urnextdoor.und": {
101
+ "fluid": { "minPx": 22, "maxPx": 28, "minViewportPx": 360, "maxViewportPx": 1440 },
102
+ "letterSpacingEm": -0.01,
103
+ "lineHeightIndic": 1.45,
104
+ "ios": { "textStyle": "title2", "size": 22, "weight": "semibold" },
105
+ "android": { "textStyle": "headlineSmall", "size": 24, "lineHeight": 32 }
106
+ }
107
+ }
108
+ },
109
+ "heading-md": {
110
+ "$type": "typography",
111
+ "$value": {
112
+ "fontFamily": "{typeface.heading}",
113
+ "fontSize": { "value": 1.375, "unit": "rem" },
114
+ "fontWeight": "{font-weight.semibold}",
115
+ "letterSpacing": { "value": -0.11, "unit": "px" },
116
+ "lineHeight": 1.3
117
+ },
118
+ "$description": "h3",
119
+ "$extensions": {
120
+ "com.urnextdoor.und": {
121
+ "fluid": { "minPx": 19, "maxPx": 22, "minViewportPx": 360, "maxViewportPx": 1440 },
122
+ "letterSpacingEm": -0.005,
123
+ "lineHeightIndic": 1.5,
124
+ "ios": { "textStyle": "title3", "size": 20, "weight": "semibold" },
125
+ "android": { "textStyle": "titleLarge", "size": 22, "lineHeight": 28 }
126
+ }
127
+ }
128
+ },
129
+ "heading-sm": {
130
+ "$type": "typography",
131
+ "$value": {
132
+ "fontFamily": "{typeface.heading}",
133
+ "fontSize": { "value": 1.125, "unit": "rem" },
134
+ "fontWeight": "{font-weight.semibold}",
135
+ "letterSpacing": { "value": 0, "unit": "px" },
136
+ "lineHeight": 1.35
137
+ },
138
+ "$description": "h4",
139
+ "$extensions": {
140
+ "com.urnextdoor.und": {
141
+ "fluid": { "minPx": 17, "maxPx": 18, "minViewportPx": 360, "maxViewportPx": 1440 },
142
+ "letterSpacingEm": 0,
143
+ "lineHeightIndic": 1.55,
144
+ "ios": { "textStyle": "headline", "size": 17, "weight": "semibold" },
145
+ "android": { "textStyle": "titleMedium", "size": 16, "lineHeight": 24 }
146
+ }
147
+ }
148
+ },
149
+ "body-lg": {
150
+ "$type": "typography",
151
+ "$value": {
152
+ "fontFamily": "{typeface.body}",
153
+ "fontSize": { "value": 1.125, "unit": "rem" },
154
+ "fontWeight": "{font-weight.regular}",
155
+ "letterSpacing": { "value": 0, "unit": "px" },
156
+ "lineHeight": 1.55
157
+ },
158
+ "$extensions": {
159
+ "com.urnextdoor.und": {
160
+ "fluid": { "minPx": 17, "maxPx": 18, "minViewportPx": 360, "maxViewportPx": 1440 },
161
+ "letterSpacingEm": 0,
162
+ "lineHeightIndic": 1.8,
163
+ "ios": { "textStyle": "body", "size": 19, "weight": "regular" },
164
+ "android": { "textStyle": "bodyLarge", "size": 18, "lineHeight": 28 }
165
+ }
166
+ }
167
+ },
168
+ "body-md": {
169
+ "$type": "typography",
170
+ "$value": {
171
+ "fontFamily": "{typeface.body}",
172
+ "fontSize": { "value": 1, "unit": "rem" },
173
+ "fontWeight": "{font-weight.regular}",
174
+ "letterSpacing": { "value": 0, "unit": "px" },
175
+ "lineHeight": 1.5
176
+ },
177
+ "$description": "Default body text.",
178
+ "$extensions": {
179
+ "com.urnextdoor.und": {
180
+ "letterSpacingEm": 0,
181
+ "lineHeightIndic": 1.75,
182
+ "ios": { "textStyle": "body", "size": 17, "weight": "regular" },
183
+ "android": { "textStyle": "bodyLarge", "size": 16, "lineHeight": 24 }
184
+ }
185
+ }
186
+ },
187
+ "body-sm": {
188
+ "$type": "typography",
189
+ "$value": {
190
+ "fontFamily": "{typeface.body}",
191
+ "fontSize": { "value": 0.875, "unit": "rem" },
192
+ "fontWeight": "{font-weight.regular}",
193
+ "letterSpacing": { "value": 0, "unit": "px" },
194
+ "lineHeight": 1.45
195
+ },
196
+ "$extensions": {
197
+ "com.urnextdoor.und": {
198
+ "letterSpacingEm": 0,
199
+ "lineHeightIndic": 1.7,
200
+ "ios": { "textStyle": "callout", "size": 16, "weight": "regular" },
201
+ "android": { "textStyle": "bodyMedium", "size": 14, "lineHeight": 20 }
202
+ }
203
+ }
204
+ },
205
+ "label-md": {
206
+ "$type": "typography",
207
+ "$value": {
208
+ "fontFamily": "{typeface.body}",
209
+ "fontSize": { "value": 0.875, "unit": "rem" },
210
+ "fontWeight": "{font-weight.medium}",
211
+ "letterSpacing": { "value": 0, "unit": "px" },
212
+ "lineHeight": 1.25
213
+ },
214
+ "$extensions": {
215
+ "com.urnextdoor.und": {
216
+ "letterSpacingEm": 0,
217
+ "lineHeightIndic": 1.5,
218
+ "ios": { "textStyle": "subheadline", "size": 15, "weight": "medium" },
219
+ "android": { "textStyle": "labelLarge", "size": 14, "lineHeight": 20 }
220
+ }
221
+ }
222
+ },
223
+ "label-sm": {
224
+ "$type": "typography",
225
+ "$value": {
226
+ "fontFamily": "{typeface.body}",
227
+ "fontSize": { "value": 0.75, "unit": "rem" },
228
+ "fontWeight": "{font-weight.medium}",
229
+ "letterSpacing": { "value": 0.12, "unit": "px" },
230
+ "lineHeight": 1.25
231
+ },
232
+ "$description": "Minimum Indic size is 12px.",
233
+ "$extensions": {
234
+ "com.urnextdoor.und": {
235
+ "letterSpacingEm": 0.01,
236
+ "lineHeightIndic": 1.5,
237
+ "ios": { "textStyle": "caption2", "size": 11, "weight": "medium" },
238
+ "android": { "textStyle": "labelMedium", "size": 12, "lineHeight": 16 }
239
+ }
240
+ }
241
+ },
242
+ "caption": {
243
+ "$type": "typography",
244
+ "$value": {
245
+ "fontFamily": "{typeface.body}",
246
+ "fontSize": { "value": 0.75, "unit": "rem" },
247
+ "fontWeight": "{font-weight.regular}",
248
+ "letterSpacing": { "value": 0, "unit": "px" },
249
+ "lineHeight": 1.35
250
+ },
251
+ "$extensions": {
252
+ "com.urnextdoor.und": {
253
+ "letterSpacingEm": 0,
254
+ "lineHeightIndic": 1.6,
255
+ "ios": { "textStyle": "caption", "size": 12, "weight": "regular" },
256
+ "android": { "textStyle": "bodySmall", "size": 12, "lineHeight": 16 }
257
+ }
258
+ }
259
+ },
260
+ "code": {
261
+ "$type": "typography",
262
+ "$value": {
263
+ "fontFamily": "{typeface.code}",
264
+ "fontSize": { "value": 0.92, "unit": "rem" },
265
+ "fontWeight": "{font-weight.regular}",
266
+ "letterSpacing": { "value": 0, "unit": "px" },
267
+ "lineHeight": 1.55
268
+ },
269
+ "$description": "Inline and block code. Web size is 0.92em of the surrounding text.",
270
+ "$extensions": {
271
+ "com.urnextdoor.und": {
272
+ "fontSizeEm": 0.92,
273
+ "letterSpacingEm": 0,
274
+ "lineHeightIndic": 1.55,
275
+ "ios": { "textStyle": "callout", "size": 15, "weight": "regular" },
276
+ "android": { "textStyle": "bodyMedium", "size": 14, "lineHeight": 20 }
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "$description": "Kesar: Festive, warm, celebratory: events, festivals, community drives.",
3
+ "$extensions": {
4
+ "com.urnextdoor.und": {
5
+ "theme": {
6
+ "name": "kesar",
7
+ "label": "Kesar",
8
+ "modes": ["light", "dark"],
9
+ "radiusFactor": 1.25,
10
+ "tempo": 1,
11
+ "character": "expressive",
12
+ "density": "comfortable",
13
+ "glass": "on"
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.saffron.1}" },
22
+ "2": { "$value": "{color.saffron.2}" },
23
+ "3": { "$value": "{color.saffron.3}" },
24
+ "4": { "$value": "{color.saffron.4}" },
25
+ "5": { "$value": "{color.saffron.5}" },
26
+ "6": { "$value": "{color.saffron.6}" },
27
+ "7": { "$value": "{color.saffron.7}" },
28
+ "8": { "$value": "{color.saffron.8}" },
29
+ "9": { "$value": "{color.saffron.9}" },
30
+ "10": { "$value": "{color.saffron.10}" },
31
+ "11": { "$value": "{color.saffron.11}" },
32
+ "12": { "$value": "{color.saffron.12}" },
33
+ "a1": { "$value": "{color.saffron.a1}" },
34
+ "a2": { "$value": "{color.saffron.a2}" },
35
+ "a3": { "$value": "{color.saffron.a3}" },
36
+ "a4": { "$value": "{color.saffron.a4}" },
37
+ "a5": { "$value": "{color.saffron.a5}" },
38
+ "a6": { "$value": "{color.saffron.a6}" },
39
+ "a7": { "$value": "{color.saffron.a7}" },
40
+ "a8": { "$value": "{color.saffron.a8}" },
41
+ "a9": { "$value": "{color.saffron.a9}" },
42
+ "a10": { "$value": "{color.saffron.a10}" },
43
+ "a11": { "$value": "{color.saffron.a11}" },
44
+ "a12": { "$value": "{color.saffron.a12}" },
45
+ "contrast": { "$value": "{color.saffron.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.saffron.11}" },
77
+ "12": { "$value": "{color.saffron.12}" }
78
+ }
79
+ },
80
+ "radius": { "factor": { "$type": "number", "$value": 1.25 } },
81
+ "motion": {
82
+ "tempo": { "$type": "number", "$value": 1 },
83
+ "ease": {
84
+ "$type": "cubicBezier",
85
+ "enter": {
86
+ "$value": [0.2, 0, 0, 1.28],
87
+ "$description": "spring.bouncy (linear() in CSS, cubic-bezier fallback).",
88
+ "$extensions": { "com.urnextdoor.und": { "spring": "spring.bouncy" } }
89
+ },
90
+ "move": {
91
+ "$value": [0.2, 0, 0, 1.04],
92
+ "$description": "spring.snappy (linear() in CSS, cubic-bezier fallback).",
93
+ "$extensions": { "com.urnextdoor.und": { "spring": "spring.snappy" } }
94
+ }
95
+ }
96
+ },
97
+ "typeface": {
98
+ "$type": "fontFamily",
99
+ "body": { "$value": "{font.sans}" },
100
+ "heading": { "$value": "{font.anek}" },
101
+ "display": { "$value": "{font.anek}" },
102
+ "code": { "$value": "{font.mono}" }
103
+ },
104
+ "focus": { "ring": { "$type": "color", "$value": "{scale.neutral.12}" } }
105
+ }