Skip to content

Commit

Permalink
feat: add warning color
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-w committed May 11, 2024
1 parent 55ad1c8 commit a080901
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/ui-lib/src/shadcn/global.shadcn.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
--ring: 217.9 10.6% 64.9%;

--radius: 0.5rem;

--warning: 38 92% 50%;
--warning-foreground: 48 96% 89%;
}

.dark {
Expand Down Expand Up @@ -65,6 +68,9 @@
--destructive-foreground: 0 85.7% 97.3%;

--ring: 215 27.9% 16.9%;

--warning: 48 96% 89%;
--warning-foreground: 38 92% 50%;
}
}

Expand Down
12 changes: 11 additions & 1 deletion packages/ui-lib/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ const filePath = join(__dirname, './src/**/*.{js,ts,jsx,tsx}');
module.exports = {
content: [filePath],
darkMode: ['class'],
theme: deepMerge({}, shadcnuiConfig.theme),
theme: deepMerge(
{
extend: {
colors: {
warning: 'hsl(var(--warning))',
'warning-foreground': 'hsl(var(--warning-foreground))',
},
},
},
shadcnuiConfig.theme
),
plugins: [...shadcnuiConfig.plugins],
};

0 comments on commit a080901

Please sign in to comment.