Coder Social home page Coder Social logo

rezrah / design-system-pipelines Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 1.82 MB

A demo for E2E build piplelines in Design Systems using monorepo's and automation :zap:.

License: MIT License

JavaScript 10.93% TypeScript 69.33% Shell 0.23% SCSS 19.51%

design-system-pipelines's Introduction

Design System Pipelines demo

What is it?

A working demonstration for end-to-end build piplelines in Design Systems using Primer Primitives, Primer CSS and Primer React as the basis.

data-flow

To demonstrate this working pipeline, a local webserver will render both react components and native HTML buttons to use the exact same design language as defined in the upstream CSS and design tokens.

Watch the demo here

https://www.loom.com/share/c16b2e77317b49a083713bde49d4c517

What does it do?

  • Builds design tokens programmatically in multiple formats (associative maps, arrays, etc) supporting various compiler languages (sass, json, typescript etc)
  • Builds CSS stylesheets programmatically using design token output
  • Builds React components that dynamically adapt to changes in design tokens and css stylesheets (above)
  • Support for Figma API, to enable fully end-to-end, real-time build pipelines
  • Supports using static, offline design token .json files as an alternative to Figma as a source of truth.

Try it out

Design tokens (JSON) as source of truth

$ yarn        // install monorepo dependencies
$ yarn build  // build tokens, css and react
$ yarn start  // open docs

Figma as source of truth

  1. Create a .env file with the following variables:

    FIGMA_TOKEN=<enter your figma token here>
    FIGMA_FILE_ID=<enter your figma file here>
    USE_FIGMA_API=true
    
  2. Run the following commands

    $ yarn        // install monorepo dependencies
    $ yarn build  // build tokens, css and react
    $ yarn start  // open docs
    

Tech stack

  • Yarn workspaces, Turborepo, Lerna
  • Design tokens: Figma API / JSON, StyleDictionary
  • CSS: SASS, PostCSS
  • React: Webpack, CSS-Modules, TypeScript
  • Docs: Next.js
  • Backend: TypeScript

design-system-pipelines's People

Contributors

rezrah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.