@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mayank
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,346 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @und-ui/tokens
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Design tokens for **UND UI**, the MIT-licensed, all-platform UI library from Ur Next Door.
|
|
4
|
+
|
|
5
|
+
One source, many outputs. The tokens are written in [DTCG 2025.10](https://www.designtokens.org/tr/2025.10/format/) JSON, resolved through a DTCG Resolver document, and compiled to:
|
|
6
|
+
|
|
7
|
+
- CSS custom properties
|
|
8
|
+
- SCSS
|
|
9
|
+
- JS/TS
|
|
10
|
+
- JSON
|
|
11
|
+
- a Tailwind v4 preset
|
|
12
|
+
- Swift (SwiftUI)
|
|
13
|
+
- Kotlin (Jetpack Compose)
|
|
14
|
+
- Dart (Flutter)
|
|
15
|
+
- React Native
|
|
16
|
+
- Android XML
|
|
17
|
+
|
|
18
|
+
The colour palettes and spring curves come from a generator in `src/`, so anyone can reproduce them.
|
|
19
|
+
|
|
20
|
+
## What's inside
|
|
21
|
+
|
|
22
|
+
| Path | What it is |
|
|
23
|
+
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| `tokens/und.resolver.json` | DTCG 2025.10 Resolver. It resolves in this order: base → `mode` → `theme` → `contrast` → `density` → `transparency` → `motion`. |
|
|
25
|
+
| `tokens/primitives/` | The primitive layer: 15 OKLCH scales × 12 steps in light and dark, with alpha twins and an on-solid `contrast` colour per scale. Also spacing, sizes, radius, border widths, breakpoints, containers, z-index, font stacks and weights, durations, easings, tempo bounds and springs. |
|
|
26
|
+
| `tokens/semantic/` | The semantic layer: scale aliases, surfaces, text, borders, accent, focus, status, links, data-viz, glass, layout, type scale and motion aliases. |
|
|
27
|
+
| `tokens/modes/` | Values that differ between light and dark mode: surfaces, scrim, selection, glass backgrounds and shadows. |
|
|
28
|
+
| `tokens/themes/` | Overrides for the six themes. |
|
|
29
|
+
| `tokens/contrast/`, `density/`, `transparency/`, `motion/` | The accessibility and density modifiers. |
|
|
30
|
+
| `src/color/` | The OKLCH palette generator with P3 and then sRGB gamut fitting, plus WCAG 2.x contrast, APCA (advisory only) and the documented contrast pairs. |
|
|
31
|
+
| `src/motion/spring.ts` | Spring maths: response and ζ to stiffness and damping, overshoot, settle time, `linear()` sampling and a cubic-bezier fallback. |
|
|
32
|
+
| `src/themes/definitions.ts` | Theme seeds. |
|
|
33
|
+
| `src/dtcg/engine.ts` | A strict DTCG loader, validator and resolver. |
|
|
34
|
+
| `src/build/` | Output formats. Style Dictionary v5 builds the SCSS, JSON and Android XML. In-house formats build the CSS cascade, JS/d.ts, Tailwind, Swift, Kotlin, Dart and RN. |
|
|
35
|
+
| `dist/` | Build output (generated, not committed). |
|
|
36
|
+
|
|
37
|
+
**Counts**
|
|
38
|
+
|
|
39
|
+
- 754 resolved tokens per context:
|
|
40
|
+
- 523 colours
|
|
41
|
+
- 107 dimensions
|
|
42
|
+
- 38 durations
|
|
43
|
+
- 36 numbers
|
|
44
|
+
- 14 typography styles
|
|
45
|
+
- 10 font families
|
|
46
|
+
- 9 easings
|
|
47
|
+
- 6 springs
|
|
48
|
+
- 6 shadows
|
|
49
|
+
- 5 font weights
|
|
50
|
+
- 1,661 token definitions across 26 source files.
|
|
51
|
+
- 857 CSS custom properties.
|
|
52
|
+
- 22 colour contexts (themes × modes × contrast).
|
|
53
|
+
- 352 resolver contexts in total, all validated.
|
|
54
|
+
|
|
55
|
+
### Themes
|
|
56
|
+
|
|
57
|
+
| Theme | Accent | Neutral | Radius | Tempo / character | Density / glass | Modes |
|
|
58
|
+
| ----------------- | --------------------------------------------------- | ------------------------- | ------ | ----------------- | -------------------- | ------------- |
|
|
59
|
+
| `ujala` (default) | UND Indigo `#504bf2`, white text | Slate Dusk (h 275) | 1.0 | 1.0 / standard | comfortable / chrome | light, dark |
|
|
60
|
+
| `kesar` | Saffron `#f68001`, dark text, neutral-12 focus ring | warm (h 60) | 1.25 | 1.0 / expressive | comfortable / on | light, dark |
|
|
61
|
+
| `neem` | Green `#018241` | sage (h 150) | 1.0 | 1.0 / crisp | comfortable / off | light, dark |
|
|
62
|
+
| `mitti` | Terracotta `#bb4d2a`, serif headings | sand (h 70), cream canvas | 1.5 | 1.15 / standard | comfortable / off | light, dark |
|
|
63
|
+
| `raat` | Indigo, step-11 glow | midnight (L1 0.13) | 1.25 | 1.0 / expressive | comfortable / on | **dark only** |
|
|
64
|
+
| `sutra` | Neutral-12 solid, blue links | pure grey | 0.5 | 0.85 / crisp | **compact** / off | light, dark |
|
|
65
|
+
|
|
66
|
+
Every theme also gets:
|
|
67
|
+
|
|
68
|
+
- a `contrast: more` variant
|
|
69
|
+
- reduced transparency
|
|
70
|
+
- reduced motion
|
|
71
|
+
- forced-colours handling
|
|
72
|
+
|
|
73
|
+
Themes cannot loosen any of these accessibility modes.
|
|
74
|
+
|
|
75
|
+
## Use it
|
|
76
|
+
|
|
77
|
+
### CSS
|
|
78
|
+
|
|
79
|
+
```css
|
|
80
|
+
@import '@und-ui/tokens/css'; /* everything: dist/css/tokens.css */
|
|
81
|
+
/* or: base.css plus only the themes you ship */
|
|
82
|
+
@import '@und-ui/tokens/css/base.css';
|
|
83
|
+
@import '@und-ui/tokens/css/themes/kesar.css';
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
<html
|
|
88
|
+
data-und-theme="kesar"
|
|
89
|
+
data-und-mode="system"
|
|
90
|
+
data-und-contrast="auto"
|
|
91
|
+
data-und-density="auto"
|
|
92
|
+
data-und-transparency="auto"
|
|
93
|
+
data-und-motion="auto"
|
|
94
|
+
></html>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
```css
|
|
98
|
+
.card {
|
|
99
|
+
background: var(--und-bg-surface);
|
|
100
|
+
color: var(--und-fg-default);
|
|
101
|
+
border: var(--und-border-width-thin) solid var(--und-border-subtle);
|
|
102
|
+
border-radius: var(--und-shape-card);
|
|
103
|
+
box-shadow: var(--und-shadow-1);
|
|
104
|
+
font: var(--und-text-body-md-font);
|
|
105
|
+
transition: background-color var(--und-motion-hover) var(--und-motion-ease-enter);
|
|
106
|
+
}
|
|
107
|
+
.button:focus-visible {
|
|
108
|
+
outline: var(--und-focus-width) solid var(--und-focus-ring);
|
|
109
|
+
outline-offset: var(--und-focus-offset);
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**How the cascade works**
|
|
114
|
+
|
|
115
|
+
- Every block uses a zero-specificity `:where()` selector. Blocks are emitted in resolver order, so the result is the same as resolving the DTCG sources. The test suite checks more than 100,000 values across all 352 contexts.
|
|
116
|
+
- Any element with `data-und-theme`, `data-und-mode` or `data-und-contrast` starts a scope. One level of nesting inherits the attributes the element doesn't set. For example, a `data-und-mode="dark"` island inside a Kesar page stays Kesar.
|
|
117
|
+
- **Automatic modes**: `prefers-color-scheme`, `prefers-contrast: more`, `prefers-reduced-motion`, `prefers-reduced-transparency`, `pointer: coarse` (switches to touch density) and `forced-colors: active` (maps to system colours). Safari has no reduced-transparency media query, so use `data-und-transparency="reduced"` or `data-und-glass="off"` there.
|
|
118
|
+
- **Colour**: colours are sRGB hex by default. Inside `@media (color-gamut: p3)` and `@supports (color: color(display-p3 1 1 1))`, out-of-sRGB colours switch to `color(display-p3 …)`.
|
|
119
|
+
- **Indic text**: `:lang(hi|mr|ne|sa|bn|gu|pa|ta|te|kn|ml|or|…)` switches every `--und-text-*-lh` to its Indic value, sets tracking to 0 and narrows the prose measure to 60ch.
|
|
120
|
+
- **Knobs**:
|
|
121
|
+
- `--und-radius-factor` scales every radius.
|
|
122
|
+
- `--und-motion-tempo` scales every duration. It is clamped to 0.75–1.5 and multiplied by 0.9 on fine-pointer desktops.
|
|
123
|
+
|
|
124
|
+
### Motion
|
|
125
|
+
|
|
126
|
+
`css/motion.css` is the motion subset (it is also included in `tokens.css`):
|
|
127
|
+
|
|
128
|
+
- Durations: `--und-duration-*` primitives and `--und-motion-*` semantic aliases. All are `calc(ms × tempo)`.
|
|
129
|
+
- Easings: `--und-ease-*` and the theme-character `--und-motion-ease-enter` / `--und-motion-ease-move`.
|
|
130
|
+
- Springs: `--und-spring-{snap,smooth,snappy,gentle,bouncy,expressive}` hold `linear()` curves with 40 points. `-duration` holds the settle time × tempo, and `-fallback` holds the cubic-bezier fallback. That fallback is swapped in under `@supports not (transition-timing-function: linear(0, 1))`.
|
|
131
|
+
|
|
132
|
+
Reduced motion follows report section 4.6:
|
|
133
|
+
|
|
134
|
+
- Durations become 0.
|
|
135
|
+
- Page transitions become a 150 ms cross-fade.
|
|
136
|
+
- Coarse pointers get an opacity-only cross-fade of up to 200 ms (`--und-motion-crossfade`).
|
|
137
|
+
- `--und-motion-spatial` and `--und-motion-loop` become 0, and press scales become 1.
|
|
138
|
+
- Spinners run at half speed.
|
|
139
|
+
|
|
140
|
+
These values are never scaled by tempo.
|
|
141
|
+
|
|
142
|
+
```css
|
|
143
|
+
.sheet {
|
|
144
|
+
transition: transform var(--und-spring-gentle-duration) var(--und-spring-gentle);
|
|
145
|
+
}
|
|
146
|
+
.menu[open] {
|
|
147
|
+
animation: menu-in var(--und-motion-menu-enter) var(--und-motion-ease-enter);
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### SCSS
|
|
152
|
+
|
|
153
|
+
```scss
|
|
154
|
+
@use '@und-ui/tokens/scss/vars' as *; // $und-bg-surface: var(--und-bg-surface) (theme-aware)
|
|
155
|
+
@use '@und-ui/tokens/scss/variables' as v; // raw values, Ujala light
|
|
156
|
+
// Every context also has its own file: scss/<theme>.<light|dark|lightMore|darkMore>.scss
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### JS / TypeScript
|
|
160
|
+
|
|
161
|
+
```ts
|
|
162
|
+
import { tokens, vars, getTokens, cssVar, themes } from '@und-ui/tokens';
|
|
163
|
+
|
|
164
|
+
tokens.bg.surface; // '#ffffff' (Ujala, light)
|
|
165
|
+
vars.bg.surface; // 'var(--und-bg-surface)' for CSS-in-JS that follows the theme
|
|
166
|
+
getTokens({
|
|
167
|
+
theme: 'kesar',
|
|
168
|
+
mode: 'dark',
|
|
169
|
+
contrast: 'more',
|
|
170
|
+
density: 'compact',
|
|
171
|
+
motion: 'reduced',
|
|
172
|
+
});
|
|
173
|
+
tokens.spring.snappy; // { stiffness: 322.3, damping: 30.52, mass: 1, easing: 'linear(…)', … }
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
`getTokens()` returns exactly what the CSS computes for the same attributes, with radius factor and tempo applied. It is fully typed through `UndTokens`.
|
|
177
|
+
|
|
178
|
+
JSON versions are in `dist/json/flat/<theme>.<variant>.json` and `dist/json/nested/…`.
|
|
179
|
+
|
|
180
|
+
### Tailwind v4
|
|
181
|
+
|
|
182
|
+
```css
|
|
183
|
+
@import 'tailwindcss';
|
|
184
|
+
@import '@und-ui/tokens/css';
|
|
185
|
+
@import '@und-ui/tokens/tailwind';
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**Utilities you get**:
|
|
189
|
+
|
|
190
|
+
- `bg-bg-surface`, `text-fg-muted`, `border-border-control`, `bg-accent-solid`, `text-status-danger-fg`
|
|
191
|
+
- `rounded-control`, `rounded-card`
|
|
192
|
+
- `shadow-1` to `shadow-5`
|
|
193
|
+
- `font-heading`, `text-body-md` (fluid size plus line height)
|
|
194
|
+
- `ease-enter`, `ease-spring-snappy`
|
|
195
|
+
- `p-4` = 1rem, because Tailwind's `--spacing` is the UND 4px base
|
|
196
|
+
|
|
197
|
+
**Variants**: `und-dark:`, `und-more:`, `und-compact:` and `theme-kesar:` (one per theme).
|
|
198
|
+
|
|
199
|
+
Utilities point at the CSS variables, so they follow the active theme and mode.
|
|
200
|
+
|
|
201
|
+
### Swift (SwiftUI)
|
|
202
|
+
|
|
203
|
+
```swift
|
|
204
|
+
// dist/swift/UndTokens.swift (Foundation value types + #if canImport(SwiftUI) layer)
|
|
205
|
+
let theme = UndTheme.kesar
|
|
206
|
+
let colors = UndColors(theme.colors) // dynamic Colors: light/dark × Increase Contrast, Display P3
|
|
207
|
+
Text("नमस्ते").font(UndTypography.bodyMd.font) // Dynamic Type style
|
|
208
|
+
.foregroundStyle(colors.fgDefault)
|
|
209
|
+
.padding(UndSpacing.s4)
|
|
210
|
+
.animation(theme.motion.springSnappy.animation, value: isOn)
|
|
211
|
+
RootView().undTheme(.raat) // environment value; dark-only themes force .dark
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Kotlin (Jetpack Compose)
|
|
215
|
+
|
|
216
|
+
```kotlin
|
|
217
|
+
// dist/kotlin/UndTokens.kt, package dev.undui.tokens
|
|
218
|
+
val colors = UndColors.of(UndThemeName.Neem, dark = isSystemInDarkTheme(), highContrast = false)
|
|
219
|
+
val spec = UndThemeSpec.Neem
|
|
220
|
+
Text("Hello", style = UndTypography.bodyMd, color = colors.fgDefault)
|
|
221
|
+
Modifier.padding(UndSpacing.s4).clip(RoundedCornerShape(spec.radii.md))
|
|
222
|
+
animateFloatAsState(1f, spring(spec.motion.springSnappy.dampingRatio, spec.motion.springSnappy.stiffness))
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Provide `UndThemeSpec` and `UndColors` through your own `CompositionLocal`s. Wide-gamut colours use `ColorSpaces.DisplayP3`.
|
|
226
|
+
|
|
227
|
+
### Dart (Flutter, no Material dependency)
|
|
228
|
+
|
|
229
|
+
```dart
|
|
230
|
+
// dist/dart/und_tokens.dart
|
|
231
|
+
UndTheme(
|
|
232
|
+
data: UndThemeData.of(UndThemeName.mitti,
|
|
233
|
+
brightness: MediaQuery.platformBrightnessOf(context),
|
|
234
|
+
highContrast: MediaQuery.highContrastOf(context)),
|
|
235
|
+
child: child,
|
|
236
|
+
);
|
|
237
|
+
final t = UndTheme.of(context);
|
|
238
|
+
Container(color: t.colors.bgSurface, padding: const EdgeInsets.all(UndSpacing.s4));
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
`UndThemeData` and `UndColors` implement `==`, `hashCode` and `lerp`. Wide-gamut colours use `Color.from(colorSpace: ColorSpace.displayP3)`.
|
|
242
|
+
|
|
243
|
+
### React Native
|
|
244
|
+
|
|
245
|
+
```ts
|
|
246
|
+
import { getTheme } from '@und-ui/tokens/react-native';
|
|
247
|
+
const t = getTheme({ theme: 'ujala', scheme: colorScheme, highContrast });
|
|
248
|
+
<View style={[{ backgroundColor: t.color.bgSurface, padding: t.spacing.s4, borderRadius: t.radius.md }, t.shadows['2']]} />
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
The values are platform-aware:
|
|
252
|
+
|
|
253
|
+
- Shadows use iOS `shadow*` props, Android `elevation` and web `boxShadow`.
|
|
254
|
+
- `minTarget` is 44 on iOS and 48 on Android.
|
|
255
|
+
- `hairlineWidth` is set per platform.
|
|
256
|
+
- The monospace family is chosen per OS.
|
|
257
|
+
|
|
258
|
+
Colours are sRGB hex.
|
|
259
|
+
|
|
260
|
+
### Android XML (Views interop)
|
|
261
|
+
|
|
262
|
+
`dist/android/values/und_colors.xml`, `values-night/und_colors.xml` and `values/und_dimens.xml` hold the default theme's semantic roles. Use the Compose output for other themes.
|
|
263
|
+
|
|
264
|
+
### Component bridge (v0 names)
|
|
265
|
+
|
|
266
|
+
The v0 components in `@und-ui/core` and `@und-ui/css` (`und-button`) read an older set of names. `tokens/semantic/bridge.tokens.json` maps each of them to the semantic layer. The full set:
|
|
267
|
+
|
|
268
|
+
- `--und-color-{accent,neutral,success,warning,danger}` and `--und-color-on-*`
|
|
269
|
+
- `--und-radius-control`, `--und-border-width`
|
|
270
|
+
- `--und-focus-ring-{color,width,offset}`
|
|
271
|
+
- `--und-target-min-coarse`, `--und-duration-spin`
|
|
272
|
+
- `--und-disabled-opacity`, `--und-line-height-body`
|
|
273
|
+
|
|
274
|
+
**How the tones are mapped.** The button uses one tone for two jobs: as a fill, with on-tone text on top, and as text on the page (outline, ghost and link variants). To keep both jobs at AA, tones map to step 11 and on-tones map to `bg.canvas`. Sutra maps its tone to neutral-12. The contrast matrix checks these pairs too.
|
|
275
|
+
|
|
276
|
+
**Limits.**
|
|
277
|
+
|
|
278
|
+
- These names are CSS and JS only.
|
|
279
|
+
- New code should read `accent.solid`, `accent.fg`, `status.*` and `focus.*` directly.
|
|
280
|
+
- Kesar's saffron fill with dark text needs those semantic names, so a v0 Kesar button renders saffron step 11.
|
|
281
|
+
|
|
282
|
+
`test/consumers.test.ts` fails if `core`, `css` or `tailwind` read a `--und-*` variable that the tokens don't declare. Per-component hooks (`--und-button-*`) are exempt because they are optional overrides with fallbacks.
|
|
283
|
+
|
|
284
|
+
## Contrast (WCAG 2.2 AA, enforced)
|
|
285
|
+
|
|
286
|
+
`pnpm test` and `pnpm contrast` check 104–108 documented pairs in each of the 22 contexts:
|
|
287
|
+
|
|
288
|
+
| Kind | Threshold | Pairs |
|
|
289
|
+
| ---------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
290
|
+
| Text | 4.5:1 | `fg.default` and `fg.muted` on every surface; `fg.on-accent` and `scale.accent.contrast` on the accent solid band (steps 9 and 10, `accent.solid`, `accent.solid-hover`); `accent.fg` and links on surfaces and on `accent.bg`; status fg, fg-strong and on-solid; `fg.default` on every glass material over pure black and pure white backdrops |
|
|
291
|
+
| Large text | 3:1 | `fg.subtle` |
|
|
292
|
+
| UI / focus | 3:1 | `border.control` and `focus.ring` on canvas, surface, subtle, raised and muted; danger-solid border; check mark on accent solid |
|
|
293
|
+
|
|
294
|
+
**Results**: every pair passes AA in every theme, mode and contrast context.
|
|
295
|
+
|
|
296
|
+
| Theme | Min text (light / dark) | Min UI (light / dark) | Min with contrast `more` (text / UI) |
|
|
297
|
+
| ----- | ----------------------- | --------------------- | ------------------------------------ |
|
|
298
|
+
| ujala | 4.90 / 4.58 | 3.00 / 3.01 | 4.71 / 3.72 |
|
|
299
|
+
| kesar | 4.90 / 4.57 | 3.01 / 3.01 | 4.90 / 3.72 |
|
|
300
|
+
| neem | 4.90 / 4.90 | 3.04 / 3.03 | 4.90 / 3.70 |
|
|
301
|
+
| mitti | 4.90 / 4.90 | 3.01 / 3.01 | 4.90 / 3.72 |
|
|
302
|
+
| raat | (dark only) 4.59 | 3.02 | 4.71 / 3.93 |
|
|
303
|
+
| sutra | 4.90 / 4.90 | 3.00 / 3.00 | 4.90 / 3.73 |
|
|
304
|
+
|
|
305
|
+
The tightest pairs are:
|
|
306
|
+
|
|
307
|
+
- `border.control` on `bg.muted` (light) and on `bg.raised` (dark). The neutral step 9 is solved to clear 3:1 on steps 1–3.
|
|
308
|
+
- Dark glass over a pure-white backdrop.
|
|
309
|
+
|
|
310
|
+
APCA (0.0.98G) is reported as an advisory only and never fails the build. Run `pnpm contrast --all` for every pair.
|
|
311
|
+
|
|
312
|
+
## Scripts
|
|
313
|
+
|
|
314
|
+
| Script | What it does |
|
|
315
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
316
|
+
| `pnpm generate` | Regenerates the computed sources: palettes, springs, mode values, scale aliases, themes and the resolver. `--check` fails if the committed files have drifted. |
|
|
317
|
+
| `pnpm build` | Validates and resolves every context, then writes `dist/` and compiles `dist/lib` (the generator API, exported as `@und-ui/tokens/generator`). |
|
|
318
|
+
| `pnpm test` | Runs vitest: DTCG validation (all 352 contexts, references, cycles, value shapes), palette tests (report reproduction, monotonic lightness, guarantees, alpha twins), springs (constants, settle time, overshoot, `linear()`), the contrast matrix, output snapshots, postcss parsing, a CSS-cascade-vs-resolver check, `getTokens()` vs the resolver, and compiling Sass, Tailwind v4 and the `.d.ts` files. |
|
|
319
|
+
| `pnpm lint` | Runs ESLint and `tsc --noEmit` (strict). |
|
|
320
|
+
| `pnpm contrast` | Prints the contrast matrix. |
|
|
321
|
+
| `pnpm verify:native` | Runs `flutter analyze` on the Dart output. When Docker is running, it also runs `swiftc -typecheck` on the Swift output and compiles the Kotlin output against Compose API stubs. |
|
|
322
|
+
|
|
323
|
+
## Where this differs from the design-language report
|
|
324
|
+
|
|
325
|
+
Each difference is computed and tested.
|
|
326
|
+
|
|
327
|
+
1. **Neutral step 9 is solved, not fixed.** It is solved to give at least 3:1 against steps 1–3, so input borders also pass on cards and popovers.
|
|
328
|
+
- Light changes from L 0.655 to 0.641, and dark from 0.500 to 0.521.
|
|
329
|
+
- The report's values gave 2.86:1 on light `bg.muted` and 2.98:1 on dark `bg.surface`.
|
|
330
|
+
- Step 10 follows step 9.
|
|
331
|
+
2. **Dark step 10 goes darker for six white-text hues**: green, red, blue, teal, terracotta and pink. The recipe's lighter hover dropped white text to between 3.95 and 4.19:1, so the hover now moves away from the text (seed − 0.045). Indigo keeps the lighter hover at 4.69:1.
|
|
332
|
+
3. **The focus ring is accent step 11, not step 9.** Step 11 clears 4.5:1 on steps 1–3 in both modes, so the ring always clears 3:1 without a rule that depends on the mode. For Indigo, step 11 looks almost the same as step 9 (`#4b4dd5` vs `#504bf2`). Kesar and Sutra keep neutral-12, as the report specifies.
|
|
333
|
+
4. **Dark `material-thin` alpha rises from 0.55 to 0.65.** At 0.55, `fg.default` measured 3.3:1 over a white backdrop, which breaks the report's own glass legibility floor.
|
|
334
|
+
5. **Spring settle times are analytic.** They are 368, 588, 488, 882, 819 and 890 ms, against 411, 619, 524, 889, 834 and 965 ms in the report. Snappy's overshoot is 0.63%, against 0.5%. The stiffness and damping values match the report exactly.
|
|
335
|
+
6. **Light step 10 follows the stated recipe (seed − 0.04).** The report's tables for Indigo, Saffron and Amber are 0.005 off their own recipe. Every hex value is within 3/255 of the report.
|
|
336
|
+
7. **Alpha twins are solved per channel against white and black.** This is the Radix method, so each twin reproduces its solid exactly. The report's neutral alpha row was matched on luminance only.
|
|
337
|
+
8. **Name and format changes:**
|
|
338
|
+
- The tempo knob is `--und-motion-tempo`.
|
|
339
|
+
- Links are `--und-link-default` and `--und-link-visited`.
|
|
340
|
+
- Glass tokens are split into `-bg`, `-border`, `-blur`, `-saturate` and `-filter`.
|
|
341
|
+
- Springs are DTCG `transition` tokens, because `object` isn't a DTCG type. Their physics are in `$extensions["com.urnextdoor.und"]`.
|
|
342
|
+
- Letter spacing is stored as px at the maximum size in `$value`, plus `em` in `$extensions`. This is because DTCG dimensions only allow px and rem.
|
|
343
|
+
|
|
344
|
+
## Licence
|
|
345
|
+
|
|
346
|
+
MIT. The font families named in the tokens (Inter, Noto, Anek, Geist) are OFL and ship separately in `@und-ui/fonts`.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
|
|
3
|
+
<!--
|
|
4
|
+
Generated by @und-ui/tokens via Style Dictionary v5. Do not edit.
|
|
5
|
+
Default theme (Ujala). Use the Compose output for other themes.
|
|
6
|
+
-->
|
|
7
|
+
<resources>
|
|
8
|
+
<color name="und_accent_bg">#ffeff2fe</color>
|
|
9
|
+
<color name="und_accent_bg_active">#ffdae1fc</color>
|
|
10
|
+
<color name="und_accent_bg_hover">#ffe5eafc</color>
|
|
11
|
+
<color name="und_accent_border">#ffbcc7f9</color>
|
|
12
|
+
<color name="und_accent_fg">#ff4b4dd5</color>
|
|
13
|
+
<color name="und_accent_fg_strong">#ff1a1a58</color>
|
|
14
|
+
<color name="und_accent_solid">#ff504bf2</color>
|
|
15
|
+
<color name="und_accent_solid_hover">#ff473de4</color>
|
|
16
|
+
<color name="und_bg_canvas">#fffcfdfe</color>
|
|
17
|
+
<color name="und_bg_inverse">#ff23252c</color>
|
|
18
|
+
<color name="und_bg_muted">#fff1f2f6</color>
|
|
19
|
+
<color name="und_bg_muted_active">#ffe0e2e7</color>
|
|
20
|
+
<color name="und_bg_muted_hover">#ffe9eaef</color>
|
|
21
|
+
<color name="und_bg_overlay">#730b0d16</color>
|
|
22
|
+
<color name="und_bg_raised">#ffffffff</color>
|
|
23
|
+
<color name="und_bg_subtle">#fff9f9fb</color>
|
|
24
|
+
<color name="und_bg_surface">#ffffffff</color>
|
|
25
|
+
<color name="und_border_control">#ff898c96</color>
|
|
26
|
+
<color name="und_border_control_hover">#ff7d808a</color>
|
|
27
|
+
<color name="und_border_default">#ffc8c9d1</color>
|
|
28
|
+
<color name="und_border_strong">#ffb2b4bd</color>
|
|
29
|
+
<color name="und_border_subtle">#ffd6d8dd</color>
|
|
30
|
+
<color name="und_dataviz_1">#ff504bf2</color>
|
|
31
|
+
<color name="und_dataviz_2">#fff68001</color>
|
|
32
|
+
<color name="und_dataviz_3">#ff027c7c</color>
|
|
33
|
+
<color name="und_dataviz_4">#ffca358b</color>
|
|
34
|
+
<color name="und_dataviz_5">#ff018241</color>
|
|
35
|
+
<color name="und_dataviz_6">#ff0172cd</color>
|
|
36
|
+
<color name="und_dataviz_7">#ffbb4d2a</color>
|
|
37
|
+
<color name="und_dataviz_8">#fff9b306</color>
|
|
38
|
+
<color name="und_dataviz_axis">#3700052a</color>
|
|
39
|
+
<color name="und_dataviz_gridline">#16020e47</color>
|
|
40
|
+
<color name="und_fg_default">#ff23252c</color>
|
|
41
|
+
<color name="und_fg_disabled">#ffb2b4bd</color>
|
|
42
|
+
<color name="und_fg_inverse">#fffcfdfe</color>
|
|
43
|
+
<color name="und_fg_muted">#ff62646e</color>
|
|
44
|
+
<color name="und_fg_on_accent">#ffffffff</color>
|
|
45
|
+
<color name="und_fg_subtle">#ff7d808a</color>
|
|
46
|
+
<color name="und_focus_ring">#ff4b4dd5</color>
|
|
47
|
+
<color name="und_link_default">#ff4b4dd5</color>
|
|
48
|
+
<color name="und_link_visited">#ffa62d72</color>
|
|
49
|
+
<color name="und_material_chrome_bg">#b8fbfcfe</color>
|
|
50
|
+
<color name="und_material_chrome_border">#1f01113a</color>
|
|
51
|
+
<color name="und_material_chrome_highlight">#80ffffff</color>
|
|
52
|
+
<color name="und_material_regular_bg">#b8fbfcfe</color>
|
|
53
|
+
<color name="und_material_regular_border">#1f01113a</color>
|
|
54
|
+
<color name="und_material_thick_bg">#d6fbfcfe</color>
|
|
55
|
+
<color name="und_material_thick_border">#29000d2c</color>
|
|
56
|
+
<color name="und_material_thin_bg">#9efbfcfe</color>
|
|
57
|
+
<color name="und_material_thin_border">#16020e47</color>
|
|
58
|
+
<color name="und_selection_bg">#250232ea</color>
|
|
59
|
+
<color name="und_status_danger_bg">#fffdefed</color>
|
|
60
|
+
<color name="und_status_danger_bg_hover">#fffae5e2</color>
|
|
61
|
+
<color name="und_status_danger_border">#fff2bab4</color>
|
|
62
|
+
<color name="und_status_danger_fg">#ffb81e27</color>
|
|
63
|
+
<color name="und_status_danger_fg_strong">#ff4b0609</color>
|
|
64
|
+
<color name="und_status_danger_on_solid">#ffffffff</color>
|
|
65
|
+
<color name="und_status_danger_solid">#ffdd1d2c</color>
|
|
66
|
+
<color name="und_status_danger_solid_hover">#ffcd0221</color>
|
|
67
|
+
<color name="und_status_info_bg">#ffecf3fb</color>
|
|
68
|
+
<color name="und_status_info_bg_hover">#ffe1ecf9</color>
|
|
69
|
+
<color name="und_status_info_border">#ffb0cdef</color>
|
|
70
|
+
<color name="und_status_info_fg">#ff0065b7</color>
|
|
71
|
+
<color name="und_status_info_fg_strong">#ff00254a</color>
|
|
72
|
+
<color name="und_status_info_on_solid">#ffffffff</color>
|
|
73
|
+
<color name="und_status_info_solid">#ff0172cd</color>
|
|
74
|
+
<color name="und_status_info_solid_hover">#ff0167b9</color>
|
|
75
|
+
<color name="und_status_success_bg">#ffedf5ef</color>
|
|
76
|
+
<color name="und_status_success_bg_hover">#ffe2eee5</color>
|
|
77
|
+
<color name="und_status_success_border">#ffb4d3bb</color>
|
|
78
|
+
<color name="und_status_success_fg">#ff03793c</color>
|
|
79
|
+
<color name="und_status_success_fg_strong">#ff012e13</color>
|
|
80
|
+
<color name="und_status_success_on_solid">#ffffffff</color>
|
|
81
|
+
<color name="und_status_success_solid">#ff018241</color>
|
|
82
|
+
<color name="und_status_success_solid_hover">#ff037439</color>
|
|
83
|
+
<color name="und_status_warning_bg">#fff7f2ea</color>
|
|
84
|
+
<color name="und_status_warning_bg_hover">#fff1e9dd</color>
|
|
85
|
+
<color name="und_status_warning_border">#ffdcc7a5</color>
|
|
86
|
+
<color name="und_status_warning_fg">#ff835d02</color>
|
|
87
|
+
<color name="und_status_warning_fg_strong">#ff332201</color>
|
|
88
|
+
<color name="und_status_warning_on_solid">#ff332201</color>
|
|
89
|
+
<color name="und_status_warning_solid">#fff9b306</color>
|
|
90
|
+
<color name="und_status_warning_solid_hover">#ffe9a703</color>
|
|
91
|
+
</resources>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
|
|
3
|
+
<!--
|
|
4
|
+
Generated by @und-ui/tokens via Style Dictionary v5. Do not edit.
|
|
5
|
+
Default theme (Ujala). Use the Compose output for other themes.
|
|
6
|
+
-->
|
|
7
|
+
<resources>
|
|
8
|
+
<dimen name="und_border_width_hairline">1dp</dimen>
|
|
9
|
+
<dimen name="und_border_width_heavy">3dp</dimen>
|
|
10
|
+
<dimen name="und_border_width_thick">2dp</dimen>
|
|
11
|
+
<dimen name="und_border_width_thin">1dp</dimen>
|
|
12
|
+
<dimen name="und_control_gap">8dp</dimen>
|
|
13
|
+
<dimen name="und_control_height_lg">48dp</dimen>
|
|
14
|
+
<dimen name="und_control_height_md">40dp</dimen>
|
|
15
|
+
<dimen name="und_control_height_sm">32dp</dimen>
|
|
16
|
+
<dimen name="und_control_height_xl">56dp</dimen>
|
|
17
|
+
<dimen name="und_control_height_xs">24dp</dimen>
|
|
18
|
+
<dimen name="und_control_padding_x">12dp</dimen>
|
|
19
|
+
<dimen name="und_focus_offset">2dp</dimen>
|
|
20
|
+
<dimen name="und_focus_width">2dp</dimen>
|
|
21
|
+
<dimen name="und_gap_inline_lg">16dp</dimen>
|
|
22
|
+
<dimen name="und_gap_inline_md">12dp</dimen>
|
|
23
|
+
<dimen name="und_gap_inline_sm">8dp</dimen>
|
|
24
|
+
<dimen name="und_gap_inline_xs">4dp</dimen>
|
|
25
|
+
<dimen name="und_gap_stack_lg">24dp</dimen>
|
|
26
|
+
<dimen name="und_gap_stack_md">16dp</dimen>
|
|
27
|
+
<dimen name="und_gap_stack_sm">8dp</dimen>
|
|
28
|
+
<dimen name="und_gap_stack_xl">32dp</dimen>
|
|
29
|
+
<dimen name="und_inset_card">16dp</dimen>
|
|
30
|
+
<dimen name="und_inset_card_lg">24dp</dimen>
|
|
31
|
+
<dimen name="und_inset_control_x">12dp</dimen>
|
|
32
|
+
<dimen name="und_radius_2xl">16dp</dimen>
|
|
33
|
+
<dimen name="und_radius_3xl">24dp</dimen>
|
|
34
|
+
<dimen name="und_radius_full">9999dp</dimen>
|
|
35
|
+
<dimen name="und_radius_lg">8dp</dimen>
|
|
36
|
+
<dimen name="und_radius_md">6dp</dimen>
|
|
37
|
+
<dimen name="und_radius_none">0dp</dimen>
|
|
38
|
+
<dimen name="und_radius_sm">4dp</dimen>
|
|
39
|
+
<dimen name="und_radius_xl">12dp</dimen>
|
|
40
|
+
<dimen name="und_radius_xs">2dp</dimen>
|
|
41
|
+
<dimen name="und_shape_card">12dp</dimen>
|
|
42
|
+
<dimen name="und_shape_chip">9999dp</dimen>
|
|
43
|
+
<dimen name="und_shape_control">6dp</dimen>
|
|
44
|
+
<dimen name="und_shape_dialog">16dp</dimen>
|
|
45
|
+
<dimen name="und_shape_popover">8dp</dimen>
|
|
46
|
+
<dimen name="und_size_avatar_lg">40dp</dimen>
|
|
47
|
+
<dimen name="und_size_avatar_md">32dp</dimen>
|
|
48
|
+
<dimen name="und_size_avatar_profile_lg">96dp</dimen>
|
|
49
|
+
<dimen name="und_size_avatar_profile_md">72dp</dimen>
|
|
50
|
+
<dimen name="und_size_avatar_sm">24dp</dimen>
|
|
51
|
+
<dimen name="und_size_avatar_xl">56dp</dimen>
|
|
52
|
+
<dimen name="und_size_avatar_xs">20dp</dimen>
|
|
53
|
+
<dimen name="und_size_control_compact_lg">40dp</dimen>
|
|
54
|
+
<dimen name="und_size_control_compact_md">32dp</dimen>
|
|
55
|
+
<dimen name="und_size_control_compact_sm">28dp</dimen>
|
|
56
|
+
<dimen name="und_size_control_compact_xl">48dp</dimen>
|
|
57
|
+
<dimen name="und_size_control_compact_xs">20dp</dimen>
|
|
58
|
+
<dimen name="und_size_control_touch_lg">48dp</dimen>
|
|
59
|
+
<dimen name="und_size_control_touch_md">44dp</dimen>
|
|
60
|
+
<dimen name="und_size_control_touch_sm">40dp</dimen>
|
|
61
|
+
<dimen name="und_size_control_touch_xl">56dp</dimen>
|
|
62
|
+
<dimen name="und_size_control_touch_xs">32dp</dimen>
|
|
63
|
+
<dimen name="und_size_control_lg">48dp</dimen>
|
|
64
|
+
<dimen name="und_size_control_md">40dp</dimen>
|
|
65
|
+
<dimen name="und_size_control_sm">32dp</dimen>
|
|
66
|
+
<dimen name="und_size_control_xl">56dp</dimen>
|
|
67
|
+
<dimen name="und_size_control_xs">24dp</dimen>
|
|
68
|
+
<dimen name="und_size_icon_lg">24dp</dimen>
|
|
69
|
+
<dimen name="und_size_icon_md">20dp</dimen>
|
|
70
|
+
<dimen name="und_size_icon_sm">16dp</dimen>
|
|
71
|
+
<dimen name="und_size_icon_xl">32dp</dimen>
|
|
72
|
+
<dimen name="und_size_icon_xs">12dp</dimen>
|
|
73
|
+
<dimen name="und_size_target_android">48dp</dimen>
|
|
74
|
+
<dimen name="und_size_target_fine">24dp</dimen>
|
|
75
|
+
<dimen name="und_size_target_touch">44dp</dimen>
|
|
76
|
+
<dimen name="und_space_0">0dp</dimen>
|
|
77
|
+
<dimen name="und_space_1">4dp</dimen>
|
|
78
|
+
<dimen name="und_space_2">8dp</dimen>
|
|
79
|
+
<dimen name="und_space_3">12dp</dimen>
|
|
80
|
+
<dimen name="und_space_4">16dp</dimen>
|
|
81
|
+
<dimen name="und_space_5">20dp</dimen>
|
|
82
|
+
<dimen name="und_space_6">24dp</dimen>
|
|
83
|
+
<dimen name="und_space_8">32dp</dimen>
|
|
84
|
+
<dimen name="und_space_10">40dp</dimen>
|
|
85
|
+
<dimen name="und_space_12">48dp</dimen>
|
|
86
|
+
<dimen name="und_space_16">64dp</dimen>
|
|
87
|
+
<dimen name="und_space_20">80dp</dimen>
|
|
88
|
+
<dimen name="und_space_24">96dp</dimen>
|
|
89
|
+
<dimen name="und_space_32">128dp</dimen>
|
|
90
|
+
<dimen name="und_space_0_5">2dp</dimen>
|
|
91
|
+
<dimen name="und_space_1_5">6dp</dimen>
|
|
92
|
+
<dimen name="und_space_px">1dp</dimen>
|
|
93
|
+
</resources>
|