Skip to content

feat(color): add seed variables for palette colors#573

Merged
simeonoff merged 4 commits into
masterfrom
didimmova/add-seed-variables
May 26, 2026
Merged

feat(color): add seed variables for palette colors#573
simeonoff merged 4 commits into
masterfrom
didimmova/add-seed-variables

Conversation

@didimmova
Copy link
Copy Markdown
Contributor

Closes #520

@didimmova didimmova requested a review from simeonoff May 20, 2026 07:01
@didimmova didimmova added ❌ status: awaiting-test PRs awaiting manual verification palettes labels May 20, 2026
) {
$color-shades: types.$IColorShades;
$gray-shades: types.$IGrayShades;
$gray: if($gray, $gray, if(luminance($surface) > 0.5, #000, #fff));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird, it's already handled by the shade function. There's a special clause that already extracts the luminance of the surface color in regards to the gray shade. Honestly, I don't think that extra step is needed. Instead of doing it the way you're doing it now, it's my strong conviction that you can add a "seed" value to the Color Types ($IGrayShades, and $IColorShades), and have a modifier of 1 for the static multiplier maps for for both the gray seed and the color seed variants. The shade function will just produce another color "shade" - seed then. The shades function stays the same as it is today (bar the bug fix you introduced for the error color).

Does that make sense?

@didimmova didimmova requested a review from simeonoff May 21, 2026 06:38
@simeonoff simeonoff removed the ❌ status: awaiting-test PRs awaiting manual verification label May 26, 2026
@simeonoff simeonoff self-assigned this May 26, 2026
@simeonoff simeonoff added the ✅ status: verified Applies to PRs that have passed manual verification label May 26, 2026
@simeonoff simeonoff added this pull request to the merge queue May 26, 2026
Merged via the queue into master with commit 1a22e1a May 26, 2026
1 of 4 checks passed
@simeonoff simeonoff deleted the didimmova/add-seed-variables branch May 26, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

palettes ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Palettes: Custom base gray color modified when creating shades off it

3 participants