@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.
- package/LICENSE +21 -0
- package/README.md +345 -2
- package/dist/android/values/und_colors.xml +91 -0
- package/dist/android/values/und_dimens.xml +93 -0
- package/dist/android/values-night/und_colors.xml +91 -0
- package/dist/css/base.css +2335 -0
- package/dist/css/motion.css +223 -0
- package/dist/css/themes/kesar.css +68 -0
- package/dist/css/themes/mitti.css +84 -0
- package/dist/css/themes/neem.css +84 -0
- package/dist/css/themes/raat.css +507 -0
- package/dist/css/themes/sutra.css +109 -0
- package/dist/css/themes/ujala.css +67 -0
- package/dist/css/tokens.css +3167 -0
- package/dist/dart/und_tokens.dart +3223 -0
- package/dist/js/contexts.d.ts +2 -0
- package/dist/js/contexts.js +3 -0
- package/dist/js/index.d.ts +1883 -0
- package/dist/js/index.js +2230 -0
- package/dist/json/flat/kesar.dark.json +737 -0
- package/dist/json/flat/kesar.darkMore.json +737 -0
- package/dist/json/flat/kesar.light.json +737 -0
- package/dist/json/flat/kesar.lightMore.json +737 -0
- package/dist/json/flat/mitti.dark.json +737 -0
- package/dist/json/flat/mitti.darkMore.json +737 -0
- package/dist/json/flat/mitti.light.json +737 -0
- package/dist/json/flat/mitti.lightMore.json +737 -0
- package/dist/json/flat/neem.dark.json +737 -0
- package/dist/json/flat/neem.darkMore.json +737 -0
- package/dist/json/flat/neem.light.json +737 -0
- package/dist/json/flat/neem.lightMore.json +737 -0
- package/dist/json/flat/raat.dark.json +737 -0
- package/dist/json/flat/raat.darkMore.json +737 -0
- package/dist/json/flat/sutra.dark.json +738 -0
- package/dist/json/flat/sutra.darkMore.json +738 -0
- package/dist/json/flat/sutra.light.json +738 -0
- package/dist/json/flat/sutra.lightMore.json +738 -0
- package/dist/json/flat/ujala.dark.json +737 -0
- package/dist/json/flat/ujala.darkMore.json +737 -0
- package/dist/json/flat/ujala.light.json +737 -0
- package/dist/json/flat/ujala.lightMore.json +737 -0
- package/dist/json/nested/kesar.dark.json +885 -0
- package/dist/json/nested/kesar.darkMore.json +885 -0
- package/dist/json/nested/kesar.light.json +885 -0
- package/dist/json/nested/kesar.lightMore.json +885 -0
- package/dist/json/nested/mitti.dark.json +885 -0
- package/dist/json/nested/mitti.darkMore.json +885 -0
- package/dist/json/nested/mitti.light.json +885 -0
- package/dist/json/nested/mitti.lightMore.json +885 -0
- package/dist/json/nested/neem.dark.json +885 -0
- package/dist/json/nested/neem.darkMore.json +885 -0
- package/dist/json/nested/neem.light.json +885 -0
- package/dist/json/nested/neem.lightMore.json +885 -0
- package/dist/json/nested/raat.dark.json +885 -0
- package/dist/json/nested/raat.darkMore.json +885 -0
- package/dist/json/nested/sutra.dark.json +886 -0
- package/dist/json/nested/sutra.darkMore.json +886 -0
- package/dist/json/nested/sutra.light.json +886 -0
- package/dist/json/nested/sutra.lightMore.json +886 -0
- package/dist/json/nested/ujala.dark.json +885 -0
- package/dist/json/nested/ujala.darkMore.json +885 -0
- package/dist/json/nested/ujala.light.json +885 -0
- package/dist/json/nested/ujala.lightMore.json +885 -0
- package/dist/kotlin/UndTokens.kt +2870 -0
- package/dist/lib/build/contexts.d.ts +13 -0
- package/dist/lib/build/contexts.js +20 -0
- package/dist/lib/build/css-values.d.ts +31 -0
- package/dist/lib/build/css-values.js +191 -0
- package/dist/lib/build/formats/css.d.ts +43 -0
- package/dist/lib/build/formats/css.js +380 -0
- package/dist/lib/build/formats/dart.d.ts +9 -0
- package/dist/lib/build/formats/dart.js +342 -0
- package/dist/lib/build/formats/js.d.ts +29 -0
- package/dist/lib/build/formats/js.js +297 -0
- package/dist/lib/build/formats/kotlin.d.ts +8 -0
- package/dist/lib/build/formats/kotlin.js +232 -0
- package/dist/lib/build/formats/react-native.d.ts +2 -0
- package/dist/lib/build/formats/react-native.js +208 -0
- package/dist/lib/build/formats/style-dictionary.d.ts +8 -0
- package/dist/lib/build/formats/style-dictionary.js +163 -0
- package/dist/lib/build/formats/swift.d.ts +8 -0
- package/dist/lib/build/formats/swift.js +395 -0
- package/dist/lib/build/formats/tailwind.d.ts +9 -0
- package/dist/lib/build/formats/tailwind.js +105 -0
- package/dist/lib/build/index.d.ts +12 -0
- package/dist/lib/build/index.js +133 -0
- package/dist/lib/build/materialize.d.ts +102 -0
- package/dist/lib/build/materialize.js +170 -0
- package/dist/lib/build/native-model.d.ts +46 -0
- package/dist/lib/build/native-model.js +177 -0
- package/dist/lib/color/contrast.d.ts +24 -0
- package/dist/lib/color/contrast.js +95 -0
- package/dist/lib/color/convert.d.ts +39 -0
- package/dist/lib/color/convert.js +91 -0
- package/dist/lib/color/pairs.d.ts +29 -0
- package/dist/lib/color/pairs.js +90 -0
- package/dist/lib/color/palette.d.ts +118 -0
- package/dist/lib/color/palette.js +199 -0
- package/dist/lib/color/scales.d.ts +18 -0
- package/dist/lib/color/scales.js +115 -0
- package/dist/lib/dtcg/engine.d.ts +75 -0
- package/dist/lib/dtcg/engine.js +395 -0
- package/dist/lib/dtcg/format-json.d.ts +1 -0
- package/dist/lib/dtcg/format-json.js +59 -0
- package/dist/lib/dtcg/types.d.ts +124 -0
- package/dist/lib/dtcg/types.js +54 -0
- package/dist/lib/index.d.ts +20 -0
- package/dist/lib/index.js +14 -0
- package/dist/lib/motion/spring.d.ts +40 -0
- package/dist/lib/motion/spring.js +129 -0
- package/dist/lib/source/generate.d.ts +28 -0
- package/dist/lib/source/generate.js +468 -0
- package/dist/lib/themes/definitions.d.ts +43 -0
- package/dist/lib/themes/definitions.js +140 -0
- package/dist/react-native/index.d.ts +130 -0
- package/dist/react-native/index.js +15 -0
- package/dist/react-native/tokens.d.ts +2 -0
- package/dist/react-native/tokens.js +4413 -0
- package/dist/scss/_variables.scss +738 -0
- package/dist/scss/_vars.scss +857 -0
- package/dist/scss/kesar.dark.scss +738 -0
- package/dist/scss/kesar.darkMore.scss +738 -0
- package/dist/scss/kesar.light.scss +738 -0
- package/dist/scss/kesar.lightMore.scss +738 -0
- package/dist/scss/mitti.dark.scss +738 -0
- package/dist/scss/mitti.darkMore.scss +738 -0
- package/dist/scss/mitti.light.scss +738 -0
- package/dist/scss/mitti.lightMore.scss +738 -0
- package/dist/scss/neem.dark.scss +738 -0
- package/dist/scss/neem.darkMore.scss +738 -0
- package/dist/scss/neem.light.scss +738 -0
- package/dist/scss/neem.lightMore.scss +738 -0
- package/dist/scss/raat.dark.scss +738 -0
- package/dist/scss/raat.darkMore.scss +738 -0
- package/dist/scss/sutra.dark.scss +739 -0
- package/dist/scss/sutra.darkMore.scss +739 -0
- package/dist/scss/sutra.light.scss +739 -0
- package/dist/scss/sutra.lightMore.scss +739 -0
- package/dist/scss/ujala.dark.scss +738 -0
- package/dist/scss/ujala.darkMore.scss +738 -0
- package/dist/scss/ujala.light.scss +738 -0
- package/dist/scss/ujala.lightMore.scss +738 -0
- package/dist/swift/UndTokens.swift +4117 -0
- package/dist/tailwind/und.css +586 -0
- package/package.json +84 -3
- package/tokens/contrast/more.tokens.json +46 -0
- package/tokens/density/comfortable.tokens.json +64 -0
- package/tokens/density/compact.tokens.json +68 -0
- package/tokens/density/touch.tokens.json +64 -0
- package/tokens/modes/dark.tokens.json +197 -0
- package/tokens/modes/light.tokens.json +166 -0
- package/tokens/motion/reduced.tokens.json +119 -0
- package/tokens/primitives/color.dark.tokens.json +2001 -0
- package/tokens/primitives/color.light.tokens.json +2077 -0
- package/tokens/primitives/dimension.tokens.json +181 -0
- package/tokens/primitives/motion.tokens.json +41 -0
- package/tokens/primitives/spring.tokens.json +138 -0
- package/tokens/primitives/typography.tokens.json +107 -0
- package/tokens/semantic/bridge.tokens.json +52 -0
- package/tokens/semantic/color.tokens.json +129 -0
- package/tokens/semantic/layout.tokens.json +84 -0
- package/tokens/semantic/motion.tokens.json +111 -0
- package/tokens/semantic/scale.tokens.json +66 -0
- package/tokens/semantic/typography.tokens.json +281 -0
- package/tokens/themes/kesar.tokens.json +105 -0
- package/tokens/themes/mitti.tokens.json +123 -0
- package/tokens/themes/neem.tokens.json +123 -0
- package/tokens/themes/raat.tokens.json +104 -0
- package/tokens/themes/sutra.tokens.json +126 -0
- package/tokens/themes/ujala.tokens.json +96 -0
- package/tokens/transparency/reduced.tokens.json +30 -0
- 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
|
+
}
|