Skip to content

Commit

Permalink
chore: replace deprecated lighten() & darken() with color.adjust()
Browse files Browse the repository at this point in the history
  • Loading branch information
xicri committed Sep 29, 2024
1 parent 361ae06 commit 2a0cb96
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions assets/styles/variables.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@use "sass:color";

$color-dark: #013770;
$color-darkest: darken($color-dark, 10%);
$color-light: lighten($color-dark, 60%);
$color-lighter: lighten($color-dark, 67%);
$color-lightest: lighten($color-dark, 75%);
$color-darkest: color.adjust($color-dark, $lightness: -10%);
$color-light: color.adjust($color-dark, $lightness: 60%);
$color-lighter: color.adjust($color-dark, $lightness: 67%);
$color-lightest: color.adjust($color-dark, $lightness: 75%);

$max-width: 840px;
$side-margin: 12px;
Expand Down

0 comments on commit 2a0cb96

Please sign in to comment.