All Projects → ui-js → Chromatic

ui-js / Chromatic

Licence: mit
A build system for managing cross-platform design systems using design tokens.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Chromatic

React Spectrum
A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
Stars: ✭ 5,876 (+17706.06%)
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 (+1851.52%)
Mutual labels:  design-systems
Baseweb
A React Component library implementing the Base design language
Stars: ✭ 7,213 (+21757.58%)
Mutual labels:  design-systems
Mineral Ui
A design system and React component library for the web brought to you by CA Technologies.
Stars: ✭ 533 (+1515.15%)
Mutual labels:  design-systems
Design System
Priceline.com Design System
Stars: ✭ 604 (+1730.3%)
Mutual labels:  design-systems
Uswds
The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
Stars: ✭ 5,912 (+17815.15%)
Mutual labels:  design-systems
Komponent
An opinionated way of organizing front-end code in Ruby on Rails, based on components
Stars: ✭ 431 (+1206.06%)
Mutual labels:  design-systems
Starterkit Mustache Foundation
A Foundation starter kit for Pattern Lab
Stars: ✭ 11 (-66.67%)
Mutual labels:  design-systems
Html Sketchapp Cli
Quickly generate Sketch libraries from HTML documents and living style guides, powered by html-sketchapp
Stars: ✭ 631 (+1812.12%)
Mutual labels:  design-systems
Iview
A high quality UI Toolkit built on Vue.js 2.0
Stars: ✭ 23,930 (+72415.15%)
Mutual labels:  design-systems
Ant Design
An enterprise-class UI design language and React UI library
Stars: ✭ 76,498 (+231712.12%)
Mutual labels:  design-systems
Awesome React Design Systems
A collection of awesome React-based design systems
Stars: ✭ 552 (+1572.73%)
Mutual labels:  design-systems
Design System React
Salesforce Lightning Design System for React
Stars: ✭ 676 (+1948.48%)
Mutual labels:  design-systems
Modular Monolith With Ddd
Full Modular Monolith application with Domain-Driven Design approach.
Stars: ✭ 6,210 (+18718.18%)
Mutual labels:  design-systems
Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+21493.94%)
Mutual labels:  design-systems
Community Group
This is the official DTCG repository for the design tokens specification.
Stars: ✭ 480 (+1354.55%)
Mutual labels:  design-systems
Fast
The adaptive interface system for modern web experiences.
Stars: ✭ 6,532 (+19693.94%)
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 (+2545.45%)
Mutual labels:  design-systems
Diez
The Design Token Framework — Adopt a unified design language across platforms, codebases, and teams
Stars: ✭ 928 (+2712.12%)
Mutual labels:  design-systems
Design System Components
🛠 Component code and tests for the Australian Government design system
Stars: ✭ 696 (+2009.09%)
Mutual labels:  design-systems

Chromatic

A tool to help manage design systems by generating platform-specific files from a source file describing design tokens.

Expressive Design Tokens

Tokens can contain rich expressions in a natural syntax, including arithmetic operations, units (12px), function (rgb(), mix(), saturate()...) and references to other tokens.

tokens:
  primary-hue: '210deg'
  primary: 'hsl({primary-hue}, 100%, 40%)'
  primary-dark: 'darken({primary}, 20%)'

  line-height: '18pt + 5px'

Themes

Each token can have a theme variant, such as dark/light, or compact/cozy layouts. The necessary output artifacts are generated automatically.

tokens:
  cta-button-background:
    value:
      dark: '#004082'
      light: '#0066ce'

Zero-conf

Get going quickly. A simple token file written YAML or JSON file is all you need.

But Chromatic is also customizable when you need to. You can write or modify the format of the output files to suit your needs.

Chromatic is also available as an API that can be invoked from a build system.

Multi-platform

From a single token file, generate platform specific artifacts:

  • for the web (Sass, CSS)
  • for iOS (JSON, plist)
  • for Android (XML)

Chromatic can also generate a style guide as a HTML file.

Getting started with Chromatic

$ npm install -g @arnog/chromatic

To create a directory with an example:

$ chromatic example ./test
$ chromatic ./test -o tokens.scss
$ chromatic ./test -o tokens.html

Or writing your own token file:

# tokens.yaml
tokens:
  background: '#f1f1f1'
  body-color: '#333'
$ chromatic tokens.yaml -o tokens.scss
$background: #f1f1f1 !default;
$body-color: #333 !default;

Now, let's create a dark theme:

# tokens-dark.yaml
theme: dark
tokens:
  background: '#222'
  body-color: '#a0a0a0'
# tokens.yaml
import: ./tokens-dark.yaml
tokens:
  background: '#f1f1f1'
  body-color: '#333'
$ chromatic tokens.yaml -o tokens.scss
:root {
  --background: #f1f1f1;
  --body-color: #333;
}
body[data-theme='dark'] {
  --background: #222;
  --body-color: #a0a0a0;
}
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].