stillwind 0.6.0 → 0.7.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/docs/at-rules/apply.md +1 -1
- package/docs/at-rules/custom-variant.md +2 -2
- package/docs/at-rules/plugin.md +7 -0
- package/docs/at-rules/slot.md +1 -1
- package/docs/at-rules/stillwind-css-template.md +2 -2
- package/docs/at-rules/stillwind-property.md +1 -1
- package/docs/at-rules/stillwind-registry.md +1 -1
- package/docs/at-rules/stillwind-require-properties.md +1 -1
- package/docs/at-rules/stillwind-undef-arbitrary-property.md +1 -1
- package/docs/at-rules/stillwind-undef-utility.md +1 -1
- package/docs/at-rules/stillwind-undef-variant.md +1 -1
- package/docs/at-rules/theme.md +5 -5
- package/docs/at-rules/utility.md +4 -4
- package/docs/at-rules/variant.md +1 -1
- package/docs/macros/css.md +2 -1
- package/index.d.ts +2 -0
- package/package.json +6 -4
package/docs/at-rules/apply.md
CHANGED
|
@@ -27,7 +27,7 @@ inside a style rule or a utility definition. Whitespace separates the utilities.
|
|
|
27
27
|
### Generated stylesheet without preflight
|
|
28
28
|
|
|
29
29
|
```css
|
|
30
|
-
/*! stillwind v0.
|
|
30
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
31
31
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
32
32
|
@layer properties, theme, base, components, utilities;
|
|
33
33
|
|
|
@@ -54,7 +54,7 @@ export const link = {className:"sw_r7v8w"};
|
|
|
54
54
|
### Generated stylesheet without preflight
|
|
55
55
|
|
|
56
56
|
```css
|
|
57
|
-
/*! stillwind v0.
|
|
57
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
58
58
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
59
59
|
@layer properties, theme, base, components, utilities;
|
|
60
60
|
|
|
@@ -110,7 +110,7 @@ export const css = style.css("shell:block shell:p-4 [button]:rounded-md");
|
|
|
110
110
|
### Compiled code
|
|
111
111
|
|
|
112
112
|
```ts
|
|
113
|
-
export const css = "
|
|
113
|
+
export const css = ":where(:root,:host){--spacing:.25rem;--radius-md:.375rem}:host{padding:calc(var(--spacing) * 4);display:block}button{border-radius:var(--radius-md)}";
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
In [`style.css()`](../macros/css.md), the first such variant selects the
|
package/docs/at-rules/plugin.md
CHANGED
|
@@ -62,6 +62,13 @@ A plugin can select elements by fixed class names, such as `not-prose`.
|
|
|
62
62
|
[Tailwind CSS compatibility](../guides/tailwind-compatibility.md#class-names-that-a-plugins-selectors-use)
|
|
63
63
|
describes. That page also lists the tested plugins.
|
|
64
64
|
|
|
65
|
+
Each selector that a plugin passes to `addUtilities` or `addComponents` must
|
|
66
|
+
name a class. An `@scope` rule can appear inside such a selector, as in
|
|
67
|
+
`{ ".join": { "@scope (&)": { … } } }`, but not around it. When a plugin
|
|
68
|
+
passes an `@scope` rule outside every selector, such as
|
|
69
|
+
`{ "@scope (.theme)": { ".item": { … } } }`, the stylesheet fails to load with an
|
|
70
|
+
error.
|
|
71
|
+
|
|
65
72
|
A CSS package does not use `@plugin`. Load it with `@import`, such as
|
|
66
73
|
`@import "tw-animate-css";`.
|
|
67
74
|
|
package/docs/at-rules/slot.md
CHANGED
|
@@ -42,7 +42,7 @@ export const link = {className:"sw_4x5c3"};
|
|
|
42
42
|
### Generated stylesheet without preflight
|
|
43
43
|
|
|
44
44
|
```css
|
|
45
|
-
/*! stillwind v0.
|
|
45
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
46
46
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
47
47
|
@layer properties, theme, base, components, utilities;
|
|
48
48
|
|
|
@@ -47,7 +47,7 @@ export const css = style.css("p-4 text-blue-600", {
|
|
|
47
47
|
### Compiled code
|
|
48
48
|
|
|
49
49
|
```ts
|
|
50
|
-
export const css = "
|
|
50
|
+
export const css = "@layer component{:host{--color-blue-600:oklch(54.6% .245 262.881);--spacing:.25rem;padding:calc(var(--spacing) * 4);color:var(--color-blue-600)}}";
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
The string contains the template's own CSS, and each slot receives the output of
|
|
@@ -82,7 +82,7 @@ export const css = style.css("p-4 text-blue-600", {
|
|
|
82
82
|
### Compiled code
|
|
83
83
|
|
|
84
84
|
```ts
|
|
85
|
-
export const css = "
|
|
85
|
+
export const css = ":host{padding:calc(var(--spacing) * 4);color:var(--color-blue-600)}";
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
## The default template
|
|
@@ -52,7 +52,7 @@ export const icon = {className:"sw_7ic77"};
|
|
|
52
52
|
### Generated stylesheet without preflight
|
|
53
53
|
|
|
54
54
|
```css
|
|
55
|
-
/*! stillwind v0.
|
|
55
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
56
56
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
57
57
|
@layer properties, theme, base, components, utilities;
|
|
58
58
|
|
|
@@ -62,7 +62,7 @@ export const panel = {className:"sw_2wahw"};
|
|
|
62
62
|
### Generated stylesheet without preflight
|
|
63
63
|
|
|
64
64
|
```css
|
|
65
|
-
/*! stillwind v0.
|
|
65
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
66
66
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
67
67
|
@layer properties, theme, base, components, utilities;
|
|
68
68
|
|
|
@@ -54,7 +54,7 @@ export const icon = {className:"sw_7ic77"};
|
|
|
54
54
|
### Generated stylesheet without preflight
|
|
55
55
|
|
|
56
56
|
```css
|
|
57
|
-
/*! stillwind v0.
|
|
57
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
58
58
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
59
59
|
@layer properties, theme, base, components, utilities;
|
|
60
60
|
|
|
@@ -45,7 +45,7 @@ export const accepted = {className:"sw_obysi"};
|
|
|
45
45
|
### Generated stylesheet without preflight
|
|
46
46
|
|
|
47
47
|
```css
|
|
48
|
-
/*! stillwind v0.
|
|
48
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
49
49
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
50
50
|
@layer properties, theme, base, components, utilities;
|
|
51
51
|
|
|
@@ -48,7 +48,7 @@ export const replaced = {className:"sw_vofby"};
|
|
|
48
48
|
### Generated stylesheet without preflight
|
|
49
49
|
|
|
50
50
|
```css
|
|
51
|
-
/*! stillwind v0.
|
|
51
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
52
52
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
53
53
|
@layer properties, theme, base, components, utilities;
|
|
54
54
|
|
|
@@ -42,7 +42,7 @@ export const toolbar = {};
|
|
|
42
42
|
### Generated stylesheet without preflight
|
|
43
43
|
|
|
44
44
|
```css
|
|
45
|
-
/*! stillwind v0.
|
|
45
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
46
46
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
47
47
|
@layer properties, theme, base, components, utilities;
|
|
48
48
|
```
|
package/docs/at-rules/theme.md
CHANGED
|
@@ -44,7 +44,7 @@ export const card = {className:"sw_j7rat"};
|
|
|
44
44
|
### Generated stylesheet without preflight
|
|
45
45
|
|
|
46
46
|
```css
|
|
47
|
-
/*! stillwind v0.
|
|
47
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
48
48
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
49
49
|
@layer properties, theme, base, components, utilities;
|
|
50
50
|
|
|
@@ -110,7 +110,7 @@ export const label = {className:"sw_4zrwj"};
|
|
|
110
110
|
### Generated stylesheet without preflight
|
|
111
111
|
|
|
112
112
|
```css
|
|
113
|
-
/*! stillwind v0.
|
|
113
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
114
114
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
115
115
|
@layer properties, theme, base, components, utilities;
|
|
116
116
|
|
|
@@ -163,7 +163,7 @@ export const title = {className:"sw_mjcfr"};
|
|
|
163
163
|
### Generated stylesheet without preflight
|
|
164
164
|
|
|
165
165
|
```css
|
|
166
|
-
/*! stillwind v0.
|
|
166
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
167
167
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
168
168
|
@layer properties, theme, base, components, utilities;
|
|
169
169
|
|
|
@@ -216,7 +216,7 @@ export const done = {className:"sw_j94hj"};
|
|
|
216
216
|
### Generated stylesheet without preflight
|
|
217
217
|
|
|
218
218
|
```css
|
|
219
|
-
/*! stillwind v0.
|
|
219
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
220
220
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
221
221
|
@layer properties, theme, base, components, utilities;
|
|
222
222
|
|
|
@@ -269,7 +269,7 @@ export const page = {className:"sw_rjnyv"};
|
|
|
269
269
|
### Generated stylesheet without preflight
|
|
270
270
|
|
|
271
271
|
```css
|
|
272
|
-
/*! stillwind v0.
|
|
272
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
273
273
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
274
274
|
@layer properties, theme, base, components, utilities;
|
|
275
275
|
|
package/docs/at-rules/utility.md
CHANGED
|
@@ -51,7 +51,7 @@ export const list = {className:"sw_70m3s"};
|
|
|
51
51
|
### Generated stylesheet without preflight
|
|
52
52
|
|
|
53
53
|
```css
|
|
54
|
-
/*! stillwind v0.
|
|
54
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
55
55
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
56
56
|
@layer properties, theme, base, components, utilities;
|
|
57
57
|
|
|
@@ -116,7 +116,7 @@ export const code = {className:"sw_9jkuo"};
|
|
|
116
116
|
### Generated stylesheet without preflight
|
|
117
117
|
|
|
118
118
|
```css
|
|
119
|
-
/*! stillwind v0.
|
|
119
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
120
120
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
121
121
|
@layer properties, theme, base, components, utilities;
|
|
122
122
|
|
|
@@ -172,7 +172,7 @@ export const page = {className:"sw_5yksj"};
|
|
|
172
172
|
### Generated stylesheet without preflight
|
|
173
173
|
|
|
174
174
|
```css
|
|
175
|
-
/*! stillwind v0.
|
|
175
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
176
176
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
177
177
|
@layer properties, theme, base, components, utilities;
|
|
178
178
|
|
|
@@ -268,7 +268,7 @@ export const icon = {className:"sw_smxmp"};
|
|
|
268
268
|
### Generated stylesheet without preflight
|
|
269
269
|
|
|
270
270
|
```css
|
|
271
|
-
/*! stillwind v0.
|
|
271
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
272
272
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
273
273
|
@layer properties, theme, base, components, utilities;
|
|
274
274
|
|
package/docs/at-rules/variant.md
CHANGED
|
@@ -39,7 +39,7 @@ body, that element is the one that uses the utility.
|
|
|
39
39
|
### Generated stylesheet without preflight
|
|
40
40
|
|
|
41
41
|
```css
|
|
42
|
-
/*! stillwind v0.
|
|
42
|
+
/*! stillwind v0.7.0 | MIT License | https://stillwind.dev */
|
|
43
43
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
44
44
|
@layer properties, theme, base, components, utilities;
|
|
45
45
|
|
package/docs/macros/css.md
CHANGED
|
@@ -24,7 +24,7 @@ export const css = style.css("p-4 text-blue-600", {
|
|
|
24
24
|
### Compiled code
|
|
25
25
|
|
|
26
26
|
```ts
|
|
27
|
-
export const css = "
|
|
27
|
+
export const css = ":where(:root,:host){--color-blue-600:oklch(54.6% .245 262.881);--spacing:.25rem}:host{padding:calc(var(--spacing) * 4);color:var(--color-blue-600)}";
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### Generated CSS
|
|
@@ -57,6 +57,7 @@ compiler runs in the browser.
|
|
|
57
57
|
|
|
58
58
|
The string contains the theme values, keyframes, and other supporting CSS that
|
|
59
59
|
the template and the utilities need. It never contains the preflight reset.
|
|
60
|
+
The string is minified and has no license comments.
|
|
60
61
|
|
|
61
62
|
Add the string to the page yourself, for example with
|
|
62
63
|
[`CSSStyleSheet.replaceSync()`](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync)
|
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stillwind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Write Tailwind CSS v4 utilities in components, enforce your design system, and ship static CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"alpinejs",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"files": [
|
|
40
40
|
"dist",
|
|
41
41
|
"index.css",
|
|
42
|
+
"index.d.ts",
|
|
42
43
|
"css",
|
|
43
44
|
"docs",
|
|
44
45
|
"skills",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"sideEffects": [
|
|
50
51
|
"**/*.css"
|
|
51
52
|
],
|
|
53
|
+
"types": "./index.d.ts",
|
|
52
54
|
"exports": {
|
|
53
55
|
".": "./index.css",
|
|
54
56
|
"./builtins.css": "./css/builtins.css",
|
|
@@ -144,9 +146,9 @@
|
|
|
144
146
|
"./package.json": "./package.json"
|
|
145
147
|
},
|
|
146
148
|
"dependencies": {
|
|
147
|
-
"@stillwind/config": "0.
|
|
148
|
-
"@stillwind/native": "0.
|
|
149
|
-
"@stillwind/projection": "0.
|
|
149
|
+
"@stillwind/config": "0.7.0",
|
|
150
|
+
"@stillwind/native": "0.7.0",
|
|
151
|
+
"@stillwind/projection": "0.7.0"
|
|
150
152
|
},
|
|
151
153
|
"devDependencies": {
|
|
152
154
|
"@stillwind-internal/tools-workspace": "0.0.0",
|