mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 14:36:59 +00:00
72 lines
1.7 KiB
JavaScript
72 lines
1.7 KiB
JavaScript
const plugin = require('tailwindcss/plugin');
|
|
const colors = require('tailwindcss/colors');
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
content: [
|
|
'./pages/**/*.{js,ts,jsx,tsx}',
|
|
'./components/**/*.{js,ts,jsx,tsx}',
|
|
'./icons/**/*.{js,ts,jsx,tsx}',
|
|
'./app/**/*.{js,ts,jsx,tsx}'
|
|
],
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
sans: ['var(--font-inter)']
|
|
},
|
|
colors: {
|
|
gray: colors.neutral,
|
|
hotPink: '#FF1966',
|
|
dark: '#111111',
|
|
light: '#FAFAFA',
|
|
violetDark: '#4c2889',
|
|
'dark-gray-4': '#2E2E2E',
|
|
'dark-gray-7': '#8f8f8f',
|
|
'base-gray-900': '#666666',
|
|
'light-gray-4': '#EAEAEA',
|
|
'vercel-blue': '#0C4BE6'
|
|
},
|
|
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/typography'),
|
|
plugin(({ matchUtilities, theme }) => {
|
|
matchUtilities(
|
|
{
|
|
'animation-delay': (value) => {
|
|
return {
|
|
'animation-delay': value
|
|
};
|
|
}
|
|
},
|
|
{
|
|
values: theme('transitionDelay')
|
|
}
|
|
);
|
|
})
|
|
]
|
|
};
|