Import your design system from Sketch
Choose a .sketch file, and its colours, text styles, grids and symbols come into the library.
Sketch has no public way for other apps to read your documents, so instead of signing in you choose the file itself. Structura DS opens it in your browser and reads its design data (never its pictures), and the file is not stored anywhere.
Import a file
- In Sketch, open the document that holds your design system and save it. A document in your Sketch workspace can be downloaded from the Sketch web app as a .sketch file.
- In your project, choose Import from Sketch on any empty library page, or when you create the project.
- Drop the .sketch file on the box, or click the box to choose it, then choose Scan file.
- Review what was found, untick anything you don't want, and choose Import.
What comes in
- Color Variables and document colours become colours. A group of them (Blue/100, Blue/500 and so on) becomes one colour scale. So do layer styles that are a single colour, which is how files from before Color Variables kept their palette.
- Text Styles become one type scale, each style with its font, size, line height, weight and letter spacing.
- An artboard's layout grid or square grid becomes a layout grid.
- Symbols named or filed as icons, small and square, become SVG icons.
- Every other Symbol becomes a component, with a picture drawn from its layers. Symbols that share a name before the last slash, like Button/Primary and Button/Secondary, become one component with those variants.
- What the pages draw is read too, so a homepage or an app screen with no saved styles still brings its design system: the colours it uses (named by hue, shades as a scale), its text as a type scale (Heading 1… Body… Small) and the spacing between its elements. These are marked From the design in the review. They are chosen where the file saved nothing of that kind, and offered beside its own styles where it did.
Left out, and said so in the review: layer styles with borders or shadows have no library category; symbols from another Sketch library come in with that library's own file. Pictures are drawn from the file's vectors, so a gradient wears its first colour and a bitmap shows as a grey placeholder.
Files saved by Sketch 43 or later can be imported, up to 300 MB. A very large file is best split, so the design system has a file of its own.