File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,15 @@ public function getCSSVariables(): array {
5656
5757 $ colorMainText = '#ffffff ' ;
5858 $ colorMainBackground = '#000000 ' ;
59+ $ colorMainBackgroundRGB = join (', ' , $ this ->util ->hexToRGB ($ colorMainBackground ));
5960
6061 return array_merge (
6162 $ defaultVariables ,
6263 $ this ->generatePrimaryVariables ($ colorMainBackground , $ colorMainText ),
6364 [
6465 '--color-main-background ' => $ colorMainBackground ,
65- '--color-main-background-translucent ' => 'rgba(var(--color-main-background-rgb), .1) ' ,
66+ '--color-main-background-rgb ' => $ colorMainBackgroundRGB ,
67+ '--color-main-background-translucent ' => 'rgba(var(--color-main-background-rgb), 1) ' ,
6668 '--color-main-text ' => $ colorMainText ,
6769
6870 '--color-background-dark ' => $ this ->util ->lighten ($ colorMainBackground , 30 ),
Original file line number Diff line number Diff line change @@ -56,13 +56,15 @@ public function getCSSVariables(): array {
5656
5757 $ colorMainText = '#000000 ' ;
5858 $ colorMainBackground = '#ffffff ' ;
59+ $ colorMainBackgroundRGB = join (', ' , $ this ->util ->hexToRGB ($ colorMainBackground ));
5960
6061 return array_merge (
6162 $ defaultVariables ,
6263 $ this ->generatePrimaryVariables ($ colorMainBackground , $ colorMainText ),
6364 [
6465 '--color-main-background ' => $ colorMainBackground ,
65- '--color-main-background-translucent ' => 'rgba(var(--color-main-background-rgb), .1) ' ,
66+ '--color-main-background-rgb ' => $ colorMainBackgroundRGB ,
67+ '--color-main-background-translucent ' => 'rgba(var(--color-main-background-rgb), 1) ' ,
6668 '--color-main-text ' => $ colorMainText ,
6769
6870 '--color-background-dark ' => $ this ->util ->darken ($ colorMainBackground , 30 ),
You can’t perform that action at this time.
0 commit comments