Skip to content

Remove custom properties that are easily styled with CSS parts #1080

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

Merged
merged 13 commits into from
Jun 27, 2025

Conversation

lindsaym-fa
Copy link
Contributor

@lindsaym-fa lindsaym-fa commented Jun 26, 2025

This work removes a majority of custom properties we had previously added to components in favor of prioritizing styling via ::part() selectors.

To this end, this PR also eliminates styles/utilities/appearance.css in favor of including the relevant appearances within each component's own styles. This makes it much easier to track and understand where certain styles are being set.

@lindsaym-fa lindsaym-fa linked an issue Jun 26, 2025 that may be closed by this pull request
Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
webawesome ✅ Ready (Inspect) Visit Preview Jun 27, 2025 4:33pm

@lindsaym-fa
Copy link
Contributor Author

The only necessary remaining work here is to fix any theme overrides that may have been targeting the removed custom properties. Because #1048 implements a number of changes to those theme stylesheets, I'll wait until that PR merges before I pursue those fixes.

@claviska claviska merged commit 2124372 into next Jun 27, 2025
1 of 4 checks passed
@lindsaym-fa lindsaym-fa deleted the lm/superfluous-custom-properties-are-not-so-super branch July 1, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify superfluous custom properties in components
2 participants