1
mirror of https://github.com/interstellar750/hexo_s synced 2024-10-18 16:23:50 +08:00
hexo_s/tailwind.config.ts

31 lines
766 B
TypeScript
Raw Permalink Normal View History

import type { Config } from 'tailwindcss'
2022-10-15 22:50:57 +08:00
import typography from '@tailwindcss/typography'
import daisyui from 'daisyui'
import { theme } from './src/lib/config/general'
2022-10-15 22:50:57 +08:00
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
}
}
}
}
}
},
2022-10-15 22:50:57 +08:00
plugins: [typography, daisyui],
2022-11-28 16:39:12 +08:00
daisyui: { themes: theme.map(({ name }) => name) }
} satisfies Config