2022-09-20 19:59:52 +00:00
|
|
|
const colors = require('tailwindcss/colors')
|
2023-09-08 10:49:13 +00:00
|
|
|
const plugin = require('tailwindcss/plugin')
|
2022-09-20 19:59:52 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2022-10-17 11:35:54 +00:00
|
|
|
content: [
|
|
|
|
'./resources/**/*.blade.php',
|
|
|
|
'./resources/**/*.js',
|
|
|
|
'./resources/**/*.vue'
|
|
|
|
],
|
2022-10-17 12:20:13 +00:00
|
|
|
safelist: [
|
|
|
|
{
|
|
|
|
pattern: /.*bg-(blue|gray|red|yellow|green).*/,
|
|
|
|
},
|
|
|
|
...['green', 'red', 'blue', 'yellow'].map((color) => ['bg-' + color + '-100', 'border-' + color + '-500']).flat() // Alerts
|
|
|
|
],
|
2022-09-20 19:59:52 +00:00
|
|
|
darkMode: 'class', // or 'media' or 'class'
|
|
|
|
theme: {
|
|
|
|
extend: {
|
|
|
|
keyframes: {
|
|
|
|
'bonce-slow': {
|
2022-10-17 11:35:54 +00:00
|
|
|
'0%, 20%': {transform: 'translateY(0)'},
|
|
|
|
'8%': {transform: 'translateY(-25%)'},
|
|
|
|
'16%': {transform: 'translateY(+10%)'}
|
2023-09-08 11:00:28 +00:00
|
|
|
},
|
|
|
|
'infinite-scroll': {
|
|
|
|
from: { transform: 'translateX(0)' },
|
|
|
|
to: { transform: 'translateX(-100%)' },
|
2022-09-20 19:59:52 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
animation: {
|
2023-09-08 11:00:28 +00:00
|
|
|
'bounce-slow': 'bonce-slow 3s ease-in-out infinite',
|
|
|
|
'infinite-scroll': 'infinite-scroll 50s linear infinite',
|
2022-09-20 19:59:52 +00:00
|
|
|
},
|
|
|
|
maxHeight: {
|
|
|
|
42: '10.5rem'
|
|
|
|
},
|
|
|
|
minHeight: {
|
|
|
|
6: '1.5rem',
|
|
|
|
8: '2rem'
|
|
|
|
},
|
|
|
|
maxWidth: {
|
|
|
|
15: '15rem',
|
|
|
|
10: '10rem',
|
|
|
|
8: '2rem'
|
|
|
|
},
|
2022-10-17 07:45:28 +00:00
|
|
|
translate: {
|
|
|
|
5.5: '1.4rem'
|
|
|
|
},
|
2022-09-20 19:59:52 +00:00
|
|
|
boxShadow: {
|
|
|
|
'inner-notion': '#0f0f0f1a 0px 0px 0px 1px inset',
|
|
|
|
'focus-notion': '#2eaadcb3 0px 0px 0px 1px inset, #2eaadc66 0px 0px 0px 2px !important'
|
|
|
|
},
|
|
|
|
colors: {
|
2023-01-21 11:57:37 +00:00
|
|
|
gray: colors.slate,
|
2022-09-20 19:59:52 +00:00
|
|
|
'nt-blue': {
|
|
|
|
lighter: colors.blue['100'],
|
|
|
|
light: colors.blue['300'],
|
2022-10-26 14:44:47 +00:00
|
|
|
default: colors.blue['600'],
|
|
|
|
DEFAULT: colors.blue['600'],
|
2022-09-20 19:59:52 +00:00
|
|
|
dark: colors.blue['800']
|
|
|
|
},
|
|
|
|
'notion-dark': {
|
|
|
|
DEFAULT: '#191919',
|
|
|
|
light: '#2e2e2e'
|
|
|
|
},
|
|
|
|
'notion-input': {
|
|
|
|
background: '#F7F6F3',
|
|
|
|
backgroundDark: '#272B2C',
|
|
|
|
help: '#37352f99',
|
|
|
|
helpDark: '#fff9'
|
2023-09-08 16:28:10 +00:00
|
|
|
},
|
|
|
|
'form-color': 'var(--bg-form-color)'
|
2022-09-20 19:59:52 +00:00
|
|
|
},
|
|
|
|
transitionProperty: {
|
|
|
|
height: 'height',
|
|
|
|
width: 'width',
|
2023-11-28 10:24:55 +00:00
|
|
|
maxWidth: 'max-width',
|
2022-09-20 19:59:52 +00:00
|
|
|
spacing: 'margin, padding'
|
|
|
|
}
|
|
|
|
}
|
2022-11-29 10:06:31 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
require('@tailwindcss/aspect-ratio'),
|
2023-09-08 10:49:13 +00:00
|
|
|
plugin(function({ addVariant }) {
|
|
|
|
addVariant('between', '&:not(:first-child):not(:last-child)')
|
|
|
|
addVariant('hocus', ['&:hover', '&:focus'])
|
|
|
|
})
|
2022-11-29 10:06:31 +00:00
|
|
|
]
|
2022-09-20 19:59:52 +00:00
|
|
|
}
|