Skip to content

Commit

Permalink
Merge pull request #1497 from cozy/inverted-override
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne authored Jul 10, 2020
2 parents 664c835 + 7b3664d commit b0820ca
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
24 changes: 14 additions & 10 deletions react/CozyTheme/styles.styl
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
$translucentWhite1=rgba(255, 255, 255, 0.24)
$translucentWhite2=rgba(255, 255, 255, 0.88)

:root
--invertedBackgroundColor: var(--primaryColor)
--invertedContrastTextColor: var(--primaryContrastTextColor)

.CozyTheme--inverted
background: var(--primaryColor)
background: var(--invertedBackgroundColor)

--primaryTextColor: var(--primaryContrastTextColor)
--secondaryTextColor: var(--primaryContrastTextColor)
--barIconColor var(--primaryContrastTextColor)
--primaryTextColor: var(--invertedContrastTextColor)
--secondaryTextColor: var(--invertedContrastTextColor)
--barIconColor var(--invertedContrastTextColor)
--barIconColorDisabled $translucentWhite2

--regularButtonPrimaryColor: var(--primaryContrastTextColor)
--regularButtonSecondaryColor: var(--primaryContrastTextColor)
--regularButtonPrimaryColor: var(--invertedContrastTextColor)
--regularButtonSecondaryColor: var(--invertedContrastTextColor)
--regularButtonActiveColor: $translucentWhite2
--regularButtonConstrastColor: var(--primaryColor)
--regularButtonConstrastColor: var(--invertedBackgroundColor)

--secondaryButtonPrimaryColor: var(--primaryColor)
--secondaryButtonSecondaryColor: var(--white)
--secondaryButtonPrimaryColor: var(--invertedBackgroundColor)
--secondaryButtonSecondaryColor: var(--invertedContrastTextColor)
--secondaryButtonActiveColor: $translucentWhite1
--secondaryButtonContrastColor: var(--white)
--secondaryButtonContrastColor: var(--invertedContrastTextColor)
8 changes: 4 additions & 4 deletions stylus/components/tabs.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ $tabs-base
display flex

.coz-tab-list--inverted
--tabsActiveTextColor var(--primaryContrastTextColor)
--tabsInactiveTextColor var(--primaryContrastTextColor)
--tabsIndicatorColor var(--primaryContrastTextColor)
--tabsBackgroundColor var(--primaryColor)
--tabsActiveTextColor var(--invertedTabsActiveTextColor)
--tabsInactiveTextColor var(--invertedTabsInactiveTextColor)
--tabsIndicatorColor var(--invertedTabsIndicatorColor)
--tabsBackgroundColor var(--invertedTabsBackgroundColor)

.coz-tab
flex 0 0 auto
Expand Down
5 changes: 5 additions & 0 deletions stylus/settings/palette.styl
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@
--secondaryTextColor var(--coolGrey)
--primaryContrastTextColor var(--white)

--invertedTabsActiveTextColor var(--primaryContrastTextColor)
--invertedTabsInactiveTextColor var(--primaryContrastTextColor)
--invertedTabsIndicatorColor var(--primaryContrastTextColor)
--invertedTabsBackgroundColor var(--primaryColor)

--regularButtonPrimaryColor: var(--primaryColor)
--regularButtonSecondaryColor: var(--primaryColor)
--regularButtonActiveColor: var(--primaryColorDark)
Expand Down

0 comments on commit b0820ca

Please sign in to comment.