feat: switch to windicss (#65)
This commit is contained in:
1 parent
e5feb3dabc
commit
53da3f8315
13 files changed
+168
-407
No files matched your search
+7
-28
@@ -1,44 +1,23 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const colors = require('tailwindcss/colors')
|
||||
const typography = require('@tailwindcss/typography')
|
||||
const colors = require('windicss/colors')
|
||||
|
||||
module.exports = {
|
||||
purge: {
|
||||
enabled: process.env.NODE_ENV === 'production',
|
||||
content: [
|
||||
'./index.html',
|
||||
'./src/**/*.vue',
|
||||
'./src/**/*.md',
|
||||
'./src/**/*.js',
|
||||
'./src/**/*.ts',
|
||||
],
|
||||
options: {
|
||||
safelist: ['prose', 'prose-sm', 'm-auto'],
|
||||
},
|
||||
},
|
||||
variants: {
|
||||
extend: {
|
||||
cursor: ['disabled'],
|
||||
backgroundColor: ['disabled'],
|
||||
borderColor: ['active', 'disabled'],
|
||||
textColor: ['active', 'disabled'],
|
||||
opacity: ['dark', 'active', 'disabled'],
|
||||
}
|
||||
},
|
||||
darkMode: 'class',
|
||||
plugins: [typography],
|
||||
plugins: [
|
||||
require('windicss/plugin/typography'),
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
teal: colors.teal,
|
||||
},
|
||||
typography: {
|
||||
DEFAULT: {
|
||||
css: {
|
||||
maxWidth: '65ch',
|
||||
color: 'inherit',
|
||||
a: {
|
||||
color: 'inherit',
|
||||
opacity: 0.75,
|
||||
fontWeight: '500',
|
||||
textDecoration: 'underline',
|
||||
'&:hover': {
|
||||
opacity: 1,
|
||||
color: colors.teal[600],
|
||||
|
||||
Reference in new issue
Block a user