feat(tokens): add brand gradient ramp for per-product marketing surfaces#3
Merged
Conversation
- Add --cc-brand-1/2/3 (3-stop gradient ramp) defaulting to mauve/pink/peach - Add --cc-brand-gradient (auto-composed from the 3 stops) - Products override only the stops they need; gradient derives automatically - Adopted by cora-api landing (PR #34) to replace hardcoded brand colors Backward compatible: no existing tokens changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a 3-stop brand gradient ramp to the shared design tokens so per-product marketing surfaces (landing pages, hero sections, CTA strips) no longer hardcode their own palette.
Changes
--cc-brand-1defaults to--cc-mauve(primary brand)--cc-brand-2defaults to--cc-pink(secondary brand)--cc-brand-3defaults to--cc-peach(tertiary brand)--cc-brand-gradientauto-composedlinear-gradient(120deg, brand-1, brand-2 48%, brand-3)Products override only the stops they need; the gradient derives automatically.
Why
cora-apiPR #34 hardcodes--brand-1: #8b5cf6; --brand-2: #ec4899; --brand-3: #f59e0bfor its landing page — colors that don't exist in the Catppuccin palette and create a second source of truth. This token slot centralises that concept.Backward compatible
No existing tokens changed. Only additions.
Adoption (follow-up PR)
cora-apiPR #34: replace hardcoded--brand-*with--cc-brand-*overrideweb-landing: optionally wire CTA gradients to--cc-brand-*