Skip to content

Commit

Permalink
Merge pull request #2556 from opral/nilsjacobsen/inlmc-47-fix-inlang-…
Browse files Browse the repository at this point in the history
…primary-color-not-being-used-in-primary-buttons

take 600 as a standard calculation anchor for primitive shades
  • Loading branch information
NilsJacobsen authored Apr 10, 2024
2 parents ff4610f + 9beb733 commit ff19455
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const getColor = (unformattedColor: string) => chroma(unformattedColor)

const getPalette = (unformattedColor: string) => {
const color = getColor(unformattedColor)
const colors = chroma.scale(["white", color, "black"]).mode("lrgb")
const colors = chroma.scale(["white", color, "black"]).domain([0, 0.6, 1]).mode("lrgb")
const palette: Record<number, string> = {}

// Create 50
Expand Down

0 comments on commit ff19455

Please sign in to comment.