Skip to content

Commit

Permalink
fix: set color scheme (#2257)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ico authored Jan 15, 2024
1 parent a6a03d5 commit 0f4bdee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/components/src/global/scale.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
--scl-z-index-50: 50;
--scl-z-index-60: 60;
--scl-z-index-70: 70;
/* TODO: we can try to set this rule in design tokens :root */
color-scheme: light dark;
}

/** Thank you sholace.style */
Expand All @@ -69,3 +71,11 @@
flex-direction: column;
gap: var(--telekom-spacing-composition-space-04);
}

[data-mode='light'] {
color-scheme: light;
}

[data-mode='dark'] {
color-scheme: dark;
}

0 comments on commit 0f4bdee

Please sign in to comment.