Skip to content

Commit

Permalink
feat(css): use color-scheme utilities on body
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Nov 27, 2024
1 parent 4eb7902 commit a2512f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/runtime/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@

@layer base {
body {
@apply antialiased text-[var(--ui-text)] bg-[var(--ui-bg)];
@apply antialiased text-[var(--ui-text)] bg-[var(--ui-bg)] scheme-light dark:scheme-dark;
}

:root {
color-scheme: light;

--ui-text-dimmed: var(--ui-color-neutral-400);
--ui-text-muted: var(--ui-color-neutral-500);
--ui-text-toned: var(--ui-color-neutral-600);
Expand All @@ -32,8 +30,6 @@
}

.dark {
color-scheme: dark;

--ui-text-dimmed: var(--ui-color-neutral-500);
--ui-text-muted: var(--ui-color-neutral-400);
--ui-text-toned: var(--ui-color-neutral-300);
Expand Down

0 comments on commit a2512f6

Please sign in to comment.