@evinvest/uikit 0.3.0 → 0.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evinvest/uikit",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Dep-light React UI kit: shadcn-semantics components with zero @radix-ui / cva, mirroring the ev::uikit Rust feature. Ships the shared design tokens.",
5
5
  "license": "BlueOak-1.0.0",
6
6
  "publishConfig": {
package/styles/tokens.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Shared design tokens — the theme contract for the `ev::uikit` (Rust) and
2
+ * Shared design tokens — the theme contract for the `ev_lib::uikit` (Rust) and
3
3
  * `@evinvest/uikit` (TypeScript) components. Import this file from any Tailwind v4
4
4
  * entrypoint. Kept byte-for-byte in parity with `@evinvest/uikit`'s
5
5
  * `styles/tokens.css`; change one, change the other.
@@ -18,9 +18,14 @@
18
18
  --radius-lg: var(--radius);
19
19
  --radius-xl: calc(var(--radius) + 4px);
20
20
 
21
- --font-sans: var(--font-inter), "Inter", ui-sans-serif, system-ui, sans-serif;
22
- --font-serif: var(--font-playfair), "Playfair Display", ui-serif, Georgia, serif;
23
- --font-mono: var(--font-inter), "Inter", ui-monospace, monospace;
21
+ /* The leading var() carries its own fallback: next/font (landing) sets
22
+ * `--font-inter` / `--font-playfair`; a Rust consumer renders `uikit::Fonts`,
23
+ * which `@font-face`s the same families. Without the in-var fallback an
24
+ * undefined leading var would invalidate the whole `font-family` and drop the
25
+ * browser to its default — so it must never resolve to guaranteed-invalid. */
26
+ --font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, sans-serif;
27
+ --font-serif: var(--font-playfair, "Playfair Display"), ui-serif, Georgia, serif;
28
+ --font-mono: var(--font-inter, "Inter"), ui-monospace, monospace;
24
29
 
25
30
  /* shadcn semantic utilities */
26
31
  --color-background: var(--background);