@ferrlabs/ui-foundation 5.7.0 → 5.8.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 CHANGED
@@ -40,6 +40,17 @@ import { icons } from '@ferrlabs/ui-foundation/icons';
40
40
  @import '@ferrlabs/ui-foundation/styles/global.css';
41
41
  ```
42
42
 
43
+ ## Radius tokens
44
+
45
+ | Token | Value | Tailwind utility | Use |
46
+ | ------------------ | ----- | ----------------- | --------------------------------------------------- |
47
+ | `--radius-control` | 4px | `rounded-control` | Buttons, inputs, selects, search, tabs, small chips |
48
+ | `--radius-card` | 8px | `rounded-card` | Cards, menus, popovers, rail items |
49
+ | `--radius-modal` | 12px | `rounded-modal` | Modals, switcher panels, large surfaces |
50
+ | `--radius-full` | 999px | `rounded-full` | Switch, avatar, badges, status dots |
51
+
52
+ `.btn-primary` and `.btn-ghost` use `--radius-control`.
53
+
43
54
  ## Migration from old packages
44
55
 
45
56
  The old packages (`@ferrlabs/ui-icons`, `@ferrlabs/styles`,
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "type": "module",
56
56
  "types": "./dist/index.d.ts",
57
- "version": "5.7.0",
57
+ "version": "5.8.0",
58
58
  "scripts": {
59
59
  "build": "tsc",
60
60
  "typecheck": "tsc --noEmit"
@@ -101,7 +101,7 @@
101
101
  }
102
102
  ::-webkit-scrollbar-thumb {
103
103
  background: var(--color-rule-strong);
104
- border-radius: 10px;
104
+ border-radius: var(--radius-full);
105
105
  }
106
106
  ::-webkit-scrollbar-thumb:hover {
107
107
  background: var(--color-ink-2);
@@ -236,7 +236,7 @@
236
236
  align-items: center;
237
237
  gap: 10px;
238
238
  padding: 14px 24px;
239
- border-radius: 999px;
239
+ border-radius: var(--radius-control);
240
240
  font-family: var(--font-mono);
241
241
  font-size: 13px;
242
242
  letter-spacing: 0.04em;
@@ -88,6 +88,17 @@
88
88
  --color-code-deleted: #b91c1c;
89
89
  }
90
90
 
91
+ /* Border radius scale. `static` keeps the variables in :root even when no
92
+ * utility references them, since ui-ng components read them via var().
93
+ * Utilities: `rounded-control`, `rounded-card`, `rounded-modal`.
94
+ */
95
+ @theme static {
96
+ --radius-control: 4px; /* Buttons, inputs, selects, tabs, small chips */
97
+ --radius-card: 8px; /* Cards, menus, popovers, rail items */
98
+ --radius-modal: 12px; /* Modals, switcher panels, large surfaces */
99
+ --radius-full: 999px; /* Switch, avatar, badges, status dots */
100
+ }
101
+
91
102
  /* Dark mode tokens — opt-in via `<html data-theme="dark">`. The marketing
92
103
  * sites mount a tweaks panel that flips this; the apps don't have one yet
93
104
  * but inherit the same vars so a future toggle Just Works.