All Projects → didoo → Style Dictionary Demo

didoo / Style Dictionary Demo

Licence: mit
A demonstration of a setup of Style Dictionary to be used for the generation of design tokens

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Style Dictionary Demo

Fast
The adaptive interface system for modern web experiences.
Stars: ✭ 6,532 (+7964.2%)
Mutual labels:  design-systems
Starterkit Mustache Foundation
A Foundation starter kit for Pattern Lab
Stars: ✭ 11 (-86.42%)
Mutual labels:  design-systems
Design System Starter
🚀 The Australian Government Design System - Starter
Stars: ✭ 61 (-24.69%)
Mutual labels:  design-systems
Design System React
Salesforce Lightning Design System for React
Stars: ✭ 676 (+734.57%)
Mutual labels:  design-systems
Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+8697.53%)
Mutual labels:  design-systems
Chromatic
A build system for managing cross-platform design systems using design tokens.
Stars: ✭ 33 (-59.26%)
Mutual labels:  design-systems
Html Sketchapp Cli
Quickly generate Sketch libraries from HTML documents and living style guides, powered by html-sketchapp
Stars: ✭ 631 (+679.01%)
Mutual labels:  design-systems
Interior
Design system for the modern web.
Stars: ✭ 77 (-4.94%)
Mutual labels:  design-systems
Diez
The Design Token Framework — Adopt a unified design language across platforms, codebases, and teams
Stars: ✭ 928 (+1045.68%)
Mutual labels:  design-systems
Ant Ux
🎸 A sitemap template for ux design
Stars: ✭ 1,077 (+1229.63%)
Mutual labels:  design-systems
Design System Components
🛠 Component code and tests for the Australian Government design system
Stars: ✭ 696 (+759.26%)
Mutual labels:  design-systems
Baseweb
A React Component library implementing the Base design language
Stars: ✭ 7,213 (+8804.94%)
Mutual labels:  design-systems
Fugen
Command line tool for exporting resources and generating code from your Figma files
Stars: ✭ 41 (-49.38%)
Mutual labels:  design-systems
Uswds
The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
Stars: ✭ 5,912 (+7198.77%)
Mutual labels:  design-systems
Design System Site
📚 Documentation, rationale and accessibility guidance
Stars: ✭ 72 (-11.11%)
Mutual labels:  design-systems
Primitives
An open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @modulz.
Stars: ✭ 644 (+695.06%)
Mutual labels:  design-systems
Showkase
🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements
Stars: ✭ 873 (+977.78%)
Mutual labels:  design-systems
Ft Origami
The Old Origami Website, do not use
Stars: ✭ 80 (-1.23%)
Mutual labels:  design-systems
Kit
Tools for developing, documenting, and testing React component libraries
Stars: ✭ 1,201 (+1382.72%)
Mutual labels:  design-systems
Design Systems Office Hours Playbook
A playbook for running Design Systems office hours or attending them as a Design System representative. Use this as a template for making your own company Design Systems office hours playbook!
Stars: ✭ 49 (-39.51%)
Mutual labels:  design-systems

style-dictionary-demo

This project is a demonstration of a (possible) setup of Style Dictionary for the generation of design tokens. It's been created as a companion to a Medium article that I have written to share my experience in setting up Style Dictionary for our Cosmos Design System in Badoo.

Notice: Feel free to use this code as reference, or clone it and tailor it to your needs. But keep in mind that I have done in this project is not what I suggest you to do, unless you have a very clear idea of what you need and what you want to achieve. Style Dictionary comes with a lot of pre-defined defaults, that most probably will work for you. Before starting to dig into all the possible customisations that you can have, try the default settings offered by the library, look at the output files, and see if they can suit your needs. Probably they will do. If they don't, think how you want the output files generated, and see which one of the API methods you can use for that specific scope.

Initial setup

Install the project dependencies via the CLI command:

npm install

Project structure

The project is made of these files and folders:

  • /src contains the design tokens input files (in JSON format)
  • /templates contains the templates used to generate the output files
  • /dist contains the generated output files (in different formats)
  • build.js is the script used to generate the output files

Running the project

You can build the design tokens from the /src/ folder using the CLI command:

npm run build

of you can automatically re-build the tokens at every change using the command:

npm run watch

The generated tokens are saved in the /dist folder, and organised by target platform.

License

This project is under MIT license.

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].