web-app/tailwind.config.js
padreug 71379a02be refactor: Update color definitions in Tailwind configuration to use oklch color space
- Change color definitions in tailwind.config.js from hsl to oklch for improved color accuracy and consistency across the application.
2025-08-03 11:20:57 +02:00

113 lines
2.7 KiB
JavaScript

const animate = require("tailwindcss-animate")
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['class', 'class'],
safelist: ["dark"],
prefix: "",
content: [
'./pages/**/*.{ts,tsx,vue}',
'./components/**/*.{ts,tsx,vue}',
'./app/**/*.{ts,tsx,vue}',
'./src/**/*.{ts,tsx,vue}',
'./index.html',
],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px'
}
},
extend: {
colors: {
border: 'oklch(var(--border))',
input: 'oklch(var(--input))',
ring: 'oklch(var(--ring))',
background: 'oklch(var(--background))',
foreground: 'oklch(var(--foreground))',
primary: {
DEFAULT: 'oklch(var(--primary))',
foreground: 'oklch(var(--primary-foreground))'
},
secondary: {
DEFAULT: 'oklch(var(--secondary))',
foreground: 'oklch(var(--secondary-foreground))'
},
destructive: {
DEFAULT: 'oklch(var(--destructive))',
foreground: 'oklch(var(--destructive-foreground))'
},
muted: {
DEFAULT: 'oklch(var(--muted))',
foreground: 'oklch(var(--muted-foreground))'
},
accent: {
DEFAULT: 'oklch(var(--accent))',
foreground: 'oklch(var(--accent-foreground))'
},
popover: {
DEFAULT: 'oklch(var(--popover))',
foreground: 'oklch(var(--popover-foreground))'
},
card: {
DEFAULT: 'oklch(var(--card))',
foreground: 'oklch(var(--card-foreground))'
},
chart: {
'1': 'oklch(var(--chart-1))',
'2': 'oklch(var(--chart-2))',
'3': 'oklch(var(--chart-3))',
'4': 'oklch(var(--chart-4))',
'5': 'oklch(var(--chart-5))'
}
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)'
},
keyframes: {
'accordion-down': {
from: {
height: '0'
},
to: {
height: 'var(--radix-accordion-content-height)'
}
},
'accordion-up': {
from: {
height: 'var(--radix-accordion-content-height)'
},
to: {
height: '0'
}
}
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out'
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))'
}
}
},
plugins: [
animate,
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require("tailwindcss-animate")
],
future: {
hoverOnlyWhenSupported: true,
respectDefaultRingColorOpacity: true,
disableColorOpacityUtilitiesByDefault: true,
colorOpacityUtilities: true,
},
}