feat: typography and shiki

This commit is contained in:
Anthony Fu committed 2020-12-14 14:58:40 +08:00
1 parent 5578bb5075
commit 653f15f1f7
7 files changed
+1037 -1307

No files matched your search

+47 -14
View File
@@ -4,13 +4,18 @@ const colors = require('tailwindcss/colors')
module.exports = {
purge: {
enabled: process.env.NODE_ENV === 'production',
content: [
'./index.html',
'./src/**/*.vue',
'./src/**/*.js',
'./src/**/*.ts',
],
content: ['./index.html', './src/**/*.vue', './src/**/*.js', './src/**/*.ts'],
},
variants: {
cursor: ['responsive', 'disabled'],
backgroundColor: ['dark', 'hover', 'disabled'],
borderColor: ['dark', 'active', 'focus', 'disabled'],
textColor: ['dark', 'hover', 'active', 'disabled'],
opacity: ['dark', 'hover', 'active', 'focus', 'disabled'],
typography: ['dark'],
},
darkMode: 'class',
plugins: [require('@tailwindcss/typography')],
theme: {
extend: {
colors: {
@@ -20,14 +25,42 @@ module.exports = {
10: '0.1',
85: '0.85',
},
typography: {
DEFAULT: {
css: {
color: 'inherit',
a: {
color: 'inherit',
opacity: 0.6,
'&:hover': {
opacity: 1,
color: colors.teal[600],
},
},
b: {
color: 'inherit',
},
strong: {
color: 'inherit',
},
em: {
color: 'inherit',
},
h1: {
color: 'inherit',
},
h2: {
color: 'inherit',
},
h3: {
color: 'inherit',
},
h4: {
color: 'inherit',
},
},
},
},
},
},
variants: {
cursor: ['responsive', 'disabled'],
backgroundColor: ['dark', 'hover', 'disabled'],
borderColor: ['dark', 'active', 'focus', 'disabled'],
textColor: ['dark', 'hover', 'active', 'disabled'],
opacity: ['dark', 'hover', 'active', 'focus', 'disabled'],
},
darkMode: 'class',
}