@swan-io/lake

8.15.13 • 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

/@swan-io/lake/

    Package Sidebar

    Install

    npm i @swan-io/lake

    Weekly Downloads

    693

    Version

    8.15.13

    License

    MIT

    Unpacked Size

    2.3 MB

    Total Files

    323

    Last publish

    Collaborators

    • swan-io