oliverdavies.uk/tailwind.js

70 lines
1.5 KiB
JavaScript
Raw Normal View History

2019-02-01 22:25:20 +00:00
const _ = require('lodash')
2019-02-01 22:16:04 +00:00
let defaultConfig = require('tailwindcss/defaultConfig')()
2017-11-09 22:44:30 +00:00
var colors = {
2019-02-01 22:16:04 +00:00
...defaultConfig.colors,
2018-12-21 00:28:41 +00:00
'inherit': 'inherit',
2017-11-09 22:44:30 +00:00
'black': '#222b2f',
2019-01-09 23:20:42 +00:00
'blue': 'hsl(203, 94%, 38%)',
2019-01-05 00:08:45 +00:00
'blue-dark': '#2779bd',
'blue-lighter': '#bcdefa',
'green-dark': '#1f9d55',
2017-11-09 22:44:30 +00:00
'grey': '#9babb4',
2019-01-05 00:08:45 +00:00
'grey-dark': '#70818a',
'grey-darker': '#596a73',
'grey-darkest': '#364349',
2019-01-09 23:20:42 +00:00
'grey-light': 'hsl(203, 25%, 88%)',
'grey-lighter': 'hsl(203, 22%, 95%)',
2017-11-09 22:44:30 +00:00
'grey-lightest': '#fafcfc',
2017-11-21 23:10:41 +00:00
'orange': '#f6993f',
2019-01-05 00:08:45 +00:00
'red-dark': '#cc1f1a',
2017-11-09 22:44:30 +00:00
}
2019-02-02 00:04:02 +00:00
module.exports = {
2019-02-01 22:16:04 +00:00
...defaultConfig,
2017-11-09 22:44:30 +00:00
colors: colors,
2019-02-01 22:16:04 +00:00
textColors: colors,
borderColors: colors,
2017-11-09 22:44:30 +00:00
fonts: {
2019-02-01 22:16:04 +00:00
...defaultConfig.fonts,
2017-11-09 22:44:30 +00:00
'mono': [
2018-12-30 00:31:50 +00:00
'Roboto Mono',
2017-11-09 22:44:30 +00:00
'Menlo',
'Monaco',
'Consolas',
'Liberation Mono',
'Courier New',
'monospace',
]
},
2019-02-01 22:25:20 +00:00
fontWeights: _.pick(defaultConfig.fontWeights, ['normal', 'medium', 'bold']),
2017-11-09 22:44:30 +00:00
borderWidths: {
2019-02-01 22:16:04 +00:00
...defaultConfig.borderWidths,
2017-11-19 20:55:11 +00:00
'3': '3px',
2017-11-09 22:44:30 +00:00
},
borderRadius: {
2019-02-01 22:16:04 +00:00
...defaultConfig.borderRadius,
2017-11-09 22:44:30 +00:00
'none': '0',
},
2018-05-21 22:16:08 +00:00
modules: {
2019-02-01 22:16:04 +00:00
...defaultConfig.modules,
2018-05-28 23:33:00 +00:00
borderStyle: ['responsive', 'hover', 'focus'],
borderWidths: ['responsive', 'hover', 'focus'],
2018-05-21 22:16:08 +00:00
},
2018-07-22 22:36:20 +00:00
plugins: [
require('tailwindcss/plugins/container')({
center: true,
padding: '1rem',
}),
2019-01-15 20:39:00 +00:00
require('tailwindcss-spaced-items')(),
2018-09-04 20:01:35 +00:00
require('tailwindcss-visuallyhidden')(),
2018-12-19 23:47:06 +00:00
require('tailwindcss-skip-link')(),
2018-12-15 22:09:57 +00:00
require('tailwindcss-vuejs')(),
2018-07-22 22:36:20 +00:00
],
2018-05-14 15:02:33 +00:00
options: {
2019-02-01 22:16:04 +00:00
...defaultConfig.options,
2018-05-14 15:02:33 +00:00
important: true,
}
2017-11-09 22:44:30 +00:00
}