vitesse/tailwind.config.ts

41 lines
1009 B
TypeScript
Raw Normal View History

2021-02-20 16:13:13 +08:00
import { defineConfig } from 'vite-plugin-windicss'
import colors from 'windicss/colors'
2021-02-20 17:06:33 +08:00
import typography from 'windicss/plugin/typography'
2020-08-10 02:43:04 +08:00
2021-02-20 16:13:13 +08:00
export default defineConfig({
2020-12-14 14:58:40 +08:00
darkMode: 'class',
2021-02-16 12:38:22 +08:00
plugins: [
2021-02-20 17:06:33 +08:00
typography(),
2021-02-16 12:38:22 +08:00
],
2020-08-10 02:43:04 +08:00
theme: {
extend: {
2020-12-14 14:58:40 +08:00
typography: {
DEFAULT: {
css: {
2021-02-16 12:38:22 +08:00
maxWidth: '65ch',
2020-12-14 14:58:40 +08:00
color: 'inherit',
a: {
color: 'inherit',
2020-12-23 03:00:17 +08:00
opacity: 0.75,
2021-02-16 12:38:22 +08:00
fontWeight: '500',
textDecoration: 'underline',
2020-12-14 14:58:40 +08:00
'&:hover': {
opacity: 1,
color: colors.teal[600],
},
},
2021-01-21 06:16:46 +08:00
b: { color: 'inherit' },
strong: { color: 'inherit' },
em: { color: 'inherit' },
h1: { color: 'inherit' },
h2: { color: 'inherit' },
h3: { color: 'inherit' },
h4: { color: 'inherit' },
code: { color: 'inherit' },
2020-12-14 14:58:40 +08:00
},
},
},
2020-08-10 02:43:04 +08:00
},
},
2021-02-20 16:13:13 +08:00
})