ingrammicro / puzzle-tokens

Batch create, manage and update Sketch styles and symbols using SCSS/LESS
GNU General Public License v3.0
92 stars 17 forks source link

Some way to rename loaded file Untitled.less -> given_name.less #37

Closed ZvezdocheTag closed 4 years ago

ZvezdocheTag commented 4 years ago

Hey, thanks for the plugin.

There is some way to define name of the .less or .sass file that are exported with help of puzzle-tokens?

MaxBazarov commented 4 years ago

Currently it uses the name of Sketch document as a name for less/scss file.

I can add option to change it. It’s easy.

24 нояб. 2020 г., в 17:06, Vitaly Yastremsky notifications@github.com написал(а):

 Hey, thanks for the plugin.

There is some way to define name of the .less or .sass file that are exported with help of puzzle-tokens?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ZvezdocheTag commented 4 years ago

Got it, thanks.

Yeah, I think it can be helpful.

In my use case, I will receive this tokens file from designer, and easier to configure it's one time inside plugin, and then maintain the same file inside the code, without manual renaming .

MaxBazarov commented 4 years ago

Agree. Is it ok to save a name per a Sketch file? Or do you need to get the same common name for any Sketch files?

25 нояб. 2020 г., в 13:13, Vitaly Yastremsky notifications@github.com написал(а):

 Got it, thanks.

Yeah, I think it can be helpful.

In my use case, I will receive this tokens file from designer, and easier to configure it's one time inside plugin, and then maintain the same file inside the code, without manual renaming .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ZvezdocheTag commented 4 years ago

I think about common name for any Sketch files.

Like if we will have setup designer -> developer workflow, and common high level code structure, should be more convenient to have one name for all. If we want to start new project, just use the same flow with the same structure and names.

something like this: ./themes/puzzle-tokens.{.less, .scss}

MaxBazarov commented 4 years ago

Changed in 8.15.0 Now PT always exports styles to /puzzle-tokens.{.less, .scss}

ZvezdocheTag commented 3 years ago

Thanks