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.
This commit is contained in:
parent
5799f5fc28
commit
71379a02be
1 changed files with 24 additions and 24 deletions
|
|
@ -24,45 +24,45 @@ module.exports = {
|
|||
},
|
||||
extend: {
|
||||
colors: {
|
||||
border: 'hsl(var(--border))',
|
||||
input: 'hsl(var(--input))',
|
||||
ring: 'hsl(var(--ring))',
|
||||
background: 'hsl(var(--background))',
|
||||
foreground: 'hsl(var(--foreground))',
|
||||
border: 'oklch(var(--border))',
|
||||
input: 'oklch(var(--input))',
|
||||
ring: 'oklch(var(--ring))',
|
||||
background: 'oklch(var(--background))',
|
||||
foreground: 'oklch(var(--foreground))',
|
||||
primary: {
|
||||
DEFAULT: 'hsl(var(--primary))',
|
||||
foreground: 'hsl(var(--primary-foreground))'
|
||||
DEFAULT: 'oklch(var(--primary))',
|
||||
foreground: 'oklch(var(--primary-foreground))'
|
||||
},
|
||||
secondary: {
|
||||
DEFAULT: 'hsl(var(--secondary))',
|
||||
foreground: 'hsl(var(--secondary-foreground))'
|
||||
DEFAULT: 'oklch(var(--secondary))',
|
||||
foreground: 'oklch(var(--secondary-foreground))'
|
||||
},
|
||||
destructive: {
|
||||
DEFAULT: 'hsl(var(--destructive))',
|
||||
foreground: 'hsl(var(--destructive-foreground))'
|
||||
DEFAULT: 'oklch(var(--destructive))',
|
||||
foreground: 'oklch(var(--destructive-foreground))'
|
||||
},
|
||||
muted: {
|
||||
DEFAULT: 'hsl(var(--muted))',
|
||||
foreground: 'hsl(var(--muted-foreground))'
|
||||
DEFAULT: 'oklch(var(--muted))',
|
||||
foreground: 'oklch(var(--muted-foreground))'
|
||||
},
|
||||
accent: {
|
||||
DEFAULT: 'hsl(var(--accent))',
|
||||
foreground: 'hsl(var(--accent-foreground))'
|
||||
DEFAULT: 'oklch(var(--accent))',
|
||||
foreground: 'oklch(var(--accent-foreground))'
|
||||
},
|
||||
popover: {
|
||||
DEFAULT: 'hsl(var(--popover))',
|
||||
foreground: 'hsl(var(--popover-foreground))'
|
||||
DEFAULT: 'oklch(var(--popover))',
|
||||
foreground: 'oklch(var(--popover-foreground))'
|
||||
},
|
||||
card: {
|
||||
DEFAULT: 'hsl(var(--card))',
|
||||
foreground: 'hsl(var(--card-foreground))'
|
||||
DEFAULT: 'oklch(var(--card))',
|
||||
foreground: 'oklch(var(--card-foreground))'
|
||||
},
|
||||
chart: {
|
||||
'1': 'hsl(var(--chart-1))',
|
||||
'2': 'hsl(var(--chart-2))',
|
||||
'3': 'hsl(var(--chart-3))',
|
||||
'4': 'hsl(var(--chart-4))',
|
||||
'5': 'hsl(var(--chart-5))'
|
||||
'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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue