Skip to content

Commit

Permalink
Change color according to color mix approach
Browse files Browse the repository at this point in the history
  • Loading branch information
coolcat-creations committed Apr 25, 2020
1 parent a201e05 commit a35c525
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions administrator/templates/atum/Service/HTML/Atum.php
Expand Up @@ -192,17 +192,17 @@ protected static function bgdarkcalc($color): array
$root = [];

// No need to calculate if we have the default value
if ($hue === 207)
if ($hue === 214)
{
return $root;
}

try
{
$bgcolor = new Hsl('hsl(' . $hue . ', ' . 61 . ', 26)');
$bgcolor = new Hsl('hsl(' . $hue . ', ' . 63 . ', 20)');

$root[] = '--atum-bg-dark: ' . (new Hsl('hsl(' . $hue . ', 61, 26)'))->toHex() . ';';
$root[] = '--atum-contrast: ' . (new Hsl('hsl(' . $hue . ', 61, 26)'))->spin(-40)->lighten(18)->toHex() . ';';
$root[] = '--atum-bg-dark: ' . (new Hsl('hsl(' . $hue . ', 63, 20)'))->toHex() . ';';
$root[] = '--atum-contrast: ' . (new Hsl('hsl(' . $hue . ', 63, 20)'))->spin(-40)->lighten(18)->toHex() . ';';
$root[] = '--atum-bg-dark-0: ' . (clone $bgcolor)->desaturate(86)->lighten(71.4)->spin(-6)->toHex() . ';';
$root[] = '--atum-bg-dark-5: ' . (clone $bgcolor)->desaturate(85)->lighten(65.1)->spin(-6)->toHex() . ';';
$root[] = '--atum-bg-dark-10: ' . (clone $bgcolor)->desaturate(80)->lighten(59.4)->spin(-6)->toHex() . ';';
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/scss/_variables.scss
Expand Up @@ -31,7 +31,7 @@ $green: #2f7d32; //used in bootstrap
$green-dark: #0f2f21; //used for alert success
$teal: #20c997; //used in bootstrap
$cyan: #107d8e; //used in bootstrap
$darkblue: #1c2f52;
$darkblue: #132f53;
$base-color: $darkblue;

$theme-colors: ();
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/templateDetails.xml
Expand Up @@ -57,7 +57,7 @@
control="slider"
preview="true"
saveFormat="hsl"
default="hsl(219,49%,22%)"
default="hsl(214,63%,20%)"
/>
<field
name="bg-light"
Expand Down

0 comments on commit a35c525

Please sign in to comment.