Skip to content

Commit 11bfcd3

Browse files
committed
refactor: Use intermediary CSS variables for the cozy-bar theme
These variables will allow us to add custom colors by overriding them, and not being limited to predefined ones.
1 parent 7d9a104 commit 11bfcd3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/styles/theme.styl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
12
[role=banner] .coz-bar-wrapper
23
box-shadow inset 0 -1px 0 0 var(--silver)
4+
--cozBarThemePrimaryColor var(--primaryColor)
5+
--cozBarThemePrimaryContrastTextColor var(--primaryContrastTextColor)
36

47
.coz-nav-apps-btns
58
color var(--slateGrey)
@@ -15,8 +18,8 @@
1518
[role=banner] .coz-bar-wrapper
1619
&.coz-theme-primary
1720
box-shadow inherit
18-
background-color var(--primaryColor)
21+
background-color var(--cozBarThemePrimaryColor)
1922

2023
.coz-nav-apps-btns,
2124
.coz-bar-burger
22-
color var(--primaryContrastTextColor)
25+
color var(--cozBarThemePrimaryContrastTextColor)

0 commit comments

Comments
 (0)