129 lines
3.3 KiB
JavaScript
129 lines
3.3 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
content: [
|
|
"./index.html",
|
|
"./src/**/*.{js,ts,jsx,tsx}",
|
|
],
|
|
theme: {
|
|
extend: {
|
|
keyframes: {
|
|
fadeIn: {
|
|
'0%': { opacity: '0' },
|
|
'100%': { opacity: '1' },
|
|
},
|
|
slideUp: {
|
|
'0%': { transform: 'translateY(100%)', opacity: '0' },
|
|
'100%': { transform: 'translateY(0)', opacity: '1' },
|
|
},
|
|
float: {
|
|
'0%, 100%': { transform: 'translateY(0)' },
|
|
'50%': { transform: 'translateY(-10px)' },
|
|
},
|
|
},
|
|
animation: {
|
|
fadeIn: 'fadeIn 0.3s ease-in-out forwards',
|
|
slideUp: 'slideUp 0.5s ease-out forwards',
|
|
float: 'float 3s ease-in-out infinite',
|
|
},
|
|
colors: {
|
|
tech4biz: {
|
|
50: '#f5f7ff',
|
|
100: '#ebf0fe',
|
|
200: '#dde5fd',
|
|
300: '#c4d1fb',
|
|
400: '#9ab3f8',
|
|
500: '#6690f4',
|
|
600: '#4b6eeb',
|
|
700: '#3d59d4',
|
|
800: '#3447ad',
|
|
900: '#2d3c8a',
|
|
},
|
|
primary: {
|
|
50: '#f0f9ff',
|
|
100: '#e0f2fe',
|
|
200: '#bae6fd',
|
|
300: '#7dd3fc',
|
|
400: '#38bdf8',
|
|
500: '#0ea5e9',
|
|
600: '#0284c7',
|
|
700: '#0369a1',
|
|
800: '#075985',
|
|
900: '#0c4a6e',
|
|
},
|
|
secondary: {
|
|
50: '#fdf2f8',
|
|
100: '#fce7f3',
|
|
200: '#fbcfe8',
|
|
300: '#f9a8d4',
|
|
400: '#f472b6',
|
|
500: '#ec4899',
|
|
600: '#db2777',
|
|
700: '#be185d',
|
|
800: '#9d174d',
|
|
900: '#831843',
|
|
},
|
|
},
|
|
screens: {
|
|
'xs': '480px',
|
|
'3xl': '1600px',
|
|
// Add more custom breakpoints if needed
|
|
},
|
|
spacing: {
|
|
'128': '32rem',
|
|
'144': '36rem',
|
|
// Extend spacing as needed
|
|
},
|
|
borderRadius: {
|
|
'xl': '1rem',
|
|
'2xl': '1.5rem',
|
|
// Extend border-radius as needed
|
|
},
|
|
boxShadow: {
|
|
'4xl': '0 35px 60px -15px rgba(0, 0, 0, 0.3)',
|
|
// Extend box-shadow as needed
|
|
},
|
|
backgroundImage: {
|
|
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
|
|
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
|
|
},
|
|
fontFamily: {
|
|
syne: ['Syne', 'sans-serif'],
|
|
poppins: ['Poppins', 'sans-serif'],
|
|
},
|
|
},
|
|
},
|
|
safelist: [
|
|
'bg-green-500',
|
|
'bg-blue-500',
|
|
'bg-red-500',
|
|
'bg-purple-500',
|
|
'hover:bg-green-600',
|
|
'hover:bg-blue-600',
|
|
'hover:bg-red-600',
|
|
'hover:bg-purple-600',
|
|
// Add more classes as needed
|
|
],
|
|
plugins: [
|
|
// Add error handling for plugin loading
|
|
function({ addBase, theme }) {
|
|
try {
|
|
require('@tailwindcss/forms');
|
|
require('@tailwindcss/typography');
|
|
} catch (error) {
|
|
console.warn('Warning: @tailwindcss plugins not found. Some styles may be missing.');
|
|
return {};
|
|
}
|
|
},
|
|
// Only add plugins if they exist
|
|
...(() => {
|
|
const plugins = [];
|
|
try {
|
|
plugins.push(require('@tailwindcss/forms'));
|
|
plugins.push(require('@tailwindcss/typography'));
|
|
} catch (error) {
|
|
// Silently fail if plugins are not installed
|
|
}
|
|
return plugins;
|
|
})(),
|
|
],
|
|
} |