New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@biom3/design-tokens

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biom3/design-tokens

![BIOM3-textured-logos-10](https://user-images.githubusercontent.com/1452237/205792502-2b1e7d79-6f0e-42dc-a455-dbcb5506cef1.png)

  • 0.0.5-alpha
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.4K
decreased by-9.77%
Maintainers
2
Weekly downloads
 
Created
Source

BIOM3-textured-logos-10

@biom3/design-tokens

This package publishes via CICD to the public npm component: @biom3/design-tokens.

What's inside?

Through this component we expose our complete library of BIOME design tokens. They are made available for use as both:

  1. exported typescript consts, and
  2. css variable definitions inside of importable css files

Using the ts const design tokens:

To use the typescript design tokens, simply import them from the root of the pacakge. For example:

import { base, ui } from "@biom3/design-tokens";

Using the css variable design tokens:

All the BIOME design tokens can be imported and used as simple css variables, by importing css files from your App code. For example:

import "@biom3/design-tokens/css/base.global.css"; // contains all BASE design tokens which dont involve colour
import "@biom3/design-tokens/css/ui.global.css"; // contains all UI design tokens
import "@biom3/design-tokens/css/theme-light.global.css"; // contains all light theme base tokens
// import "@biom3/design-tokens/css/theme-dark.global.css"; // contains all dark theme base tokens

*@NOTE All css variable declarations are scoped to the body selector and will overwrite each other, so you should only use 1 theme css file at a time. Choose the theme css file based on whether you are planning to display UI in "onDark" or "onLight" (or add your own!).

FAQs

Package last updated on 06 Dec 2022

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