All Projects → sketch-hq → sketch-reference-files

sketch-hq / sketch-reference-files

Licence: MIT license
A store of automatically generated Sketch file JSON organised by document version and Sketch feature

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to sketch-reference-files

designto-code
Design to code engine. A design ✌️ code standard. Supports React, Flutter and more.
Stars: ✭ 87 (+335%)
Mutual labels:  sketch
DesignToken2Code
Convert design tokens to SCSS variables as code
Stars: ✭ 16 (-20%)
Mutual labels:  sketch
Sketch-Keyboard-Resize
A Sketch plugin that lets you resize objects from all sides with keyboard shortcuts. As a bonus you can specify the resize amount.
Stars: ✭ 16 (-20%)
Mutual labels:  sketch
sketch-data-faker
A Sketch plugin providing 130+ types of smart placeholder content for your mockups from Faker.js and other sources.
Stars: ✭ 62 (+210%)
Mutual labels:  sketch
Sketch-SelectPlus
Sketch plugin to select different layers of specific types. It basically selects everything!
Stars: ✭ 20 (+0%)
Mutual labels:  sketch
vgg runtime
VGG Runtime for loading and running designs as apps.
Stars: ✭ 19 (-5%)
Mutual labels:  sketch
Design-Resources
A curated list of design resources from design templates, stock photos, icons, colors, and much more.
Stars: ✭ 943 (+4615%)
Mutual labels:  sketch
AODA
Official implementation of "Adversarial Open Domain Adaptation for Sketch-to-Photo Synthesis"(WACV 2022/CVPRW 2021)
Stars: ✭ 44 (+120%)
Mutual labels:  sketch
Smile-Sketch
文档快速整理排序,资源导入与导出
Stars: ✭ 14 (-30%)
Mutual labels:  sketch
styledrop
A plugin for Sketch allows you to easily copy styles from one layer to another.
Stars: ✭ 54 (+170%)
Mutual labels:  sketch
xlayers-lite
🦋 xLayers' viewer as a Web Component 🦋
Stars: ✭ 22 (+10%)
Mutual labels:  sketch
skeditor
Online sketch file editor.
Stars: ✭ 133 (+565%)
Mutual labels:  sketch
symbol-insert
A simple plugin to insert your Sketch symbols
Stars: ✭ 25 (+25%)
Mutual labels:  sketch
inker
Measure & copy CSS from your designs of Sketch, Gravit Designer, Adobe XD, Vectr, etc. Pro version: https://github.com/inker8/
Stars: ✭ 56 (+180%)
Mutual labels:  sketch
Apple-App-Icons
This repository is for hosting Apple App Icons Sketch file, .sketch
Stars: ✭ 31 (+55%)
Mutual labels:  sketch
favicon
🖼 An attempt to capture all possible favicons for a web project.
Stars: ✭ 17 (-15%)
Mutual labels:  sketch
SketchSVG
Have icons in a Sketch file but don't want to manually extract and compress them as SVGs? Let our SketchSVG tool do it!
Stars: ✭ 23 (+15%)
Mutual labels:  sketch
SketchGen
A Swift command line tool for generating source code from sketch files
Stars: ✭ 27 (+35%)
Mutual labels:  sketch
open design system
Open Source Design System using Sketch. It's early days of my project.
Stars: ✭ 22 (+10%)
Mutual labels:  sketch
design-tokens-plugin
Support end of life! Delivering consistent Design System. A Sketch plugin that exports Design Tokens to JSON format. You can export colors, typography, icons and utilis. A must-have tool for design system project.
Stars: ✭ 100 (+400%)
Mutual labels:  sketch

sketch-reference-files

A store of automatically generated Sketch file JSON organised by document version and Sketch feature.


☝️ This project has been archived. More detailed information on Sketch document data structures can be found in the Sketch file format specification and the corresponding TypeScript types.


Overview

Sketch documents are stored as ZIP archives containing JSON encoded data. The file format was originally introduced in Sketch 43 and allows for better third-party integration. For example generating, reading and modifying documents without opening them in Sketch.

In order to provide concrete examples of how different Sketch features are serialised into JSON this repo maintains an archive of reference files.

It's published as an npm module to aid use cases that may involve importing these reference files as test fixtures.

Related projects

Usage

JavaScript

Add the npm module using npm or yarn

npm install @sketch-hq/sketch-reference-files
import files from '@sketch-hq/sketch-reference-files'

The module exports reference file metadata and json contents for each supported document version.

[
  {
    document: 121,
    sketchVersions: ['59', '60', '61'],
    files: [
      { id, name, description, data },
      ...
    ],
  },
  ...
]

HTTP

The raw reference file JSON can be accessed over HTTP via predicable urls:

Development

This section of the readme is related to developing the reference file repo. If you just want to consume the reference file data you can safely ignore this.

Requirements

  • Yarn >= 1.13
  • Node 12.*.*

Scripts

Script Description
yarn download-apps Download and locally cache all Sketch app binaries needed to generate the files
yarn generate-files Generate reference files into the files/ folder. Existing reference files are skipped, so delete the files/ folder if you need to generate everything from scratch. This command needs to be run manually, and isn't part of the normal build
yarn build Builds the module into the the dist/ folder
yarn changeset Open an interactive CLI to add a changeset
yarn commit Open an interactive CLI to make a git commit in the conventional commits format

Making changes

Adding reference files for a new Sketch version

  1. Update the scripts/config.ts file with metadata for the new Sketch version
  2. Run yarn download-apps to ensure you have the correct Sketch binaries available locally
  3. Run yarn generate-files to build the reference files
  4. PR your changes

Add a new reference file feature type

  1. Add plugin code to demonstrate the feature in features/. Use the other features as a guide
  2. Update the scripts/config.ts file with metadata for the file feature
  3. Run yarn download-apps to ensure you have the correct Sketch binaries available locally
  4. Run yarn generate-files to build the reference files
  5. PR your changes

Conventional commits

Try and use the conventional commits convention when writing commit messages. This isn't enforced, but you can use the yarn commit command (in place of git commit -m "foo") to open an interactive CLI to walk you through generating a properly formatted commit message.

Releases

This repo uses Atlassian Changesets to automate the npm release process. Read the docs for more information, but the top-level summary is:

  • A GitHub Action maintains a permanently open PR that when merged will publish the package to npm with the latest changes and an automatically determined semver
  • If the work you do in a PR should affect the next release, then you need to commit a "changeset" to the repo together with the rest of your code changes - do this by running yarn changeset. You'll be asked to provide a change type (major, minor or patch) and a message

Browse

⚠️ This section is automatically generated. Any manual edits will be erased during a build.

Document 123

Sketch versions: 62

Feature Document Pages Meta User
Empty 🔗 🔗 🔗 🔗
Groups 🔗 🔗 🔗 🔗
Images 🔗 🔗 🔗 🔗
Library styles 🔗 🔗 🔗 🔗
Library symbols 🔗 🔗 🔗 🔗
Prototypes 🔗 🔗 🔗 🔗
Shape paths 🔗 🔗 🔗 🔗
Shapes 🔗 🔗 🔗 🔗
Symbol overrides 🔗 🔗 🔗 🔗
Symbols 🔗 🔗 🔗 🔗
Text 🔗 🔗 🔗 🔗
Smart layout 🔗 🔗 🔗 🔗
Blur 🔗 🔗 🔗 🔗
Slice 🔗 🔗 🔗 🔗
Export formats 🔗 🔗 🔗 🔗
Variable font 🔗 🔗 🔗 🔗

Document 121

Sketch versions: 59, 60, 61

Feature Document Pages Meta User
Empty 🔗 🔗 🔗 🔗
Groups 🔗 🔗 🔗 🔗
Images 🔗 🔗 🔗 🔗
Library styles 🔗 🔗 🔗 🔗
Library symbols 🔗 🔗 🔗 🔗
Prototypes 🔗 🔗 🔗 🔗
Shape paths 🔗 🔗 🔗 🔗
Shapes 🔗 🔗 🔗 🔗
Symbol overrides 🔗 🔗 🔗 🔗
Symbols 🔗 🔗 🔗 🔗
Text 🔗 🔗 🔗 🔗
Smart layout 🔗 🔗 🔗 🔗
Blur 🔗 🔗 🔗 🔗
Slice 🔗 🔗 🔗 🔗
Export formats 🔗 🔗 🔗 🔗
Variable font 🔗 🔗 🔗 🔗

Document 120

Sketch versions: 58

Feature Document Pages Meta User
Empty 🔗 🔗 🔗 🔗
Groups 🔗 🔗 🔗 🔗
Images 🔗 🔗 🔗 🔗
Library styles 🔗 🔗 🔗 🔗
Library symbols 🔗 🔗 🔗 🔗
Prototypes 🔗 🔗 🔗 🔗
Shape paths - - - -
Shapes 🔗 🔗 🔗 🔗
Symbol overrides 🔗 🔗 🔗 🔗
Symbols 🔗 🔗 🔗 🔗
Text 🔗 🔗 🔗 🔗
Smart layout 🔗 🔗 🔗 🔗
Blur 🔗 🔗 🔗 🔗
Slice 🔗 🔗 🔗 🔗
Export formats 🔗 🔗 🔗 🔗
Variable font - - - -

Document 119

Sketch versions: 55.2, 56, 56.1, 56.2, 56.3, 57, 57.1

Feature Document Pages Meta User
Empty 🔗 🔗 🔗 🔗
Groups 🔗 🔗 🔗 🔗
Images 🔗 🔗 🔗 🔗
Library styles 🔗 🔗 🔗 🔗
Library symbols 🔗 🔗 🔗 🔗
Prototypes 🔗 🔗 🔗 🔗
Shape paths 🔗 🔗 🔗 🔗
Shapes 🔗 🔗 🔗 🔗
Symbol overrides 🔗 🔗 🔗 🔗
Symbols 🔗 🔗 🔗 🔗
Text 🔗 🔗 🔗 🔗
Smart layout - - - -
Blur 🔗 🔗 🔗 🔗
Slice 🔗 🔗 🔗 🔗
Export formats 🔗 🔗 🔗 🔗
Variable font - - - -

Document 118

Sketch versions: 55, 55.1

Feature Document Pages Meta User
Empty 🔗 🔗 🔗 🔗
Groups 🔗 🔗 🔗 🔗
Images 🔗 🔗 🔗 🔗
Library styles 🔗 🔗 🔗 🔗
Library symbols 🔗 🔗 🔗 🔗
Prototypes 🔗 🔗 🔗 🔗
Shape paths 🔗 🔗 🔗 🔗
Shapes 🔗 🔗 🔗 🔗
Symbol overrides 🔗 🔗 🔗 🔗
Symbols 🔗 🔗 🔗 🔗
Text 🔗 🔗 🔗 🔗
Smart layout - - - -
Blur 🔗 🔗 🔗 🔗
Slice 🔗 🔗 🔗 🔗
Export formats 🔗 🔗 🔗 🔗
Variable font - - - -
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].