Skip to content

Commit

Permalink
refactor: ♻️ use TypeScript config for tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Dec 13, 2023
1 parent b92b10b commit 4f86fc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { addDynamicIconSelectors } from '@iconify/tailwind'
import typography from '@tailwindcss/typography'
import daisyui from 'daisyui'
import { type Config } from 'tailwindcss'

/** @type {import('tailwindcss').Config} */
export default {
const config: Config = {
content: ['./index.html', './src/**/*.{ts,tsx}'],
theme: {
extend: {},
Expand All @@ -16,3 +16,5 @@ export default {
},
plugins: [typography, daisyui, addDynamicIconSelectors()],
}

export default config
2 changes: 1 addition & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"moduleResolution": "Node",
"strictNullChecks": true
},
"include": ["vite.config.ts", "playwright.config.ts"]
"include": ["vite.config.ts", "playwright.config.ts", "tailwind.config.ts"]
}

1 comment on commit 4f86fc5

@vercel
Copy link

@vercel vercel bot commented on 4f86fc5 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.