@ferrlabs/ui-foundation 5.11.0 → 5.11.2
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 +3 -2
- package/package.json +1 -1
- package/src/styles/global.css +2 -0
package/README.md
CHANGED
|
@@ -31,8 +31,7 @@ is the default editorial look.
|
|
|
31
31
|
| `soft` | 8px / 12px / 16px | Geist | 36px |
|
|
32
32
|
|
|
33
33
|
`--control-height` is the `md` height of buttons, inputs, selects, search fields,
|
|
34
|
-
multi-selects and submit buttons. `sm` and `lg` are 8px below and above it.
|
|
35
|
-
are padding-sized, so they shift by half the difference to 40px on each side.
|
|
34
|
+
multi-selects and submit buttons. `sm` and `lg` are 8px below and above it.
|
|
36
35
|
|
|
37
36
|
```html
|
|
38
37
|
<html data-style="precision" data-theme="dark"></html>
|
|
@@ -76,6 +75,8 @@ import { icons } from '@ferrlabs/ui-foundation/icons';
|
|
|
76
75
|
|
|
77
76
|
`.btn-primary` and `.btn-ghost` use `--radius-control`.
|
|
78
77
|
|
|
78
|
+
Both are at least 44px tall. `.btn-primary` fills with `--accent` and derives its text colour from it: white on dark accents, black on light ones, so every product accent clears 4.5:1 (slate 14.6, orange 6.9, emerald 8.3, indigo 4.7, violet 5.0, amber 9.8, teal 8.4). Browsers without relative colour syntax keep white text.
|
|
79
|
+
|
|
79
80
|
## Migration from old packages
|
|
80
81
|
|
|
81
82
|
The old packages (`@ferrlabs/ui-icons`, `@ferrlabs/styles`,
|
package/package.json
CHANGED
package/src/styles/global.css
CHANGED
|
@@ -242,6 +242,7 @@
|
|
|
242
242
|
display: inline-flex;
|
|
243
243
|
align-items: center;
|
|
244
244
|
gap: 10px;
|
|
245
|
+
min-height: 44px;
|
|
245
246
|
padding: 14px 24px;
|
|
246
247
|
border-radius: var(--radius-control);
|
|
247
248
|
font-family: var(--font-mono);
|
|
@@ -257,6 +258,7 @@
|
|
|
257
258
|
.btn-primary {
|
|
258
259
|
background: var(--accent);
|
|
259
260
|
color: #fff;
|
|
261
|
+
color: oklch(from var(--accent) clamp(0, (0.564 - l) * 1000, 1) 0 0);
|
|
260
262
|
}
|
|
261
263
|
.btn-primary:hover {
|
|
262
264
|
transform: translateY(-1px);
|