Skip to content

epignosis/epignosis-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

epignosis-ui

Shared Epignosis UI package — design tokens (and React components to follow). Intended to be consumed directly from the repo by other React apps rather than via npm.

Install

Add it to a consuming app's package.json using a git URL, e.g.:

{
  "dependencies": {
    "epignosis-ui": "github:epignosis/epignosis-ui"
  }
}

Or via npm CLI:

npm install epignosis/epignosis-ui

Because the package exports source files directly (TypeScript + CSS), the consuming app's bundler (Vite, Webpack, Rollup, esbuild, etc.) compiles them. No build step is required in this repo.

Usage

Design tokens (JS/TS)

import {
  colors,
  colorBase,
  typography,
  spacing,
  borderRadius,
  shadows,
  breakpoints,
  mediaQueries,
  zIndex,
  transitions,
} from "epignosis-ui/tokens";

Design tokens (CSS variables)

import "epignosis-ui/tokens.css";

Then reference the variables anywhere in CSS:

.my-button {
  background-color: var(--color-primary-base);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xs) var(--spacing-md);
}

See DESIGN_TOKENS.md for the full token reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors