@warmio/design 2.0.0 → 2.1.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
@@ -17,7 +17,7 @@ import { Logo, WarmLogoIcon } from '@warmio/design/logo';
17
17
  The product UI uses Inter, self-hosted from `fonts/` as wght variable latin and
18
18
  latin-ext subsets (normal and italic, Inter 4.001 from `@fontsource-variable/inter`
19
19
  5.3.0, OFL in `LICENSES/inter-OFL-1.1.txt`). No font loads from Google.
20
- JetBrains Mono remains for numbers, code, and measurements. The interface uses regular (400) and medium (500) weights.
20
+ Numbers and money use the `--font-numeric` Inter role with tabular figures; JetBrains Mono remains for code, keys, and identifiers. The interface uses regular (400) and medium (500) weights.
21
21
 
22
22
  `--accent-solid` is the one chromatic accent for links, badges, and highlights.
23
23
 
@@ -34,6 +34,8 @@ duplicate tokens (`--secondary` into `--accent`, `--*-bg-muted` into `--*-bg-sub
34
34
  `--focus-ring-width`, and `--radius-sm/md`. Removed: `themes.css`, `--brand-*`, `--logo-gradient-*`,
35
35
  `--marketing-*`, `--overlay-*`, `--highlight-*`, `--glass-*`, `--transition-*`, `--button-*` sizing and
36
36
  mix tokens, `--input-*`, `--table-*`, `--card-padding`, `--spacing-md/xl/2xl`, and `--breakpoint-*`.
37
+ It also adds the `--font-numeric` role (Inter) for product numbers and money, exposed as the
38
+ `font-numeric` Tailwind utility; pair it with `tabular-nums`.
37
39
 
38
40
  The `1.11.0` release added the 18px `--type-size-large` token for
39
41
  large body copy, self-hosts Inter instead of importing it from Google Fonts, and
package/fonts.css CHANGED
@@ -93,4 +93,5 @@
93
93
  :root {
94
94
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
95
95
  --font-sans: 'Inter', sans-serif;
96
+ --font-numeric: var(--font-sans);
96
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmio/design",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Warm's public design contract: CSS tokens and the Logo primitive.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/theme.css CHANGED
@@ -367,6 +367,7 @@
367
367
 
368
368
  --font-sans: var(--font-sans);
369
369
  --font-mono: var(--font-mono);
370
+ --font-numeric: var(--font-numeric);
370
371
 
371
372
  --radius-xs: var(--radius-sm);
372
373
  --radius-sm: var(--radius-sm);