hexo_s/tailwind.config.ts

31 lines
766 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 }) => name) }
} satisfies Config