Skip to content
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(sketch): add sketch package #2720

Merged

Conversation

joshblack
Copy link
Contributor

@joshblack joshblack commented May 14, 2019

Closes #2438

Add @carbon/sketch package responsible for creating the Carbon Elements sketch plugin. This plugin provides the following commands as defined by its manifest.json:

  • Colors
    • Sync shared styles
    • Generate a colors page with swatch artboards
  • Themes
    • Sync shared styles
    • Generate a themes page with token artboards
  • Icons
    • Generate an icons page with symbols
  • Type
    • Sync shared styles
    • Generate a type page

Notes to reviewers:

Changelog

New

  • @carbon/sketch package

Changed

  • @carbon/icons
    • 16/checkmark--filled update to correct id to inner-path
    • 32/checkmark--filled update fill-opacity to opacity

Removed

@joshblack
Copy link
Contributor Author

Color command preview:

https://ibm.box.com/s/agplb4glg7dgfxje27qxymsoushz6nr8

@netlify
Copy link

netlify bot commented May 14, 2019

Deploy preview for the-carbon-components ready!

Built with commit cc4a9f0

https://deploy-preview-2720--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented May 14, 2019

Deploy preview for the-carbon-components ready!

Built with commit 27db18e

https://deploy-preview-2720--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented May 14, 2019

Deploy preview for carbon-components-react ready!

Built with commit cc4a9f0

https://deploy-preview-2720--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented May 14, 2019

Deploy preview for the-carbon-components ready!

Built with commit 61ed5e4

https://deploy-preview-2720--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented May 14, 2019

Deploy preview for carbon-components-react failed.

Built with commit 61ed5e4

https://app.netlify.com/sites/carbon-components-react/deploys/5ced7e61c3f1b465f64ed389

@joshblack
Copy link
Contributor Author

cc @lovemecomputer if you have a chance to review! Going through and adding docs on how the plugin flow works but wanted to point this your way in case you had time before then 😄

@joshblack
Copy link
Contributor Author

@joshblack joshblack requested a review from laurenmrice May 22, 2019 23:36
Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woo-hoo! Everything worked for me! I didn't check the accuracy of all the values, but I'm assuming they're right since its being generated from code. I can go through and check that though if you want me too.

@joshblack
Copy link
Contributor Author

joshblack commented May 23, 2019

@aagonzales I know one thing I noticed that was off were the type font weights 😞 for some reason Sketch is thinking we are specifying extra light for plex instead of light (at least on my machine).

We might want to just document what are the differences for things like that which will need to be fixed before syncing to a library. I think for colors/themes we should be fine, and icons I think we just will have to wait for someone to tell us when something is busted lol. There are so many and Sketch lags so much 😭

@aagonzales
Copy link
Member

@joshblack oh wait the icons all have borders on them
image

@joshblack
Copy link
Contributor Author

Oh whoa, weird 🤔 Locally it shows me this:

image

Have any idea what the difference might be?

@joshblack
Copy link
Contributor Author

joshblack commented May 24, 2019

Couple of TODOs:

  • Figure out how to reset border if user has border option on by default for new layers
  • Figure out how to sync color shared style with text styles

@joshblack
Copy link
Contributor Author

@aagonzales here's a link with the latest updates for border issues, let me know if it works!

https://ibm.box.com/s/8htauxuu7mjuyj11j86y7gnde9wibdva

@aagonzales
Copy link
Member

@joshblack yup! They're back to normal now. No strokes/borders

Copy link
Contributor

@lovemecomputer lovemecomputer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

josh gave a walkthrough of the code & plugin, and it seems to be on a pretty good track! it will be good to continue the conversation of ensuring this codebase works for our designers, and the package seems like it has solved the hardest must-have features and is in a good state to merge and keep pushing on it!

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 Nice work on this Josh!

@joshblack joshblack merged commit 0a8606f into carbon-design-system:master May 28, 2019
@joshblack joshblack deleted the 2438-generate-sketch-library branch May 28, 2019 19:30
@lovemecomputer
Copy link
Contributor

bitmoji
yayyyy

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.

Generate elements sketch library from carbon-elements
5 participants