@podoba/tailwind 0.0.14 → 0.0.16

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/theme.css +13 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podoba/tailwind",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "description": "podoba Tailwind v4 theme — binds @podoba/tokens CSS custom properties to Tailwind's @theme. Import after `@import \"tailwindcss\"`.",
6
6
  "repository": {
package/src/theme.css CHANGED
@@ -25,6 +25,13 @@
25
25
 
26
26
  @plugin "@tailwindcss/typography";
27
27
 
28
+ /* Dark theme. The token flip lives in @podoba/tokens' `variables.css`
29
+ * (`[data-theme="dark"]` re-points --color-surface / --color-fg / … ), so semantic
30
+ * utilities like `bg-surface` / `text-fg` go dark automatically inside a
31
+ * `[data-theme="dark"]` subtree — no `dark:` prefix needed. This variant is for the
32
+ * rare one-off that must diverge from the token flip (`dark:border-0`, etc.). */
33
+ @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
34
+
28
35
  @theme inline {
29
36
  /* colors */
30
37
  --color-brand: var(--color-brand-primary);
@@ -47,14 +54,19 @@
47
54
  --color-accent-yellow: var(--color-accent-yellow);
48
55
  --color-accent-mint: var(--color-accent-mint);
49
56
  --color-accent-green-light: var(--color-accent-green-light);
57
+ --color-accent-green-lighter: var(--color-accent-green-lighter);
50
58
  --color-accent-pink: var(--color-accent-pink);
59
+ --color-accent-blue: var(--color-accent-blue);
51
60
 
61
+ --color-neutral-300: var(--color-neutral-300);
52
62
  --color-neutral-600: var(--color-neutral-600);
53
63
 
54
64
  --color-border: var(--color-border);
65
+ --color-border-muted: var(--color-border-muted);
55
66
 
56
67
  --color-danger: var(--color-danger);
57
68
  --color-danger-fg: var(--color-danger-fg);
69
+ --color-danger-light: var(--color-danger-light);
58
70
 
59
71
  --color-success: var(--color-success);
60
72
  --color-success-fg: var(--color-success-fg);
@@ -86,14 +98,11 @@
86
98
  /* font sizes — size-only ramp */
87
99
  --text-micro: var(--font-size-micro);
88
100
  --text-caption: var(--font-size-caption);
89
- --text-label: var(--font-size-label);
90
101
  --text-compact: var(--font-size-compact);
91
102
  --text-callout: var(--font-size-callout);
92
103
  --text-body: var(--font-size-body);
93
- --text-subtitle: var(--font-size-subtitle);
94
- --text-title: var(--font-size-title);
95
- --text-headline: var(--font-size-headline);
96
104
  --text-display: var(--font-size-display);
105
+ --text-display-xl: var(--font-size-display-xl);
97
106
 
98
107
  /* font sizes — heading ramp (size + paired line-height) */
99
108
  --text-heading1: var(--font-size-heading1);