@swan-io/lake
v11.1.7
Published
> Swan's design system
Downloads
1,840
Readme
@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.
$ pnpm 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):
$ pnpm build