Skip to content

Commit

Permalink
chore: add some guidance to the purpose of the colors in the tailwind…
Browse files Browse the repository at this point in the history
….css file (#685)

Signed-off-by: Ryan Hopper-Lowe <[email protected]>
  • Loading branch information
ryanhopperlowe authored Nov 26, 2024
1 parent 4c8ff87 commit 9300118
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/admin/app/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ body {

@layer base {
:root {
/* Start theme colors (Not accessible by Tailwind) */

--main-surface-primary: 0 0% 98%;
--main-surface-secondary: 223 5% 95%;

Expand All @@ -30,6 +32,8 @@ body {
--accent-primary: 223 5% 10%;
--accent-secondary: 223 87% 63%;

/* Start colors provided to Tailwind */

--black: 0 0% 0%;
--white: 0 0% 100%;

Expand Down Expand Up @@ -91,6 +95,8 @@ body {
.dark {
color-scheme: dark;

/* Start theme colors (Not accessible by Tailwind) */

--main-surface-primary: 223 20% 10%;
--main-surface-secondary: 223 20% 5%;

Expand All @@ -112,6 +118,8 @@ body {
--background-secondary: var(--main-surface-secondary);
--foreground: var(--text-primary);

/* Start colors provided to Tailwind */

--error: 0 84% 20%;
--error-foreground: 0 100% 7%;

Expand Down

0 comments on commit 9300118

Please sign in to comment.