lucaorio / sketch-styles-generator Goto Github PK
View Code? Open in Web Editor NEWGenerate hundreds of Sketch Shared Styles in a matter of seconds.
License: MIT License
Generate hundreds of Sketch Shared Styles in a matter of seconds.
License: MIT License
It's installed but just does nothing when I launch it.
I started using this plugin, and I realized something that would make it even better.
If a folder/group is selected, the plugin would use those folders/groups as a hierarchy when creating the text styles.
So instead of having to do this:
Making it much easier to organize and view styles.
I will attempt to make this change myself, but I haven't tabbed in Sketch plugins yet.
I just thought, this would be a cool feature for future versions.
With libraries, my text layer name is a generic name like "Text" for the override. It would be great to able to use the artboard name instead of the layer name to generate styles (or at least the option to choose which one to pull the name from). Thanks!
I believe once you detach a text style from a layer, the plugin is unable to create new text styles for the any new or existing layers which have no text style applied. As in, the file is no longer able to "Create" new styles. You are however, able to update layers with existing styles.
Figure 1: Selecting text laters and attempting to create from both the menu and the hotkey yielded no results.
I found by copying the detached style layers (properly named), and pasting them in a new file—I was able to generate the styles there. Following that I then copy/pasted them back into the origin file and the styles transferred. So this may mean I have a Sketch or file corruption issue in some way, but I'm not certain.
Hope this info is helpful.
I cant seem to get the plugin to create styles in Sketch 51.3. Has worked fine in the past. FYI, I really appreciate this plugin, a must have for creating type stacks for design systems. Thanks.
Great Plugin! Why are exsting styles with the exact name not overwritten?
When I select an artboard and run styles generator, it creates an empty style named after the artboard. Would it be more sensible to skip artboards when generating styles, since artboards can't have layer styles applied to them?
This is how a generated style appears in its original file:
(no update button, weird isn't it?)
When that file is a library, we can look for that generated style, but we can't find it:
Atfer click in create button — A workaround I found...
This is how it looks like in its original file now:
(the update button is there)
And finally, it becomes visible in the library's panel:
Thank you for the plugin, it is awesome!
I'm using Sketch version: 53.2
I noticed that when I regenerate styles that already exist (to update them) that instead of replacing the original styles it duplicates the whole set.
I checked they have exactly the same names
This isn't an issue if you regenerate styles shortly after the original styles have been created. it seems to happen later. For example if you update them the day after you first created them.
Thank you for your help in this.
Keep up the amazing work!
I've opened a new document, created a few text styles with left, center and right alignment, then named them using the 'Rename it' plugin. I then selected all of the layers and applied the "generate shared styles" and nothing happens.
I've tried multiple times, using new documents, restarting the machine, and deleting and re-installing the plugin.
When a group of layers is selected, the plugin skips them. Try to recursively scan the children to generate the styles.
$ git clone https://github.com/lucaorio/sketch-style-generator
change to
$ git clone https://github.com/lucaorio/sketch-styles-generator
Installed first time and the Styles are not getting generated. Tried all the options even installed multiple times. Installed directly as well as through Sketch Runner. Still not working.
Can you help me get it running?
Details:
SketchApp Ver (50.2)
Styles Generator Plugin 1.4.0
Scenario:
Style already exists in shared styles.
I select a layer with the same name as the already available style.
Result: nothing happens
Expected result: I would expect that the layer would be linked to the shared style.
My proposal for udpate:
// update shared styles, and sync instances
const update = (sharedStyles, sharedStyle, layer) => {
if (layer.hasOwnProperty('sharedStyle')) {
layer.sharedStyle.style = layer.style;
}else{
layer.sharedStyleId = sharedStyle.id;
}
Hi there!
This is a quick note to remind you that Sketch 45 will include a plugin update system.
It would be awesome if you could add support to it (it's really easy!) before Sketch 45 comes out. Ideally, you should release an update for your plugin while we're still in Sketch 44, so your users will have a nice & easy experience when 45 is released.
For more details, please check http://sketchplugins.com/d/229-updating-plugins and http://developer.sketchapp.com/introduction/updating-plugins/
Thanks in advance!
now can't support Sketch 43.2
https://www.dropbox.com/s/g785l9rpcgf1ffa/SketchIssue.mov?dl=0
I can't seem to get this plug-in to work. Am I doing something wrong?
Hi there,
Thanks for amazing plugin! It saved so much time for us!
Not sure if you have plans to support this awesome plug in... But it would be great if you could take a look.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.