29690/frontend/tailwind.config.js
2025-03-07 10:14:06 +00:00

128 lines
3.3 KiB
JavaScript

/* eslint-env node */
/* eslint-disable-next-line */
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class', // or 'media' or 'class'
theme: {
asideScrollbars: {
light: 'light',
gray: 'gray',
},
extend: {
zIndex: {
'-1': '-1',
},
flexGrow: {
5: '5',
},
maxHeight: {
'screen-menu': 'calc(100vh - 3.5rem)',
modal: 'calc(100vh - 160px)',
},
transitionProperty: {
position: 'right, left, top, bottom, margin, padding',
textColor: 'color',
},
keyframes: {
'fade-out': {
from: { opacity: 1 },
to: { opacity: 0 },
},
'fade-in': {
from: { opacity: 0 },
to: { opacity: 1 },
},
},
animation: {
'fade-out': 'fade-out 250ms ease-in-out',
'fade-in': 'fade-in 250ms ease-in-out',
},
colors: {
dark: {
900: '#131618',
800: '#21242A',
700: '#2C2F36',
600: '#9CA3AF',
500: '#CBD5E1',
},
green: {
text: '#45B26B',
},
pavitra: {
blue: '#0162FD',
green: '#00B448',
orange: '#FFAA00',
red: '#F20041',
900: '#14142A',
800: '#4E4B66',
700: '#6E7191',
600: '#A0A3BD',
500: '#D9DBE9',
400: '#EFF0F6',
300: '#F7F7FC',
},
midnightBlueTheme: {
text: '#D4D7E2',
iconsColor: '#5A7BEB',
mainBG: '#1E2338',
buttonColor: '#5A7BEB',
cardColor: '#20263C',
outsideCardColor: '#262E45',
webSiteComponentBg: '#5A7BEB3D',
testimonials: '#262E45',
pricing: '#262E45',
diversityContact: '#131618',
diversityMain: '#5A7BEB',
diversityHeader: '#5A7BEB',
900: '#14142A',
800: '#262E45',
},
primaryText: '#E9EAEF',
},
fontFamily: {
sans: ['Ubuntu', 'sans-serif'],
},
borderRadius: {
'3xl': '2rem',
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'aside-scrollbars': (value) => {
const track = value === 'light' ? '100' : '900';
const thumb = value === 'light' ? '300' : '600';
const color = value === 'light' ? 'gray' : value;
return {
scrollbarWidth: 'thin',
scrollbarColor: `${theme(`colors.${color}.${thumb}`)} ${theme(
`colors.${color}.${track}`,
)}`,
'&::-webkit-scrollbar': {
width: '8px',
height: '8px',
},
'&::-webkit-scrollbar-track': {
backgroundColor: theme(`colors.${color}.${track}`),
},
'&::-webkit-scrollbar-thumb': {
borderRadius: '0.25rem',
backgroundColor: theme(`colors.${color}.${thumb}`),
},
};
},
},
{ values: theme('asideScrollbars') },
);
}),
],
};