notea/tailwind.config.js
tecc 615041a927
feat: Add rudimentary debugging utilities
/debug: Added a /debug page that's only accessible if a fatal error in configuration has occurred.
settings: The settings page now includes a debugging section with similar content to the debug page. This still needs styling but is otherwise OK.
2022-11-18 17:22:30 +01:00

44 lines
1.2 KiB
JavaScript

const colors = require('tailwindcss/colors');
const defaultConfig = require('tailwindcss/defaultConfig');
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')],
};