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

@swan-io/lake

Package Overview
Dependencies
Maintainers
0
Versions
274
Alerts
File Explorer

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
Weekly downloads
538
decreased by-47.67%
Maintainers
0
Weekly downloads
 
Created
Source

@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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc