Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@swan-io/lake

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swan-io/lake

> Swan's design system

  • 11.2.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created

@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

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts