Skip to content

Commit

Permalink
feat(core): disable dark theme for print mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MillerSvt authored and splincode committed Jan 3, 2025
1 parent 87b7080 commit 980a1fb
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions projects/core/styles/theme/palette.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[tuiTheme='dark'] {
color-scheme: dark;

.dark() {
// Backgrounds
--tui-background-base: #222;
--tui-background-base-alt: #333;
Expand Down Expand Up @@ -47,12 +45,7 @@
--tui-text-negative-hover: #bb593a;
}

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

&:root,
[tuiTheme='light'] {
.light() {
// Backgrounds
--tui-background-base: #fff;
--tui-background-base-alt: #f6f6f6;
Expand Down Expand Up @@ -138,3 +131,28 @@
--tui-shadow-medium-hover: 0 1.25rem 4rem rgba(0, 0, 0, 0.18);
--tui-shadow-popup: 0 1.25rem 3rem rgba(0, 0, 0, 0.2);
}

@media screen {
[tuiTheme='dark'] {
color-scheme: dark;

.dark();
}

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

&:root,
[tuiTheme='light'] {
.light();
}
}

@media screen {
[tuiTheme] {
color-scheme: light;

.light();
}
}

0 comments on commit 980a1fb

Please sign in to comment.