Repository navigation
💭 Dream window: gradient-style — Reverse color stops (exact mirror) + spans no longer lose their start - #136
Merged
Merged
Conversation
…spans that start on the auto slot
- reverseStops(): flips the stop list and mirrors every position p -> 100% - p
after resolving CSS fixup, so hard-stop presets like Stripes reverse exactly;
px/em positions mirror via calc(); auto stops/hints stay auto
- Reverse button next to 'Add a random color' (undoable)
- Output fix: a span whose start equals the auto slot (e.g. dragging the 2nd
slider of a middle stop to 50%..70%) was written as 'blue 70%', losing the band
- html { -webkit-tap-highlight-color: transparent }
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for hd-gradients ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Owner
Author
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.




Problem
#00f 70%. The solid band disappeared from both the preview and the copied CSS, because the span's start was dropped whenever it matched the stop's auto slot.Solution
reverseStops()(src/utils/stops.ts) reverses the stop list and mirrors every positionp -> 100% - p. Spansa..bbecome100-b..100-aand hints mirror too.0% 40%, reverse exactly.calc(100% - 20px). Auto stops and hints stay auto. The result is an exact mirror for repeating gradients too.gradientString.ts, plus the in-component fallback serializer: a stop drops its start position only when it isn't a span.html { -webkit-tap-highlight-color: transparent }Impact
rgba(0, 0, 0, 0).🤖 Generated with Claude Code