Skip to content

Commit

Permalink
feat: theme css
Browse files Browse the repository at this point in the history
  • Loading branch information
edikdeisling committed Nov 4, 2024
1 parent ef3efb6 commit 91e3f81
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions packages/ui/src/styles/themes/acronis/acronis.pcss
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
@import "./acronis-light.pcss";
@import "./acronis-dark.pcss";

@media (prefers-color-scheme: light) {
/* light theme without color scheme override */
:where(:root:not([class^="acv-theme-"]), .acv-theme-acronis):where(:not(.acv-color-scheme-dark)) {
@mixin acv-theme-acronis-light;
}
@layer acv-theme {
@media (prefers-color-scheme: light) {
/* light theme without color scheme override */
:where(:root:not([class^="acv-theme-"]), .acv-theme-acronis):not(.acv-color-scheme-dark) {
@mixin acv-theme-acronis-light;
}

/* dark theme with color scheme override */
:where(:root:not([class^="acv-theme-"]), .acv-theme-acronis):where(.acv-color-scheme-dark) {
@mixin acv-theme-acronis-dark;
/* dark theme with color scheme override */
:where(:root:not([class^="acv-theme-"]), .acv-theme-acronis).acv-color-scheme-dark {
@mixin acv-theme-acronis-dark;
}
}
}

@media (prefers-color-scheme: dark) {
/* light theme without color scheme override */
:where(:root:not([class^="acv-theme-"]), .acv-theme-acronis):where(.acv-color-scheme-light) {
@mixin acv-theme-acronis-light;
}
@media (prefers-color-scheme: dark) {
/* light theme without color scheme override */
:where(:root:not([class^="acv-theme-"]), .acv-theme-acronis).acv-color-scheme-light {
@mixin acv-theme-acronis-light;
}

/* dark theme without color scheme override */
:where(:root:not([class^="acv-theme-"]), .acv-theme-acronis):where(:not(.acv-color-scheme-light)) {
@mixin acv-theme-acronis-dark;
/* dark theme without color scheme override */
:where(:root:not([class^="acv-theme-"]), .acv-theme-acronis):not(.acv-color-scheme-light) {
@mixin acv-theme-acronis-dark;
}
}
}

0 comments on commit 91e3f81

Please sign in to comment.