Skip to content

Commit

Permalink
Adjustments to some color relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed Mar 3, 2025
1 parent ff8562e commit 10998dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themebuilder/src/utils/colorUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Color } from "../types/color";

function getHoverColor(color: Color): Color {
return color.isDarkColor() ? color.getLightened(1.05) : color.getDarkened(1.05);
return color.isDarkColor() ? color.getLightened(1.08) : color.getDarkened(1.08);
}

function getForegroundColor(color: Color): Color {
Expand All @@ -22,7 +22,7 @@ function getAlphaColor(color: Color, alpha: number): Color {
}

function getAccentColor(color: Color): Color {
return color.isDarkColor() ? color.getLightened(1.3) : color.getDarkened(1.3);
return color.isDarkColor() ? color.getLightened(1.2) : color.getDarkened(1.2);
}

// This could probably be done with some clever regex but there were a bunch of special cases
Expand Down

0 comments on commit 10998dd

Please sign in to comment.