@@ -70,18 +70,21 @@ public function getMeta(): array {
7070
7171 public function getCSSVariables (): array {
7272 $ colorMainText = '#222222 ' ;
73- $ colorMainTextRgb = join (', ' , $ this ->util ->hexToRGB ($ colorMainText ));
7473 // Color that still provides enough contrast for text, so we need a ratio of 4.5:1 on main background AND hover
7574 $ colorTextMaxcontrast = '#6b6b6b ' ; // 4.5 : 1 for hover background and background dark
7675 $ colorMainBackground = '#ffffff ' ;
7776 $ colorMainBackgroundRGB = join (', ' , $ this ->util ->hexToRGB ($ colorMainBackground ));
7877 $ colorBoxShadow = $ this ->util ->darken ($ colorMainBackground , 70 );
7978 $ colorBoxShadowRGB = join (', ' , $ this ->util ->hexToRGB ($ colorBoxShadow ));
8079
81- $ colorError = '#DB0606 ' ;
82- $ colorWarning = '#A37200 ' ;
83- $ colorSuccess = '#2d7b41 ' ;
84- $ colorInfo = '#0071ad ' ;
80+ $ colorError = '#8A0000 ' ;
81+ $ colorErrorElement = '#FFE7E7 ' ;
82+ $ colorWarning = '#664700 ' ;
83+ $ colorWarningElement = '#FFEEC5 ' ;
84+ $ colorSuccess = '#005416 ' ;
85+ $ colorSuccessElement = '#D8F3DA ' ;
86+ $ colorInfo = '#0066AC ' ;
87+ $ colorInfoElement = '#D5F1FA ' ;
8588
8689 $ user = $ this ->userSession ->getUser ();
8790 // Chromium based browsers currently (2024) have huge performance issues with blur filters
@@ -129,22 +132,22 @@ public function getCSSVariables(): array {
129132 '--color-scrollbar ' => 'var(--color-border-maxcontrast) transparent ' ,
130133
131134 // error/warning/success/info feedback colours
132- '--color-error ' => $ colorError ,
133- '--color-error-rgb ' => join (', ' , $ this ->util ->hexToRGB ($ colorError )),
134- '--color-error-hover ' => $ this ->util ->mix ($ colorError , $ colorMainBackground , 75 ),
135- '--color-error-text ' => $ this -> util -> darken ( $ colorError, 5 ) ,
136- '--color-warning ' => $ colorWarning ,
137- '--color-warning-rgb ' => join (', ' , $ this ->util ->hexToRGB ($ colorWarning )),
138- '--color-warning-hover ' => $ this ->util ->darken ($ colorWarning , 5 ),
139- '--color-warning-text ' => $ this -> util -> darken ( $ colorWarning, 7 ) ,
140- '--color-success ' => $ colorSuccess ,
141- '--color-success-rgb ' => join (', ' , $ this ->util ->hexToRGB ($ colorSuccess )),
142- '--color-success-hover ' => $ this ->util ->mix ($ colorSuccess , $ colorMainBackground , 80 ),
143- '--color-success-text ' => $ this -> util -> darken ( $ colorSuccess, 4 ) ,
144- '--color-info ' => $ colorInfo ,
145- '--color-info-rgb ' => join (', ' , $ this ->util ->hexToRGB ($ colorInfo )),
146- '--color-info-hover ' => $ this ->util ->mix ($ colorInfo , $ colorMainBackground , 80 ),
147- '--color-info-text ' => $ this -> util -> darken ( $ colorInfo, 4 ) ,
135+ '--color-error ' => $ colorErrorElement ,
136+ '--color-error-rgb ' => join (', ' , $ this ->util ->hexToRGB ($ colorErrorElement )),
137+ '--color-error-hover ' => $ this ->util ->mix ($ colorErrorElement , $ colorMainBackground , 75 ),
138+ '--color-error-text ' => $ colorError ,
139+ '--color-warning ' => $ colorWarningElement ,
140+ '--color-warning-rgb ' => join (', ' , $ this ->util ->hexToRGB ($ colorWarningElement )),
141+ '--color-warning-hover ' => $ this ->util ->darken ($ colorWarningElement , 5 ),
142+ '--color-warning-text ' => $ colorWarning ,
143+ '--color-success ' => $ colorSuccessElement ,
144+ '--color-success-rgb ' => join (', ' , $ this ->util ->hexToRGB ($ colorSuccessElement )),
145+ '--color-success-hover ' => $ this ->util ->mix ($ colorSuccessElement , $ colorMainBackground , 80 ),
146+ '--color-success-text ' => $ colorSuccess ,
147+ '--color-info ' => $ colorInfoElement ,
148+ '--color-info-rgb ' => join (', ' , $ this ->util ->hexToRGB ($ colorInfoElement )),
149+ '--color-info-hover ' => $ this ->util ->mix ($ colorInfoElement , $ colorMainBackground , 80 ),
150+ '--color-info-text ' => $ colorInfo ,
148151 '--color-favorite ' => '#A37200 ' ,
149152
150153 // used for the icon loading animation
0 commit comments