@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 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: 4px;
77
- --uf-radius-md: 8px;
78
- --uf-radius-lg: 12px;
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: 0px;
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: var(--uf-shadow-lg);
156
- --uf-shadow-drawer: 0 0 40px rgb(0 0 0 / 0.16), 0 0 12px rgb(0 0 0 / 0.08);
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) 30%, transparent), 0 12px 32px -8px color-mix(in srgb, var(--uf-palette-accent-600) 55%, transparent);
213
- --uf-shadow-overlay: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 25%, transparent), 0 8px 24px -6px color-mix(in srgb, var(--uf-palette-accent-600) 50%, transparent);
214
- --uf-shadow-modal: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 30%, transparent), 0 24px 64px -12px color-mix(in srgb, var(--uf-palette-accent-600) 60%, transparent);
215
- --uf-shadow-drawer: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 30%, transparent), 0 0 48px -8px color-mix(in srgb, var(--uf-palette-accent-600) 55%, transparent);
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) 30%, transparent), 0 12px 32px -8px color-mix(in srgb, var(--uf-palette-accent-600) 55%, transparent);
273
- --uf-shadow-overlay: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 25%, transparent), 0 8px 24px -6px color-mix(in srgb, var(--uf-palette-accent-600) 50%, transparent);
274
- --uf-shadow-modal: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 30%, transparent), 0 24px 64px -12px color-mix(in srgb, var(--uf-palette-accent-600) 60%, transparent);
275
- --uf-shadow-drawer: 0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 30%, transparent), 0 0 48px -8px color-mix(in srgb, var(--uf-palette-accent-600) 55%, transparent);
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": "4px",
77
- "--uf-radius-md": "8px",
78
- "--uf-radius-lg": "12px",
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": "0px",
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 16px 40px rgb(0 0 0 / 0.18), 0 4px 12px rgb(0 0 0 / 0.10)",
153
- "--uf-shadow-drawer": "0 0 40px rgb(0 0 0 / 0.16), 0 0 12px rgb(0 0 0 / 0.08)"
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) 30%, transparent), 0 12px 32px -8px color-mix(in srgb, var(--uf-palette-accent-600) 55%, transparent)",
208
- "--uf-shadow-overlay": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 25%, transparent), 0 8px 24px -6px color-mix(in srgb, var(--uf-palette-accent-600) 50%, transparent)",
209
- "--uf-shadow-modal": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 30%, transparent), 0 24px 64px -12px color-mix(in srgb, var(--uf-palette-accent-600) 60%, transparent)",
210
- "--uf-shadow-drawer": "0 0 0 1px color-mix(in srgb, var(--uf-palette-accent-400) 30%, transparent), 0 0 48px -8px color-mix(in srgb, var(--uf-palette-accent-600) 55%, transparent)"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unframed/tokens",
3
- "version": "0.13.0",
3
+ "version": "1.0.0-rc.0",
4
4
  "description": "Design tokens for Unframed, as CSS custom properties and resolved JSON.",
5
5
  "license": "MIT",
6
6
  "author": "Patrizio Di Bartolomeo",
@@ -250,20 +250,20 @@
250
250
  "radius": {
251
251
  "$type": "dimension",
252
252
  "sm": {
253
- "$value": "4px"
253
+ "$value": "2px"
254
254
  },
255
255
  "md": {
256
- "$value": "8px"
256
+ "$value": "2px"
257
257
  },
258
258
  "lg": {
259
- "$value": "12px"
259
+ "$value": "2px"
260
260
  },
261
261
  "full": {
262
262
  "$value": "9999px"
263
263
  },
264
264
  "control": {
265
- "$value": "0px",
266
- "$description": "Corners of buttons and form controls. Set e.g. 6px for rounded 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": {
@@ -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) 30%, transparent), 0 12px 32px -8px color-mix(in srgb, var(--uf-palette-accent-600) 55%, transparent)"
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) 25%, transparent), 0 8px 24px -6px color-mix(in srgb, var(--uf-palette-accent-600) 50%, transparent)"
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) 30%, transparent), 0 24px 64px -12px color-mix(in srgb, var(--uf-palette-accent-600) 60%, transparent)"
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) 30%, transparent), 0 0 48px -8px color-mix(in srgb, var(--uf-palette-accent-600) 55%, transparent)"
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
  }
@@ -171,11 +171,11 @@
171
171
  },
172
172
  "modal": {
173
173
  "$description": "A dialog: a deeper shadow.",
174
- "$value": "{shadow.lg}"
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 40px rgb(0 0 0 / 0.16), 0 0 12px rgb(0 0 0 / 0.08)"
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
  }