Questions tagged [sketch-3]

Sketch is a digital design application for Mac.

Sketch is an application built for modern graphic designers. Features a flexible workflow with support for Multiple Pages and Artboards and Symbols and Shared Styles to make reusing elements quick and easy.

94 questions
1
vote
0 answers

Import .Sketch into Java program

I have a .sketch file that I have been using for design work. I know that there is paintcode for converting that into objective-c etc. however for my assignment I need to write it in java. Hence is there an easy way to import it into a java UI…
Cjen1
  • 1,826
  • 3
  • 17
  • 47
1
vote
0 answers

Change font new text

Is there a way to assign a specific font to a text in sketch Plugin? I need to create a text and assign it directly the Arial font. Here's my code: var list = [[[NSFontManager sharedFontManager] availableFontFamilies] description]; var layer =…
1
vote
2 answers

Export from Sketch App to JSON

I want to be able to export Layer Names and properties from Sketch to JSON format. I think I can figure out how to pull the info I need from Sketch, but I haven't started to code anything, because I haven't been able to find any info about this…
1
vote
1 answer

Programmatically run a script on a sketch file

Is there a way to programmatically run a sketch plugin on a sketch file from the command line, in any language? For example: runCommand --file myfile.sketch --plugin myscript.js Would run the plugin myscript.js on myfile.sketch Thank you!
glesage
  • 955
  • 2
  • 16
  • 31
1
vote
2 answers

Sketch Plugin - NSFileManager contentsOfDirectoryAtPath - not a function

I'm trying to make a plugin for Sketch that allows me to automate the production of multilingual assets. Right now, I select a list of languages files that kick off the process. I use NSOpen Panel to select these. For each language file, it makes a…
Ratedg
  • 11
  • 3
1
vote
1 answer

Sketch Plugin: How to programmatically make a layer exportable?

So, in Sketch, you can mark a layer/group as exportable. And then the layer/group can be exported as .png/.svg/.pdf etc. I was trying to make a Sketch Plugin recently, where I need to mark a layer/group as exportable from code. A layer in code is…
Munim
  • 2,626
  • 1
  • 19
  • 28
1
vote
1 answer

How do I convert my design from Sketch 3 to CSS using Bootstrap?

I want to understand how the workflow for responsive webdesign using Boostrap as a framework works. I am especially not sure how to convert my design from Sketch 3 to CSS (Bootstrap). Tools/Framework: Sketch 3, Bootsrap Goal: Fully responsive…
Theo
  • 45
  • 7
1
vote
1 answer

Calculate resolution for objects from Sketch iPhone UI

I have made a mockup of my UI for an iPhone app I'm making in Sketch. How do I calculate the resolution for each object in the UI and how do I export each components as a .png or .jpeg .So (for example) in the Sketch UI the is a rectangle, how do I…
Junaid
  • 321
  • 1
  • 4
  • 15
0
votes
1 answer

TextTheme fields not match Sketch project text styles

I use material design plugin for Sketch to design my app. Now I need to set up my app theme to completely satisfy my prototype. There is no issues with colors. But with text I see mismatch of fields of TextTheme class and generated by plugin…
user1717140
  • 343
  • 1
  • 5
  • 15
0
votes
0 answers

How to fix an inline SVG with great display in viewer but not in page ? - ReactJS import

I import 3/4 SVG into a next.js page and the display doesn't work. Seems the ID are in conflict... I tried to change the mask IDs and differents exports from sketch, it works in svgomg viewer but not in page. I also tried some components from…
MrGlox
  • 26
  • 5
0
votes
2 answers

Sketch to React?

We are trying to develop a workflow, utilizing React react-sketchapp Sketch, that a designer in Sketch can produce React components and the coding (at least for the CSS) is automatically generated and configurable. There doesn't seem to be a lot of…
Daejichu
  • 57
  • 8
0
votes
2 answers

Material SVGs exported from sketch not showing up in client's browser, but fine in my browser - how to test?

I'm assuming it's an export issue. Trying to figure out how to recreate the issue - any one experience this? Solutions also welcome. Will try re-exporting from Illustrator. here are some troublesome SVGs (material icons):
judith
  • 27
  • 9
0
votes
1 answer

Has the syntax for NSArray arrayWithObject changed in recent Sketch versions?

I developed a plugin that includes an array of acceptable file extensions. Up until recent versions of Sketch, the syntax looked like: var fileTypes = [NSArray arrayWithObjects:@'scss',@'less',@'css',nil]; An error is being thrown, stating: ObjC…
Phil Sinatra
  • 419
  • 3
  • 11
0
votes
1 answer

Automating translation in Sketch

I have a really simple question but am really struggling to find a solution for my problem. I have an Excel file with translations for every item in my Sketch design. I have to find the right item and then change the text that is there to the…
0
votes
1 answer

Make a Circle Fade?

I have the following image. I am using Sketch. How can I make the white circle fade into the Green background?
Everett
  • 387
  • 1
  • 4
  • 17