mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
68 lines
1.5 KiB
JavaScript
68 lines
1.5 KiB
JavaScript
const colors = require('tailwindcss/colors')
|
|
|
|
module.exports = {
|
|
purge: [
|
|
'./js/**/*.js',
|
|
'../lib/plausible_web/templates/**/*.html.eex',
|
|
],
|
|
safelist: [
|
|
// PlausibleWeb.StatsView.stats_container_class/1 uses this class
|
|
// it's not used anywhere else in the templates or scripts
|
|
"max-w-screen-lg"
|
|
],
|
|
darkMode: 'class',
|
|
theme: {
|
|
container: {
|
|
center: true,
|
|
padding: '1rem',
|
|
},
|
|
extend: {
|
|
colors: {
|
|
orange: colors.orange,
|
|
'gray-950': 'rgb(13, 18, 30)',
|
|
'gray-850': 'rgb(26, 32, 44)',
|
|
'gray-825': 'rgb(37, 47, 63)'
|
|
},
|
|
spacing: {
|
|
'44': '11rem'
|
|
},
|
|
width: {
|
|
'31percent': '31%',
|
|
'content': 'fit-content'
|
|
},
|
|
opacity: {
|
|
'15': '0.15',
|
|
},
|
|
zIndex: {
|
|
'9': 9,
|
|
},
|
|
maxWidth: {
|
|
'2xs': '15rem',
|
|
'3xs': '12rem',
|
|
},
|
|
transitionProperty: {
|
|
'padding': 'padding',
|
|
}
|
|
},
|
|
},
|
|
variants: {
|
|
textColor: ['responsive', 'hover', 'focus', 'group-hover'],
|
|
display: ['responsive', 'hover', 'focus', 'group-hover'],
|
|
extend: {
|
|
textColor: ['dark'],
|
|
borderWidth: ['dark'],
|
|
backgroundOpacity: ['dark'],
|
|
display: ['dark'],
|
|
cursor: ['hover'],
|
|
justifyContent: ['responsive'],
|
|
backgroundColor: ['odd', 'even'],
|
|
shadow: ['dark']
|
|
}
|
|
},
|
|
plugins: [
|
|
require('@tailwindcss/forms'),
|
|
require('@tailwindcss/typography'),
|
|
require('@tailwindcss/aspect-ratio'),
|
|
]
|
|
}
|