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

@atlaskit/tokens

Package Overview
Dependencies
Maintainers
2
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/tokens

Design tokens are the single source of truth to name and store design decisions.

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
295K
increased by6.23%
Maintainers
2
Weekly downloads
 
Created

What is @atlaskit/tokens?

@atlaskit/tokens is a design token library provided by Atlassian. It allows developers to use a consistent set of design tokens across their applications, ensuring a unified design language. The package provides tokens for colors, spacing, typography, and other design elements, making it easier to maintain and scale design systems.

What are @atlaskit/tokens's main functionalities?

Color Tokens

This feature allows you to use predefined color tokens in your application. The `token` function retrieves the value of a specified token, ensuring consistency across your design.

import { token } from '@atlaskit/tokens';

const primaryColor = token('color.background.brand.bold', '#0052CC');
console.log(primaryColor); // Outputs: #0052CC

Spacing Tokens

This feature provides spacing tokens that can be used to maintain consistent spacing throughout your application. The `token` function retrieves the value of a specified spacing token.

import { token } from '@atlaskit/tokens';

const spacing = token('space.100', '8px');
console.log(spacing); // Outputs: 8px

Typography Tokens

This feature offers typography tokens for consistent font sizes, line heights, and other typographic properties. The `token` function retrieves the value of a specified typography token.

import { token } from '@atlaskit/tokens';

const fontSize = token('font.size.200', '14px');
console.log(fontSize); // Outputs: 14px

Other packages similar to @atlaskit/tokens

FAQs

Package last updated on 21 Nov 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