rDrama/tailwind.config.js

72 lines
2.0 KiB
JavaScript
Raw Normal View History

2021-11-25 21:58:01 +00:00
const colors = require('tailwindcss/colors')
2021-11-25 21:47:51 +00:00
module.exports = {
2021-11-25 22:10:04 +00:00
mode: 'jit',
purge: [
2021-11-25 22:12:43 +00:00
'files/templates/**/*.html',
'files/templates/*.html'
2021-11-25 22:10:04 +00:00
],
2021-11-25 21:58:01 +00:00
darkMode: 'class', // or 'media' or 'class'
2021-11-25 21:47:51 +00:00
theme: {
2021-11-25 21:58:01 +00:00
colors: {
2021-12-01 18:19:48 +00:00
primary: ({ opacityVariable, opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(--color-primary), ${opacityValue})`
}
if (opacityVariable !== undefined) {
return `rgba(var(--color-primary), var(${opacityVariable}, 1))`
}
return `rgb(var(--color-primary))`
},
2021-11-25 21:58:01 +00:00
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
pink: colors.pink,
2021-12-06 20:37:22 +00:00
purple: colors.purple,
2021-11-25 21:58:01 +00:00
green: colors.green,
2021-11-26 02:16:47 +00:00
red: colors.red,
2021-11-25 22:03:37 +00:00
yellow: colors.amber,
2021-12-11 22:32:56 +00:00
blue: colors.sky
2021-11-25 21:58:01 +00:00
},
2021-11-30 22:55:37 +00:00
fontFamily: {
2021-12-04 19:08:21 +00:00
'sans-serif': ['Helvetica Neue', '-apple-system', 'BlinkMacSystemFont', 'Tahoma', 'Segoe UI', 'Helvetica', 'sans-serif', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'],
2021-12-01 18:19:48 +00:00
'heading': ['Delius Swash Caps'],
2021-12-01 18:20:59 +00:00
'serif': ['Georgia'],
'mono': 'SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace'
2021-11-30 22:55:37 +00:00
},
2021-11-28 16:54:01 +00:00
extend: {
2021-12-01 18:11:15 +00:00
boxShadow: {
'inset-b-white-07': '-1px -1px 1px rgba(255, 255, 255, 0.07) inset',
'inset-t-white-05': '0 1px 0 rgba(255, 255, 255, 0.05) inset',
'inset-t-white-10': '0 1px 0 rgba(255, 255, 255, 0.10) inset',
'inset-r-white-05': '1px 0 0 rgba(255, 255, 255, 0.05) inset'
},
2021-12-01 20:11:28 +00:00
zIndex: {
'100': 100
},
2021-11-28 16:54:01 +00:00
colors: {
gray: {
2021-11-29 06:48:07 +00:00
'100': '#f4f6f4',
'200': '#e5ebe7',
'300': '#d1dbd5',
'400': '#9bafa1',
'500': '#6a8073',
'600': '#4c6351',
'700': '#37523e',
'800': '#1f3726',
'900': '#112817'
2021-11-28 16:54:01 +00:00
},
}
},
2021-11-25 21:47:51 +00:00
},
variants: {
2021-12-04 20:35:33 +00:00
extend: {
backgroundColor: ['checked'],
2021-12-04 20:44:37 +00:00
boxShadow: ['checked'],
color: ['checked']
2021-12-04 20:35:33 +00:00
},
2021-11-25 21:47:51 +00:00
},
plugins: [],
}