@ferrlabs/ui-foundation 5.11.1 → 5.12.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
@@ -27,7 +27,7 @@ is the default editorial look.
27
27
  | `data-style` | Radii (control / card / modal) | Font | `--control-height` |
28
28
  | ------------ | ------------------------------ | -------- | ------------------ |
29
29
  | (none) | 4px / 8px / 12px | Fraunces | 40px |
30
- | `precision` | 2px / 4px / 6px | Geist | 28px |
30
+ | `precision` | 4px / 4px / 6px | Geist | 36px |
31
31
  | `soft` | 8px / 12px / 16px | Geist | 36px |
32
32
 
33
33
  `--control-height` is the `md` height of buttons, inputs, selects, search fields,
@@ -75,6 +75,8 @@ import { icons } from '@ferrlabs/ui-foundation/icons';
75
75
 
76
76
  `.btn-primary` and `.btn-ghost` use `--radius-control`.
77
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
+
78
80
  ## Migration from old packages
79
81
 
80
82
  The old packages (`@ferrlabs/ui-icons`, `@ferrlabs/styles`,
package/package.json CHANGED
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "type": "module",
58
58
  "types": "./dist/index.d.ts",
59
- "version": "5.11.1",
59
+ "version": "5.12.0",
60
60
  "scripts": {
61
61
  "build": "tsc",
62
62
  "typecheck": "tsc --noEmit"
@@ -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);
@@ -148,12 +148,12 @@ html[data-theme='dark'] {
148
148
  }
149
149
 
150
150
  html[data-style='precision'] {
151
- --radius-control: 2px;
151
+ --radius-control: 4px;
152
152
  --radius-card: 4px;
153
153
  --radius-modal: 6px;
154
154
  --font-sans: 'Geist Sans', system-ui, sans-serif;
155
155
  --font-display: 'Geist Sans', system-ui, sans-serif;
156
- --control-height: 28px;
156
+ --control-height: 36px;
157
157
  }
158
158
 
159
159
  html[data-style='soft'] {