@gridkitjs/theme-tailwind 0.0.0-dev-20261106222533 → 0.0.0-dev-20261108085520
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 +1 -1
- package/src/styles.css +18 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridkitjs/theme-tailwind",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20261108085520",
|
|
4
4
|
"description": "Tailwind v4 theme for GridKit — palette tokens, dark mode and grid styles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blagoja Blazhevski",
|
package/src/styles.css
CHANGED
|
@@ -101,22 +101,27 @@
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/*
|
|
104
|
+
* The palette as Tailwind colours, prefixed so they never claim a name like
|
|
105
|
+
* `accent` or `surface` in the app's own theme: `bg-gridkit-accent`,
|
|
106
|
+
* `text-gridkit-fg-muted`.
|
|
107
|
+
*
|
|
104
108
|
* `inline` is what makes the swap work. Without it Tailwind emits
|
|
105
|
-
* `--color-surface: var(--gridkit-surface)` on `:root`, which
|
|
106
|
-
* against the light values and is then inherited
|
|
107
|
-
* dark-mode switch further down the tree would have
|
|
108
|
-
* override. `inline` substitutes the var into each utility
|
|
109
|
-
* resolves at the element the class sits on.
|
|
109
|
+
* `--color-gridkit-surface: var(--gridkit-surface)` on `:root`, which
|
|
110
|
+
* resolves once against the light values and is then inherited
|
|
111
|
+
* already-resolved — a dark-mode switch further down the tree would have
|
|
112
|
+
* nothing left to override. `inline` substitutes the var into each utility
|
|
113
|
+
* instead, so it resolves at the element the class sits on.
|
|
110
114
|
*/
|
|
111
115
|
@theme inline {
|
|
112
|
-
--color-surface: var(--gridkit-surface);
|
|
113
|
-
--color-surface-muted: var(--gridkit-surface-muted);
|
|
114
|
-
--color-line: var(--gridkit-line);
|
|
115
|
-
--color-
|
|
116
|
-
--color-fg
|
|
117
|
-
--color-
|
|
118
|
-
--color-
|
|
119
|
-
--color-selected
|
|
116
|
+
--color-gridkit-surface: var(--gridkit-surface);
|
|
117
|
+
--color-gridkit-surface-muted: var(--gridkit-surface-muted);
|
|
118
|
+
--color-gridkit-line: var(--gridkit-line);
|
|
119
|
+
--color-gridkit-hover-line: var(--gridkit-hover-line);
|
|
120
|
+
--color-gridkit-fg: var(--gridkit-fg);
|
|
121
|
+
--color-gridkit-fg-muted: var(--gridkit-fg-muted);
|
|
122
|
+
--color-gridkit-accent: var(--gridkit-accent);
|
|
123
|
+
--color-gridkit-selected: var(--gridkit-selected);
|
|
124
|
+
--color-gridkit-selected-strong: var(--gridkit-selected-strong);
|
|
120
125
|
}
|
|
121
126
|
|
|
122
127
|
/*
|