-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat(icons): delete old icons, add new streamline icons #129
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/twilio-dsys/paste/ed0z6p0wo |
8a5b517
to
bbdee6d
Compare
Should we change the PR title to be |
After working with @TheSisb, we realized the 1px stroke width means centered icons like the plus icon don't align to full pixels. We're upping icon strokes to 2px. |
ba83e8c
to
5f4e98d
Compare
@SiTaggart @serifluous @richbachman Ready for re-review. |
I can't see any of the changes. Can you add the loading button example to the website? |
I can't until we fix another issue with the release icons package on NPM. For now the only way to test is to pull this locally and run storybook :( |
I’ll try pulling it locally. But don’t let that hold this up. It looked good to me when we looked at it together yesterday. |
f3badba
to
b9b3b09
Compare
BREAKING CHANGE: removed all the inherited icons since we're moving to a new system
- huge overhaul to build process - now uses rollup - builds into cjs and esm directories - made the package publishable to npm - moved svg folder out of src, now src only holds react stuff - updated scripts to use new paths and cleaned up the code - programmatically generates rollup config from the icon-list command
d920c3e
to
bc746d6
Compare
This looks good to me. Nice job! |
Our icons package needed some serious love. This PR is massive, here's what happened:
High level user-facing stuff:
publishConfig
.iconColor
to icons, rather than simplycolor
. codeTextColor
typing now also acceptscurrentColor
. codeIcons package janitorial work
src/svg
andsrc/react
. I moved the raw SVGs out of src, so it's justsvg
, and moved react directly into src. This helped consolidate this package's architecture to match other packages in the monorepo.tsc
forrollup
to run our icon builds. This along with some of the other tweaks helped to eliminate the monorepo issue where built files would be generated into incorrect directories.index
file. We don't want consumers to have to download a massive bundle of icons if they're only using a handful. In the rollup config, we have to explicitly specificy each input file if we want them to be separate. Rather than updating it by hand each time we add a new icon, I generate a cache of icons in the system during thelist-icons
step. This file is commit to the repo so builds work for everyone.Other infra work
iconSizes
export from our token page, for easier typing. codees
instead ofesm
, so I updated them all to sayesm
which matches the rollup docs.Future work
I'd like to add more documentation to this package, to make it easier to navigate for future maintainers.