@dbm-system/tokens 0.0.0-stage → 0.1.1

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Designs by Mason
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,49 @@
1
- # Temporary Holding Version
1
+ # @dbm-system/tokens
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The design tokens for the DBM System: primitive, semantic and component layers, built from one source into CSS custom properties and typed TypeScript constants.
4
+
5
+ Components reference semantic tokens (`color.bg.brand`, `space.4`), never primitives, so switching a theme changes no component code.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pnpm add @dbm-system/tokens
11
+ ```
12
+
13
+ `@dbm-system/components` depends on it, but an app that imports its CSS needs it as its own dependency (a strict package manager such as pnpm only lets an app import a package it depends on), so install it beside the components.
14
+
15
+ ## Use
16
+
17
+ Two brands (`purple`, `emerald`), each in `light` and `dark`. Import one theme once, in your app's entry, and choose it on the root element:
18
+
19
+ ```ts
20
+ import "@dbm-system/tokens/css/purple-light.bundled.css";
21
+ ```
22
+
23
+ ```html
24
+ <html data-theme="purple-light">
25
+ ```
26
+
27
+ | File | Holds |
28
+ |---|---|
29
+ | `<brand>-<mode>.bundled.css` (four) | The primitives, the component tokens and that theme's semantic tokens, in one self-contained file, about 19 KB |
30
+ | `primitives.css` | The raw scales (colour, spacing, type, radius, motion), the same in every theme |
31
+ | `component-tokens.css` | Tokens specific to a component, the same in every theme |
32
+ | `<brand>-<mode>.css` (four) | The semantic tokens of one theme, scoped to `:root[data-theme="…"]` |
33
+
34
+ An app that offers several themes imports `primitives.css` and `component-tokens.css` once and one theme file per theme, or one bundled file per theme and accepts the repeated declarations. Every shipped CSS file is free of the token descriptions, which live in the package's source and in the Storybook Foundations pages.
35
+
36
+ The package ships no fonts. The tokens name `Nunito` and `Lora`, which the app loads; the components package's README has the snippets.
37
+
38
+ ## Token index
39
+
40
+ `@dbm-system/tokens/tokens.json` lists every token, so an agent can choose one without reading the CSS: its CSS name, layer (`semantic`, `component` or `primitive`), group, type and value (a semantic token has a value and the primitive it aliases for each theme), the components that use it (`usedBy`) and, where the source has a clean one, a one-sentence `purpose`.
41
+
42
+ ## Links
43
+
44
+ - Documentation: https://dbm-system.com
45
+ - Issues: https://github.com/designsbymason/dbm-system/issues
46
+
47
+ ## License
48
+
49
+ MIT
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --dbm-alert-inline-text-min-width: 20rem;
7
+ --dbm-app-shell-aside-width: 20rem;
8
+ --dbm-avatar-size-xs: 36px;
9
+ --dbm-avatar-size-sm: 40px;
10
+ --dbm-avatar-size-md: 44px;
11
+ --dbm-avatar-size-lg: 48px;
12
+ --dbm-avatar-size-xl: 52px;
13
+ --dbm-avatar-status-size-xs: 10px;
14
+ --dbm-avatar-status-size-sm: 11px;
15
+ --dbm-avatar-status-size-md: 12px;
16
+ --dbm-avatar-status-size-lg: 13px;
17
+ --dbm-avatar-status-size-xl: 14px;
18
+ --dbm-badge-padding-inline-xs: 6px;
19
+ --dbm-badge-padding-inline-sm: 6px;
20
+ --dbm-badge-padding-inline-md: 6px;
21
+ --dbm-badge-padding-inline-lg: 6px;
22
+ --dbm-badge-padding-inline-xl: 6px;
23
+ --dbm-badge-size-xs: 25px;
24
+ --dbm-badge-size-sm: 27px;
25
+ --dbm-badge-size-md: 29px;
26
+ --dbm-badge-size-lg: 30px;
27
+ --dbm-badge-size-xl: 34px;
28
+ --dbm-color-picker-panel-width: 17.5rem;
29
+ --dbm-color-picker-area-height: 10rem;
30
+ --dbm-color-picker-thumb-size: 1.25rem;
31
+ --dbm-color-picker-slider-track-height: 0.75rem;
32
+ --dbm-color-picker-swatch-size: 1.5rem;
33
+ --dbm-combobox-list-max-height: 18rem;
34
+ --dbm-combobox-option-height-xs: 1.75rem;
35
+ --dbm-combobox-option-height-sm: 2rem;
36
+ --dbm-combobox-option-height-md: 2.25rem;
37
+ --dbm-combobox-option-height-lg: 2.5rem;
38
+ --dbm-combobox-option-height-xl: 2.75rem;
39
+ --dbm-combobox-option-height-described-xs: 2.75rem;
40
+ --dbm-combobox-option-height-described-sm: 3rem;
41
+ --dbm-combobox-option-height-described-md: 3.25rem;
42
+ --dbm-combobox-option-height-described-lg: 3.5rem;
43
+ --dbm-combobox-option-height-described-xl: 3.75rem;
44
+ --dbm-command-palette-list-max-height: 24rem;
45
+ --dbm-command-palette-match-hint-max-width: 10rem;
46
+ --dbm-command-palette-page-tag-max-width: 40%;
47
+ --dbm-data-table-row-height-xs: 2rem;
48
+ --dbm-data-table-row-height-sm: 2.5rem;
49
+ --dbm-data-table-row-height-md: 2.75rem;
50
+ --dbm-data-table-row-height-lg: 3.5rem;
51
+ --dbm-data-table-row-height-xl: 4rem;
52
+ --dbm-date-picker-segment-width: 2.25ch;
53
+ --dbm-date-picker-year-width: 4.25ch;
54
+ --dbm-dialog-max-width-xs: 20rem;
55
+ --dbm-dialog-max-width-sm: 24rem;
56
+ --dbm-dialog-max-width-md: 32rem;
57
+ --dbm-dialog-max-width-lg: 42rem;
58
+ --dbm-dialog-max-width-xl: 56rem;
59
+ --dbm-drawer-size-xs: 20rem;
60
+ --dbm-drawer-size-sm: 24rem;
61
+ --dbm-drawer-size-md: 32rem;
62
+ --dbm-drawer-size-lg: 42rem;
63
+ --dbm-drawer-size-xl: 56rem;
64
+ --dbm-editor-tabs-tab-min-width: 6rem;
65
+ --dbm-editor-tabs-tab-max-width: 16rem;
66
+ --dbm-empty-state-content-max-width: 28rem;
67
+ --dbm-empty-state-media-max-width-xs: 6rem;
68
+ --dbm-empty-state-media-max-width-sm: 8rem;
69
+ --dbm-empty-state-media-max-width-md: 10rem;
70
+ --dbm-empty-state-media-max-width-lg: 12rem;
71
+ --dbm-empty-state-media-max-width-xl: 15rem;
72
+ --dbm-field-group-field-min-width: 14rem;
73
+ --dbm-heading-trim-primary-start: -0.30em;
74
+ --dbm-heading-trim-primary-end: -0.35em;
75
+ --dbm-heading-trim-secondary-start: -0.31em;
76
+ --dbm-heading-trim-secondary-end: -0.27em;
77
+ --dbm-hover-card-max-width: 20rem;
78
+ --dbm-icon-button-size-xs: 30px;
79
+ --dbm-icon-button-size-sm: 39px;
80
+ --dbm-icon-button-size-md: 42px;
81
+ --dbm-icon-button-size-lg: 55px;
82
+ --dbm-icon-button-size-xl: 61px;
83
+ --dbm-image-viewer-control-size: 2.75rem;
84
+ --dbm-image-viewer-thumbnail-size: 4rem;
85
+ --dbm-image-viewer-caption-max-width: 40rem;
86
+ --dbm-indicators-size-xs: 4px;
87
+ --dbm-indicators-size-sm: 6px;
88
+ --dbm-indicators-size-md: 8px;
89
+ --dbm-indicators-size-lg: 10px;
90
+ --dbm-indicators-size-xl: 12px;
91
+ --dbm-link-icon-scale: 1em;
92
+ --dbm-link-icon-offset-inline: 0.25em;
93
+ --dbm-link-icon-vertical-align: -0.125em;
94
+ --dbm-menu-min-width: 12rem;
95
+ --dbm-menu-max-width: 24rem;
96
+ --dbm-navbar-search-min-width: 12rem;
97
+ --dbm-navbar-search-max-width: 32rem;
98
+ --dbm-navigation-menu-panel-min-width: 16rem;
99
+ --dbm-navigation-menu-panel-max-width: 56rem;
100
+ --dbm-popover-max-width: 24rem;
101
+ --dbm-scroll-area-thickness-xs: 4px;
102
+ --dbm-scroll-area-thickness-sm: 6px;
103
+ --dbm-scroll-area-thickness-md: 8px;
104
+ --dbm-scroll-area-thickness-lg: 10px;
105
+ --dbm-scroll-area-thickness-xl: 12px;
106
+ --dbm-sidebar-width: 16rem;
107
+ --dbm-stepper-indicator-size-xs: 24px;
108
+ --dbm-stepper-indicator-size-sm: 28px;
109
+ --dbm-stepper-indicator-size-md: 32px;
110
+ --dbm-stepper-indicator-size-lg: 40px;
111
+ --dbm-stepper-indicator-size-xl: 48px;
112
+ --dbm-stepper-label-max-width: 14rem;
113
+ --dbm-table-of-contents-number-min-width: 2.5ch;
114
+ --dbm-table-toolbar-search-min-width: 14rem;
115
+ --dbm-table-toolbar-search-max-width: 24rem;
116
+ --dbm-table-toolbar-filter-count-size-xs: 1.25rem;
117
+ --dbm-tags-input-entry-min-width: 8ch;
118
+ --dbm-time-picker-segment-width: 2.25ch;
119
+ --dbm-time-picker-period-character-width: 1.5ch;
120
+ --dbm-time-picker-wheel-visible-rows: 5;
121
+ --dbm-time-picker-wheel-neighbour-scale: 0.9;
122
+ --dbm-time-picker-wheel-neighbour-opacity: 0.68;
123
+ --dbm-time-picker-wheel-edge-scale: 0.8;
124
+ --dbm-time-picker-wheel-edge-opacity: 0.35;
125
+ --dbm-timeline-marker-size-xs: 24px;
126
+ --dbm-timeline-marker-size-sm: 28px;
127
+ --dbm-timeline-marker-size-md: 32px;
128
+ --dbm-timeline-marker-size-lg: 40px;
129
+ --dbm-timeline-marker-size-xl: 48px;
130
+ --dbm-timeline-item-min-width: 12rem;
131
+ --dbm-timeline-time-width: 9rem;
132
+ --dbm-toast-width: 24rem;
133
+ --dbm-toast-stack-peek: 0.75rem;
134
+ --dbm-toast-stack-scale-step: 0.04;
135
+ --dbm-tooltip-max-width: 20rem;
136
+ --dbm-tree-row-height-xs: 1.5rem;
137
+ --dbm-tree-row-height-sm: 2rem;
138
+ --dbm-tree-row-height-md: 2.25rem;
139
+ --dbm-tree-row-height-lg: 2.75rem;
140
+ --dbm-tree-row-height-xl: 3.25rem;
141
+ }
@@ -0,0 +1,464 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ * emerald-dark: the primitives, the component tokens and this theme's tokens in one file.
4
+ */
5
+
6
+ :root {
7
+ --dbm-breakpoint-sm: 640px;
8
+ --dbm-breakpoint-md: 768px;
9
+ --dbm-breakpoint-lg: 1024px;
10
+ --dbm-breakpoint-xl: 1280px;
11
+ --dbm-breakpoint-2xl: 1536px;
12
+ --dbm-breakpoint-3xl: 1920px;
13
+ --dbm-color-purple-50: #f9f9ff;
14
+ --dbm-color-purple-100: #efeffc;
15
+ --dbm-color-purple-200: #dbdafc;
16
+ --dbm-color-purple-300: #b9b7ef;
17
+ --dbm-color-purple-400: #9691e0;
18
+ --dbm-color-purple-500: #746bc6;
19
+ --dbm-color-purple-600: #5548a4;
20
+ --dbm-color-purple-700: #3e3180;
21
+ --dbm-color-purple-800: #281d59;
22
+ --dbm-color-purple-900: #1a133a;
23
+ --dbm-color-purple-950: #110c27;
24
+ --dbm-color-emerald-50: #f7fbfa;
25
+ --dbm-color-emerald-100: #e9f3f0;
26
+ --dbm-color-emerald-200: #cbe4df;
27
+ --dbm-color-emerald-300: #a5d2c9;
28
+ --dbm-color-emerald-400: #7abcb1;
29
+ --dbm-color-emerald-500: #51a497;
30
+ --dbm-color-emerald-600: #2e8a7d;
31
+ --dbm-color-emerald-700: #1a6e63;
32
+ --dbm-color-emerald-800: #135249;
33
+ --dbm-color-emerald-900: #0b3731;
34
+ --dbm-color-emerald-950: #041f1b;
35
+ --dbm-color-gray-50: #fafafb;
36
+ --dbm-color-gray-100: #f0f0f3;
37
+ --dbm-color-gray-200: #dedde5;
38
+ --dbm-color-gray-300: #c6c4d1;
39
+ --dbm-color-gray-400: #aba8bb;
40
+ --dbm-color-gray-500: #908ca2;
41
+ --dbm-color-gray-600: #757187;
42
+ --dbm-color-gray-700: #5b586b;
43
+ --dbm-color-gray-800: #43404f;
44
+ --dbm-color-gray-900: #2c2a34;
45
+ --dbm-color-gray-950: #24222a;
46
+ --dbm-color-red-50: #fff8f7;
47
+ --dbm-color-red-100: #feebe9;
48
+ --dbm-color-red-200: #ffd2cc;
49
+ --dbm-color-red-300: #feaea5;
50
+ --dbm-color-red-400: #f6867b;
51
+ --dbm-color-red-500: #e26056;
52
+ --dbm-color-red-600: #c53e38;
53
+ --dbm-color-red-700: #a02926;
54
+ --dbm-color-red-800: #771d1a;
55
+ --dbm-color-red-900: #51110f;
56
+ --dbm-color-red-950: #2e0605;
57
+ --dbm-color-amber-50: #fdfaf5;
58
+ --dbm-color-amber-100: #f7efe5;
59
+ --dbm-color-amber-200: #efdbbf;
60
+ --dbm-color-amber-300: #e2bf90;
61
+ --dbm-color-amber-400: #d2a159;
62
+ --dbm-color-amber-500: #bc8221;
63
+ --dbm-color-amber-600: #9c6800;
64
+ --dbm-color-amber-700: #7b5100;
65
+ --dbm-color-amber-800: #5b3b00;
66
+ --dbm-color-amber-900: #3d2600;
67
+ --dbm-color-amber-950: #211300;
68
+ --dbm-color-yellow-50: #fbfcec;
69
+ --dbm-color-yellow-100: #f5f7a0;
70
+ --dbm-color-yellow-200: #e4e678;
71
+ --dbm-color-yellow-300: #d3d45f;
72
+ --dbm-color-yellow-400: #bebf4d;
73
+ --dbm-color-yellow-500: #a9a93d;
74
+ --dbm-color-yellow-600: #949415;
75
+ --dbm-color-yellow-700: #777826;
76
+ --dbm-color-yellow-800: #5d5d1c;
77
+ --dbm-color-yellow-900: #444412;
78
+ --dbm-color-yellow-950: #2c2c09;
79
+ --dbm-color-green-50: #f7fbf8;
80
+ --dbm-color-green-100: #e9f3eb;
81
+ --dbm-color-green-200: #cbe6d2;
82
+ --dbm-color-green-300: #a4d3b1;
83
+ --dbm-color-green-400: #77be8d;
84
+ --dbm-color-green-500: #4da46c;
85
+ --dbm-color-green-600: #278950;
86
+ --dbm-color-green-700: #116c3b;
87
+ --dbm-color-green-800: #0c502a;
88
+ --dbm-color-green-900: #05351a;
89
+ --dbm-color-green-950: #021c0b;
90
+ --dbm-color-blue-50: #f7faff;
91
+ --dbm-color-blue-100: #eaf1fb;
92
+ --dbm-color-blue-200: #cedffb;
93
+ --dbm-color-blue-300: #aac7f5;
94
+ --dbm-color-blue-400: #82aced;
95
+ --dbm-color-blue-500: #5f8fdb;
96
+ --dbm-color-blue-600: #4273c1;
97
+ --dbm-color-blue-700: #2f599c;
98
+ --dbm-color-blue-800: #214174;
99
+ --dbm-color-blue-900: #142b4f;
100
+ --dbm-color-blue-950: #07162c;
101
+ --dbm-color-neutral-white: #ffffff;
102
+ --dbm-color-neutral-black: #0a0912;
103
+ --dbm-motion-duration-instant: 0ms;
104
+ --dbm-motion-duration-fast: 120ms;
105
+ --dbm-motion-duration-base: 200ms;
106
+ --dbm-motion-duration-moderate: 300ms;
107
+ --dbm-motion-duration-slow: 400ms;
108
+ --dbm-motion-duration-slower: 600ms;
109
+ --dbm-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
110
+ --dbm-motion-easing-decelerate: cubic-bezier(0, 0, 0, 1);
111
+ --dbm-motion-easing-accelerate: cubic-bezier(0.3, 0, 1, 1);
112
+ --dbm-motion-easing-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
113
+ --dbm-motion-easing-linear: cubic-bezier(0, 0, 1, 1);
114
+ --dbm-motion-scale-96: 0.96;
115
+ --dbm-motion-scale-98: 0.98;
116
+ --dbm-motion-scale-102: 1.02;
117
+ --dbm-icon-size-xs: 12px;
118
+ --dbm-icon-size-sm: 16px;
119
+ --dbm-icon-size-md: 20px;
120
+ --dbm-icon-size-lg: 24px;
121
+ --dbm-icon-size-xl: 32px;
122
+ --dbm-icon-size-2xl: 40px;
123
+ --dbm-icon-size-3xl: 48px;
124
+ --dbm-border-width-0: 0px;
125
+ --dbm-border-width-1: 1px;
126
+ --dbm-border-width-2: 2px;
127
+ --dbm-border-width-4: 4px;
128
+ --dbm-opacity-0: 0;
129
+ --dbm-opacity-5: 0.05;
130
+ --dbm-opacity-10: 0.1;
131
+ --dbm-opacity-20: 0.2;
132
+ --dbm-opacity-40: 0.4;
133
+ --dbm-opacity-50: 0.5;
134
+ --dbm-opacity-60: 0.6;
135
+ --dbm-opacity-80: 0.8;
136
+ --dbm-opacity-90: 0.9;
137
+ --dbm-opacity-100: 1;
138
+ --dbm-z-index-base: 0;
139
+ --dbm-z-index-dropdown: 1000;
140
+ --dbm-z-index-sticky: 1100;
141
+ --dbm-z-index-fixed: 1200;
142
+ --dbm-z-index-overlay: 1300;
143
+ --dbm-z-index-modal: 1400;
144
+ --dbm-z-index-popover: 1500;
145
+ --dbm-z-index-toast: 1600;
146
+ --dbm-z-index-tooltip: 1700;
147
+ --dbm-radius-none: 0px;
148
+ --dbm-radius-xs: 2px;
149
+ --dbm-radius-sm: 4px;
150
+ --dbm-radius-md: 8px;
151
+ --dbm-radius-lg: 12px;
152
+ --dbm-radius-xl: 16px;
153
+ --dbm-radius-2xl: 24px;
154
+ --dbm-radius-3xl: 32px;
155
+ --dbm-radius-full: 9999px;
156
+ --dbm-shadow-light-xs: 0px 1px 2px rgba(31,30,36,0.05);
157
+ --dbm-shadow-light-sm: 0px 1px 3px rgba(31,30,36,0.08), 0px 1px 2px rgba(31,30,36,0.04);
158
+ --dbm-shadow-light-md: 0px 4px 6px rgba(31,30,36,0.07), 0px 2px 4px rgba(31,30,36,0.05);
159
+ --dbm-shadow-light-lg: 0px 10px 15px rgba(31,30,36,0.08), 0px 4px 6px rgba(31,30,36,0.05);
160
+ --dbm-shadow-light-xl: 0px 20px 25px rgba(31,30,36,0.10), 0px 8px 10px rgba(31,30,36,0.06);
161
+ --dbm-shadow-dark-xs: 0px 1px 2px rgba(0,0,0,0.30);
162
+ --dbm-shadow-dark-sm: 0px 1px 3px rgba(0,0,0,0.40), 0px 1px 2px rgba(0,0,0,0.24);
163
+ --dbm-shadow-dark-md: 0px 4px 6px rgba(0,0,0,0.36), 0px 2px 4px rgba(0,0,0,0.24);
164
+ --dbm-shadow-dark-lg: 0px 10px 15px rgba(0,0,0,0.40), 0px 4px 6px rgba(0,0,0,0.24);
165
+ --dbm-shadow-dark-xl: 0px 20px 25px rgba(0,0,0,0.45), 0px 8px 10px rgba(0,0,0,0.28);
166
+ --dbm-space-0: 0px;
167
+ --dbm-space-1: 0.25rem;
168
+ --dbm-space-2: 0.5rem;
169
+ --dbm-space-3: 0.75rem;
170
+ --dbm-space-4: 1.0rem;
171
+ --dbm-space-5: 1.25rem;
172
+ --dbm-space-6: 1.5rem;
173
+ --dbm-space-8: 2.0rem;
174
+ --dbm-space-10: 2.5rem;
175
+ --dbm-space-12: 3.0rem;
176
+ --dbm-space-16: 4.0rem;
177
+ --dbm-space-20: 5.0rem;
178
+ --dbm-space-24: 6.0rem;
179
+ --dbm-space-32: 8.0rem;
180
+ --dbm-space-px: 0.0625rem;
181
+ --dbm-font-family-primary: Nunito, system-ui, sans-serif;
182
+ --dbm-font-family-secondary: Lora, Georgia, serif;
183
+ --dbm-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
184
+ --dbm-font-weight-regular: 400;
185
+ --dbm-font-weight-medium: 500;
186
+ --dbm-font-weight-semibold: 600;
187
+ --dbm-font-weight-bold: 700;
188
+ --dbm-font-size-xs: 0.75rem;
189
+ --dbm-font-size-sm: 0.833rem;
190
+ --dbm-font-size-base: 1.0rem;
191
+ --dbm-font-size-md: clamp(1.2rem, 1.186rem + 0.071vw, 1.25rem);
192
+ --dbm-font-size-lg: clamp(1.44rem, 1.405rem + 0.175vw, 1.562rem);
193
+ --dbm-font-size-xl: clamp(1.728rem, 1.664rem + 0.322vw, 1.953rem);
194
+ --dbm-font-size-2xl: clamp(2.074rem, 1.969rem + 0.525vw, 2.441rem);
195
+ --dbm-font-size-3xl: clamp(2.488rem, 2.327rem + 0.805vw, 3.052rem);
196
+ --dbm-font-size-4xl: clamp(2.986rem, 2.749rem + 1.184vw, 3.815rem);
197
+ --dbm-font-size-5xl: clamp(3.583rem, 3.245rem + 1.693vw, 4.768rem);
198
+ --dbm-font-size-6xl: clamp(4.3rem, 3.825rem + 2.372vw, 5.96rem);
199
+ --dbm-line-height-tight: 1.15;
200
+ --dbm-line-height-snug: 1.3;
201
+ --dbm-line-height-normal: 1.5;
202
+ --dbm-line-height-relaxed: 1.7;
203
+ --dbm-letter-spacing-tight: -0.02em;
204
+ --dbm-letter-spacing-normal: 0em;
205
+ --dbm-letter-spacing-wide: 0.02em;
206
+ }
207
+
208
+ :root {
209
+ --dbm-alert-inline-text-min-width: 20rem;
210
+ --dbm-app-shell-aside-width: 20rem;
211
+ --dbm-avatar-size-xs: 36px;
212
+ --dbm-avatar-size-sm: 40px;
213
+ --dbm-avatar-size-md: 44px;
214
+ --dbm-avatar-size-lg: 48px;
215
+ --dbm-avatar-size-xl: 52px;
216
+ --dbm-avatar-status-size-xs: 10px;
217
+ --dbm-avatar-status-size-sm: 11px;
218
+ --dbm-avatar-status-size-md: 12px;
219
+ --dbm-avatar-status-size-lg: 13px;
220
+ --dbm-avatar-status-size-xl: 14px;
221
+ --dbm-badge-padding-inline-xs: 6px;
222
+ --dbm-badge-padding-inline-sm: 6px;
223
+ --dbm-badge-padding-inline-md: 6px;
224
+ --dbm-badge-padding-inline-lg: 6px;
225
+ --dbm-badge-padding-inline-xl: 6px;
226
+ --dbm-badge-size-xs: 25px;
227
+ --dbm-badge-size-sm: 27px;
228
+ --dbm-badge-size-md: 29px;
229
+ --dbm-badge-size-lg: 30px;
230
+ --dbm-badge-size-xl: 34px;
231
+ --dbm-color-picker-panel-width: 17.5rem;
232
+ --dbm-color-picker-area-height: 10rem;
233
+ --dbm-color-picker-thumb-size: 1.25rem;
234
+ --dbm-color-picker-slider-track-height: 0.75rem;
235
+ --dbm-color-picker-swatch-size: 1.5rem;
236
+ --dbm-combobox-list-max-height: 18rem;
237
+ --dbm-combobox-option-height-xs: 1.75rem;
238
+ --dbm-combobox-option-height-sm: 2rem;
239
+ --dbm-combobox-option-height-md: 2.25rem;
240
+ --dbm-combobox-option-height-lg: 2.5rem;
241
+ --dbm-combobox-option-height-xl: 2.75rem;
242
+ --dbm-combobox-option-height-described-xs: 2.75rem;
243
+ --dbm-combobox-option-height-described-sm: 3rem;
244
+ --dbm-combobox-option-height-described-md: 3.25rem;
245
+ --dbm-combobox-option-height-described-lg: 3.5rem;
246
+ --dbm-combobox-option-height-described-xl: 3.75rem;
247
+ --dbm-command-palette-list-max-height: 24rem;
248
+ --dbm-command-palette-match-hint-max-width: 10rem;
249
+ --dbm-command-palette-page-tag-max-width: 40%;
250
+ --dbm-data-table-row-height-xs: 2rem;
251
+ --dbm-data-table-row-height-sm: 2.5rem;
252
+ --dbm-data-table-row-height-md: 2.75rem;
253
+ --dbm-data-table-row-height-lg: 3.5rem;
254
+ --dbm-data-table-row-height-xl: 4rem;
255
+ --dbm-date-picker-segment-width: 2.25ch;
256
+ --dbm-date-picker-year-width: 4.25ch;
257
+ --dbm-dialog-max-width-xs: 20rem;
258
+ --dbm-dialog-max-width-sm: 24rem;
259
+ --dbm-dialog-max-width-md: 32rem;
260
+ --dbm-dialog-max-width-lg: 42rem;
261
+ --dbm-dialog-max-width-xl: 56rem;
262
+ --dbm-drawer-size-xs: 20rem;
263
+ --dbm-drawer-size-sm: 24rem;
264
+ --dbm-drawer-size-md: 32rem;
265
+ --dbm-drawer-size-lg: 42rem;
266
+ --dbm-drawer-size-xl: 56rem;
267
+ --dbm-editor-tabs-tab-min-width: 6rem;
268
+ --dbm-editor-tabs-tab-max-width: 16rem;
269
+ --dbm-empty-state-content-max-width: 28rem;
270
+ --dbm-empty-state-media-max-width-xs: 6rem;
271
+ --dbm-empty-state-media-max-width-sm: 8rem;
272
+ --dbm-empty-state-media-max-width-md: 10rem;
273
+ --dbm-empty-state-media-max-width-lg: 12rem;
274
+ --dbm-empty-state-media-max-width-xl: 15rem;
275
+ --dbm-field-group-field-min-width: 14rem;
276
+ --dbm-heading-trim-primary-start: -0.30em;
277
+ --dbm-heading-trim-primary-end: -0.35em;
278
+ --dbm-heading-trim-secondary-start: -0.31em;
279
+ --dbm-heading-trim-secondary-end: -0.27em;
280
+ --dbm-hover-card-max-width: 20rem;
281
+ --dbm-icon-button-size-xs: 30px;
282
+ --dbm-icon-button-size-sm: 39px;
283
+ --dbm-icon-button-size-md: 42px;
284
+ --dbm-icon-button-size-lg: 55px;
285
+ --dbm-icon-button-size-xl: 61px;
286
+ --dbm-image-viewer-control-size: 2.75rem;
287
+ --dbm-image-viewer-thumbnail-size: 4rem;
288
+ --dbm-image-viewer-caption-max-width: 40rem;
289
+ --dbm-indicators-size-xs: 4px;
290
+ --dbm-indicators-size-sm: 6px;
291
+ --dbm-indicators-size-md: 8px;
292
+ --dbm-indicators-size-lg: 10px;
293
+ --dbm-indicators-size-xl: 12px;
294
+ --dbm-link-icon-scale: 1em;
295
+ --dbm-link-icon-offset-inline: 0.25em;
296
+ --dbm-link-icon-vertical-align: -0.125em;
297
+ --dbm-menu-min-width: 12rem;
298
+ --dbm-menu-max-width: 24rem;
299
+ --dbm-navbar-search-min-width: 12rem;
300
+ --dbm-navbar-search-max-width: 32rem;
301
+ --dbm-navigation-menu-panel-min-width: 16rem;
302
+ --dbm-navigation-menu-panel-max-width: 56rem;
303
+ --dbm-popover-max-width: 24rem;
304
+ --dbm-scroll-area-thickness-xs: 4px;
305
+ --dbm-scroll-area-thickness-sm: 6px;
306
+ --dbm-scroll-area-thickness-md: 8px;
307
+ --dbm-scroll-area-thickness-lg: 10px;
308
+ --dbm-scroll-area-thickness-xl: 12px;
309
+ --dbm-sidebar-width: 16rem;
310
+ --dbm-stepper-indicator-size-xs: 24px;
311
+ --dbm-stepper-indicator-size-sm: 28px;
312
+ --dbm-stepper-indicator-size-md: 32px;
313
+ --dbm-stepper-indicator-size-lg: 40px;
314
+ --dbm-stepper-indicator-size-xl: 48px;
315
+ --dbm-stepper-label-max-width: 14rem;
316
+ --dbm-table-of-contents-number-min-width: 2.5ch;
317
+ --dbm-table-toolbar-search-min-width: 14rem;
318
+ --dbm-table-toolbar-search-max-width: 24rem;
319
+ --dbm-table-toolbar-filter-count-size-xs: 1.25rem;
320
+ --dbm-tags-input-entry-min-width: 8ch;
321
+ --dbm-time-picker-segment-width: 2.25ch;
322
+ --dbm-time-picker-period-character-width: 1.5ch;
323
+ --dbm-time-picker-wheel-visible-rows: 5;
324
+ --dbm-time-picker-wheel-neighbour-scale: 0.9;
325
+ --dbm-time-picker-wheel-neighbour-opacity: 0.68;
326
+ --dbm-time-picker-wheel-edge-scale: 0.8;
327
+ --dbm-time-picker-wheel-edge-opacity: 0.35;
328
+ --dbm-timeline-marker-size-xs: 24px;
329
+ --dbm-timeline-marker-size-sm: 28px;
330
+ --dbm-timeline-marker-size-md: 32px;
331
+ --dbm-timeline-marker-size-lg: 40px;
332
+ --dbm-timeline-marker-size-xl: 48px;
333
+ --dbm-timeline-item-min-width: 12rem;
334
+ --dbm-timeline-time-width: 9rem;
335
+ --dbm-toast-width: 24rem;
336
+ --dbm-toast-stack-peek: 0.75rem;
337
+ --dbm-toast-stack-scale-step: 0.04;
338
+ --dbm-tooltip-max-width: 20rem;
339
+ --dbm-tree-row-height-xs: 1.5rem;
340
+ --dbm-tree-row-height-sm: 2rem;
341
+ --dbm-tree-row-height-md: 2.25rem;
342
+ --dbm-tree-row-height-lg: 2.75rem;
343
+ --dbm-tree-row-height-xl: 3.25rem;
344
+ }
345
+
346
+ :root[data-theme="emerald-dark"] {
347
+ --dbm-bg-canvas: var(--dbm-color-gray-700);
348
+ --dbm-bg-overlay: var(--dbm-color-neutral-black);
349
+ --dbm-bg-scrim: var(--dbm-color-gray-900);
350
+ --dbm-bg-skeleton: var(--dbm-color-gray-950);
351
+ --dbm-bg-surface: var(--dbm-color-gray-900);
352
+ --dbm-bg-brand: var(--dbm-color-emerald-300);
353
+ --dbm-bg-brand-hover: var(--dbm-color-emerald-200);
354
+ --dbm-bg-brand-subtle: var(--dbm-color-gray-950);
355
+ --dbm-bg-brand-subtle-hover: var(--dbm-color-gray-800);
356
+ --dbm-bg-danger: var(--dbm-color-red-300);
357
+ --dbm-bg-danger-hover: var(--dbm-color-red-200);
358
+ --dbm-bg-danger-subtle: var(--dbm-color-red-950);
359
+ --dbm-bg-danger-subtle-hover: var(--dbm-color-red-900);
360
+ --dbm-bg-on-danger: var(--dbm-color-red-900);
361
+ --dbm-bg-warning: var(--dbm-color-amber-300);
362
+ --dbm-bg-warning-hover: var(--dbm-color-amber-200);
363
+ --dbm-bg-warning-subtle: var(--dbm-color-amber-950);
364
+ --dbm-bg-warning-subtle-hover: var(--dbm-color-amber-900);
365
+ --dbm-bg-on-warning: var(--dbm-color-amber-900);
366
+ --dbm-bg-success: var(--dbm-color-green-300);
367
+ --dbm-bg-success-hover: var(--dbm-color-green-200);
368
+ --dbm-bg-success-subtle: var(--dbm-color-green-950);
369
+ --dbm-bg-success-subtle-hover: var(--dbm-color-green-900);
370
+ --dbm-bg-on-success: var(--dbm-color-green-900);
371
+ --dbm-bg-info: var(--dbm-color-blue-300);
372
+ --dbm-bg-info-hover: var(--dbm-color-blue-200);
373
+ --dbm-bg-info-subtle: var(--dbm-color-blue-950);
374
+ --dbm-bg-info-subtle-hover: var(--dbm-color-blue-900);
375
+ --dbm-bg-on-info: var(--dbm-color-blue-900);
376
+ --dbm-bg-highlight: var(--dbm-color-yellow-300);
377
+ --dbm-bg-highlight-hover: var(--dbm-color-yellow-200);
378
+ --dbm-bg-highlight-subtle: var(--dbm-color-yellow-950);
379
+ --dbm-bg-highlight-subtle-hover: var(--dbm-color-yellow-900);
380
+ --dbm-bg-on-highlight: var(--dbm-color-yellow-900);
381
+ --dbm-bg-neutral: var(--dbm-color-gray-300);
382
+ --dbm-bg-neutral-hover: var(--dbm-color-gray-200);
383
+ --dbm-bg-neutral-subtle: var(--dbm-color-gray-800);
384
+ --dbm-bg-neutral-subtle-hover: var(--dbm-color-gray-700);
385
+ --dbm-bg-on-neutral: var(--dbm-color-gray-900);
386
+ --dbm-bg-track: var(--dbm-color-gray-700);
387
+ --dbm-bg-track-strong: var(--dbm-color-gray-600);
388
+ --dbm-bg-code: var(--dbm-color-gray-800);
389
+ --dbm-bg-code-highlight: var(--dbm-color-gray-800);
390
+ --dbm-bg-code-block: var(--dbm-color-gray-900);
391
+ --dbm-text-primary: var(--dbm-color-gray-50);
392
+ --dbm-text-secondary: var(--dbm-color-gray-200);
393
+ --dbm-text-tertiary: var(--dbm-color-gray-300);
394
+ --dbm-text-disabled: var(--dbm-color-gray-600);
395
+ --dbm-text-on-brand: var(--dbm-color-gray-900);
396
+ --dbm-text-on-danger: var(--dbm-color-red-900);
397
+ --dbm-text-on-info: var(--dbm-color-blue-900);
398
+ --dbm-text-on-success: var(--dbm-color-green-900);
399
+ --dbm-text-on-warning: var(--dbm-color-amber-900);
400
+ --dbm-text-on-neutral: var(--dbm-color-gray-900);
401
+ --dbm-text-on-highlight: var(--dbm-color-yellow-900);
402
+ --dbm-text-link: var(--dbm-color-blue-300);
403
+ --dbm-text-brand: var(--dbm-color-emerald-400);
404
+ --dbm-text-danger: var(--dbm-color-red-300);
405
+ --dbm-text-warning: var(--dbm-color-amber-300);
406
+ --dbm-text-success: var(--dbm-color-green-300);
407
+ --dbm-text-info: var(--dbm-color-blue-300);
408
+ --dbm-text-highlight: var(--dbm-color-yellow-300);
409
+ --dbm-text-syntax-keyword: var(--dbm-color-purple-300);
410
+ --dbm-text-syntax-string: var(--dbm-color-green-300);
411
+ --dbm-text-syntax-number: var(--dbm-color-amber-300);
412
+ --dbm-text-syntax-function: var(--dbm-color-blue-300);
413
+ --dbm-text-syntax-type: var(--dbm-color-emerald-300);
414
+ --dbm-text-syntax-property: var(--dbm-color-blue-200);
415
+ --dbm-text-syntax-tag: var(--dbm-color-red-300);
416
+ --dbm-text-syntax-comment: var(--dbm-color-gray-300);
417
+ --dbm-text-syntax-inserted: var(--dbm-color-green-300);
418
+ --dbm-text-syntax-deleted: var(--dbm-color-red-300);
419
+ --dbm-text-white: var(--dbm-color-neutral-white);
420
+ --dbm-border-default: var(--dbm-color-gray-800);
421
+ --dbm-border-neutral-subtle: var(--dbm-color-gray-950);
422
+ --dbm-border-neutral: var(--dbm-color-gray-600);
423
+ --dbm-border-neutral-strong: var(--dbm-color-gray-400);
424
+ --dbm-border-on-neutral: var(--dbm-color-gray-900);
425
+ --dbm-border-strong: var(--dbm-color-gray-200);
426
+ --dbm-border-focus: var(--dbm-color-emerald-400);
427
+ --dbm-border-brand: var(--dbm-color-emerald-300);
428
+ --dbm-border-brand-subtle: var(--dbm-color-emerald-900);
429
+ --dbm-border-danger: var(--dbm-color-red-300);
430
+ --dbm-border-danger-subtle: var(--dbm-color-red-900);
431
+ --dbm-border-on-danger: var(--dbm-color-red-900);
432
+ --dbm-border-warning: var(--dbm-color-amber-300);
433
+ --dbm-border-warning-subtle: var(--dbm-color-amber-900);
434
+ --dbm-border-on-warning: var(--dbm-color-amber-900);
435
+ --dbm-border-success: var(--dbm-color-green-300);
436
+ --dbm-border-success-subtle: var(--dbm-color-green-900);
437
+ --dbm-border-on-success: var(--dbm-color-green-900);
438
+ --dbm-border-info: var(--dbm-color-blue-300);
439
+ --dbm-border-info-subtle: var(--dbm-color-blue-900);
440
+ --dbm-border-on-info: var(--dbm-color-blue-900);
441
+ --dbm-border-highlight: var(--dbm-color-yellow-300);
442
+ --dbm-border-highlight-subtle: var(--dbm-color-yellow-900);
443
+ --dbm-border-on-highlight: var(--dbm-color-yellow-900);
444
+ --dbm-border-code: var(--dbm-color-gray-700);
445
+ --dbm-border-white: var(--dbm-color-neutral-white);
446
+ --dbm-border-black: var(--dbm-color-neutral-black);
447
+ --dbm-icon-default: var(--dbm-color-gray-200);
448
+ --dbm-icon-secondary: var(--dbm-color-gray-500);
449
+ --dbm-icon-brand: var(--dbm-color-emerald-300);
450
+ --dbm-icon-on-brand: var(--dbm-color-gray-900);
451
+ --dbm-icon-disabled: var(--dbm-color-gray-700);
452
+ --dbm-icon-danger: var(--dbm-color-red-300);
453
+ --dbm-icon-on-danger: var(--dbm-color-red-900);
454
+ --dbm-icon-warning: var(--dbm-color-amber-300);
455
+ --dbm-icon-on-warning: var(--dbm-color-amber-900);
456
+ --dbm-icon-success: var(--dbm-color-green-300);
457
+ --dbm-icon-on-success: var(--dbm-color-green-900);
458
+ --dbm-icon-info: var(--dbm-color-blue-300);
459
+ --dbm-icon-on-info: var(--dbm-color-blue-900);
460
+ --dbm-icon-highlight: var(--dbm-color-yellow-300);
461
+ --dbm-icon-on-highlight: var(--dbm-color-yellow-900);
462
+ --dbm-icon-on-neutral: var(--dbm-color-gray-900);
463
+ --dbm-icon-white: var(--dbm-color-neutral-white);
464
+ }