@ferrlabs/ui-foundation 5.6.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 +11 -0
- package/package.json +1 -1
- package/src/styles/global.css +2 -2
- package/src/styles/tokens.css +21 -11
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
package/src/styles/global.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
::-webkit-scrollbar-thumb {
|
|
103
103
|
background: var(--color-rule-strong);
|
|
104
|
-
border-radius:
|
|
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:
|
|
239
|
+
border-radius: var(--radius-control);
|
|
240
240
|
font-family: var(--font-mono);
|
|
241
241
|
font-size: 13px;
|
|
242
242
|
letter-spacing: 0.04em;
|
package/src/styles/tokens.css
CHANGED
|
@@ -31,13 +31,12 @@
|
|
|
31
31
|
--color-ferrfleet-amber: #f59e0b; /* FerrFleet (operational, runtime) */
|
|
32
32
|
--color-ferrlens-teal: #14b8a6; /* FerrLens (free web tools, clarity) */
|
|
33
33
|
|
|
34
|
-
/* Editorial surface palette — the
|
|
35
|
-
* sites
|
|
36
|
-
*
|
|
37
|
-
* applies. See DESIGN.md §1.3.
|
|
34
|
+
/* Editorial surface palette — the cool slate family shared by the
|
|
35
|
+
* marketing sites and the app dashboards. `--color-app-*` aliases these
|
|
36
|
+
* surfaces so dashboards keep their own hook for overrides.
|
|
38
37
|
*/
|
|
39
|
-
--color-paper: #
|
|
40
|
-
--color-paper-2: #
|
|
38
|
+
--color-paper: #f8fafc; /* Page background */
|
|
39
|
+
--color-paper-2: #f1f5f9; /* Cards, alt rows, subtle panels */
|
|
41
40
|
--color-ink: #1e293b; /* Headings, primary text */
|
|
42
41
|
--color-ink-2: #475569; /* Body text */
|
|
43
42
|
--color-ink-3: #5d6b80; /* Captions, mono labels */
|
|
@@ -54,10 +53,10 @@
|
|
|
54
53
|
--color-fg-2: var(--color-ink-2);
|
|
55
54
|
--color-fg-3: var(--color-ink-3);
|
|
56
55
|
|
|
57
|
-
/* App dashboards — same ink,
|
|
58
|
-
--color-app-bg:
|
|
59
|
-
--color-app-bg-2:
|
|
60
|
-
--color-app-sidebar: #
|
|
56
|
+
/* App dashboards — same ink and surfaces, plus the sidebar tint. */
|
|
57
|
+
--color-app-bg: var(--color-paper);
|
|
58
|
+
--color-app-bg-2: var(--color-paper-2);
|
|
59
|
+
--color-app-sidebar: #f6f8fb;
|
|
61
60
|
--color-app-rule: rgba(30, 41, 59, 0.1);
|
|
62
61
|
--color-app-rule-strong: rgba(30, 41, 59, 0.24);
|
|
63
62
|
--color-app-nav-active: rgba(30, 41, 59, 0.06);
|
|
@@ -75,7 +74,7 @@
|
|
|
75
74
|
--color-danger: #dc2626;
|
|
76
75
|
--color-danger-fg: #7f1d1d;
|
|
77
76
|
|
|
78
|
-
--color-code-bg: #
|
|
77
|
+
--color-code-bg: #f1f5f9;
|
|
79
78
|
--color-code-fg: #1e293b;
|
|
80
79
|
--color-code-comment: #5d6b80;
|
|
81
80
|
--color-code-keyword: #6d28d9;
|
|
@@ -89,6 +88,17 @@
|
|
|
89
88
|
--color-code-deleted: #b91c1c;
|
|
90
89
|
}
|
|
91
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
|
+
|
|
92
102
|
/* Dark mode tokens — opt-in via `<html data-theme="dark">`. The marketing
|
|
93
103
|
* sites mount a tweaks panel that flips this; the apps don't have one yet
|
|
94
104
|
* but inherit the same vars so a future toggle Just Works.
|