Giter Site home page Giter Site logo

wisdom's Introduction

Wisdom

A design system system.

Usage

npm install
npm run build

You'll see a dist folder with a file called design-system.json in it.

How It Works

All we're doing here is building an object that holds the values of the design system, then serializing it to JSON with a simple build script.

inputs.json

The base values that the design system is derived from.

Hint: what if we added a server and front-end to this repo that allowed us to graphically edit this file?

src/design-system.ts

Uses the inputs to derive the values of the design system and place it into a particular schema.

We can use TypeScript interfaces to define the schema, which will guide contribution and break the build if anything is off.

dist/design-system.json

When you run npm run build, it will generate this file, which contains serialized design system object.

CMS

Run:

npm run cms

This will run a server, exposing a CMS. By default, it will use port 9999 on localhost:

If the server is running, you can click here to go to the CMS.

Change the JSON to see the resulting changes to the design system. When you press "Save", it will write the changes to inputs.json.

The Future

  • Code generation (Generate Swift, Kotlin, CSS, Styled Components, etc.)
  • Statically generated style guide

wisdom's People

Contributors

prolificeric avatar

Watchers

 avatar V 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.