@esuiss/tailwind 0.5.5 → 0.5.7
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 +1 -1
- package/package.json +1 -1
- package/tailwind.css +8 -13
package/README.md
CHANGED
|
@@ -7,4 +7,4 @@ The type scale, shadows, Tailwind CSS variants, animations, utilities, and base
|
|
|
7
7
|
@import "@esuiss/tailwind";
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
Your theme stays in your own stylesheet: colors under `:root` and `.dark`, and the `@theme inline` block that maps them to Tailwind classes. The type scale (`text-3xs` to `text-3xl`) comes from this package; to change a size, redefine it in your own `@theme` block, for example `--text-base: 1rem;`. The `shadow-md` and `shadow-lg` values come from this package as well and can be overridden the same way. Requires Tailwind CSS 4.2 or later.
|
|
10
|
+
Your theme stays in your own stylesheet: colors under `:root` and `.dark`, and the `@theme inline` block that maps them to Tailwind classes. The type scale (`text-3xs` to `text-3xl`) comes from this package; to change a size, redefine it in your own `@theme` block, for example `--text-base: 1rem;`. The `shadow-md` and `shadow-lg` values come from this package as well and can be overridden the same way. Components draw their keyboard focus outline with the `focus-ring` utility; adjust it per element with the `--focus-ring-width`, `--focus-ring-offset` and `--focus-ring-color` variables. Requires Tailwind CSS 4.2 or later.
|
package/package.json
CHANGED
package/tailwind.css
CHANGED
|
@@ -44,19 +44,13 @@
|
|
|
44
44
|
height: 0;
|
|
45
45
|
}
|
|
46
46
|
to {
|
|
47
|
-
height: var(
|
|
48
|
-
--radix-accordion-content-height,
|
|
49
|
-
var(--accordion-panel-height, auto)
|
|
50
|
-
);
|
|
47
|
+
height: var(--accordion-panel-height, auto);
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
@keyframes accordion-up {
|
|
55
52
|
from {
|
|
56
|
-
height: var(
|
|
57
|
-
--radix-accordion-content-height,
|
|
58
|
-
var(--accordion-panel-height, auto)
|
|
59
|
-
);
|
|
53
|
+
height: var(--accordion-panel-height, auto);
|
|
60
54
|
}
|
|
61
55
|
to {
|
|
62
56
|
height: 0;
|
|
@@ -65,28 +59,24 @@
|
|
|
65
59
|
}
|
|
66
60
|
|
|
67
61
|
@custom-variant data-open {
|
|
68
|
-
&:where([data-state="open"]),
|
|
69
62
|
&:where([data-open]:not([data-open="false"])) {
|
|
70
63
|
@slot;
|
|
71
64
|
}
|
|
72
65
|
}
|
|
73
66
|
|
|
74
67
|
@custom-variant data-closed {
|
|
75
|
-
&:where([data-state="closed"]),
|
|
76
68
|
&:where([data-closed]:not([data-closed="false"])) {
|
|
77
69
|
@slot;
|
|
78
70
|
}
|
|
79
71
|
}
|
|
80
72
|
|
|
81
73
|
@custom-variant data-checked {
|
|
82
|
-
&:where([data-state="checked"]),
|
|
83
74
|
&:where([data-checked]:not([data-checked="false"])) {
|
|
84
75
|
@slot;
|
|
85
76
|
}
|
|
86
77
|
}
|
|
87
78
|
|
|
88
79
|
@custom-variant data-unchecked {
|
|
89
|
-
&:where([data-state="unchecked"]),
|
|
90
80
|
&:where([data-unchecked]:not([data-unchecked="false"])) {
|
|
91
81
|
@slot;
|
|
92
82
|
}
|
|
@@ -106,7 +96,6 @@
|
|
|
106
96
|
}
|
|
107
97
|
|
|
108
98
|
@custom-variant data-active {
|
|
109
|
-
&:where([data-state="active"]),
|
|
110
99
|
&:where([data-active]:not([data-active="false"])) {
|
|
111
100
|
@slot;
|
|
112
101
|
}
|
|
@@ -124,6 +113,12 @@
|
|
|
124
113
|
}
|
|
125
114
|
}
|
|
126
115
|
|
|
116
|
+
@utility focus-ring {
|
|
117
|
+
outline: var(--focus-ring-width, 2px) solid
|
|
118
|
+
var(--focus-ring-color, var(--color-ring));
|
|
119
|
+
outline-offset: var(--focus-ring-offset, 1px);
|
|
120
|
+
}
|
|
121
|
+
|
|
127
122
|
@utility no-scrollbar {
|
|
128
123
|
-ms-overflow-style: none;
|
|
129
124
|
scrollbar-width: none;
|