its-personal/tailwind.config.ts

33 lines
812 B
TypeScript

import type { Config } from 'tailwindcss'
import typography from '@tailwindcss/typography'
import daisyui from 'daisyui'
import { theme } from './src/lib/config/general'
export default {
content: ['./src/**/*.{html,md,js,svelte,ts}'],
theme: {
extend: {
typography: {
DEFAULT: {
css: {
'ul:has(li):has(input[type="checkbox"])': {
padding: 0
},
'ul > li:has(input[type="checkbox"])': {
listStyle: 'none'
},
'ul > li:has(input[type="checkbox"]) ul li': {
paddingLeft: 30
}
}
}
}
}
},
plugins: [typography, daisyui],
daisyui: {
themes: theme.map(({ name, colors }) => (colors ? { [name]: colors } : name))
}
} satisfies Config