-
Notifications
You must be signed in to change notification settings - Fork 31
Shared Pages: Use design system colors for Button, Switch and Text components #2099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for content-scope-scripts ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
[Beta] Generated file diffTime updated: Mon, 15 Dec 2025 09:45:34 GMT Apple
File has changed Integration
File has changed Windows
File has changed |
a501f01 to
efb45b5
Compare
6c3ce5f to
87c7711
Compare
de1953f to
628009f
Compare
5270f40 to
a640b29
Compare
Co-authored-by: randerson <[email protected]>
Co-authored-by: randerson <[email protected]>
|
Cursor Agent can help with this pull request. Just |
Asana Task/Github Issue: https://app.asana.com/1/137249556945/project/1209121419454298/task/1210127348056275
Description
Updates the Button, Switch and Text shared components to use
--dstheme variables. These variables adjust according to thedata-theme-variantset by the user, making the components look different depending on the user’s theme variant.Since these components are shared we can’t assume that theme variables always exist and so we always fallback to
default-lightordefault-dark.On Windows, Button and Switch both have a custom design, so I updated all color variables here to use the themed variables.
On macOS, Button and Switch are styled to look like they’re native controls, so I only updated the accent colors to use the themed variables.
Testing Steps
Look at these pages and pay attention to the buttons in the RMF banner and the switches in the Customize sidebar.
Test the hover, active, and disabled states.
Test different themeVariant params: default, coolGray, slateBlue, green, violet, rose, orange, desert.
Test light and dark mode (set &theme=dark).
Test that default variant (default) looks similar to how it did before.
Checklist
Please tick all that apply:
Note
Migrates Button, Switch, and Text styles to DS theme variables with platform-specific tokens, dark-mode fallbacks, and refined state handling.
special-pages/shared/components/Button/Button.module.css)--dstheme tokens across light/dark.:hover/:activeguards:not(:disabled), sets disabled cursor, and updates focus handling.special-pages/shared/components/Switch/Switch.module.css)--dsvariables (light/dark).special-pages/shared/components/Text/Text.module.css)Written by Cursor Bugbot for commit 053285f. This will update automatically on new commits. Configure here.