Skip to content

Commit 43b1c81

Browse files
committed
chore(tailwind.config): move EXTEND-END below keyframes
1 parent 4caacd1 commit 43b1c81

File tree

4 files changed

+69
-9
lines changed

4 files changed

+69
-9
lines changed

apps/component-tests/tailwind.config.cjs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module.exports = {
2323
],
2424
darkMode: 'class',
2525
theme: {
26-
important: true,
2726
extend: {
2827
screens: {
2928
xs: '480px',
@@ -97,11 +96,21 @@ module.exports = {
9796
1: 'calc(var(--stroke-width) + 1px)',
9897
2: 'calc(var(--stroke-width) + 2px)',
9998
},
100-
// EXTEND-END
10199
animation: {
102-
'accordion-down': '0.2s ease-out 0s 1 normal forwards accordion-open',
103-
'accordion-up': '0.2s ease-out 0s 1 normal forwards accordion-close',
100+
'accordion-up': 'collapsible-up 0.2s ease-out 0s 1 normal forwards',
101+
'accordion-down': 'collapsible-down 0.2s ease-out 0s 1 normal forwards',
104102
},
103+
keyframes: {
104+
'collapsible-down': {
105+
from: { height: '0' },
106+
to: { height: 'var(--qwikui-collapsible-content-height)' },
107+
},
108+
'collapsible-up': {
109+
from: { height: 'var(--qwikui-collapsible-content-height)' },
110+
to: { height: '0' },
111+
},
112+
},
113+
// EXTEND-END
105114
transitionTimingFunction: {
106115
step: 'cubic-bezier(0.6, 0.6, 0, 1)',
107116
jumpy: 'cubic-bezier(0.87, 0, 0.13, 1)',

apps/website/tailwind.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ module.exports = {
9696
1: 'calc(var(--stroke-width) + 1px)',
9797
2: 'calc(var(--stroke-width) + 2px)',
9898
},
99-
// EXTEND-END
10099
animation: {
101100
'accordion-up': 'collapsible-up 0.2s ease-out 0s 1 normal forwards',
102101
'accordion-down': 'collapsible-down 0.2s ease-out 0s 1 normal forwards',
@@ -111,6 +110,7 @@ module.exports = {
111110
to: { height: '0' },
112111
},
113112
},
113+
// EXTEND-END
114114
transitionTimingFunction: {
115115
step: 'cubic-bezier(0.6, 0.6, 0, 1)',
116116
jumpy: 'cubic-bezier(0.87, 0, 0.13, 1)',

packages/cli/src/generators/setup-tailwind/setup-tailwind-generator.spec.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,20 @@ html {
182182
1: 'calc(var(--stroke-width) + 1px)',
183183
2: 'calc(var(--stroke-width) + 2px)',
184184
},
185+
animation: {
186+
'accordion-up': 'collapsible-up 0.2s ease-out 0s 1 normal forwards',
187+
'accordion-down': 'collapsible-down 0.2s ease-out 0s 1 normal forwards',
188+
},
189+
keyframes: {
190+
'collapsible-down': {
191+
from: { height: '0' },
192+
to: { height: 'var(--qwikui-collapsible-content-height)' },
193+
},
194+
'collapsible-up': {
195+
from: { height: 'var(--qwikui-collapsible-content-height)' },
196+
to: { height: '0' },
197+
},
198+
},
185199
fontFamily: {
186200
sans: ['Inter Variable', 'sans-serif'],
187201
},
@@ -301,6 +315,20 @@ html {
301315
1: 'calc(var(--stroke-width) + 1px)',
302316
2: 'calc(var(--stroke-width) + 2px)',
303317
},
318+
animation: {
319+
'accordion-up': 'collapsible-up 0.2s ease-out 0s 1 normal forwards',
320+
'accordion-down': 'collapsible-down 0.2s ease-out 0s 1 normal forwards',
321+
},
322+
keyframes: {
323+
'collapsible-down': {
324+
from: { height: '0' },
325+
to: { height: 'var(--qwikui-collapsible-content-height)' },
326+
},
327+
'collapsible-up': {
328+
from: { height: 'var(--qwikui-collapsible-content-height)' },
329+
to: { height: '0' },
330+
},
331+
},
304332
fontFamily: {
305333
sans: ['Inter Variable', 'sans-serif'],
306334
},
@@ -419,6 +447,20 @@ html {
419447
1: 'calc(var(--stroke-width) + 1px)',
420448
2: 'calc(var(--stroke-width) + 2px)',
421449
},
450+
animation: {
451+
'accordion-up': 'collapsible-up 0.2s ease-out 0s 1 normal forwards',
452+
'accordion-down': 'collapsible-down 0.2s ease-out 0s 1 normal forwards',
453+
},
454+
keyframes: {
455+
'collapsible-down': {
456+
from: { height: '0' },
457+
to: { height: 'var(--qwikui-collapsible-content-height)' },
458+
},
459+
'collapsible-up': {
460+
from: { height: 'var(--qwikui-collapsible-content-height)' },
461+
to: { height: '0' },
462+
},
463+
},
422464
fontFamily: {
423465
sans: ['Inter Variable', 'sans-serif'],
424466
},

packages/kit-styled/src/templates/tailwind.config.cjs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module.exports = {
2323
],
2424
darkMode: 'class',
2525
theme: {
26-
important: true,
2726
extend: {
2827
screens: {
2928
xs: '480px',
@@ -97,11 +96,21 @@ module.exports = {
9796
1: 'calc(var(--stroke-width) + 1px)',
9897
2: 'calc(var(--stroke-width) + 2px)',
9998
},
100-
// EXTEND-END
10199
animation: {
102-
'accordion-down': '0.2s ease-out 0s 1 normal forwards accordion-open',
103-
'accordion-up': '0.2s ease-out 0s 1 normal forwards accordion-close',
100+
'accordion-up': 'collapsible-up 0.2s ease-out 0s 1 normal forwards',
101+
'accordion-down': 'collapsible-down 0.2s ease-out 0s 1 normal forwards',
104102
},
103+
keyframes: {
104+
'collapsible-down': {
105+
from: { height: '0' },
106+
to: { height: 'var(--qwikui-collapsible-content-height)' },
107+
},
108+
'collapsible-up': {
109+
from: { height: 'var(--qwikui-collapsible-content-height)' },
110+
to: { height: '0' },
111+
},
112+
},
113+
// EXTEND-END
105114
transitionTimingFunction: {
106115
step: 'cubic-bezier(0.6, 0.6, 0, 1)',
107116
jumpy: 'cubic-bezier(0.87, 0, 0.13, 1)',

0 commit comments

Comments
 (0)