@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,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.designtokens.org/schemas/2025.10/resolver.json",
|
|
3
|
+
"name": "UND UI tokens",
|
|
4
|
+
"version": "2025.10",
|
|
5
|
+
"description": "Resolution order: base, mode, theme, contrast, density, transparency, motion. Theme overrides are mode- and contrast-independent; Raat (dark-only) pulls in the dark mode sources itself; Sutra pulls in compact density as its default.",
|
|
6
|
+
"sets": {
|
|
7
|
+
"base": {
|
|
8
|
+
"description": "Primitives and the semantic layer.",
|
|
9
|
+
"sources": [
|
|
10
|
+
{ "$ref": "primitives/dimension.tokens.json" },
|
|
11
|
+
{ "$ref": "primitives/typography.tokens.json" },
|
|
12
|
+
{ "$ref": "primitives/motion.tokens.json" },
|
|
13
|
+
{ "$ref": "primitives/spring.tokens.json" },
|
|
14
|
+
{ "$ref": "semantic/scale.tokens.json" },
|
|
15
|
+
{ "$ref": "semantic/color.tokens.json" },
|
|
16
|
+
{ "$ref": "semantic/layout.tokens.json" },
|
|
17
|
+
{ "$ref": "semantic/typography.tokens.json" },
|
|
18
|
+
{ "$ref": "semantic/motion.tokens.json" },
|
|
19
|
+
{ "$ref": "semantic/bridge.tokens.json" }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"modifiers": {
|
|
24
|
+
"mode": {
|
|
25
|
+
"description": "Colour scheme.",
|
|
26
|
+
"contexts": {
|
|
27
|
+
"light": [{ "$ref": "primitives/color.light.tokens.json" }, { "$ref": "modes/light.tokens.json" }],
|
|
28
|
+
"dark": [{ "$ref": "primitives/color.dark.tokens.json" }, { "$ref": "modes/dark.tokens.json" }]
|
|
29
|
+
},
|
|
30
|
+
"default": "light"
|
|
31
|
+
},
|
|
32
|
+
"theme": {
|
|
33
|
+
"description": "The six UND UI themes.",
|
|
34
|
+
"contexts": {
|
|
35
|
+
"ujala": [{ "$ref": "themes/ujala.tokens.json" }],
|
|
36
|
+
"kesar": [{ "$ref": "themes/kesar.tokens.json" }],
|
|
37
|
+
"neem": [{ "$ref": "themes/neem.tokens.json" }],
|
|
38
|
+
"mitti": [{ "$ref": "themes/mitti.tokens.json" }],
|
|
39
|
+
"raat": [
|
|
40
|
+
{ "$ref": "primitives/color.dark.tokens.json" },
|
|
41
|
+
{ "$ref": "modes/dark.tokens.json" },
|
|
42
|
+
{ "$ref": "themes/raat.tokens.json" }
|
|
43
|
+
],
|
|
44
|
+
"sutra": [{ "$ref": "themes/sutra.tokens.json" }, { "$ref": "density/compact.tokens.json" }]
|
|
45
|
+
},
|
|
46
|
+
"default": "ujala"
|
|
47
|
+
},
|
|
48
|
+
"contrast": {
|
|
49
|
+
"description": "prefers-contrast: more / Increase Contrast.",
|
|
50
|
+
"contexts": { "standard": [], "more": [{ "$ref": "contrast/more.tokens.json" }] },
|
|
51
|
+
"default": "standard"
|
|
52
|
+
},
|
|
53
|
+
"density": {
|
|
54
|
+
"description": "auto keeps the theme default (comfortable, or compact for Sutra).",
|
|
55
|
+
"contexts": {
|
|
56
|
+
"auto": [],
|
|
57
|
+
"comfortable": [{ "$ref": "density/comfortable.tokens.json" }],
|
|
58
|
+
"compact": [{ "$ref": "density/compact.tokens.json" }],
|
|
59
|
+
"touch": [{ "$ref": "density/touch.tokens.json" }]
|
|
60
|
+
},
|
|
61
|
+
"default": "auto"
|
|
62
|
+
},
|
|
63
|
+
"transparency": {
|
|
64
|
+
"description": "prefers-reduced-transparency / Reduce Transparency.",
|
|
65
|
+
"contexts": { "full": [], "reduced": [{ "$ref": "transparency/reduced.tokens.json" }] },
|
|
66
|
+
"default": "full"
|
|
67
|
+
},
|
|
68
|
+
"motion": {
|
|
69
|
+
"description": "prefers-reduced-motion / Reduce Motion.",
|
|
70
|
+
"contexts": { "full": [], "reduced": [{ "$ref": "motion/reduced.tokens.json" }] },
|
|
71
|
+
"default": "full"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"resolutionOrder": [
|
|
75
|
+
{ "$ref": "#/sets/base" },
|
|
76
|
+
{ "$ref": "#/modifiers/mode" },
|
|
77
|
+
{ "$ref": "#/modifiers/theme" },
|
|
78
|
+
{ "$ref": "#/modifiers/contrast" },
|
|
79
|
+
{ "$ref": "#/modifiers/density" },
|
|
80
|
+
{ "$ref": "#/modifiers/transparency" },
|
|
81
|
+
{ "$ref": "#/modifiers/motion" }
|
|
82
|
+
]
|
|
83
|
+
}
|