GithubHelp home page GithubHelp logo

rbst's Introduction

Regis' Basic Style Tokens (SUPER WIP)

In an atomic approach to design Design Tokens or Style Tokens describe building blocks like colors, font sizes, spacing, and more. (See "What are Design Tokens?")

I used to use Theo but it got a bit cluky and lacks some features I wanted:

  • defining colors more flexibly
  • tokens referencing other tokens Issue 100
  • tokens using math Issue 186
  • types on imported tokens Issue 174
  • outputing css custom properties to a class selector

It also didn't hook into webpack or my pipelines in the ways I wanted to use it (more webpack and sass-loaders fault than Theo).

So I hacked together a bespoke tool for defining tokens I can use in the ways I wanted.

It is meant to consume tokens defined as JSON (or YAML loaded as JSON) but my primary use case is defining tokens directly as Typescript.

⚠️ ⚠️ ⚠️

These v0.X.X versions will not have a fixed semantic versioned API and will be web centric: exporting tokens to Javascript/Typescript and CSS (and various CSS preprocessors)

Because its for me first, I'll be prioritizing features and formats I want or need.

Lastly, work is being done to create an official Design Tokens spec which will lay better foundations for tools and interoperability. When that happens, I may adopt it if it is compatible, but it seems a couple years off.

rbst's People

Contributors

regisfrey avatar

Watchers

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