vitesse/windi.config.ts

42 lines
1.0 KiB
TypeScript
Raw Permalink 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
],
2021-05-25 20:13:22 +08:00
attributify: true,
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: {
2021-03-16 02:49:51 +08:00
'color': 'inherit',
'opacity': 0.75,
'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
})