@swan-io/lake

8.2.4 • Public • Published

@swan-io/lake

Swan's design system

Getting started

You can start the Storybook, a small application that allows you to list and play with the various components.

$ yarn start

Consume the design system from apps

Scaffolding

Our design system assumes that some basic CSS is injected (for fonts, variables and reset). In order to do so:

import "@swan-io/lake/src/assets/fonts/Inter.css";
import "@swan-io/lake/src/assets/main.css";

Tokens

To use the design tokens (e.g. colors, spacings…), you can import the design file:

import {
  colors,
  backgroundColor,
  texts,
  gradients,
  shadows,
  spacings,
  negativeSpacings,
  radii,
  fonts,
  animations,
} from "@swan-io/lake/src/constants/design";

Build

You can build a static version of the Storybook (e.g. to host a demo space):

$ yarn build

Readme

Keywords

none

Package Sidebar

Install

npm i @swan-io/lake

Weekly Downloads

300

Version

8.2.4

License

MIT

Unpacked Size

2.29 MB

Total Files

313

Last publish

Collaborators

  • swan-io