@und-ui/tokens 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -2
  3. package/dist/android/values/und_colors.xml +91 -0
  4. package/dist/android/values/und_dimens.xml +93 -0
  5. package/dist/android/values-night/und_colors.xml +91 -0
  6. package/dist/css/base.css +2335 -0
  7. package/dist/css/motion.css +223 -0
  8. package/dist/css/themes/kesar.css +68 -0
  9. package/dist/css/themes/mitti.css +84 -0
  10. package/dist/css/themes/neem.css +84 -0
  11. package/dist/css/themes/raat.css +507 -0
  12. package/dist/css/themes/sutra.css +109 -0
  13. package/dist/css/themes/ujala.css +67 -0
  14. package/dist/css/tokens.css +3167 -0
  15. package/dist/dart/und_tokens.dart +3223 -0
  16. package/dist/js/contexts.d.ts +2 -0
  17. package/dist/js/contexts.js +3 -0
  18. package/dist/js/index.d.ts +1883 -0
  19. package/dist/js/index.js +2230 -0
  20. package/dist/json/flat/kesar.dark.json +737 -0
  21. package/dist/json/flat/kesar.darkMore.json +737 -0
  22. package/dist/json/flat/kesar.light.json +737 -0
  23. package/dist/json/flat/kesar.lightMore.json +737 -0
  24. package/dist/json/flat/mitti.dark.json +737 -0
  25. package/dist/json/flat/mitti.darkMore.json +737 -0
  26. package/dist/json/flat/mitti.light.json +737 -0
  27. package/dist/json/flat/mitti.lightMore.json +737 -0
  28. package/dist/json/flat/neem.dark.json +737 -0
  29. package/dist/json/flat/neem.darkMore.json +737 -0
  30. package/dist/json/flat/neem.light.json +737 -0
  31. package/dist/json/flat/neem.lightMore.json +737 -0
  32. package/dist/json/flat/raat.dark.json +737 -0
  33. package/dist/json/flat/raat.darkMore.json +737 -0
  34. package/dist/json/flat/sutra.dark.json +738 -0
  35. package/dist/json/flat/sutra.darkMore.json +738 -0
  36. package/dist/json/flat/sutra.light.json +738 -0
  37. package/dist/json/flat/sutra.lightMore.json +738 -0
  38. package/dist/json/flat/ujala.dark.json +737 -0
  39. package/dist/json/flat/ujala.darkMore.json +737 -0
  40. package/dist/json/flat/ujala.light.json +737 -0
  41. package/dist/json/flat/ujala.lightMore.json +737 -0
  42. package/dist/json/nested/kesar.dark.json +885 -0
  43. package/dist/json/nested/kesar.darkMore.json +885 -0
  44. package/dist/json/nested/kesar.light.json +885 -0
  45. package/dist/json/nested/kesar.lightMore.json +885 -0
  46. package/dist/json/nested/mitti.dark.json +885 -0
  47. package/dist/json/nested/mitti.darkMore.json +885 -0
  48. package/dist/json/nested/mitti.light.json +885 -0
  49. package/dist/json/nested/mitti.lightMore.json +885 -0
  50. package/dist/json/nested/neem.dark.json +885 -0
  51. package/dist/json/nested/neem.darkMore.json +885 -0
  52. package/dist/json/nested/neem.light.json +885 -0
  53. package/dist/json/nested/neem.lightMore.json +885 -0
  54. package/dist/json/nested/raat.dark.json +885 -0
  55. package/dist/json/nested/raat.darkMore.json +885 -0
  56. package/dist/json/nested/sutra.dark.json +886 -0
  57. package/dist/json/nested/sutra.darkMore.json +886 -0
  58. package/dist/json/nested/sutra.light.json +886 -0
  59. package/dist/json/nested/sutra.lightMore.json +886 -0
  60. package/dist/json/nested/ujala.dark.json +885 -0
  61. package/dist/json/nested/ujala.darkMore.json +885 -0
  62. package/dist/json/nested/ujala.light.json +885 -0
  63. package/dist/json/nested/ujala.lightMore.json +885 -0
  64. package/dist/kotlin/UndTokens.kt +2870 -0
  65. package/dist/lib/build/contexts.d.ts +13 -0
  66. package/dist/lib/build/contexts.js +20 -0
  67. package/dist/lib/build/css-values.d.ts +31 -0
  68. package/dist/lib/build/css-values.js +191 -0
  69. package/dist/lib/build/formats/css.d.ts +43 -0
  70. package/dist/lib/build/formats/css.js +380 -0
  71. package/dist/lib/build/formats/dart.d.ts +9 -0
  72. package/dist/lib/build/formats/dart.js +342 -0
  73. package/dist/lib/build/formats/js.d.ts +29 -0
  74. package/dist/lib/build/formats/js.js +297 -0
  75. package/dist/lib/build/formats/kotlin.d.ts +8 -0
  76. package/dist/lib/build/formats/kotlin.js +232 -0
  77. package/dist/lib/build/formats/react-native.d.ts +2 -0
  78. package/dist/lib/build/formats/react-native.js +208 -0
  79. package/dist/lib/build/formats/style-dictionary.d.ts +8 -0
  80. package/dist/lib/build/formats/style-dictionary.js +163 -0
  81. package/dist/lib/build/formats/swift.d.ts +8 -0
  82. package/dist/lib/build/formats/swift.js +395 -0
  83. package/dist/lib/build/formats/tailwind.d.ts +9 -0
  84. package/dist/lib/build/formats/tailwind.js +105 -0
  85. package/dist/lib/build/index.d.ts +12 -0
  86. package/dist/lib/build/index.js +133 -0
  87. package/dist/lib/build/materialize.d.ts +102 -0
  88. package/dist/lib/build/materialize.js +170 -0
  89. package/dist/lib/build/native-model.d.ts +46 -0
  90. package/dist/lib/build/native-model.js +177 -0
  91. package/dist/lib/color/contrast.d.ts +24 -0
  92. package/dist/lib/color/contrast.js +95 -0
  93. package/dist/lib/color/convert.d.ts +39 -0
  94. package/dist/lib/color/convert.js +91 -0
  95. package/dist/lib/color/pairs.d.ts +29 -0
  96. package/dist/lib/color/pairs.js +90 -0
  97. package/dist/lib/color/palette.d.ts +118 -0
  98. package/dist/lib/color/palette.js +199 -0
  99. package/dist/lib/color/scales.d.ts +18 -0
  100. package/dist/lib/color/scales.js +115 -0
  101. package/dist/lib/dtcg/engine.d.ts +75 -0
  102. package/dist/lib/dtcg/engine.js +395 -0
  103. package/dist/lib/dtcg/format-json.d.ts +1 -0
  104. package/dist/lib/dtcg/format-json.js +59 -0
  105. package/dist/lib/dtcg/types.d.ts +124 -0
  106. package/dist/lib/dtcg/types.js +54 -0
  107. package/dist/lib/index.d.ts +20 -0
  108. package/dist/lib/index.js +14 -0
  109. package/dist/lib/motion/spring.d.ts +40 -0
  110. package/dist/lib/motion/spring.js +129 -0
  111. package/dist/lib/source/generate.d.ts +28 -0
  112. package/dist/lib/source/generate.js +468 -0
  113. package/dist/lib/themes/definitions.d.ts +43 -0
  114. package/dist/lib/themes/definitions.js +140 -0
  115. package/dist/react-native/index.d.ts +130 -0
  116. package/dist/react-native/index.js +15 -0
  117. package/dist/react-native/tokens.d.ts +2 -0
  118. package/dist/react-native/tokens.js +4413 -0
  119. package/dist/scss/_variables.scss +738 -0
  120. package/dist/scss/_vars.scss +857 -0
  121. package/dist/scss/kesar.dark.scss +738 -0
  122. package/dist/scss/kesar.darkMore.scss +738 -0
  123. package/dist/scss/kesar.light.scss +738 -0
  124. package/dist/scss/kesar.lightMore.scss +738 -0
  125. package/dist/scss/mitti.dark.scss +738 -0
  126. package/dist/scss/mitti.darkMore.scss +738 -0
  127. package/dist/scss/mitti.light.scss +738 -0
  128. package/dist/scss/mitti.lightMore.scss +738 -0
  129. package/dist/scss/neem.dark.scss +738 -0
  130. package/dist/scss/neem.darkMore.scss +738 -0
  131. package/dist/scss/neem.light.scss +738 -0
  132. package/dist/scss/neem.lightMore.scss +738 -0
  133. package/dist/scss/raat.dark.scss +738 -0
  134. package/dist/scss/raat.darkMore.scss +738 -0
  135. package/dist/scss/sutra.dark.scss +739 -0
  136. package/dist/scss/sutra.darkMore.scss +739 -0
  137. package/dist/scss/sutra.light.scss +739 -0
  138. package/dist/scss/sutra.lightMore.scss +739 -0
  139. package/dist/scss/ujala.dark.scss +738 -0
  140. package/dist/scss/ujala.darkMore.scss +738 -0
  141. package/dist/scss/ujala.light.scss +738 -0
  142. package/dist/scss/ujala.lightMore.scss +738 -0
  143. package/dist/swift/UndTokens.swift +4117 -0
  144. package/dist/tailwind/und.css +586 -0
  145. package/package.json +84 -3
  146. package/tokens/contrast/more.tokens.json +46 -0
  147. package/tokens/density/comfortable.tokens.json +64 -0
  148. package/tokens/density/compact.tokens.json +68 -0
  149. package/tokens/density/touch.tokens.json +64 -0
  150. package/tokens/modes/dark.tokens.json +197 -0
  151. package/tokens/modes/light.tokens.json +166 -0
  152. package/tokens/motion/reduced.tokens.json +119 -0
  153. package/tokens/primitives/color.dark.tokens.json +2001 -0
  154. package/tokens/primitives/color.light.tokens.json +2077 -0
  155. package/tokens/primitives/dimension.tokens.json +181 -0
  156. package/tokens/primitives/motion.tokens.json +41 -0
  157. package/tokens/primitives/spring.tokens.json +138 -0
  158. package/tokens/primitives/typography.tokens.json +107 -0
  159. package/tokens/semantic/bridge.tokens.json +52 -0
  160. package/tokens/semantic/color.tokens.json +129 -0
  161. package/tokens/semantic/layout.tokens.json +84 -0
  162. package/tokens/semantic/motion.tokens.json +111 -0
  163. package/tokens/semantic/scale.tokens.json +66 -0
  164. package/tokens/semantic/typography.tokens.json +281 -0
  165. package/tokens/themes/kesar.tokens.json +105 -0
  166. package/tokens/themes/mitti.tokens.json +123 -0
  167. package/tokens/themes/neem.tokens.json +123 -0
  168. package/tokens/themes/raat.tokens.json +104 -0
  169. package/tokens/themes/sutra.tokens.json +126 -0
  170. package/tokens/themes/ujala.tokens.json +96 -0
  171. package/tokens/transparency/reduced.tokens.json +30 -0
  172. package/tokens/und.resolver.json +83 -0
@@ -0,0 +1,119 @@
1
+ {
2
+ "$description": "Reduced motion (report 4.6). Themes and characters cannot loosen these rules. Values are never scaled by tempo.",
3
+ "motion": {
4
+ "press": {
5
+ "$type": "duration",
6
+ "$value": { "value": 0, "unit": "ms" },
7
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
8
+ },
9
+ "hover": {
10
+ "$type": "duration",
11
+ "$value": { "value": 0, "unit": "ms" },
12
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
13
+ },
14
+ "hover-out": {
15
+ "$type": "duration",
16
+ "$value": { "value": 0, "unit": "ms" },
17
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
18
+ },
19
+ "tooltip-enter": {
20
+ "$type": "duration",
21
+ "$value": { "value": 0, "unit": "ms" },
22
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
23
+ },
24
+ "tooltip-exit": {
25
+ "$type": "duration",
26
+ "$value": { "value": 0, "unit": "ms" },
27
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
28
+ },
29
+ "menu-enter": {
30
+ "$type": "duration",
31
+ "$value": { "value": 0, "unit": "ms" },
32
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
33
+ },
34
+ "menu-exit": {
35
+ "$type": "duration",
36
+ "$value": { "value": 0, "unit": "ms" },
37
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
38
+ },
39
+ "dialog-enter": {
40
+ "$type": "duration",
41
+ "$value": { "value": 0, "unit": "ms" },
42
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
43
+ },
44
+ "dialog-exit": {
45
+ "$type": "duration",
46
+ "$value": { "value": 0, "unit": "ms" },
47
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
48
+ },
49
+ "sheet-enter": {
50
+ "$type": "duration",
51
+ "$value": { "value": 0, "unit": "ms" },
52
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
53
+ },
54
+ "sheet-exit": {
55
+ "$type": "duration",
56
+ "$value": { "value": 0, "unit": "ms" },
57
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
58
+ },
59
+ "toast-enter": {
60
+ "$type": "duration",
61
+ "$value": { "value": 0, "unit": "ms" },
62
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
63
+ },
64
+ "toast-exit": {
65
+ "$type": "duration",
66
+ "$value": { "value": 0, "unit": "ms" },
67
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
68
+ },
69
+ "scrim": {
70
+ "$type": "duration",
71
+ "$value": { "value": 0, "unit": "ms" },
72
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
73
+ },
74
+ "page": {
75
+ "$type": "duration",
76
+ "$value": { "value": 150, "unit": "ms" },
77
+ "$description": "Large transitions become a 150ms cross-fade, never instant.",
78
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
79
+ },
80
+ "page-exit": {
81
+ "$type": "duration",
82
+ "$value": { "value": 150, "unit": "ms" },
83
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
84
+ },
85
+ "reveal": {
86
+ "$type": "duration",
87
+ "$value": { "value": 0, "unit": "ms" },
88
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
89
+ },
90
+ "celebrate": {
91
+ "$type": "duration",
92
+ "$value": { "value": 0, "unit": "ms" },
93
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
94
+ },
95
+ "crossfade": {
96
+ "$type": "duration",
97
+ "$value": { "value": 0, "unit": "ms" },
98
+ "$description": "Fine pointer: instant. CSS switches to crossfade-touch (200ms) on coarse pointers.",
99
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
100
+ },
101
+ "spinner": {
102
+ "$type": "duration",
103
+ "$value": { "value": 1600, "unit": "ms" },
104
+ "$description": "Spinners keep turning at half speed.",
105
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
106
+ },
107
+ "shimmer": {
108
+ "$type": "duration",
109
+ "$value": { "value": 0, "unit": "ms" },
110
+ "$description": "Loops stop.",
111
+ "$extensions": { "com.urnextdoor.und": { "tempo": false } }
112
+ },
113
+ "spatial": { "$type": "number", "$value": 0 },
114
+ "loop": { "$type": "number", "$value": 0 },
115
+ "press-scale": { "$type": "number", "$value": 1 },
116
+ "press-scale-card": { "$type": "number", "$value": 1 },
117
+ "drag-scale": { "$type": "number", "$value": 1 }
118
+ }
119
+ }