commerce/tailwind.config.js
2023-09-01 02:23:12 -07:00

77 lines
1.9 KiB
JavaScript

const plugin = require('tailwindcss/plugin');
// const colors = require('tailwindcss/colors');
const defaultTheme = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./app/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
subtle: '#606A5F',
dark: '#212720',
base: '#F4F7F5'
},
fontFamily: {
sans: ['var(--font-lato)', ...defaultTheme.fontFamily.sans],
serif: ['var(--font-alpina)', ...defaultTheme.fontFamily.serif],
title: ['var(--font-cinzel)', 'serif'],
japan: ['var(--font-noto)', 'serif']
},
fontSize: {
'6xl': '65px',
'5xl': '45px',
'3xs': '.5rem'
},
aspectRatio: {
tall: '596 / 845',
video: '1792 / 750'
},
maxWidth: {
title: '281px'
},
keyframes: {
fadeIn: {
from: { opacity: 0 },
to: { opacity: 1 }
},
marquee: {
'0%': { transform: 'translateX(0%)' },
'100%': { transform: 'translateX(-100%)' }
},
blink: {
'0%': { opacity: 0.2 },
'20%': { opacity: 1 },
'100% ': { opacity: 0.2 }
}
},
animation: {
fadeIn: 'fadeIn .3s ease-in-out',
carousel: 'marquee 60s linear infinite',
blink: 'blink 1.4s both infinite'
}
}
},
future: {
hoverOnlyWhenSupported: true
},
plugins: [
require('@tailwindcss/container-queries'),
require('@tailwindcss/typography'),
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
'animation-delay': (value) => {
return {
'animation-delay': value
};
}
},
{
values: theme('transitionDelay')
}
);
})
]
};