oliverdavies.uk/tailwind.config.js

65 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-06-30 07:00:00 +00:00
const aspectRatio = require('@tailwindcss/aspect-ratio')
const colors = require('./tailwind-colours')
const defaultTheme = require('tailwindcss/defaultTheme')
const focusVisible = require('./tailwind-plugin-focus-visible')
const forms = require('@tailwindcss/forms')
const typography = require('@tailwindcss/typography')
const { fontFamily } = defaultTheme
module.exports = {
darkMode: false,
important: true,
purge: {
content: [
'tailwind-safelist-classes.txt',
'source/**/*.{md,twig}',
],
},
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
p: {
lineHeight: 400
}
2021-06-30 07:00:00 +00:00
}
}
}),
colors,
fontFamily: {
sans: [
'Roboto Condensed',
2021-06-30 07:00:00 +00:00
'Arial',
'Helvetica Neue',
'Helvetica',
'sans-serif',
],
mono: [
'Operator Mono',
'Roboto Mono',
...fontFamily.mono
]
},
spacing: {
'2px': '2px'
},
borderWidth: {
3: '3px'
},
width: {
96: '24rem'
}
}
},
corePlugins: {
container: false
},
plugins: [
aspectRatio,
focusVisible,
forms,
typography
]
}