Repository navigation
feat(design-tokens): finer, neutral grain texture - #3576
Merged
Merged
Conversation
The grain texture is now a finer luminance noise (about 1.5px, base frequency 0.45) that is neutral grey around 50 %, so blended with `overlay` it adds contrast without lightening or greying the surface. Its strength is part of the texture: a little stronger in the light theme (contrast 0.275) than in the dark theme (0.21). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Coverage Report for ./packages/components/
File CoverageNo changed files found. |
mfal
enabled auto-merge (squash)
October 26, 2026 11:01
Contributor
🚀 Preview DeploymentPreview environments are ready:
Images:
|
Lisa18289
approved these changes
Oct 26, 2026
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.
What
Replaces the
texture.graintoken (light and dark) with a finer, neutral luminance grain.baseFrequency0.45, three octaves) instead of the previous 0.8.overlay— as consumers like mStudio do — it adds contrast only, without shifting brightness or greying light surfaces.feComponentTransfer(slope= strength,intercept=(1 − slope) / 2to stay centred): contrast 0.275 in the light theme, 0.21 in the dark theme.Why
The values come from tuning the mStudio app background against two reference images from design: the grain sits between a crisp 1px grain and a soft 2px grain in size and strength, and stays neutral on light and dark surfaces. With the strength in the token, consumers get it without code changes.
This changes a base token, so it needs a look from design before merging.
Verification
background: <grain>, <color>; background-blend-mode: overlay, normal): grain strength σ 3.83 (light) / 2.61 (dark), neighbour correlation 0.30 (~1.5px), brightness shift below 0.25 of 255 — identical to the tuned reference.node build-tokens.jsbuilds;pnpm lintpasses (pre-push hook).🤖 Generated with Claude Code