@unframed/tokens 0.13.0 → 1.0.0-rc.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/dist/tokens.css +15 -15
- package/dist/tokens.json +10 -10
- package/package.json +1 -1
- package/src/base.tokens.json +5 -5
- package/src/dark.tokens.json +4 -4
- package/src/light.tokens.json +2 -2
package/dist/tokens.css
CHANGED
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
--uf-font-weight-regular: 400;
|
|
74
74
|
--uf-font-weight-medium: 500;
|
|
75
75
|
--uf-font-weight-semibold: 600;
|
|
76
|
-
--uf-radius-sm:
|
|
77
|
-
--uf-radius-md:
|
|
78
|
-
--uf-radius-lg:
|
|
76
|
+
--uf-radius-sm: 2px;
|
|
77
|
+
--uf-radius-md: 2px;
|
|
78
|
+
--uf-radius-lg: 2px;
|
|
79
79
|
--uf-radius-full: 9999px;
|
|
80
|
-
--uf-radius-control:
|
|
80
|
+
--uf-radius-control: 2px;
|
|
81
81
|
--uf-space-1: 0.25rem;
|
|
82
82
|
--uf-space-2: 0.5rem;
|
|
83
83
|
--uf-space-3: 0.75rem;
|
|
@@ -152,8 +152,8 @@
|
|
|
152
152
|
--uf-color-toast-danger-text: var(--uf-palette-neutral-0);
|
|
153
153
|
--uf-shadow-raised: var(--uf-shadow-md);
|
|
154
154
|
--uf-shadow-overlay: var(--uf-shadow-md);
|
|
155
|
-
--uf-shadow-modal:
|
|
156
|
-
--uf-shadow-drawer: 0 0
|
|
155
|
+
--uf-shadow-modal: 0 12px 32px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.06);
|
|
156
|
+
--uf-shadow-drawer: 0 0 32px rgb(0 0 0 / 0.10), 0 0 8px rgb(0 0 0 / 0.05);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
[data-uf-theme='dark'] {
|
|
@@ -209,10 +209,10 @@
|
|
|
209
209
|
--uf-color-toast-danger-bg: var(--uf-palette-danger-600);
|
|
210
210
|
--uf-color-toast-danger-border: var(--uf-palette-danger-600);
|
|
211
211
|
--uf-color-toast-danger-text: var(--uf-palette-neutral-0);
|
|
212
|
-
--uf-shadow-raised: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
213
|
-
--uf-shadow-overlay: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
214
|
-
--uf-shadow-modal: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
215
|
-
--uf-shadow-drawer: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
212
|
+
--uf-shadow-raised: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 8px 24px -8px color-mix(in srgb, var(--uf-palette-accent-600) 30%, transparent);
|
|
213
|
+
--uf-shadow-overlay: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 18%, transparent), 0 6px 16px -6px color-mix(in srgb, var(--uf-palette-accent-600) 28%, transparent);
|
|
214
|
+
--uf-shadow-modal: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 16px 40px -12px color-mix(in srgb, var(--uf-palette-accent-600) 32%, transparent);
|
|
215
|
+
--uf-shadow-drawer: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 0 32px -8px color-mix(in srgb, var(--uf-palette-accent-600) 30%, transparent);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
@media (prefers-color-scheme: dark) {
|
|
@@ -269,15 +269,15 @@
|
|
|
269
269
|
--uf-color-toast-danger-bg: var(--uf-palette-danger-600);
|
|
270
270
|
--uf-color-toast-danger-border: var(--uf-palette-danger-600);
|
|
271
271
|
--uf-color-toast-danger-text: var(--uf-palette-neutral-0);
|
|
272
|
-
--uf-shadow-raised: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
273
|
-
--uf-shadow-overlay: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
274
|
-
--uf-shadow-modal: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
275
|
-
--uf-shadow-drawer: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
272
|
+
--uf-shadow-raised: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 8px 24px -8px color-mix(in srgb, var(--uf-palette-accent-600) 30%, transparent);
|
|
273
|
+
--uf-shadow-overlay: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 18%, transparent), 0 6px 16px -6px color-mix(in srgb, var(--uf-palette-accent-600) 28%, transparent);
|
|
274
|
+
--uf-shadow-modal: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 16px 40px -12px color-mix(in srgb, var(--uf-palette-accent-600) 32%, transparent);
|
|
275
|
+
--uf-shadow-drawer: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 0 32px -8px color-mix(in srgb, var(--uf-palette-accent-600) 30%, transparent);
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
/* Before the components load: no flash of raw content on server-rendered pages. */
|
|
280
|
-
:where(uf-accordion, uf-accordion-item, uf-alert, uf-avatar, uf-badge, uf-breadcrumb-item, uf-breadcrumbs, uf-button, uf-calendar, uf-card, uf-checkbox, uf-checkbox-group, uf-combobox, uf-date-picker, uf-date-range-picker, uf-dialog, uf-divider, uf-drawer, uf-dropdown, uf-empty-state, uf-file-upload, uf-icon, uf-input, uf-menu, uf-menu-item, uf-multi-select, uf-number-input, uf-pagination, uf-popover, uf-progress, uf-radio, uf-radio-group, uf-segmented-control, uf-select, uf-skeleton, uf-slider, uf-spinner, uf-switch, uf-tab, uf-tab-panel, uf-table, uf-tabs, uf-textarea, uf-toaster, uf-tooltip):not(:defined) {
|
|
280
|
+
:where(uf-accordion, uf-accordion-item, uf-alert, uf-avatar, uf-badge, uf-breadcrumb-item, uf-breadcrumbs, uf-button, uf-button-group, uf-calendar, uf-card, uf-checkbox, uf-checkbox-group, uf-combobox, uf-date-picker, uf-date-range-picker, uf-dialog, uf-divider, uf-drawer, uf-dropdown, uf-empty-state, uf-file-upload, uf-icon, uf-input, uf-menu, uf-menu-item, uf-multi-select, uf-number-input, uf-pagination, uf-popover, uf-progress, uf-radio, uf-radio-group, uf-segmented-control, uf-select, uf-skeleton, uf-slider, uf-spinner, uf-switch, uf-tab, uf-tab-panel, uf-table, uf-tabs, uf-textarea, uf-toaster, uf-tooltip):not(:defined) {
|
|
281
281
|
visibility: hidden;
|
|
282
282
|
}
|
|
283
283
|
|
package/dist/tokens.json
CHANGED
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
"--uf-font-weight-regular": 400,
|
|
74
74
|
"--uf-font-weight-medium": 500,
|
|
75
75
|
"--uf-font-weight-semibold": 600,
|
|
76
|
-
"--uf-radius-sm": "
|
|
77
|
-
"--uf-radius-md": "
|
|
78
|
-
"--uf-radius-lg": "
|
|
76
|
+
"--uf-radius-sm": "2px",
|
|
77
|
+
"--uf-radius-md": "2px",
|
|
78
|
+
"--uf-radius-lg": "2px",
|
|
79
79
|
"--uf-radius-full": "9999px",
|
|
80
|
-
"--uf-radius-control": "
|
|
80
|
+
"--uf-radius-control": "2px",
|
|
81
81
|
"--uf-space-1": "0.25rem",
|
|
82
82
|
"--uf-space-2": "0.5rem",
|
|
83
83
|
"--uf-space-3": "0.75rem",
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
"--uf-color-toast-danger-text": "#ffffff",
|
|
150
150
|
"--uf-shadow-raised": "0 4px 12px rgb(0 0 0 / 0.10), 0 1px 3px rgb(0 0 0 / 0.08)",
|
|
151
151
|
"--uf-shadow-overlay": "0 4px 12px rgb(0 0 0 / 0.10), 0 1px 3px rgb(0 0 0 / 0.08)",
|
|
152
|
-
"--uf-shadow-modal": "0
|
|
153
|
-
"--uf-shadow-drawer": "0 0
|
|
152
|
+
"--uf-shadow-modal": "0 12px 32px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.06)",
|
|
153
|
+
"--uf-shadow-drawer": "0 0 32px rgb(0 0 0 / 0.10), 0 0 8px rgb(0 0 0 / 0.05)"
|
|
154
154
|
},
|
|
155
155
|
"dark": {
|
|
156
156
|
"--uf-color-surface": "#0a0b08",
|
|
@@ -204,9 +204,9 @@
|
|
|
204
204
|
"--uf-color-toast-danger-bg": "#7c162e",
|
|
205
205
|
"--uf-color-toast-danger-border": "#7c162e",
|
|
206
206
|
"--uf-color-toast-danger-text": "#ffffff",
|
|
207
|
-
"--uf-shadow-raised": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
208
|
-
"--uf-shadow-overlay": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
209
|
-
"--uf-shadow-modal": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
210
|
-
"--uf-shadow-drawer": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
207
|
+
"--uf-shadow-raised": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 8px 24px -8px color-mix(in srgb, var(--uf-palette-accent-600) 30%, transparent)",
|
|
208
|
+
"--uf-shadow-overlay": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 18%, transparent), 0 6px 16px -6px color-mix(in srgb, var(--uf-palette-accent-600) 28%, transparent)",
|
|
209
|
+
"--uf-shadow-modal": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 16px 40px -12px color-mix(in srgb, var(--uf-palette-accent-600) 32%, transparent)",
|
|
210
|
+
"--uf-shadow-drawer": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 0 32px -8px color-mix(in srgb, var(--uf-palette-accent-600) 30%, transparent)"
|
|
211
211
|
}
|
|
212
212
|
}
|
package/package.json
CHANGED
package/src/base.tokens.json
CHANGED
|
@@ -250,20 +250,20 @@
|
|
|
250
250
|
"radius": {
|
|
251
251
|
"$type": "dimension",
|
|
252
252
|
"sm": {
|
|
253
|
-
"$value": "
|
|
253
|
+
"$value": "2px"
|
|
254
254
|
},
|
|
255
255
|
"md": {
|
|
256
|
-
"$value": "
|
|
256
|
+
"$value": "2px"
|
|
257
257
|
},
|
|
258
258
|
"lg": {
|
|
259
|
-
"$value": "
|
|
259
|
+
"$value": "2px"
|
|
260
260
|
},
|
|
261
261
|
"full": {
|
|
262
262
|
"$value": "9999px"
|
|
263
263
|
},
|
|
264
264
|
"control": {
|
|
265
|
-
"$value": "
|
|
266
|
-
"$description": "Corners of buttons and form controls.
|
|
265
|
+
"$value": "2px",
|
|
266
|
+
"$description": "Corners of buttons and form controls. 0 for square controls, larger for rounder ones."
|
|
267
267
|
}
|
|
268
268
|
},
|
|
269
269
|
"space": {
|
package/src/dark.tokens.json
CHANGED
|
@@ -163,19 +163,19 @@
|
|
|
163
163
|
"$type": "shadow",
|
|
164
164
|
"raised": {
|
|
165
165
|
"$description": "A raised surface, like an elevated card. Shadows barely show on dark backgrounds, so it is a faint accent edge and an accent glow.",
|
|
166
|
-
"$value": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
166
|
+
"$value": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 8px 24px -8px color-mix(in srgb, var(--uf-palette-accent-600) 30%, transparent)"
|
|
167
167
|
},
|
|
168
168
|
"overlay": {
|
|
169
169
|
"$description": "A surface over the page, like a popover, menu or list. Shadows barely show on dark backgrounds, so it is a faint accent edge and an accent glow.",
|
|
170
|
-
"$value": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
170
|
+
"$value": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 18%, transparent), 0 6px 16px -6px color-mix(in srgb, var(--uf-palette-accent-600) 28%, transparent)"
|
|
171
171
|
},
|
|
172
172
|
"modal": {
|
|
173
173
|
"$description": "A dialog: like overlay, with a wider glow.",
|
|
174
|
-
"$value": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
174
|
+
"$value": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 16px 40px -12px color-mix(in srgb, var(--uf-palette-accent-600) 32%, transparent)"
|
|
175
175
|
},
|
|
176
176
|
"drawer": {
|
|
177
177
|
"$description": "A drawer: like modal, with the glow even on every side, so it shows from whichever edge the drawer comes in.",
|
|
178
|
-
"$value": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400)
|
|
178
|
+
"$value": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 20%, transparent), 0 0 32px -8px color-mix(in srgb, var(--uf-palette-accent-600) 30%, transparent)"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
package/src/light.tokens.json
CHANGED
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
},
|
|
172
172
|
"modal": {
|
|
173
173
|
"$description": "A dialog: a deeper shadow.",
|
|
174
|
-
"$value": "
|
|
174
|
+
"$value": "0 12px 32px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.06)"
|
|
175
175
|
},
|
|
176
176
|
"drawer": {
|
|
177
177
|
"$description": "A drawer: as deep as a dialog's, but even on every side, so it shows from whichever edge the drawer comes in.",
|
|
178
|
-
"$value": "0 0
|
|
178
|
+
"$value": "0 0 32px rgb(0 0 0 / 0.10), 0 0 8px rgb(0 0 0 / 0.05)"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|