Stirling-PDF/frontend/tailwind.config.js

48 lines
1.5 KiB
JavaScript
Raw Normal View History

2025-06-06 17:20:06 +01:00
/** @type {import('tailwindcss').Config} */
2025-05-13 23:32:54 +01:00
module.exports = {
content: [
2025-06-06 17:20:06 +01:00
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
2025-05-13 23:32:54 +01:00
],
2025-06-08 13:45:45 +01:00
darkMode: ['class', '[data-mantine-color-scheme="dark"]'],
2025-05-13 23:32:54 +01:00
theme: {
2025-06-06 17:20:06 +01:00
extend: {
2025-06-08 13:45:45 +01:00
// Use standard Tailwind color system with CSS variables for theme switching
2025-06-06 17:20:06 +01:00
colors: {
2025-06-08 13:45:45 +01:00
// Override gray to work with both themes
gray: {
50: 'rgb(var(--gray-50) / <alpha-value>)',
100: 'rgb(var(--gray-100) / <alpha-value>)',
200: 'rgb(var(--gray-200) / <alpha-value>)',
300: 'rgb(var(--gray-300) / <alpha-value>)',
400: 'rgb(var(--gray-400) / <alpha-value>)',
500: 'rgb(var(--gray-500) / <alpha-value>)',
600: 'rgb(var(--gray-600) / <alpha-value>)',
700: 'rgb(var(--gray-700) / <alpha-value>)',
800: 'rgb(var(--gray-800) / <alpha-value>)',
900: 'rgb(var(--gray-900) / <alpha-value>)',
2025-06-06 17:20:06 +01:00
},
2025-06-08 13:45:45 +01:00
// Custom semantic colors for app-specific usage
surface: 'rgb(var(--surface) / <alpha-value>)',
background: 'rgb(var(--background) / <alpha-value>)',
border: 'rgb(var(--border) / <alpha-value>)',
2025-06-06 17:20:06 +01:00
},
// Z-index scale
zIndex: {
2025-06-08 13:45:45 +01:00
'dropdown': '1000',
'sticky': '1020',
'fixed': '1030',
'modal-backdrop': '1040',
'modal': '1050',
'popover': '1060',
'tooltip': '1070',
2025-06-06 17:20:06 +01:00
},
},
2025-05-13 23:32:54 +01:00
},
plugins: [],
2025-06-08 13:45:45 +01:00
// Enable preflight for standard Tailwind functionality
2025-06-06 17:20:06 +01:00
corePlugins: {
2025-06-08 13:45:45 +01:00
preflight: true,
2025-06-06 17:20:06 +01:00
},
2025-06-08 13:45:45 +01:00
}