Skip to content

Consolidate icons #1302

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 25 commits into from
Apr 15, 2025
Merged

Consolidate icons #1302

merged 25 commits into from
Apr 15, 2025

Conversation

Rich-Harris
Copy link
Member

Been meaning to do this for a while — we can deduplicate various icon files across the repo by having a dedicated icons package that serves apps/* and packages/*.

By using CSS masks we can also avoid the need to have separate light and dark variants.

I'm doing this now because some upcoming work will involve adding a bunch more icons and I'd like to be able to change colours on hover; if I don't do it soon it will create a whole bunch of extra work

Copy link

vercel bot commented Apr 14, 2025

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

Name Status Preview Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview Apr 15, 2025 1:22am

@Rich-Harris
Copy link
Member Author

So much happier with this — as well as deduplicating stuff it fixes a few rough edges around colours not being switched in dark mode

@Rich-Harris Rich-Harris merged commit 31cbd48 into main Apr 15, 2025
3 checks passed
@Rich-Harris Rich-Harris deleted the icons branch April 15, 2025 02:23
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.

1 participant