fix: connect orphaned tokens and close page-property control gaps - #78
Conversation
Four tokens were defined but never consumed by the framework, making
user overrides silently ineffective:
- --sf-caret-color: base.css used var(--sf-color-action) directly;
now routes through the token so overrides take effect
- --sf-touch-target: accessibility.css used hardcoded 44px;
now uses var(--sf-touch-target) so the tap-size token works
- --sf-reel-height: token existed but .sf-reel had no height property;
added block-size: var(--sf-reel-height) to close the gap
- --sf-code-font-size: new token (0.875em default) added to the
typography-alias block; base.css code {} now references it
Additional fixes:
- .is-loading spinner: 2px solid → var(--sf-border-width-2), 0.6s →
var(--sf-duration-slower) so both respect the token system
- .is-skeleton shimmer: 1.5s → calc(1.5s * var(--sf-motion-scale))
so --sf-motion-scale: 0 correctly disables the animation
- .is-drop-target: hardcoded 2px/2px outline replaced with
--sf-focus-ring-width / --sf-focus-ring-offset for consistency
https://claude.ai/code/session_01JZgSS8oM38zt4JRETmCsSz
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR systematically replaces hardcoded CSS values in five core framework stylesheets with design tokens. A new ChangesCore CSS Tokenization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
Four tokens were defined but never consumed by the framework, making
user overrides silently ineffective:
now routes through the token so overrides take effect
now uses var(--sf-touch-target) so the tap-size token works
added block-size: var(--sf-reel-height) to close the gap
typography-alias block; base.css code {} now references it
Additional fixes:
var(--sf-duration-slower) so both respect the token system
so --sf-motion-scale: 0 correctly disables the animation
--sf-focus-ring-width / --sf-focus-ring-offset for consistency
https://claude.ai/code/session_01JZgSS8oM38zt4JRETmCsSz
Summary by CodeRabbit