Socket
Socket
Sign inDemoInstall

@volue/design-typography

Package Overview
Dependencies
0
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @volue/design-typography

Typography primitives for Volue design primitives


Version published
Weekly downloads
454
decreased by-29.72%
Maintainers
2
Install size
38.3 kB
Created
Weekly downloads
 

Readme

Source

@volue/design-typography

Typography primitives/tokens to be used across Volue's products

Installation

npm install @volue/design-typography --save
# or
yarn add @volue/design-typography

Usage

JavaScript

In JavaScript, design token names are formatted in lower camelCase. Tokens are exported as nested object structure.

const tokens = require('@volue/design-typography');
console.log(tokens.font.family.display);

In JSON, design token names are formatted in SNAKE_CASE.

const tokens = require('@volue/design-typography/dist/index.json');
console.log(tokens['FONT_FAMILY_DISPLAY']);

Sass

Sass variables and map keys are formatted in kebab-case.

// Using variables
@import '~@volue/design-typography/dist/index';

h1 {
  font-family: $font-family-display;
  font-size: $size-font-alpha;
}

FAQs

Last updated on 28 Feb 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc