Repository navigation
feat(core): 新增 planGradient 渐变规划,发布 0.9.0 - #4
Merged
Merged
Conversation
渐变没有值形态:它是两端色、插值空间与色标位置的组合,枚举不出有意义的档位。所以加的是判断能力,不是 token。 - planGradient 给两端色,返回插值空间建议、是否需要中间色标、阶梯纹风险与对比度采样点 - 经验阈值集中为 GRADIENT_RULES,可用 rules 整体覆盖,避免数字散落 - 根出口与 ./studio 均可调用;不产 token、不拼 CSS,ENGINE_VERSION 不变 - 升 0.9.0,同步版本戳、CHANGELOG 与 README 兼容说明
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
planGradient:给两端色,返回插值空间建议、是否需要中间色标、阶梯纹风险与对比度采样点GRADIENT_RULES,可用rules整体覆盖./studio均可调用;不产 token、不拼 CSS,ENGINE_VERSION与既有快照不变为什么是计算而不是 token
渐变的输出是「端点 × 插值空间 × 色标位置」的连续组合,枚举不出有意义的档位。按
DESIGN.md的判断口诀,它属于用法而非值,因此只提供判断能力。Test plan
pnpm check(fmt / lint / 类型 / 守卫 / 产物同源 / 合同)npx vp test:97 passed(含 8 条渐变规划用例)pnpm build:生成dist/gradient-*.d.ts,attw / publint 无问题npm pack --dry-run:dist与SKILLS.md/llms.txt在包内,src/tests不在