notea/tailwind.config.js

44 lines
1.2 KiB
JavaScript
Raw Normal View History

const colors = require('tailwindcss/colors');
const defaultConfig = require('tailwindcss/defaultConfig');
2021-02-15 12:59:00 +03:00
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.tsx', './components/**/*.tsx'],
darkMode: 'class',
theme: {
colors: {
gray: colors.gray,
blue: colors.blue,
red: colors.red,
yellow: colors.yellow,
transparent: 'transparent',
current: 'currentColor',
},
screens: {
md: '768px',
},
extend: {
cursor: {
'col-resize': 'col-resize',
},
nightwind: {
typography: true,
colorClasses: ['divide', 'placeholder'],
},
},
fontFamily: {
sans: ['Noto Sans'].concat(defaultConfig.theme.fontFamily['sans']),
mono: defaultConfig.theme.fontFamily['mono']
},
},
variants: {
extend: {
display: ['group-hover'],
visibility: ['group-hover'],
backgroundColor: ['active'],
borderWidth: ['last'],
},
},
plugins: [require('@tailwindcss/typography'), require('nightwind')],
};