Skip to content

Commit 12c1f0f

Browse files
committed
chore(changeset): explain style kit changes
1 parent 234e179 commit 12c1f0f

File tree

4 files changed

+65
-13
lines changed

4 files changed

+65
-13
lines changed

.changeset/slimy-snakes-poke.md

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,67 @@
11
---
2-
'@qwik-ui/styled': patch
2+
'@qwik-ui/styled': minor
33
---
44

5-
REFACTOR prefer tailwind css animate over home-made animations
5+
## tailwind.config.cjs
6+
7+
Now uses tailwindcss-animate
8+
9+
```ts
10+
plugins: [
11+
require('tailwindcss-animate'),
12+
...
13+
],
14+
```
15+
16+
Instead of manually defined animations through a custom plugin like
17+
18+
```ts
19+
plugins: [
20+
plugin(function ({ addUtilities }) {
21+
addUtilities({
22+
'.appear': {
23+
opacity: 1,
24+
},
25+
'.disappear': {
26+
opacity: 0,
27+
},
28+
});
29+
}),
30+
];
31+
```
32+
33+
## Modal refactor
34+
35+
### Modal.Panel
36+
37+
The Panel now uses tailwindcss-animate
38+
39+
```tsx
40+
class={cn(
41+
'max-w-sm rounded-base border bg-background p-6 text-foreground shadow-md backdrop:brightness-50 backdrop:backdrop-blur-sm',
42+
'data-[closed]:duration-300 data-[open]:duration-300 data-[open]:animate-in data-[closing]:animate-out data-[closing]:fade-out data-[open]:fade-in',
43+
'backdrop:data-[closed]:duration-300 backdrop:data-[open]:duration-300 backdrop:data-[open]:animate-in backdrop:data-[closing]:animate-out backdrop:data-[closing]:fade-out backdrop:data-[open]:fade-in',
44+
props.class,
45+
)}
46+
```
47+
48+
over previous tailwind.config.js home-made plugin
49+
50+
```tsx
51+
'.appear': {
52+
opacity: 1,
53+
},
54+
'.disappear': {
55+
opacity: 0,
56+
},
57+
```
58+
59+
to avoid re-inventing the wheel.
60+
61+
### Modal.Title
62+
63+
Title now holds `text-lg font-semibold` classes.
64+
65+
### Modal.Description
66+
67+
Description now holds `text-muted-foreground` class.

.changeset/ten-actors-explain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@qwik-ui/styled': patch
33
---
44

5-
REFACTOR styled button: place transitions into shared class
5+
Styled button now uses `transition-all` for every variant shared class

.changeset/twenty-terms-drive.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/warm-dots-melt.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)