Skip to content

Commit

Permalink
Update components-preview with new variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Roene-JustBetter committed Jan 14, 2025
1 parent 24f1f5c commit bab5b26
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions resources/views/components-preview.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ function color(variable, fallback) {
DEFAULT: color('--border', tailwind.colors.slate[200]),
muted: color('--border-muted', tailwind.colors.slate[100]),
},
shadow: {
emphasis: color('--shadow-emphasis', tailwind.colors.slate[900]),
DEFAULT: color('--shadow', tailwind.colors.slate[700]),
muted: color('--shadow-muted', tailwind.colors.slate[500]),
},
background: {
emphasis: color('--background-emphasis', tailwind.colors.slate[200]),
DEFAULT: color('--background', tailwind.colors.slate[100]),
Expand All @@ -59,6 +64,18 @@ function color(variable, fallback) {
...theme('colors.border'),
}),
backgroundColor: (theme) => theme('colors.background'),
ringColor: (theme) => ({
default: theme('colors.border'),
...theme('colors.border'),
}),
outlineColor: (theme) => ({
default: theme('colors.border'),
...theme('colors.border'),
}),
boxShadowColor: (theme) => ({
default: theme('colors.shadow'),
...theme('colors.shadow'),
}),
}
}
}
Expand Down

0 comments on commit bab5b26

Please sign in to comment.