Skip to content

Commit

Permalink
feat(css): add light variant to reverse colors
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 15, 2025
1 parent 51e5e65 commit 75f7064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
@import './keyframes.css';

@variant light (&:where(.light, .light *));
@variant dark (&:where(.dark, .dark *));

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

:root {
:root, .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 Down

0 comments on commit 75f7064

Please sign in to comment.