Skip to main content

Design Library

The Design Library includes unstyled and themeable user interface components, patterns, design tokens, and styling utilities for creating a design system. It is available as CSS/Sass, JSON/JavaScript/TypeScript, and React.

Website: https://design.tangible.one

Repository: https://github.com/tangibleinc/design

Status: Draft - Currently in research phase

Getting started

Prerequisites: Node or Bun

Install as dependency.

npm install @tangible/ui

Sass

@import "@tangible/ui";

TypeScript

import * as ui from '@tangible/ui'

Goals

Generic

Provide building blocks for design systems and themes.

HTML elements and React components are styled using a shared set of tokens, which can have variants and themes. Multiple themes can be combined on the same page.

Accessible by default: keyboard navigation, screen reader support.

Modular

Load only the features you use. Ideally the library core defines token collections in TypeScript, which generates JSON and Sass variables, functions, mixins, placeholders; then produce only the CSS variables and rules as needed.

CSS classes and custom properties are prefixed to support embedded context such as WordPress frontend and admin.

Portable

Embrace the Design Tokens standard format (JSON) being developed by the W3C Community Group. This way shared values can be created and used across platforms, languages, and design tools.