Skip to content

Commit

Permalink
chore: strong typing tailwindcss config
Browse files Browse the repository at this point in the history
  • Loading branch information
BharathxD committed Oct 20, 2023
1 parent dbc7563 commit 0927da9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
import type { Config } from "tailwindcss";

const config: Config = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
Expand Down Expand Up @@ -58,12 +59,12 @@ module.exports = {
},
keyframes: {
"accordion-down": {
from: { height: 0 },
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
to: { height: "0" },
},
},
animation: {
Expand All @@ -74,3 +75,5 @@ module.exports = {
},
plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
};

export default config;

0 comments on commit 0927da9

Please sign in to comment.