@ferrlabs/ui-foundation 5.11.1 → 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 CHANGED
@@ -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.11.2",
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);