Socket
Book a DemoInstallSign in
Socket

@campminder/design-tokens

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@campminder/design-tokens

This repo holds the source of truth for our design system's design tokens.

0.1.8
latest
npmnpm
Version published
Weekly downloads
102
-5.56%
Maintainers
4
Weekly downloads
 
Created
Source

Introduction

This repo holds the source of truth for our design system's design tokens.

Repo Structure

Docs

├── config.json
├── tokens/
│   ├── size/
│       ├── font.json
│   ├── color/
│       ├── font.json
│   ...
├── assets/
│   ├── fonts/
│   ├── images/

Token Files

Docs

{
  "value": {
    "type": "number",
    "value": 16
  },
  "unit": {
    "type": "string",
    "value": "px"
  }
}

Config File

Docs

{
  "source": ["tokens/**/*.json"],
  "platforms": {
    "web": {
      "transformGroup": "web",
      "buildPath": "dist/",
      "files": [
        {
          "destination": "tokens.css",
          "format": "css/variables"
        }
      ]
    }
  }
}

Usage

Export design tokens from Figma or write them manually in the tokens/ directory. To see the output, run the following command:

pnpm build

This command is run by the pre-push hook, so you don't need to run it manually.

FAQs

Package last updated on 26 Aug 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.