Skip to content

Commit

Permalink
feat(theme): add predefined color presets classes (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
malgojaviro authored Aug 14, 2024
1 parent 38d2871 commit 3dc0b46
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions blocks/themes/uc-basic/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,33 @@
--uc-simple-btn-hover: var(--uc-simple-btn-hover-dark);
--uc-simple-btn-foreground: var(--uc-simple-btn-foreground-dark);
}

:where(.uc-purple) {
--uc-primary-oklch-light: 59% 0.22 300;
--uc-primary-oklch-dark: 69% 0.1768 300;
}

:where(.uc-red) {
--uc-primary-oklch-light: 59% 0.22 21;
--uc-primary-oklch-dark: 69% 0.1768 21;
}

:where(.uc-orange) {
--uc-primary-oklch-light: 59% 0.1724 51.88;
--uc-primary-oklch-dark: 69% 0.1768 51.88;
}

:where(.uc-green) {
--uc-primary-oklch-light: 59% 0.1724 130;
--uc-primary-oklch-dark: 69% 0.1768 130;
}

:where(.uc-turquoise) {
--uc-primary-oklch-light: 59% 0.1523 174;
--uc-primary-oklch-dark: 69% 0.1768 174;
}

:where(.uc-gray) {
--uc-primary-oklch-light: 10% 0 0;
--uc-primary-oklch-dark: 97% 0 0;
}

0 comments on commit 3dc0b46

Please sign in to comment.