Lets celebrate by giving you a deep dive into all the new things that we have right now, in version 1.6.7 (early access). And a nice discount code on the bottom of this article.
We now have support for Sketch v59Â ?
First time I wrote this article we still had a small issue with version 58 of Sketch. We smashed that ?and nice surprise to usâââit also works great with the brand new, v59! ??â
This update makes it even easier to have 1:1 between Sketch and code with the new amazing feature Smart Layout that works really well together with our framework. Since our components have been responsive from the very beginning you now (if you create S2R code components with Smart Layout enabled) get an even faster workflow. Joooooy ?
Check out our S2RShared Library Demo Docs 58 with a few Smart Layout enabled components:
And as always, a release this big deserves a new trailer ?
You know, it can be really hard keeping track of things. There are so much awesome things being released each and every day (damn you Product Hunt), no wonder you can feel a bit out of the loop. I love this article about how Basecamp has grown to a very big business over time, like an eternity in internet years. I specially love this quote:
âGrow slowly or not at all.â
From the very beginning we have shipped, small small updates, sometimes huge ones. But we have continued. Slowly.
From the very start Sketch2React looked and behaved very different from where we are today. Heck it took us almost 1 year to get React support. Yet we continued. Slooooooowly.
We opened up the door and said âhey guys, weâre doing something a bit odd here, what do you think about it?â.
Over 50% of what our framework and code app is today are features that weâve added after getting feedback. We have showed this on meet-ups, closed big company board rooms but mostly over the internet, specially Sketch App Sources has been a great place ?. All of you who have contributed are heroes in our eyes. ?ââ ??ââď¸
The Big Four
Enough chitchat, hereâs the biggest four new features in v1.6+ ?
Nr 1âââSupport for Sketch Shared Libraries ?
This one alone is so huge I canât even describe it in accurate wording. We are ahead of our time and people have not yet fully understood the implication of this feature.
Letâs try. ? âŽď¸
You now can today right from inside Sketch, without any plugins build, maintain and distribute a full fledged Design System (with real code components)âŚ
Real code.
Distributed via Sketch Cloud or whatever other cloud service you may use. You get 1:1 design to code. Will it take you time to build? Of course it will. But youâre a designer, youâre used to building stuff and rebuilding over and over again. â¤ď¸ ?
Thing is, once you have built and designed your component (inside of Sketch) you convert it into a Sketch Symbol and share it everywhere you need.
Your own documents, with your team, or why not build up a real design to code design system for a client of yours?
You change your Sketch Shared Library in one place and all others using the very same library will get notified and just re-update. ?It even auto-updates inside our code app if you happen to have a code Sketch document open at the same time.
We know this way of working is really cutting edge and new, but in a few years (maybe less) with think everyone will be doing this. You can quote me on that one. ? ?
Try it out right now ?
Do you already have version 1.6+ because you are an awesome person who already have bought our latest payed DLC? Then here you go, feel free to add our public (still growing and adding thingies) Shared Lib right now.
Nr 2âââSupport for Sketch Cloud Documents
Sketch Cloud Documents is still in beta but we have already built-in support for it. ?Both these features opens up amazing new super powers for all Sketch users. Bohemian Coding have been very generous with what is included in the single license, you get things like
How to get Sketch Cloud Docs this working on your Mac ?
Sketch Cloud Docs are hidden inside the (by default hidden) Library folder on your Mac. ? You need to do this first of all.
After that, make sure you go to Library/Application Support/com.bohemiancoding.sketch3/CloudDocuments and save this shortcut to your Favorites (like I have done below).
Youâll find your Sketch Cloud files inside those folders with jibbrish-names on them, lot of numbers and characters. ??Just open up our Code App (version 1.6 pre-release) and youâre good to go, now every time you make changes inside this document (which is a cloud doc) they will upload to Sketch Cloud. Understand that this feature is still in beta and it sometimes can take a while for the docs to upload to Sketch Cloud.
Nr 3âââThree new amazing components ?
You might be thinking âokey this is all cool and well and stuff but I need more components dude, where are does drop-downs bro?â or âMan I think Bootstrap feels really old, I want to use Material Design UI & Grids insteadâ. Yes we here you.?
? Enter the mind-blowing {div} component
Feel like overriding Bootstraps grid? Just use Material Design UI ?
Instead of {container} you do this:
{div} [mui-container]
Instead of {row} you do this:
{div} [mui-row]
Instead of {col} you do this:
{div} [mui-col]
Easy peasy! ??
Download above demo document to try it our right now.
Hereâs Fredrik explaining this a bit more
Build your own components
Just drag your developer in front of your computer screen and scream âwtf man I can create anything I want with this new {div} component!â With just a bit of code knowledge, using your own CSS plugins you can build anything.
Important side
We support styling all of our own components directly from within Sketch. With the {div} component you will need to add the styling outside of Sketch in your CSS files. Or use something like the above mentioned Material Design UI.
Nr 4âââCSS Modules & much cleaner code export ?
We live and die with our code export so we care very much about it. Hereâs some loving coming our way.
? ? CSS-modules
Our React export now utilizes CSS-modules. This means the dependency on Sketch2Reactâs package (@sketch2react/react-components) is gone! No dependency on us once your React code is exported! ?
? ? Updated React exportâs dependencies
Weâve updated the React exportâs dependencies to remove package vulnerabilities.
? ? Clean-up in the React export
You no longer get warnings about âunused variablesâ in the console because, guess what, there are none! ?
We ? Sketch App Sources
Since the very beginning of Sketch2React, this very place youâre reading this very article has been very very good to us. We want to give something back to all readers of this amazing publication. So here you go dear reader, hereâs a 35% discount code. Itâs nice to give back. ?
Love, Team Sketch2React