Abstractconnect

A Design Token extractor for teams using Abstract & Javascript
Alternatives To Abstractconnect
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Styled System7,566
3 months ago234mitJavaScript
⬢ Style props for rapid UI development
Theo1,669131209a year ago109January 27, 202029bsd-3-clauseJavaScript
Theo is a an abstraction for transforming and formatting Design Tokens
Community Group1,151
19 days ago61otherHTML
This is the official DTCG repository for the design tokens specification.
Diez1,068119a year ago48May 20, 202053otherTypeScript
The Design Token Framework — Adopt a unified design language across platforms, codebases, and teams
Awesome Design Tokens896
10 days ago3unlicense
A list of resources on all things to do with Design Tokens
Design Tokens715
12 days ago31mitTypeScript
🎨 Figma plugin to export design tokens to json in an amazon style dictionary compatible format.
Figmagic65969 days ago136May 04, 202210mitTypeScript
Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.
Storybook Design Token5523407 days ago71September 16, 202241mitTypeScript
Display design token documentation generated from your stylesheets and icon files. Preview design token changes in the browser. Add your design tokens to your Storybook Docs pages using the custom Doc Blocks.
Awesome Design Systems492
5 months agocc0-1.0
📒 A curated list of bookmarks, resources and articles about design systems focused on developers.
Design System Utils4156143 years ago30March 02, 201912mitTypeScript
👩‍🎨 Access your design tokens with ease
Alternatives To Abstractconnect
Select To Compare


Alternative Project Comparisons
Readme

AbstractConnect

A Design-Token extractor for teams using Abstract & Javascript

NPM Version and link

This package retrieves symbols from a specified sketch file stored in abstract, models the data neatly and transposes sketch format styles into more webdev(tm) friendly values.

Usage

import { getSymbols } from 'abstractconnect';

getSymbols({
  filter: symbol => symbol.name === 'MySymbol'
}).then(({ MySymbol }) => {

  //select your layer by name
  const MyLayer = MySymbol.layers.MyLayerName

  //do whatever it is you want to do with design information
  const someCSS = `
    font-size: ${MyLayer.style.text.fontSize}px;
    background: ${MyLayer.style.background};
  `;

  //etc
});

getSymbols

takes a single parameter, an object with config:

  • filter: expects a standard js filter function
  • raw: set to true to get the 'raw' symbol data from sketch
  • fromSHA: target a specific commit in abstract
  • withFS: force download to FS (ends up in the TEMP_PATH setup var below)

Setup

This package is configured using environment values. Simplest setup is to drop a .env file in your project directory.

ABSTRACT_TOKEN=<YOUR DEVELOPER TOKEN>
ABSTRACT_PROJECT_ID=<YOUR PROJECT ID>
ABSTRACT_FILE_NAME=<THE NAME OF YOUR SKETCH FILE>
ABSTRACT_BRANCH=<OPTIONAL: DEFAULTS TO 'master'>
LOG_LEVEL=<OPTIONAL: to turn off console info add this to equal 'silent'>
TEMP_PATH=<OPTIONAL: DEFAULTS TO <YOURPROJECTPATH>/temp

finding your project id The simplest way to find your project id is to open your project in browser, and collect the id from the url: https://app.abstract.com/projects/<PROJECT_ID>/;

Popular Token Projects
Popular Design System Projects
Popular Security Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Token
Sketch
Design System