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

@manifoldco/mercury

Package Overview
Dependencies
Maintainers
15
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manifoldco/mercury

Manifold Design System

  • 0.1.0-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
15
Weekly downloads
 
Created
Source

@manifoldco/mercury

Design tokens auto-generated from our Figma files.

📚 Usage

npm install @manifoldco/mercury

Sass Modules

Mercury ships with some Sass Modules which can be imported and extended if you’re using Sass:

@use "@manifoldco/mercury" as mercury;

.Manifold__Button {
  @include mercury.button; /* extend button styles */

  background: mercury.$color-purple; /* provide overrides from common variables */
  color: mercury.$color-white;
}

For reference, please see the generated .scss files which are tracked in version control.

♻️ Updating from Figma

In your .zshrc or .bashrc, add your Figma access token (needed to access Manifold files):

export FIGMA_ACCESS_TOKEN=myaccesstoken

Then run:

npm run extract

🚀 Deploying

Currently, deploying happens manually. You’ll need to be signed into npm.

Bump the patch number (the last digit) in package.json manually:

-  "version": "0.0.9",
+  "version": "0.0.10",

Commit this change.

Note: decause this is all managed by design, the version number doesn’t matter as much as traditional packages.

Then, run:

npm run deploy

⚠️ Note: deploying won’t update the tokens! You’ll need to run npm run extract to pull the latest values.

FAQs

Package last updated on 24 Mar 2020

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