@dsn-starter-kit/design-tokens 5.0.0 → 7.0.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/README.md +110 -65
- package/dist/css/scoped/density-default.css +292 -2
- package/dist/css/scoped/density-information-dense.css +291 -3
- package/dist/css/scoped/hero-image.css +635 -0
- package/dist/css/scoped/start-dark.css +744 -175
- package/dist/css/scoped/start-light-hero-image.css +129 -129
- package/dist/css/scoped/start-light.css +742 -173
- package/dist/css/scoped/wireframe-dark.css +735 -162
- package/dist/css/scoped/wireframe-light-hero-image.css +44 -41
- package/dist/css/scoped/wireframe-light.css +735 -162
- package/dist/css/start-dark-default.css +1487 -1542
- package/dist/css/start-dark-information-dense.css +1487 -1542
- package/dist/css/start-light-default.css +1487 -1542
- package/dist/css/start-light-information-dense.css +1487 -1542
- package/dist/css/variables-dark-scoped.css +744 -175
- package/dist/css/variables-dark.css +1487 -1542
- package/dist/css/variables.css +1487 -1542
- package/dist/css/wireframe-dark-default.css +1487 -1538
- package/dist/css/wireframe-dark-information-dense.css +1487 -1538
- package/dist/css/wireframe-light-default.css +1487 -1538
- package/dist/css/wireframe-light-information-dense.css +1487 -1538
- package/dist/js/start-dark-default.d.ts +2 -57
- package/dist/js/start-dark-default.js +4424 -4852
- package/dist/js/start-dark-information-dense.d.ts +2 -57
- package/dist/js/start-dark-information-dense.js +4419 -4857
- package/dist/js/start-light-default.d.ts +2 -57
- package/dist/js/start-light-default.js +4403 -4827
- package/dist/js/start-light-information-dense.d.ts +2 -57
- package/dist/js/start-light-information-dense.js +4396 -4830
- package/dist/js/tokens-dark.cjs +3565 -4868
- package/dist/js/tokens-dark.d.cts +2 -57
- package/dist/js/tokens-dark.d.ts +2 -57
- package/dist/js/tokens-dark.js +4424 -4852
- package/dist/js/tokens.cjs +3543 -4846
- package/dist/js/tokens.d.cts +2 -57
- package/dist/js/tokens.d.ts +2 -57
- package/dist/js/tokens.js +4403 -4827
- package/dist/js/wireframe-dark-default.d.ts +9 -60
- package/dist/js/wireframe-dark-default.js +4289 -4266
- package/dist/js/wireframe-dark-information-dense.d.ts +9 -60
- package/dist/js/wireframe-dark-information-dense.js +4281 -4268
- package/dist/js/wireframe-light-default.d.ts +9 -60
- package/dist/js/wireframe-light-default.js +4289 -4266
- package/dist/js/wireframe-light-information-dense.d.ts +9 -60
- package/dist/js/wireframe-light-information-dense.js +4281 -4268
- package/dist/json/start-dark-default.json +193 -248
- package/dist/json/start-dark-information-dense.json +193 -248
- package/dist/json/start-light-default.json +185 -240
- package/dist/json/start-light-information-dense.json +185 -240
- package/dist/json/themes.json +12 -0
- package/dist/json/token-docs.json +7439 -0
- package/dist/json/tokens-dark.json +193 -248
- package/dist/json/tokens.json +185 -240
- package/dist/json/wireframe-dark-default.json +53 -104
- package/dist/json/wireframe-dark-information-dense.json +53 -104
- package/dist/json/wireframe-light-default.json +53 -104
- package/dist/json/wireframe-light-information-dense.json +53 -104
- package/dist/scss/_start-dark-default.scss +1487 -1542
- package/dist/scss/_start-dark-information-dense.scss +1487 -1542
- package/dist/scss/_start-light-default.scss +1487 -1542
- package/dist/scss/_start-light-information-dense.scss +1487 -1542
- package/dist/scss/_variables-dark.scss +1487 -1542
- package/dist/scss/_variables.scss +1487 -1542
- package/dist/scss/_wireframe-dark-default.scss +1487 -1538
- package/dist/scss/_wireframe-dark-information-dense.scss +1487 -1538
- package/dist/scss/_wireframe-light-default.scss +1487 -1538
- package/dist/scss/_wireframe-light-information-dense.scss +1487 -1538
- package/package.json +21 -35
- package/dist/css/scoped/density-default-fixed-space.css +0 -67
- package/dist/css/start-dark-default-fixed-space.css +0 -1558
- package/dist/css/start-light-default-fixed-space.css +0 -1558
- package/dist/css/wireframe-dark-default-fixed-space.css +0 -1554
- package/dist/css/wireframe-light-default-fixed-space.css +0 -1554
- package/dist/js/start-dark-default-fixed-space.d.ts +0 -1556
- package/dist/js/start-dark-default-fixed-space.js +0 -36339
- package/dist/js/start-light-default-fixed-space.d.ts +0 -1556
- package/dist/js/start-light-default-fixed-space.js +0 -36335
- package/dist/js/wireframe-dark-default-fixed-space.d.ts +0 -1552
- package/dist/js/wireframe-dark-default-fixed-space.js +0 -35876
- package/dist/js/wireframe-light-default-fixed-space.d.ts +0 -1552
- package/dist/js/wireframe-light-default-fixed-space.js +0 -35876
- package/dist/json/start-dark-default-fixed-space.json +0 -1544
- package/dist/json/start-light-default-fixed-space.json +0 -1544
- package/dist/json/wireframe-dark-default-fixed-space.json +0 -1540
- package/dist/json/wireframe-light-default-fixed-space.json +0 -1540
- package/dist/scss/_start-dark-default-fixed-space.scss +0 -1545
- package/dist/scss/_start-light-default-fixed-space.scss +0 -1545
- package/dist/scss/_wireframe-dark-default-fixed-space.scss +0 -1541
- package/dist/scss/_wireframe-light-default-fixed-space.scss +0 -1541
package/README.md
CHANGED
|
@@ -6,26 +6,22 @@ Design tokens for the design system: the single source of truth for colors, typo
|
|
|
6
6
|
|
|
7
7
|
Tokens are organized in a **three-axis configuration model**:
|
|
8
8
|
|
|
9
|
-
| Axis | Values
|
|
10
|
-
| ---------------- |
|
|
11
|
-
| **Theme** | `start`, `wireframe`, ...
|
|
12
|
-
| **Mode** | `light`, `dark`
|
|
13
|
-
| **Project Type** | `default`, `
|
|
9
|
+
| Axis | Values | Affects |
|
|
10
|
+
| ---------------- | ------------------------------ | -------------------------------------------------------- |
|
|
11
|
+
| **Theme** | `start`, `wireframe`, ... | All tokens (typography, spacing, borders, focus, colors) |
|
|
12
|
+
| **Mode** | `light`, `dark` | Only color tokens |
|
|
13
|
+
| **Project Type** | `default`, `information-dense` | Which scales are fluid: font sizes and spacing |
|
|
14
14
|
|
|
15
15
|
This creates a matrix of configurations: **Theme × Mode × Project Type**.
|
|
16
16
|
|
|
17
17
|
```
|
|
18
18
|
start-light-default
|
|
19
|
-
start-light-default-fixed-space
|
|
20
19
|
start-light-information-dense
|
|
21
20
|
start-dark-default
|
|
22
|
-
start-dark-default-fixed-space
|
|
23
21
|
start-dark-information-dense
|
|
24
22
|
wireframe-light-default
|
|
25
|
-
wireframe-light-default-fixed-space
|
|
26
23
|
wireframe-light-information-dense
|
|
27
24
|
wireframe-dark-default
|
|
28
|
-
wireframe-dark-default-fixed-space
|
|
29
25
|
wireframe-dark-information-dense
|
|
30
26
|
```
|
|
31
27
|
|
|
@@ -33,24 +29,25 @@ wireframe-dark-information-dense
|
|
|
33
29
|
|
|
34
30
|
- **Theme**: Defines the visual identity/branding. Different clients or products can have their own theme while sharing the same component library.
|
|
35
31
|
- **Mode**: Light/dark color schemes. Users can switch modes without changing the theme.
|
|
36
|
-
- **Project Type**: Density. `default` lets font sizes and spacing grow with the viewport,
|
|
32
|
+
- **Project Type**: Density. `default` lets font sizes and spacing grow with the viewport, and `information-dense` (dashboards, data tables) keeps both fixed.
|
|
37
33
|
|
|
38
34
|
## Folder Structure
|
|
39
35
|
|
|
40
36
|
```
|
|
41
37
|
src/tokens/
|
|
42
|
-
├── themes/
|
|
43
|
-
│ ├── start/ # Default theme
|
|
38
|
+
├── themes/ # Every folder here is a theme, found by the build
|
|
39
|
+
│ ├── start/ # Default theme, on :root
|
|
44
40
|
│ │ ├── base.json # Typography, min/max font sizes and spacing, sizing, borders, focus
|
|
45
|
-
│ │ ├──
|
|
46
|
-
│ │
|
|
41
|
+
│ │ ├── theme.config.json # Display name and base color per color group, source of the color groups
|
|
42
|
+
│ │ ├── colors-light.json # Light mode colors (color groups generated)
|
|
43
|
+
│ │ └── colors-dark.json # Dark mode colors (color groups generated)
|
|
47
44
|
│ └── wireframe/ # Wireframe/prototype theme
|
|
48
45
|
│ ├── base.json # System fonts, minimal borders
|
|
49
46
|
│ ├── colors-light.json # Grayscale palette
|
|
50
47
|
│ └── colors-dark.json # Inverted grayscale
|
|
51
48
|
├── project-types/
|
|
52
49
|
│ ├── default/
|
|
53
|
-
│ │ ├── typography.json # fluid() font sizes
|
|
50
|
+
│ │ ├── typography.json # fluid() font sizes
|
|
54
51
|
│ │ └── space.json # fluid() spacing
|
|
55
52
|
│ └── information-dense/
|
|
56
53
|
│ ├── typography.json # Fixed font sizes (the min values)
|
|
@@ -78,6 +75,39 @@ src/tokens/
|
|
|
78
75
|
- Each with: bg, border, color × document, subtle, default, hover, active
|
|
79
76
|
- Plus inverse variants for dark backgrounds
|
|
80
77
|
|
|
78
|
+
### Generated Color Groups (`themes/*/theme.config.json`)
|
|
79
|
+
|
|
80
|
+
The color groups of Start are not written by hand. `theme.config.json` sets one base color per group, or a reference to another group, and [`@dsn-starter-kit/theme-engine`](../theme-engine) derives all 30 tokens per group and mode from it, with the WCAG contrast rules (text 4.5:1, borders 3:1, inverse text 4.5:1 on all six inverse backgrounds):
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{
|
|
84
|
+
"colors": {
|
|
85
|
+
"intensity": 1,
|
|
86
|
+
"groups": {
|
|
87
|
+
"neutral": { "base": "#595959" },
|
|
88
|
+
"accent-1": { "base": "oklch(0.468 0.164 255.8)" },
|
|
89
|
+
"accent-2": { "alias": "accent-1" },
|
|
90
|
+
"info": { "alias": "accent-1" }
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
- `base` is any CSS color. Start uses `oklch()` for the colored groups: in hex the hue of the reds and oranges shifts noticeably
|
|
97
|
+
- `alias` makes the group refer to another group token for token, inverse group included. In Start, accent-2, accent-3, action-1, action-2 and info refer to accent-1
|
|
98
|
+
- `intensity` scales the chroma of every group
|
|
99
|
+
- Optional per group, for a theme of your own: `lock` puts the base color exactly on `color-default`, `border-default` and/or `inverse-bg-default` in light mode, and `curves` with `linkedLightness` steer lightness, chroma and hue per group. See the [theme-engine README](../theme-engine/README.md#theme-config). Start uses none of them
|
|
100
|
+
|
|
101
|
+
To change a color, edit `theme.config.json` and run:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
pnpm --filter @dsn-starter-kit/design-tokens generate:colors
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
The script only writes `$value` in `dsn.color.{group}` and `dsn.color.{group}-inverse`. `$type`, `$description`, the key order and every other token in `colors-*.json` (shadow, transparent, focus, form-control, heading, backdrop) stay as they are, so those you edit in the JSON itself. The build runs the script too; in CI it only checks (`validate:colors`) and fails when the JSON does not match the config. The generated JSON is checked in, so the published package does not depend on the engine.
|
|
108
|
+
|
|
109
|
+
A theme without `theme.config.json`, such as Wireframe, keeps hand-written colors.
|
|
110
|
+
|
|
81
111
|
### In Project Type (`project-types/*/`)
|
|
82
112
|
|
|
83
113
|
A project type decides per size whether it grows with the viewport. `fluid({min}, {max})` grows from the min value at 360px to the max value at 1440px; the `dsn/fluid` transform in `src/config/config.js` turns it into a `clamp()`. A plain reference to the min value stays fixed.
|
|
@@ -86,11 +116,10 @@ A project type decides per size whether it grows with the viewport. `fluid({min}
|
|
|
86
116
|
"md": { "$value": "fluid({dsn.text.font-size.min.md}, {dsn.text.font-size.max.md})" }
|
|
87
117
|
```
|
|
88
118
|
|
|
89
|
-
| Project type
|
|
90
|
-
|
|
|
91
|
-
| `default`
|
|
92
|
-
| `
|
|
93
|
-
| `information-dense` | fixed (min) | fixed (min) |
|
|
119
|
+
| Project type | Font sizes | Spacing |
|
|
120
|
+
| ------------------- | ----------- | ----------- |
|
|
121
|
+
| `default` | fluid | fluid |
|
|
122
|
+
| `information-dense` | fixed (min) | fixed (min) |
|
|
94
123
|
|
|
95
124
|
## Installation
|
|
96
125
|
|
|
@@ -113,20 +142,16 @@ pnpm add @dsn-starter-kit/design-tokens
|
|
|
113
142
|
|
|
114
143
|
### Available Configurations
|
|
115
144
|
|
|
116
|
-
| Configuration
|
|
117
|
-
|
|
|
118
|
-
| `start-light-default`
|
|
119
|
-
| `start-light-
|
|
120
|
-
| `start-
|
|
121
|
-
| `start-dark-
|
|
122
|
-
| `
|
|
123
|
-
| `
|
|
124
|
-
| `wireframe-
|
|
125
|
-
| `wireframe-
|
|
126
|
-
| `wireframe-light-information-dense` | Wireframe theme, light mode, fixed text and spacing |
|
|
127
|
-
| `wireframe-dark-default` | Wireframe theme, dark mode, fluid text and spacing |
|
|
128
|
-
| `wireframe-dark-default-fixed-space` | Wireframe theme, dark mode, fluid text, fixed spacing |
|
|
129
|
-
| `wireframe-dark-information-dense` | Wireframe theme, dark mode, fixed text and spacing |
|
|
145
|
+
| Configuration | Description |
|
|
146
|
+
| ----------------------------------- | --------------------------------------------------- |
|
|
147
|
+
| `start-light-default` | Start theme, light mode, fluid text and spacing |
|
|
148
|
+
| `start-light-information-dense` | Start theme, light mode, fixed text and spacing |
|
|
149
|
+
| `start-dark-default` | Start theme, dark mode, fluid text and spacing |
|
|
150
|
+
| `start-dark-information-dense` | Start theme, dark mode, fixed text and spacing |
|
|
151
|
+
| `wireframe-light-default` | Wireframe theme, light mode, fluid text and spacing |
|
|
152
|
+
| `wireframe-light-information-dense` | Wireframe theme, light mode, fixed text and spacing |
|
|
153
|
+
| `wireframe-dark-default` | Wireframe theme, dark mode, fluid text and spacing |
|
|
154
|
+
| `wireframe-dark-information-dense` | Wireframe theme, dark mode, fixed text and spacing |
|
|
130
155
|
|
|
131
156
|
### SCSS
|
|
132
157
|
|
|
@@ -148,7 +173,11 @@ import tokens from '@dsn-starter-kit/design-tokens';
|
|
|
148
173
|
|
|
149
174
|
### Runtime Theme Switching
|
|
150
175
|
|
|
151
|
-
|
|
176
|
+
The simplest way is with classes: import `css` plus the files from `css/scoped/` and set `dsn-theme-{theme}`, `dsn-mode-dark` and `dsn-density-dense` on a container. See "Theming" in [`docs/00-getting-started.md`](../../docs/00-getting-started.md).
|
|
177
|
+
|
|
178
|
+
Each scoped file holds the tokens that differ on its axis plus every token that refers to them, component tokens included, copied from the full configurations. The build derives them in `src/config/scoped.js`, with the rules from `@dsn-starter-kit/theme-engine` (`scoped.ts`), and `tests/scoped-tokens.test.ts` checks in Chromium that the classes give the same values as the full configuration (see DR-2026-18).
|
|
179
|
+
|
|
180
|
+
Alternatively, swap the full configuration CSS file dynamically:
|
|
152
181
|
|
|
153
182
|
```ts
|
|
154
183
|
function loadTheme(theme: string, mode: string, projectType: string) {
|
|
@@ -196,34 +225,55 @@ For existing consumers, these aliases are maintained:
|
|
|
196
225
|
|
|
197
226
|
## Adding a New Theme
|
|
198
227
|
|
|
199
|
-
|
|
228
|
+
A theme is a folder. The build finds every folder in `src/tokens/themes/`, so there is nothing to register.
|
|
200
229
|
|
|
201
|
-
|
|
202
|
-
src/tokens/themes/my-theme/
|
|
203
|
-
├── base.json
|
|
204
|
-
├── colors-light.json
|
|
205
|
-
└── colors-dark.json
|
|
206
|
-
```
|
|
230
|
+
The quickest way to make one is the [theme configurator](https://jeffreylauwers.github.io/design-system-starter-kit/theme-configurator/): set the colors, typography, space, shape, shadow, focus and motion with a live preview, and download the theme as a zip with this folder, or as one CSS file for a project that uses the npm packages. Its [README](../theme-configurator/README.md#thema-integreren) has the steps. By hand:
|
|
207
231
|
|
|
208
|
-
|
|
232
|
+
1. Copy Start as a starting point:
|
|
209
233
|
|
|
210
234
|
```bash
|
|
211
235
|
cp -r src/tokens/themes/start src/tokens/themes/my-theme
|
|
212
236
|
```
|
|
213
237
|
|
|
214
|
-
|
|
238
|
+
A theme folder needs `base.json`, `colors-light.json` and `colors-dark.json`; `theme.config.json` is optional. The folder name is the theme id in class names (`dsn-theme-my-theme`), file names and import paths: lowercase letters, digits and single hyphens, starting with a letter.
|
|
215
239
|
|
|
216
|
-
|
|
217
|
-
|
|
240
|
+
2. Give the theme a display name in `theme.config.json`:
|
|
241
|
+
|
|
242
|
+
```json
|
|
243
|
+
{
|
|
244
|
+
"name": "My theme",
|
|
245
|
+
"colors": { "intensity": 1, "groups": { "...": {} } }
|
|
246
|
+
}
|
|
218
247
|
```
|
|
219
248
|
|
|
220
|
-
|
|
249
|
+
Storybook shows it in the theme toolbar. Without a `name`, or without a `theme.config.json` (like Wireframe), the build uses the folder name: `my-theme` becomes "My theme".
|
|
250
|
+
|
|
251
|
+
3. Customize the tokens. Keep `theme.config.json` to generate the color groups from base colors (see "Generated Color Groups"), or delete it to write them by hand. The theme configurator writes these four files for you, in `start/` or in a folder of the theme's own.
|
|
252
|
+
|
|
253
|
+
4. Build:
|
|
221
254
|
|
|
222
|
-
5. Build:
|
|
223
255
|
```bash
|
|
224
256
|
pnpm build
|
|
225
257
|
```
|
|
226
258
|
|
|
259
|
+
What follows from the folder, without further changes:
|
|
260
|
+
|
|
261
|
+
- Four full configurations, `my-theme-{light|dark}-{default|information-dense}`, as CSS, SCSS, JS and JSON.
|
|
262
|
+
- `css/scoped/my-theme-light` and `css/scoped/my-theme-dark` for the `dsn-theme-my-theme` class. The exports map has a wildcard for `./css/scoped/*`, so `package.json` needs no new entries.
|
|
263
|
+
- Light colors in a Hero with an image: `css/scoped/hero-image` holds every theme, and `hero.css` imports that one file. `css/scoped/{theme}-hero-image-light` still exists per theme.
|
|
264
|
+
- `dist/json/themes.json` (export `@dsn-starter-kit/design-tokens/themes.json`) lists the themes with their names, Start first. The Storybook theme toolbar and the theme select on the Design Tokens page read it.
|
|
265
|
+
- The token description tests run over every theme folder.
|
|
266
|
+
|
|
267
|
+
### Figma
|
|
268
|
+
|
|
269
|
+
`pnpm build:figma` takes the new theme along too, but Figma Professional allows 10 modes per collection. `dsn/Density` gets three modes per theme (one per density and viewport, see [DR-2026-14](../../docs/decisions/DR-2026-14-density-collection-draagt-de-theme-as.md)), so three themes fit. With a fourth, the Figma build stops and says why; CSS, SCSS and JavaScript still build. A fourth theme in Figma needs a different layout of the collections, which is a decision of its own.
|
|
270
|
+
|
|
271
|
+
### Replacing Start
|
|
272
|
+
|
|
273
|
+
Start is the theme on `:root` and behind the default exports (`css`, `css/dark`, `scss`, the JavaScript tokens), and it comes first in every list. To make the system your own, change the files in `src/tokens/themes/start/` and its `name` instead of renaming the folder. The build expects a `start` folder and stops with a message when it is missing.
|
|
274
|
+
|
|
275
|
+
Wireframe can stay as a low-fidelity theme. Removing it means also updating the tests that compare it with Start: `tests/scoped-tokens.test.ts` and the Figma plugin smoke test.
|
|
276
|
+
|
|
227
277
|
## Adding a New Project Type
|
|
228
278
|
|
|
229
279
|
1. Create a new folder under `src/tokens/project-types/`:
|
|
@@ -254,12 +304,7 @@ For existing consumers, these aliases are maintained:
|
|
|
254
304
|
3. Update `src/config/config.js`: add the name to `projectTypes`, its files to `projectTypeSources` and a class to `densitySelectors`:
|
|
255
305
|
|
|
256
306
|
```js
|
|
257
|
-
const projectTypes = [
|
|
258
|
-
'default',
|
|
259
|
-
'default-fixed-space',
|
|
260
|
-
'information-dense',
|
|
261
|
-
'my-density',
|
|
262
|
-
];
|
|
307
|
+
const projectTypes = ['default', 'information-dense', 'my-density'];
|
|
263
308
|
```
|
|
264
309
|
|
|
265
310
|
4. Build.
|
|
@@ -282,15 +327,15 @@ For existing consumers, these aliases are maintained:
|
|
|
282
327
|
|
|
283
328
|
### Font sizes per project type
|
|
284
329
|
|
|
285
|
-
| Size | Min (360px) | Max (1440px) | `default`
|
|
286
|
-
| ---- | ----------- | ------------ |
|
|
287
|
-
| sm | 14px | 17.5px | fluid, min → max
|
|
288
|
-
| md | 16px | 20px | fluid, min → max
|
|
289
|
-
| lg | 20px | 25px | fluid, min → max
|
|
290
|
-
| xl | 24px | 30px | fluid, min → max
|
|
291
|
-
| 2xl | 32px | 40px | fluid, min → max
|
|
292
|
-
| 3xl | 40px | 50px | fluid, min → max
|
|
293
|
-
| 4xl | 48px | 60px | fluid, min → max
|
|
330
|
+
| Size | Min (360px) | Max (1440px) | `default` | `information-dense` |
|
|
331
|
+
| ---- | ----------- | ------------ | ---------------- | ------------------- |
|
|
332
|
+
| sm | 14px | 17.5px | fluid, min → max | 14px |
|
|
333
|
+
| md | 16px | 20px | fluid, min → max | 16px |
|
|
334
|
+
| lg | 20px | 25px | fluid, min → max | 20px |
|
|
335
|
+
| xl | 24px | 30px | fluid, min → max | 24px |
|
|
336
|
+
| 2xl | 32px | 40px | fluid, min → max | 32px |
|
|
337
|
+
| 3xl | 40px | 50px | fluid, min → max | 40px |
|
|
338
|
+
| 4xl | 48px | 60px | fluid, min → max | 48px |
|
|
294
339
|
|
|
295
340
|
Spacing follows the same pattern with max = min × 1.25 (sizes of 1px and 2px stay fixed). See `docs/02-design-tokens-reference.md` for the full scale.
|
|
296
341
|
|
|
@@ -304,9 +349,9 @@ pnpm --filter @dsn-starter-kit/design-tokens build
|
|
|
304
349
|
|
|
305
350
|
Storybook is configured with three toolbar controls:
|
|
306
351
|
|
|
307
|
-
- **Theme**: Switch between Start and Wireframe
|
|
352
|
+
- **Theme**: Switch between the themes in `dist/json/themes.json` (Start and Wireframe, plus any theme folder you add)
|
|
308
353
|
- **Mode**: Switch between Light and Dark
|
|
309
|
-
- **Density**: Switch between Default (Fluid)
|
|
354
|
+
- **Density**: Switch between Default (Fluid) and Information Dense (Fixed)
|
|
310
355
|
|
|
311
356
|
The TokenTable component shows live computed CSS values that update when you change these settings.
|
|
312
357
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 01 Dec 2026 07:30:36 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
:root {
|
|
6
|
+
:root, .dsn-density-default {
|
|
7
7
|
--dsn-text-font-size-sm: clamp(0.875rem, 0.80208rem + 0.32407vw, 1.09375rem);
|
|
8
8
|
--dsn-text-font-size-md: clamp(1rem, 0.91667rem + 0.37037vw, 1.25rem);
|
|
9
9
|
--dsn-text-font-size-lg: clamp(1.25rem, 1.14583rem + 0.46296vw, 1.5625rem);
|
|
@@ -64,4 +64,294 @@
|
|
|
64
64
|
--dsn-space-row-4xl: clamp(2rem, 1.83333rem + 0.74074vw, 2.5rem);
|
|
65
65
|
--dsn-space-row-5xl: clamp(4rem, 3.66667rem + 1.48148vw, 5rem);
|
|
66
66
|
--dsn-space-row-6xl: clamp(10rem, 9.16667rem + 3.7037vw, 12.5rem);
|
|
67
|
+
--dsn-heading-level-1-font-size: var(--dsn-text-font-size-3xl);
|
|
68
|
+
--dsn-heading-level-1-margin-block-end: var(--dsn-space-row-xl);
|
|
69
|
+
--dsn-heading-level-2-font-size: var(--dsn-text-font-size-2xl);
|
|
70
|
+
--dsn-heading-level-2-margin-block-end: var(--dsn-space-row-xl);
|
|
71
|
+
--dsn-heading-level-3-font-size: var(--dsn-text-font-size-xl);
|
|
72
|
+
--dsn-heading-level-3-margin-block-end: var(--dsn-space-row-lg);
|
|
73
|
+
--dsn-heading-level-4-font-size: var(--dsn-text-font-size-lg);
|
|
74
|
+
--dsn-heading-level-4-margin-block-end: var(--dsn-space-row-lg);
|
|
75
|
+
--dsn-heading-level-5-font-size: var(--dsn-text-font-size-md);
|
|
76
|
+
--dsn-heading-level-5-margin-block-end: var(--dsn-space-row-md);
|
|
77
|
+
--dsn-heading-level-6-font-size: var(--dsn-text-font-size-sm);
|
|
78
|
+
--dsn-heading-level-6-margin-block-end: var(--dsn-space-row-md);
|
|
79
|
+
--dsn-icon-size-sm: calc(var(--dsn-text-font-size-sm) * var(--dsn-text-line-height-sm));
|
|
80
|
+
--dsn-icon-size-md: calc(var(--dsn-text-font-size-md) * var(--dsn-text-line-height-md));
|
|
81
|
+
--dsn-icon-size-lg: calc(var(--dsn-text-font-size-lg) * var(--dsn-text-line-height-lg));
|
|
82
|
+
--dsn-icon-size-xl: calc(var(--dsn-text-font-size-xl) * var(--dsn-text-line-height-xl));
|
|
83
|
+
--dsn-icon-size-2xl: calc(var(--dsn-text-font-size-2xl) * var(--dsn-text-line-height-2xl));
|
|
84
|
+
--dsn-icon-size-3xl: calc(var(--dsn-text-font-size-3xl) * var(--dsn-text-line-height-3xl));
|
|
85
|
+
--dsn-icon-size-4xl: calc(var(--dsn-text-font-size-4xl) * var(--dsn-text-line-height-4xl));
|
|
86
|
+
--dsn-form-control-font-size: var(--dsn-text-font-size-md);
|
|
87
|
+
--dsn-form-control-padding-inline-start: var(--dsn-space-inline-lg);
|
|
88
|
+
--dsn-form-control-padding-inline-end: var(--dsn-space-inline-lg);
|
|
89
|
+
--dsn-action-group-column-gap: var(--dsn-space-inline-lg);
|
|
90
|
+
--dsn-action-group-row-gap: var(--dsn-space-row-lg);
|
|
91
|
+
--dsn-alert-column-gap: var(--dsn-space-inline-md);
|
|
92
|
+
--dsn-alert-padding-block: var(--dsn-space-block-xl);
|
|
93
|
+
--dsn-alert-padding-inline: var(--dsn-space-inline-xl);
|
|
94
|
+
--dsn-alert-row-gap: var(--dsn-space-row-md);
|
|
95
|
+
--dsn-breadcrumb-navigation-column-gap: var(--dsn-space-column-md);
|
|
96
|
+
--dsn-breadcrumb-navigation-font-size: var(--dsn-text-font-size-sm);
|
|
97
|
+
--dsn-breadcrumb-navigation-item-padding-block: var(--dsn-space-block-sm);
|
|
98
|
+
--dsn-breadcrumb-navigation-link-column-gap: var(--dsn-space-text-xs);
|
|
99
|
+
--dsn-button-size-default-font-size: var(--dsn-text-font-size-md);
|
|
100
|
+
--dsn-button-size-default-gap: var(--dsn-space-text-sm);
|
|
101
|
+
--dsn-button-size-default-icon-only-padding: var(--dsn-space-block-md);
|
|
102
|
+
--dsn-button-size-default-padding-block: var(--dsn-space-block-md);
|
|
103
|
+
--dsn-button-size-default-padding-inline: var(--dsn-space-inline-xl);
|
|
104
|
+
--dsn-button-size-large-font-size: var(--dsn-text-font-size-lg);
|
|
105
|
+
--dsn-button-size-large-gap: var(--dsn-space-text-md);
|
|
106
|
+
--dsn-button-size-large-icon-only-padding: var(--dsn-space-block-lg);
|
|
107
|
+
--dsn-button-size-large-padding-block: var(--dsn-space-block-lg);
|
|
108
|
+
--dsn-button-size-large-padding-inline: var(--dsn-space-inline-2xl);
|
|
109
|
+
--dsn-button-size-small-font-size: var(--dsn-text-font-size-sm);
|
|
110
|
+
--dsn-button-size-small-gap: var(--dsn-space-text-sm);
|
|
111
|
+
--dsn-button-size-small-icon-only-padding: var(--dsn-space-block-sm);
|
|
112
|
+
--dsn-button-size-small-padding-block: var(--dsn-space-block-sm);
|
|
113
|
+
--dsn-button-size-small-padding-inline: var(--dsn-space-inline-lg);
|
|
114
|
+
--dsn-card-header-padding-block-start: var(--dsn-space-block-xl);
|
|
115
|
+
--dsn-card-header-padding-block-end: var(--dsn-space-block-lg);
|
|
116
|
+
--dsn-card-header-padding-inline-start: var(--dsn-space-inline-xl);
|
|
117
|
+
--dsn-card-header-padding-inline-end: var(--dsn-space-inline-xl);
|
|
118
|
+
--dsn-card-header-row-gap: var(--dsn-space-block-lg);
|
|
119
|
+
--dsn-card-body-padding-block-end: var(--dsn-space-block-xl);
|
|
120
|
+
--dsn-card-body-padding-inline-start: var(--dsn-space-inline-xl);
|
|
121
|
+
--dsn-card-body-padding-inline-end: var(--dsn-space-inline-xl);
|
|
122
|
+
--dsn-card-body-row-gap: var(--dsn-space-block-lg);
|
|
123
|
+
--dsn-card-footer-padding-block-end: var(--dsn-space-block-3xl);
|
|
124
|
+
--dsn-card-footer-padding-inline-start: var(--dsn-space-inline-xl);
|
|
125
|
+
--dsn-card-footer-padding-inline-end: var(--dsn-space-inline-xl);
|
|
126
|
+
--dsn-card-footer-column-gap: var(--dsn-space-inline-md);
|
|
127
|
+
--dsn-card-heading-font-size: var(--dsn-text-font-size-lg);
|
|
128
|
+
--dsn-card-label-font-size: var(--dsn-text-font-size-md);
|
|
129
|
+
--dsn-card-description-font-size: var(--dsn-text-font-size-md);
|
|
130
|
+
--dsn-card-meta-font-size: var(--dsn-text-font-size-sm);
|
|
131
|
+
--dsn-card-group-gap: var(--dsn-space-inline-xl);
|
|
132
|
+
--dsn-checkbox-group-gap: var(--dsn-space-row-sm);
|
|
133
|
+
--dsn-checkbox-option-gap: var(--dsn-space-text-md);
|
|
134
|
+
--dsn-checkbox-option-padding-block: var(--dsn-space-block-md);
|
|
135
|
+
--dsn-checkbox-size: calc(var(--dsn-text-font-size-md) * var(--dsn-text-line-height-md));
|
|
136
|
+
--dsn-container-padding-block: var(--dsn-space-block-3xl);
|
|
137
|
+
--dsn-container-padding-inline: var(--dsn-space-inline-3xl);
|
|
138
|
+
--dsn-data-list-row-gap: var(--dsn-space-inline-lg);
|
|
139
|
+
--dsn-data-list-row-padding-block: var(--dsn-space-block-lg);
|
|
140
|
+
--dsn-data-list-actions-gap: var(--dsn-space-inline-3xl);
|
|
141
|
+
--dsn-data-list-actions-margin-block-start-stacked: var(--dsn-space-block-md);
|
|
142
|
+
--dsn-date-input-group-gap: var(--dsn-space-column-md);
|
|
143
|
+
--dsn-date-input-group-label-gap: var(--dsn-space-text-sm);
|
|
144
|
+
--dsn-date-input-button-inset-inline-end: var(--dsn-space-inline-sm);
|
|
145
|
+
--dsn-date-input-icon-gap: var(--dsn-space-text-md);
|
|
146
|
+
--dsn-details-row-gap: var(--dsn-space-row-md);
|
|
147
|
+
--dsn-details-summary-gap: var(--dsn-space-text-sm);
|
|
148
|
+
--dsn-details-content-padding-inline-start: var(--dsn-space-inline-xl);
|
|
149
|
+
--dsn-details-content-padding-inline-end: var(--dsn-space-inline-xl);
|
|
150
|
+
--dsn-details-content-padding-block: var(--dsn-space-block-xl);
|
|
151
|
+
--dsn-dot-badge-inset-block-start: var(--dsn-space-block-sm);
|
|
152
|
+
--dsn-dot-badge-inset-inline-end: var(--dsn-space-inline-sm);
|
|
153
|
+
--dsn-drawer-heading-font-size: var(--dsn-text-font-size-lg);
|
|
154
|
+
--dsn-drawer-header-padding-block-start: var(--dsn-space-block-xl);
|
|
155
|
+
--dsn-drawer-header-padding-block-end: var(--dsn-space-block-xl);
|
|
156
|
+
--dsn-drawer-header-padding-inline: var(--dsn-space-inline-xl);
|
|
157
|
+
--dsn-drawer-body-padding-block: var(--dsn-space-block-3xl);
|
|
158
|
+
--dsn-drawer-body-padding-inline: var(--dsn-space-inline-xl);
|
|
159
|
+
--dsn-drawer-footer-padding-block-start: var(--dsn-space-block-xl);
|
|
160
|
+
--dsn-drawer-footer-padding-block-end: var(--dsn-space-block-xl);
|
|
161
|
+
--dsn-drawer-footer-padding-inline: var(--dsn-space-inline-xl);
|
|
162
|
+
--dsn-file-input-column-gap: var(--dsn-space-text-lg);
|
|
163
|
+
--dsn-file-padding-block: var(--dsn-space-block-lg);
|
|
164
|
+
--dsn-file-padding-inline: var(--dsn-space-inline-xl);
|
|
165
|
+
--dsn-file-gap: var(--dsn-space-inline-lg);
|
|
166
|
+
--dsn-file-content-gap: var(--dsn-space-block-xs);
|
|
167
|
+
--dsn-file-meta-font-size: var(--dsn-text-font-size-md);
|
|
168
|
+
--dsn-form-field-description-font-size: var(--dsn-text-font-size-md);
|
|
169
|
+
--dsn-form-field-description-margin-block-end: var(--dsn-space-block-md);
|
|
170
|
+
--dsn-form-field-error-message-font-size: var(--dsn-text-font-size-md);
|
|
171
|
+
--dsn-form-field-error-message-gap: var(--dsn-space-text-sm);
|
|
172
|
+
--dsn-form-field-error-message-margin-block-end: var(--dsn-space-block-md);
|
|
173
|
+
--dsn-form-field-label-suffix-font-size: var(--dsn-text-font-size-md);
|
|
174
|
+
--dsn-form-field-label-suffix-margin-inline-start: var(--dsn-space-text-sm);
|
|
175
|
+
--dsn-form-field-label-font-size: var(--dsn-text-font-size-md);
|
|
176
|
+
--dsn-form-field-label-margin-block-end: var(--dsn-space-block-md);
|
|
177
|
+
--dsn-form-field-label-margin-block-end-with-description: var(--dsn-space-block-sm);
|
|
178
|
+
--dsn-form-field-status-font-size: var(--dsn-text-font-size-md);
|
|
179
|
+
--dsn-form-field-status-gap: var(--dsn-space-text-sm);
|
|
180
|
+
--dsn-form-field-status-margin-block-start: var(--dsn-space-block-md);
|
|
181
|
+
--dsn-form-field-invalid-padding-inline-start: var(--dsn-space-inline-xl);
|
|
182
|
+
--dsn-grid-gutter: var(--dsn-space-column-xl);
|
|
183
|
+
--dsn-grid-row-gap: var(--dsn-space-column-xl);
|
|
184
|
+
--dsn-hero-padding-block: var(--dsn-space-block-4xl);
|
|
185
|
+
--dsn-hero-padding-inline: var(--dsn-space-inline-xl);
|
|
186
|
+
--dsn-icon-list-font-size: var(--dsn-text-font-size-md);
|
|
187
|
+
--dsn-icon-list-gap: var(--dsn-space-row-sm);
|
|
188
|
+
--dsn-icon-list-margin-block-end: var(--dsn-space-row-lg);
|
|
189
|
+
--dsn-icon-list-icon-gap: var(--dsn-space-text-md);
|
|
190
|
+
--dsn-image-caption-font-size: var(--dsn-text-font-size-sm);
|
|
191
|
+
--dsn-image-caption-margin-block-start: var(--dsn-space-row-sm);
|
|
192
|
+
--dsn-link-gap: var(--dsn-space-text-sm);
|
|
193
|
+
--dsn-link-size-default-font-size: var(--dsn-text-font-size-md);
|
|
194
|
+
--dsn-link-size-default-gap: var(--dsn-space-text-sm);
|
|
195
|
+
--dsn-link-size-large-font-size: var(--dsn-text-font-size-lg);
|
|
196
|
+
--dsn-link-size-large-gap: var(--dsn-space-text-md);
|
|
197
|
+
--dsn-link-size-small-font-size: var(--dsn-text-font-size-sm);
|
|
198
|
+
--dsn-link-size-small-gap: var(--dsn-space-text-sm);
|
|
199
|
+
--dsn-menu-item-font-size: var(--dsn-text-font-size-md);
|
|
200
|
+
--dsn-menu-item-padding-block: var(--dsn-space-block-md);
|
|
201
|
+
--dsn-menu-item-padding-inline: var(--dsn-space-inline-lg);
|
|
202
|
+
--dsn-menu-item-gap: var(--dsn-space-inline-md);
|
|
203
|
+
--dsn-menu-link-level-indent: var(--dsn-space-inline-3xl);
|
|
204
|
+
--dsn-menu-gap-vertical: var(--dsn-space-block-md);
|
|
205
|
+
--dsn-menu-gap-horizontal: var(--dsn-space-inline-sm);
|
|
206
|
+
--dsn-modal-dialog-heading-font-size: var(--dsn-text-font-size-lg);
|
|
207
|
+
--dsn-modal-dialog-header-padding-block-start: var(--dsn-space-block-xl);
|
|
208
|
+
--dsn-modal-dialog-header-padding-block-end: var(--dsn-space-block-xl);
|
|
209
|
+
--dsn-modal-dialog-header-padding-inline: var(--dsn-space-inline-xl);
|
|
210
|
+
--dsn-modal-dialog-body-padding-block: var(--dsn-space-block-3xl);
|
|
211
|
+
--dsn-modal-dialog-body-padding-inline: var(--dsn-space-inline-xl);
|
|
212
|
+
--dsn-modal-dialog-footer-padding-block-start: var(--dsn-space-block-xl);
|
|
213
|
+
--dsn-modal-dialog-footer-padding-block-end: var(--dsn-space-block-xl);
|
|
214
|
+
--dsn-modal-dialog-footer-padding-inline: var(--dsn-space-inline-xl);
|
|
215
|
+
--dsn-note-column-gap: var(--dsn-space-inline-md);
|
|
216
|
+
--dsn-note-padding-block: var(--dsn-space-block-xl);
|
|
217
|
+
--dsn-note-padding-inline-end: var(--dsn-space-inline-xl);
|
|
218
|
+
--dsn-note-padding-inline-start: var(--dsn-space-inline-xl);
|
|
219
|
+
--dsn-note-row-gap: var(--dsn-space-row-md);
|
|
220
|
+
--dsn-number-badge-font-size: var(--dsn-text-font-size-sm);
|
|
221
|
+
--dsn-number-badge-padding-inline: var(--dsn-space-inline-sm);
|
|
222
|
+
--dsn-option-label-font-size: var(--dsn-text-font-size-md);
|
|
223
|
+
--dsn-ordered-list-font-size: var(--dsn-text-font-size-md);
|
|
224
|
+
--dsn-ordered-list-gap: var(--dsn-space-row-sm);
|
|
225
|
+
--dsn-ordered-list-margin-block-end: var(--dsn-space-row-lg);
|
|
226
|
+
--dsn-ordered-list-padding-inline-start: var(--dsn-space-inline-3xl);
|
|
227
|
+
--dsn-page-body-padding-inline: var(--dsn-space-inline-xl);
|
|
228
|
+
--dsn-page-footer-padding-block: var(--dsn-space-block-6xl);
|
|
229
|
+
--dsn-page-footer-slot-gap: var(--dsn-space-block-xl);
|
|
230
|
+
--dsn-page-footer-padding-inline: var(--dsn-space-inline-xl);
|
|
231
|
+
--dsn-page-header-padding-block: var(--dsn-space-block-md);
|
|
232
|
+
--dsn-page-header-padding-inline: var(--dsn-space-inline-xl);
|
|
233
|
+
--dsn-page-header-masthead-padding-block: var(--dsn-space-block-xl);
|
|
234
|
+
--dsn-page-header-masthead-padding-inline: var(--dsn-space-inline-xl);
|
|
235
|
+
--dsn-page-header-navbar-padding-inline: var(--dsn-space-inline-xl);
|
|
236
|
+
--dsn-page-header-secondary-nav-gap: var(--dsn-space-column-3xl);
|
|
237
|
+
--dsn-page-header-search-panel-padding-block: var(--dsn-space-block-md);
|
|
238
|
+
--dsn-page-header-search-panel-padding-inline: var(--dsn-space-inline-xl);
|
|
239
|
+
--dsn-page-header-compact-padding-block: var(--dsn-space-block-xl);
|
|
240
|
+
--dsn-page-header-compact-padding-inline: var(--dsn-space-inline-xl);
|
|
241
|
+
--dsn-paragraph-default-font-size: var(--dsn-text-font-size-md);
|
|
242
|
+
--dsn-paragraph-default-margin-block-end: var(--dsn-space-row-lg);
|
|
243
|
+
--dsn-paragraph-lead-font-size: var(--dsn-text-font-size-lg);
|
|
244
|
+
--dsn-paragraph-lead-margin-block-end: var(--dsn-space-row-xl);
|
|
245
|
+
--dsn-paragraph-small-print-font-size: var(--dsn-text-font-size-sm);
|
|
246
|
+
--dsn-paragraph-small-print-margin-block-end: var(--dsn-space-row-md);
|
|
247
|
+
--dsn-popover-heading-font-size: var(--dsn-text-font-size-md);
|
|
248
|
+
--dsn-popover-header-padding-block-start: var(--dsn-space-block-xl);
|
|
249
|
+
--dsn-popover-header-padding-block-end: var(--dsn-space-block-xl);
|
|
250
|
+
--dsn-popover-header-padding-inline: var(--dsn-space-inline-xl);
|
|
251
|
+
--dsn-popover-body-padding-block: var(--dsn-space-block-xl);
|
|
252
|
+
--dsn-popover-body-padding-inline: var(--dsn-space-inline-xl);
|
|
253
|
+
--dsn-popover-footer-padding-block-start: var(--dsn-space-block-xl);
|
|
254
|
+
--dsn-popover-footer-padding-block-end: var(--dsn-space-block-xl);
|
|
255
|
+
--dsn-popover-footer-padding-inline: var(--dsn-space-inline-xl);
|
|
256
|
+
--dsn-pre-heading-font-size: var(--dsn-text-font-size-md);
|
|
257
|
+
--dsn-pre-heading-margin-block-end: var(--dsn-space-row-xs);
|
|
258
|
+
--dsn-progress-bar-gap-header: var(--dsn-space-block-xs);
|
|
259
|
+
--dsn-progress-bar-gap-footer: var(--dsn-space-block-xs);
|
|
260
|
+
--dsn-radio-group-gap: var(--dsn-space-row-sm);
|
|
261
|
+
--dsn-radio-option-gap: var(--dsn-space-text-md);
|
|
262
|
+
--dsn-radio-option-padding-block: var(--dsn-space-block-md);
|
|
263
|
+
--dsn-radio-size: calc(var(--dsn-text-font-size-md) * var(--dsn-text-line-height-md));
|
|
264
|
+
--dsn-search-input-icon-gap: var(--dsn-space-text-md);
|
|
265
|
+
--dsn-select-icon-gap: var(--dsn-space-text-md);
|
|
266
|
+
--dsn-select-icon-inset-inline-end: var(--dsn-space-inline-md);
|
|
267
|
+
--dsn-skip-link-padding-block: var(--dsn-space-block-md);
|
|
268
|
+
--dsn-skip-link-padding-inline: var(--dsn-space-inline-lg);
|
|
269
|
+
--dsn-skip-link-offset-block-start: var(--dsn-space-block-md);
|
|
270
|
+
--dsn-skip-link-offset-inline-start: var(--dsn-space-inline-md);
|
|
271
|
+
--dsn-spinner-gap-size: var(--dsn-space-inline-md);
|
|
272
|
+
--dsn-status-badge-font-size: var(--dsn-text-font-size-sm);
|
|
273
|
+
--dsn-status-badge-gap: var(--dsn-space-text-sm);
|
|
274
|
+
--dsn-status-badge-padding-block: var(--dsn-space-block-xs);
|
|
275
|
+
--dsn-status-badge-padding-inline: var(--dsn-space-inline-md);
|
|
276
|
+
--dsn-table-of-contents-padding-block: var(--dsn-space-block-xl);
|
|
277
|
+
--dsn-table-of-contents-padding-inline-start: var(--dsn-space-inline-xl);
|
|
278
|
+
--dsn-table-of-contents-padding-inline-end: var(--dsn-space-inline-xl);
|
|
279
|
+
--dsn-table-of-contents-heading-gap: var(--dsn-space-row-xl);
|
|
280
|
+
--dsn-table-of-contents-plain-padding-block: var(--dsn-space-block-md);
|
|
281
|
+
--dsn-table-of-contents-plain-list-gap: var(--dsn-space-row-lg);
|
|
282
|
+
--dsn-table-caption-font-size: var(--dsn-text-font-size-xl);
|
|
283
|
+
--dsn-table-cell-padding-block-end: var(--dsn-space-block-lg);
|
|
284
|
+
--dsn-table-cell-padding-block-start: var(--dsn-space-block-lg);
|
|
285
|
+
--dsn-table-cell-padding-inline-end: var(--dsn-space-inline-xl);
|
|
286
|
+
--dsn-table-cell-padding-inline-start: var(--dsn-space-inline-xl);
|
|
287
|
+
--dsn-time-input-button-inset-inline-end: var(--dsn-space-inline-sm);
|
|
288
|
+
--dsn-time-input-icon-gap: var(--dsn-space-text-md);
|
|
289
|
+
--dsn-unordered-list-font-size: var(--dsn-text-font-size-md);
|
|
290
|
+
--dsn-unordered-list-gap: var(--dsn-space-row-sm);
|
|
291
|
+
--dsn-unordered-list-margin-block-end: var(--dsn-space-row-lg);
|
|
292
|
+
--dsn-unordered-list-padding-inline-start: var(--dsn-space-inline-3xl);
|
|
293
|
+
--dsn-alert-icon-size: var(--dsn-icon-size-xl);
|
|
294
|
+
--dsn-breadcrumb-navigation-separator-size: var(--dsn-icon-size-sm);
|
|
295
|
+
--dsn-breadcrumb-navigation-icon-size: var(--dsn-icon-size-sm);
|
|
296
|
+
--dsn-button-size-default-icon-size: var(--dsn-icon-size-md);
|
|
297
|
+
--dsn-button-size-large-icon-size: var(--dsn-icon-size-lg);
|
|
298
|
+
--dsn-button-size-small-icon-size: var(--dsn-icon-size-sm);
|
|
299
|
+
--dsn-card-pre-header-padding-block-start: var(--dsn-card-header-padding-block-start);
|
|
300
|
+
--dsn-card-pre-header-padding-block-end: var(--dsn-card-header-padding-block-end);
|
|
301
|
+
--dsn-card-pre-header-padding-inline-start: var(--dsn-card-header-padding-inline-start);
|
|
302
|
+
--dsn-card-pre-header-padding-inline-end: var(--dsn-card-header-padding-inline-end);
|
|
303
|
+
--dsn-card-pre-header-row-gap: var(--dsn-card-header-row-gap);
|
|
304
|
+
--dsn-card-image-placeholder-icon-size: var(--dsn-icon-size-2xl);
|
|
305
|
+
--dsn-checkbox-icon-size: calc(var(--dsn-checkbox-size) * 0.67);
|
|
306
|
+
--dsn-details-icon-size: var(--dsn-icon-size-md);
|
|
307
|
+
--dsn-date-input-icon-size: var(--dsn-button-size-small-icon-size);
|
|
308
|
+
--dsn-date-input-padding-inline-end-with-icon: calc((var(--dsn-button-size-small-icon-only-padding) * 2) + var(--dsn-date-input-icon-size) + var(--dsn-date-input-button-inset-inline-end) + var(--dsn-date-input-icon-gap));
|
|
309
|
+
--dsn-dot-badge-size: calc(var(--dsn-icon-size-md) / 3);
|
|
310
|
+
--dsn-file-input-font-size: var(--dsn-form-control-font-size);
|
|
311
|
+
--dsn-file-media-size: calc(var(--dsn-icon-size-md) * 2);
|
|
312
|
+
--dsn-file-media-icon-size: var(--dsn-icon-size-md);
|
|
313
|
+
--dsn-file-status-icon-size: var(--dsn-icon-size-md);
|
|
314
|
+
--dsn-form-field-error-message-icon-size: var(--dsn-icon-size-md);
|
|
315
|
+
--dsn-form-field-status-icon-size: var(--dsn-icon-size-md);
|
|
316
|
+
--dsn-icon-list-icon-size: var(--dsn-icon-size-md);
|
|
317
|
+
--dsn-link-icon-size: var(--dsn-icon-size-md);
|
|
318
|
+
--dsn-link-size-default-icon-size: var(--dsn-icon-size-md);
|
|
319
|
+
--dsn-link-size-large-icon-size: var(--dsn-icon-size-lg);
|
|
320
|
+
--dsn-link-size-small-icon-size: var(--dsn-icon-size-sm);
|
|
321
|
+
--dsn-menu-item-icon-size: var(--dsn-icon-size-md);
|
|
322
|
+
--dsn-note-icon-size: var(--dsn-icon-size-xl);
|
|
323
|
+
--dsn-popover-menu-padding-block: var(--dsn-popover-body-padding-block);
|
|
324
|
+
--dsn-popover-menu-padding-inline: var(--dsn-popover-body-padding-inline);
|
|
325
|
+
--dsn-radio-icon-size: calc(var(--dsn-radio-size) * 0.33);
|
|
326
|
+
--dsn-search-input-icon-size: var(--dsn-icon-size-md);
|
|
327
|
+
--dsn-select-icon-size: var(--dsn-icon-size-md);
|
|
328
|
+
--dsn-spinner-size: var(--dsn-icon-size-md);
|
|
329
|
+
--dsn-spinner-size-large: calc(var(--dsn-icon-size-md) * 2);
|
|
330
|
+
--dsn-status-badge-icon-size: var(--dsn-icon-size-sm);
|
|
331
|
+
--dsn-text-area-font-size: var(--dsn-form-control-font-size);
|
|
332
|
+
--dsn-text-area-padding-block-end: var(--dsn-form-control-padding-block-end);
|
|
333
|
+
--dsn-text-area-padding-block-start: var(--dsn-form-control-padding-block-start);
|
|
334
|
+
--dsn-text-area-padding-inline-end: var(--dsn-form-control-padding-inline-end);
|
|
335
|
+
--dsn-text-area-padding-inline-start: var(--dsn-form-control-padding-inline-start);
|
|
336
|
+
--dsn-text-input-font-size: var(--dsn-form-control-font-size);
|
|
337
|
+
--dsn-text-input-padding-block-end: var(--dsn-form-control-padding-block-end);
|
|
338
|
+
--dsn-text-input-padding-block-start: var(--dsn-form-control-padding-block-start);
|
|
339
|
+
--dsn-text-input-padding-inline-end: var(--dsn-form-control-padding-inline-end);
|
|
340
|
+
--dsn-text-input-padding-inline-start: var(--dsn-form-control-padding-inline-start);
|
|
341
|
+
--dsn-time-input-icon-size: var(--dsn-button-size-small-icon-size);
|
|
342
|
+
--dsn-time-input-padding-inline-end-with-icon: calc((var(--dsn-button-size-small-icon-only-padding) * 2) + var(--dsn-time-input-icon-size) + var(--dsn-time-input-button-inset-inline-end) + var(--dsn-time-input-icon-gap));
|
|
343
|
+
--dsn-search-input-padding-inline-start-with-icon: calc(var(--dsn-search-input-icon-size) + var(--dsn-search-input-icon-gap) + var(--dsn-form-control-padding-inline-start));
|
|
344
|
+
--dsn-select-padding-inline-end-with-icon: calc(var(--dsn-select-icon-size) + var(--dsn-select-icon-gap) + var(--dsn-select-icon-inset-inline-end));
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Verschilt per thema: specificiteit 0, zodat een themaklasse op hetzelfde element wint. */
|
|
348
|
+
:where(:root, .dsn-density-default) {
|
|
349
|
+
--dsn-form-control-padding-block-start: var(--dsn-space-block-md);
|
|
350
|
+
--dsn-form-control-padding-block-end: var(--dsn-space-block-md);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* Binnen een wireframe light container. */
|
|
354
|
+
:where(.dsn-theme-wireframe) :where(:root, .dsn-density-default) {
|
|
355
|
+
--dsn-form-control-padding-block-start: var(--dsn-space-block-lg);
|
|
356
|
+
--dsn-form-control-padding-block-end: var(--dsn-space-block-lg);
|
|
67
357
|
}
|