Skip to content

Commit

Permalink
Update to hsl colors that work with tailwind opacity modifier (#294)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com>
Co-authored-by: Aaron Sutula <asutula@users.noreply.github.com>
  • Loading branch information
asutula and asutula authored Jul 3, 2024
1 parent d071d3c commit 7f5bd84
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
38 changes: 19 additions & 19 deletions packages/web/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@

@layer base {
:root {
--background: #1e1a29;
--foreground: #e2dbf5;
--background: 256 22% 13%;
--foreground: 256 57% 91%;

--card: #252032;
--card-foreground: #e2dbf5;
--card: 257 22% 16%;
--card-foreground: 256 57% 91%;

--popover: #171717;
--popover-foreground: #e2dbf5;
--popover: 0 0% 9%;
--popover-foreground: 256 57% 91%;

--primary: #6358dc;
--primary-foreground: #e2dbf5;
--primary: 245 65% 60%;
--primary-foreground: 256 57% 91%;

--secondary: #423f67;
--secondary-foreground: #e6e4e6;
--secondary: 245 24% 33%;
--secondary-foreground: 300 4% 90%;

--muted: #262626;
--muted-foreground: #c3c1c3;
--muted: 0 0% 15%;
--muted-foreground: 300 2% 76%;

--accent: #292524;
--accent-foreground: #fafafa;
--accent: 12 6% 15%;
--accent-foreground: 0 0% 98%;

--destructive: #ff3535;
--destructive-foreground: #fef2f2;
--destructive: 0 100% 60%;
--destructive-foreground: 0 86% 97%;

--border: #635460;
--input: #635460;
--ring: #6358dc;
--border: 312 8% 36%;
--input: 312 8% 36%;
--ring: 245 65% 60%;

--radius: 0.5rem;
}
Expand Down
38 changes: 19 additions & 19 deletions packages/web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,38 +31,38 @@ module.exports = {
mono: ["var(--font-source-code-pro)"],
},
colors: {
border: "var(--border)",
input: "var(--input)",
ring: "var(--ring)",
background: "var(--background)",
foreground: "var(--foreground)",
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "var(--primary)",
foreground: "var(--primary-foreground)",
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "var(--secondary)",
foreground: "var(--secondary-foreground)",
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "var(--destructive)",
foreground: "var(--destructive-foreground)",
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "var(--muted)",
foreground: "var(--muted-foreground)",
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "var(--accent)",
foreground: "var(--accent-foreground)",
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "var(--popover)",
foreground: "var(--popover-foreground)",
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "var(--card)",
foreground: "var(--card-foreground)",
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
},
borderRadius: {
Expand Down

1 comment on commit 7f5bd84

@vercel
Copy link

@vercel vercel bot commented on 7f5bd84 Jul 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.