@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,46 @@
1
+ {
2
+ "$description": "Contrast \"more\" (report 1.8): prefers-contrast: more, iOS Increase Contrast, Android high-contrast text.",
3
+ "fg": {
4
+ "$type": "color",
5
+ "muted": { "$value": "{scale.neutral.12}" },
6
+ "subtle": { "$value": "{scale.neutral.11}" }
7
+ },
8
+ "border": {
9
+ "$type": "color",
10
+ "subtle": { "$value": "{scale.neutral.8}" },
11
+ "default": { "$value": "{scale.neutral.9}" },
12
+ "control": { "$value": "{scale.neutral.11}" },
13
+ "control-hover": { "$value": "{scale.neutral.12}" }
14
+ },
15
+ "accent": { "fg": { "$type": "color", "$value": "{scale.accent-text.12}" } },
16
+ "link": { "default": { "$type": "color", "$value": "{scale.accent-text.12}" } },
17
+ "focus": { "width": { "$type": "dimension", "$value": "{border-width.heavy}" } },
18
+ "elevation": { "outline-width": { "$type": "dimension", "$value": "{border-width.thin}" } },
19
+ "material": {
20
+ "thin": {
21
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
22
+ "border": { "$type": "color", "$value": "{border.strong}" },
23
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
24
+ "saturate": { "$type": "number", "$value": 1 }
25
+ },
26
+ "regular": {
27
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
28
+ "border": { "$type": "color", "$value": "{border.strong}" },
29
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
30
+ "saturate": { "$type": "number", "$value": 1 }
31
+ },
32
+ "thick": {
33
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
34
+ "border": { "$type": "color", "$value": "{border.strong}" },
35
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
36
+ "saturate": { "$type": "number", "$value": 1 }
37
+ },
38
+ "chrome": {
39
+ "bg": { "$type": "color", "$value": "{bg.surface}" },
40
+ "border": { "$type": "color", "$value": "{border.strong}" },
41
+ "blur": { "$type": "dimension", "$value": { "value": 0, "unit": "px" } },
42
+ "saturate": { "$type": "number", "$value": 1 },
43
+ "highlight": { "$type": "color", "$value": "{color.transparent}" }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "$description": "Comfortable density (default). Restates every key compact and touch change, so it can undo a theme default.",
3
+ "control": {
4
+ "height": {
5
+ "$type": "dimension",
6
+ "xs": { "$value": "{size.control.xs}" },
7
+ "sm": { "$value": "{size.control.sm}" },
8
+ "md": { "$value": "{size.control.md}" },
9
+ "lg": { "$value": "{size.control.lg}" },
10
+ "xl": { "$value": "{size.control.xl}" }
11
+ },
12
+ "padding-x": { "$type": "dimension", "$value": "{space.3}" },
13
+ "gap": { "$type": "dimension", "$value": "{space.2}" }
14
+ },
15
+ "density": {
16
+ "scale": { "$type": "number", "$value": 1, "$description": "Padding multiplier for the active density." }
17
+ },
18
+ "target": {
19
+ "min": {
20
+ "$type": "dimension",
21
+ "$value": "{size.target.fine}",
22
+ "$description": "Minimum hit area for the active density."
23
+ }
24
+ },
25
+ "text": {
26
+ "body-md": {
27
+ "$type": "typography",
28
+ "$value": {
29
+ "fontFamily": "{typeface.body}",
30
+ "fontSize": { "value": 1, "unit": "rem" },
31
+ "fontWeight": "{font-weight.regular}",
32
+ "letterSpacing": { "value": 0, "unit": "px" },
33
+ "lineHeight": 1.5
34
+ },
35
+ "$description": "Default body text.",
36
+ "$extensions": {
37
+ "com.urnextdoor.und": {
38
+ "letterSpacingEm": 0,
39
+ "lineHeightIndic": 1.75,
40
+ "ios": { "textStyle": "body", "size": 17, "weight": "regular" },
41
+ "android": { "textStyle": "bodyLarge", "size": 16, "lineHeight": 24 }
42
+ }
43
+ }
44
+ },
45
+ "label-md": {
46
+ "$type": "typography",
47
+ "$value": {
48
+ "fontFamily": "{typeface.body}",
49
+ "fontSize": { "value": 0.875, "unit": "rem" },
50
+ "fontWeight": "{font-weight.medium}",
51
+ "letterSpacing": { "value": 0, "unit": "px" },
52
+ "lineHeight": 1.25
53
+ },
54
+ "$extensions": {
55
+ "com.urnextdoor.und": {
56
+ "letterSpacingEm": 0,
57
+ "lineHeightIndic": 1.5,
58
+ "ios": { "textStyle": "subheadline", "size": 15, "weight": "medium" },
59
+ "android": { "textStyle": "labelLarge", "size": 14, "lineHeight": 20 }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$description": "Compact density: data tables, admin. Controls drop one size step, padding x0.75, body 14px, labels 13px.",
3
+ "control": {
4
+ "height": {
5
+ "$type": "dimension",
6
+ "xs": { "$value": "{size.control-compact.xs}" },
7
+ "sm": { "$value": "{size.control-compact.sm}" },
8
+ "md": { "$value": "{size.control-compact.md}" },
9
+ "lg": { "$value": "{size.control-compact.lg}" },
10
+ "xl": { "$value": "{size.control-compact.xl}" }
11
+ },
12
+ "padding-x": { "$type": "dimension", "$value": { "value": 9, "unit": "px" } },
13
+ "gap": { "$type": "dimension", "$value": "{space.1_5}" }
14
+ },
15
+ "density": {
16
+ "scale": {
17
+ "$type": "number",
18
+ "$value": 0.75,
19
+ "$description": "Padding multiplier for the active density."
20
+ }
21
+ },
22
+ "target": {
23
+ "min": {
24
+ "$type": "dimension",
25
+ "$value": "{size.target.fine}",
26
+ "$description": "Minimum hit area for the active density."
27
+ }
28
+ },
29
+ "text": {
30
+ "body-md": {
31
+ "$type": "typography",
32
+ "$value": {
33
+ "fontFamily": "{typeface.body}",
34
+ "fontSize": { "value": 0.875, "unit": "rem" },
35
+ "fontWeight": "{font-weight.regular}",
36
+ "letterSpacing": { "value": 0, "unit": "px" },
37
+ "lineHeight": 1.5
38
+ },
39
+ "$description": "Default body text.",
40
+ "$extensions": {
41
+ "com.urnextdoor.und": {
42
+ "letterSpacingEm": 0,
43
+ "lineHeightIndic": 1.75,
44
+ "ios": { "textStyle": "body", "size": 17, "weight": "regular" },
45
+ "android": { "textStyle": "bodyLarge", "size": 16, "lineHeight": 24 }
46
+ }
47
+ }
48
+ },
49
+ "label-md": {
50
+ "$type": "typography",
51
+ "$value": {
52
+ "fontFamily": "{typeface.body}",
53
+ "fontSize": { "value": 0.8125, "unit": "rem" },
54
+ "fontWeight": "{font-weight.medium}",
55
+ "letterSpacing": { "value": 0, "unit": "px" },
56
+ "lineHeight": 1.25
57
+ },
58
+ "$extensions": {
59
+ "com.urnextdoor.und": {
60
+ "letterSpacingEm": 0,
61
+ "lineHeightIndic": 1.5,
62
+ "ios": { "textStyle": "subheadline", "size": 15, "weight": "medium" },
63
+ "android": { "textStyle": "labelLarge", "size": 14, "lineHeight": 20 }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "$description": "Touch density: md controls 44px, 8px minimum gap between targets. Automatic under (pointer: coarse).",
3
+ "control": {
4
+ "height": {
5
+ "$type": "dimension",
6
+ "xs": { "$value": "{size.control-touch.xs}" },
7
+ "sm": { "$value": "{size.control-touch.sm}" },
8
+ "md": { "$value": "{size.control-touch.md}" },
9
+ "lg": { "$value": "{size.control-touch.lg}" },
10
+ "xl": { "$value": "{size.control-touch.xl}" }
11
+ },
12
+ "padding-x": { "$type": "dimension", "$value": "{space.3}" },
13
+ "gap": { "$type": "dimension", "$value": "{space.2}" }
14
+ },
15
+ "density": {
16
+ "scale": { "$type": "number", "$value": 1, "$description": "Padding multiplier for the active density." }
17
+ },
18
+ "target": {
19
+ "min": {
20
+ "$type": "dimension",
21
+ "$value": "{size.target.touch}",
22
+ "$description": "Minimum hit area for the active density."
23
+ }
24
+ },
25
+ "text": {
26
+ "body-md": {
27
+ "$type": "typography",
28
+ "$value": {
29
+ "fontFamily": "{typeface.body}",
30
+ "fontSize": { "value": 1, "unit": "rem" },
31
+ "fontWeight": "{font-weight.regular}",
32
+ "letterSpacing": { "value": 0, "unit": "px" },
33
+ "lineHeight": 1.5
34
+ },
35
+ "$description": "Default body text.",
36
+ "$extensions": {
37
+ "com.urnextdoor.und": {
38
+ "letterSpacingEm": 0,
39
+ "lineHeightIndic": 1.75,
40
+ "ios": { "textStyle": "body", "size": 17, "weight": "regular" },
41
+ "android": { "textStyle": "bodyLarge", "size": 16, "lineHeight": 24 }
42
+ }
43
+ }
44
+ },
45
+ "label-md": {
46
+ "$type": "typography",
47
+ "$value": {
48
+ "fontFamily": "{typeface.body}",
49
+ "fontSize": { "value": 0.875, "unit": "rem" },
50
+ "fontWeight": "{font-weight.medium}",
51
+ "letterSpacing": { "value": 0, "unit": "px" },
52
+ "lineHeight": 1.25
53
+ },
54
+ "$extensions": {
55
+ "com.urnextdoor.und": {
56
+ "letterSpacingEm": 0,
57
+ "lineHeightIndic": 1.5,
58
+ "ios": { "textStyle": "subheadline", "size": 15, "weight": "medium" },
59
+ "android": { "textStyle": "labelLarge", "size": 14, "lineHeight": 20 }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,197 @@
1
+ {
2
+ "$description": "Dark mode semantic values that are not plain scale references.",
3
+ "bg": {
4
+ "$type": "color",
5
+ "surface": {
6
+ "$value": "{scale.neutral.2}",
7
+ "$description": "Cards, sheets (raised by lightness in dark mode)."
8
+ },
9
+ "raised": { "$value": "{scale.neutral.3}", "$description": "Popovers and menus." },
10
+ "overlay": {
11
+ "$value": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0.6, "hex": "#000000" },
12
+ "$description": "Modal scrim."
13
+ }
14
+ },
15
+ "selection": { "bg": { "$type": "color", "$value": "{scale.accent.a6}", "$description": "::selection" } },
16
+ "material": {
17
+ "$description": "Glass backgrounds, dark mode (report 3.6). Alphas are raised where needed so fg.default keeps 4.5:1 over pure black and pure white backdrops.",
18
+ "thin": {
19
+ "bg": {
20
+ "$type": "color",
21
+ "$value": { "colorSpace": "oklch", "components": [0.22, 0.01, 275], "alpha": 0.65, "hex": "#191a1f" },
22
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.01, "p3": [0.0993, 0.103, 0.1212] } }
23
+ }
24
+ },
25
+ "regular": {
26
+ "bg": {
27
+ "$type": "color",
28
+ "$value": { "colorSpace": "oklch", "components": [0.22, 0.01, 275], "alpha": 0.68, "hex": "#191a1f" },
29
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.01, "p3": [0.0993, 0.103, 0.1212] } }
30
+ }
31
+ },
32
+ "thick": {
33
+ "bg": {
34
+ "$type": "color",
35
+ "$value": { "colorSpace": "oklch", "components": [0.2, 0.01, 275], "alpha": 0.8, "hex": "#15161b" },
36
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.01, "p3": [0.0815, 0.0851, 0.1029] } }
37
+ }
38
+ },
39
+ "chrome": {
40
+ "bg": {
41
+ "$type": "color",
42
+ "$value": { "colorSpace": "oklch", "components": [0.22, 0.01, 275], "alpha": 0.68, "hex": "#191a1f" },
43
+ "$description": "Glass controls: material-regular plus a specular edge and elevation 2.",
44
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.01, "p3": [0.0993, 0.103, 0.1212] } }
45
+ },
46
+ "highlight": {
47
+ "$type": "color",
48
+ "$value": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.12, "hex": "#ffffff" },
49
+ "$description": "Inset 1px specular edge."
50
+ }
51
+ }
52
+ },
53
+ "shadow": {
54
+ "$type": "shadow",
55
+ "$description": "Dark elevation: surface lightness, a 1px top highlight and a hairline ring; shadows only add depth (report 3.5).",
56
+ "0": {
57
+ "$value": [
58
+ {
59
+ "color": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0, "hex": "#000000" },
60
+ "offsetX": { "value": 0, "unit": "px" },
61
+ "offsetY": { "value": 0, "unit": "px" },
62
+ "blur": { "value": 0, "unit": "px" },
63
+ "spread": { "value": 0, "unit": "px" }
64
+ }
65
+ ],
66
+ "$description": "Flat."
67
+ },
68
+ "1": {
69
+ "$value": [
70
+ {
71
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.04, "hex": "#ffffff" },
72
+ "offsetX": { "value": 0, "unit": "px" },
73
+ "offsetY": { "value": 1, "unit": "px" },
74
+ "blur": { "value": 0, "unit": "px" },
75
+ "spread": { "value": 0, "unit": "px" },
76
+ "inset": true
77
+ },
78
+ {
79
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.06, "hex": "#ffffff" },
80
+ "offsetX": { "value": 0, "unit": "px" },
81
+ "offsetY": { "value": 0, "unit": "px" },
82
+ "blur": { "value": 0, "unit": "px" },
83
+ "spread": { "value": 1, "unit": "px" }
84
+ }
85
+ ],
86
+ "$description": "Cards (on neutral-2)."
87
+ },
88
+ "2": {
89
+ "$value": [
90
+ {
91
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.06, "hex": "#ffffff" },
92
+ "offsetX": { "value": 0, "unit": "px" },
93
+ "offsetY": { "value": 1, "unit": "px" },
94
+ "blur": { "value": 0, "unit": "px" },
95
+ "spread": { "value": 0, "unit": "px" },
96
+ "inset": true
97
+ },
98
+ {
99
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.08, "hex": "#ffffff" },
100
+ "offsetX": { "value": 0, "unit": "px" },
101
+ "offsetY": { "value": 0, "unit": "px" },
102
+ "blur": { "value": 0, "unit": "px" },
103
+ "spread": { "value": 1, "unit": "px" }
104
+ },
105
+ {
106
+ "color": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0.45, "hex": "#000000" },
107
+ "offsetX": { "value": 0, "unit": "px" },
108
+ "offsetY": { "value": 8, "unit": "px" },
109
+ "blur": { "value": 24, "unit": "px" },
110
+ "spread": { "value": 0, "unit": "px" }
111
+ }
112
+ ],
113
+ "$description": "Dropdowns, popovers (on neutral-3)."
114
+ },
115
+ "3": {
116
+ "$value": [
117
+ {
118
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.06, "hex": "#ffffff" },
119
+ "offsetX": { "value": 0, "unit": "px" },
120
+ "offsetY": { "value": 1, "unit": "px" },
121
+ "blur": { "value": 0, "unit": "px" },
122
+ "spread": { "value": 0, "unit": "px" },
123
+ "inset": true
124
+ },
125
+ {
126
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.08, "hex": "#ffffff" },
127
+ "offsetX": { "value": 0, "unit": "px" },
128
+ "offsetY": { "value": 0, "unit": "px" },
129
+ "blur": { "value": 0, "unit": "px" },
130
+ "spread": { "value": 1, "unit": "px" }
131
+ },
132
+ {
133
+ "color": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0.5, "hex": "#000000" },
134
+ "offsetX": { "value": 0, "unit": "px" },
135
+ "offsetY": { "value": 12, "unit": "px" },
136
+ "blur": { "value": 32, "unit": "px" },
137
+ "spread": { "value": 0, "unit": "px" }
138
+ }
139
+ ],
140
+ "$description": "Sticky headers, FAB."
141
+ },
142
+ "4": {
143
+ "$value": [
144
+ {
145
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.07, "hex": "#ffffff" },
146
+ "offsetX": { "value": 0, "unit": "px" },
147
+ "offsetY": { "value": 1, "unit": "px" },
148
+ "blur": { "value": 0, "unit": "px" },
149
+ "spread": { "value": 0, "unit": "px" },
150
+ "inset": true
151
+ },
152
+ {
153
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.1, "hex": "#ffffff" },
154
+ "offsetX": { "value": 0, "unit": "px" },
155
+ "offsetY": { "value": 0, "unit": "px" },
156
+ "blur": { "value": 0, "unit": "px" },
157
+ "spread": { "value": 1, "unit": "px" }
158
+ },
159
+ {
160
+ "color": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0.6, "hex": "#000000" },
161
+ "offsetX": { "value": 0, "unit": "px" },
162
+ "offsetY": { "value": 24, "unit": "px" },
163
+ "blur": { "value": 64, "unit": "px" },
164
+ "spread": { "value": 0, "unit": "px" }
165
+ }
166
+ ],
167
+ "$description": "Dialogs, sheets."
168
+ },
169
+ "5": {
170
+ "$value": [
171
+ {
172
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.07, "hex": "#ffffff" },
173
+ "offsetX": { "value": 0, "unit": "px" },
174
+ "offsetY": { "value": 1, "unit": "px" },
175
+ "blur": { "value": 0, "unit": "px" },
176
+ "spread": { "value": 0, "unit": "px" },
177
+ "inset": true
178
+ },
179
+ {
180
+ "color": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.1, "hex": "#ffffff" },
181
+ "offsetX": { "value": 0, "unit": "px" },
182
+ "offsetY": { "value": 0, "unit": "px" },
183
+ "blur": { "value": 0, "unit": "px" },
184
+ "spread": { "value": 1, "unit": "px" }
185
+ },
186
+ {
187
+ "color": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0.6, "hex": "#000000" },
188
+ "offsetX": { "value": 0, "unit": "px" },
189
+ "offsetY": { "value": 24, "unit": "px" },
190
+ "blur": { "value": 64, "unit": "px" },
191
+ "spread": { "value": 0, "unit": "px" }
192
+ }
193
+ ],
194
+ "$description": "Command palette (plus a scrim)."
195
+ }
196
+ }
197
+ }
@@ -0,0 +1,166 @@
1
+ {
2
+ "$description": "Light mode semantic values that are not plain scale references.",
3
+ "bg": {
4
+ "$type": "color",
5
+ "surface": {
6
+ "$value": "{color.white}",
7
+ "$description": "Cards, sheets (raised by lightness in dark mode)."
8
+ },
9
+ "raised": { "$value": "{color.white}", "$description": "Popovers and menus." },
10
+ "overlay": {
11
+ "$type": "color",
12
+ "$value": { "colorSpace": "oklch", "components": [0.16, 0.02, 275], "alpha": 0.45, "hex": "#0b0d16" },
13
+ "$description": "Modal scrim.",
14
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.02, "p3": [0.0432, 0.0491, 0.083] } }
15
+ }
16
+ },
17
+ "selection": { "bg": { "$type": "color", "$value": "{scale.accent.a5}", "$description": "::selection" } },
18
+ "material": {
19
+ "$description": "Glass backgrounds, light mode (report 3.6). Alphas are raised where needed so fg.default keeps 4.5:1 over pure black and pure white backdrops.",
20
+ "thin": {
21
+ "bg": {
22
+ "$type": "color",
23
+ "$value": { "colorSpace": "oklch", "components": [0.99, 0.003, 275], "alpha": 0.62, "hex": "#fbfcfe" },
24
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.003, "p3": [0.9848, 0.9865, 0.9945] } }
25
+ }
26
+ },
27
+ "regular": {
28
+ "bg": {
29
+ "$type": "color",
30
+ "$value": { "colorSpace": "oklch", "components": [0.99, 0.003, 275], "alpha": 0.72, "hex": "#fbfcfe" },
31
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.003, "p3": [0.9848, 0.9865, 0.9945] } }
32
+ }
33
+ },
34
+ "thick": {
35
+ "bg": {
36
+ "$type": "color",
37
+ "$value": { "colorSpace": "oklch", "components": [0.99, 0.003, 275], "alpha": 0.84, "hex": "#fbfcfe" },
38
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.003, "p3": [0.9848, 0.9865, 0.9945] } }
39
+ }
40
+ },
41
+ "chrome": {
42
+ "bg": {
43
+ "$type": "color",
44
+ "$value": { "colorSpace": "oklch", "components": [0.99, 0.003, 275], "alpha": 0.72, "hex": "#fbfcfe" },
45
+ "$description": "Glass controls: material-regular plus a specular edge and elevation 2.",
46
+ "$extensions": { "com.urnextdoor.und": { "srgbChroma": 0.003, "p3": [0.9848, 0.9865, 0.9945] } }
47
+ },
48
+ "highlight": {
49
+ "$type": "color",
50
+ "$value": { "colorSpace": "srgb", "components": [1, 1, 1], "alpha": 0.5, "hex": "#ffffff" },
51
+ "$description": "Inset 1px specular edge."
52
+ }
53
+ }
54
+ },
55
+ "shadow": {
56
+ "$type": "shadow",
57
+ "$description": "Light elevation: two layers tinted with the neutral hue, a tight contact shadow plus a soft ambient one (report 3.5).",
58
+ "0": {
59
+ "$value": [
60
+ {
61
+ "color": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0, "hex": "#000000" },
62
+ "offsetX": { "value": 0, "unit": "px" },
63
+ "offsetY": { "value": 0, "unit": "px" },
64
+ "blur": { "value": 0, "unit": "px" },
65
+ "spread": { "value": 0, "unit": "px" }
66
+ }
67
+ ],
68
+ "$description": "Flat."
69
+ },
70
+ "1": {
71
+ "$value": [
72
+ {
73
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.06, "hex": "#13151f" },
74
+ "offsetX": { "value": 0, "unit": "px" },
75
+ "offsetY": { "value": 1, "unit": "px" },
76
+ "blur": { "value": 2, "unit": "px" },
77
+ "spread": { "value": 0, "unit": "px" }
78
+ },
79
+ {
80
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.08, "hex": "#13151f" },
81
+ "offsetX": { "value": 0, "unit": "px" },
82
+ "offsetY": { "value": 1, "unit": "px" },
83
+ "blur": { "value": 3, "unit": "px" },
84
+ "spread": { "value": 0, "unit": "px" }
85
+ }
86
+ ],
87
+ "$description": "Cards, raised buttons."
88
+ },
89
+ "2": {
90
+ "$value": [
91
+ {
92
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.06, "hex": "#13151f" },
93
+ "offsetX": { "value": 0, "unit": "px" },
94
+ "offsetY": { "value": 2, "unit": "px" },
95
+ "blur": { "value": 4, "unit": "px" },
96
+ "spread": { "value": 0, "unit": "px" }
97
+ },
98
+ {
99
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.1, "hex": "#13151f" },
100
+ "offsetX": { "value": 0, "unit": "px" },
101
+ "offsetY": { "value": 4, "unit": "px" },
102
+ "blur": { "value": 12, "unit": "px" },
103
+ "spread": { "value": 0, "unit": "px" }
104
+ }
105
+ ],
106
+ "$description": "Dropdowns, popovers."
107
+ },
108
+ "3": {
109
+ "$value": [
110
+ {
111
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.06, "hex": "#13151f" },
112
+ "offsetX": { "value": 0, "unit": "px" },
113
+ "offsetY": { "value": 4, "unit": "px" },
114
+ "blur": { "value": 8, "unit": "px" },
115
+ "spread": { "value": 0, "unit": "px" }
116
+ },
117
+ {
118
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.12, "hex": "#13151f" },
119
+ "offsetX": { "value": 0, "unit": "px" },
120
+ "offsetY": { "value": 12, "unit": "px" },
121
+ "blur": { "value": 24, "unit": "px" },
122
+ "spread": { "value": 0, "unit": "px" }
123
+ }
124
+ ],
125
+ "$description": "Sticky headers, FAB."
126
+ },
127
+ "4": {
128
+ "$value": [
129
+ {
130
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.08, "hex": "#13151f" },
131
+ "offsetX": { "value": 0, "unit": "px" },
132
+ "offsetY": { "value": 8, "unit": "px" },
133
+ "blur": { "value": 16, "unit": "px" },
134
+ "spread": { "value": 0, "unit": "px" }
135
+ },
136
+ {
137
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.16, "hex": "#13151f" },
138
+ "offsetX": { "value": 0, "unit": "px" },
139
+ "offsetY": { "value": 24, "unit": "px" },
140
+ "blur": { "value": 48, "unit": "px" },
141
+ "spread": { "value": 0, "unit": "px" }
142
+ }
143
+ ],
144
+ "$description": "Dialogs, sheets."
145
+ },
146
+ "5": {
147
+ "$value": [
148
+ {
149
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.1, "hex": "#13151f" },
150
+ "offsetX": { "value": 0, "unit": "px" },
151
+ "offsetY": { "value": 16, "unit": "px" },
152
+ "blur": { "value": 32, "unit": "px" },
153
+ "spread": { "value": 0, "unit": "px" }
154
+ },
155
+ {
156
+ "color": { "colorSpace": "oklch", "components": [0.2, 0.02, 275], "alpha": 0.2, "hex": "#13151f" },
157
+ "offsetX": { "value": 0, "unit": "px" },
158
+ "offsetY": { "value": 40, "unit": "px" },
159
+ "blur": { "value": 80, "unit": "px" },
160
+ "spread": { "value": 0, "unit": "px" }
161
+ }
162
+ ],
163
+ "$description": "Command palette, spotlight."
164
+ }
165
+ }
166
+ }