Skip to content

Commit

Permalink
feat: add tailwind defs for radix accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
grikomsn committed Oct 26, 2023
1 parent 7d64407 commit c9a46b5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,30 @@ module.exports = {
],
theme: {
extend: {
animation: {
"accordion-open": `accordion-open 150ms cubic-bezier(0.87, 0, 0.13, 1)`,
"accordion-closed": `accordion-closed 150ms cubic-bezier(0.87, 0, 0.13, 1)`,
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
"gradient-conic": `conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))`,
"site-bg": "url('/site-bg.svg')",
"site-bg-2": "url('/site-bg-2.svg')",
squiggle: "url('/squiggle.svg')",
},
fontFamily: {
sans: ["Jost", "sans-serif"],
},
keyframes: {
"accordion-open": {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-closed": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
},
},
},
},
plugins: [
Expand Down

0 comments on commit c9a46b5

Please sign in to comment.