Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@contentful/f36-tokens
Advanced tools
The design tokens for Forma 36, available as JSON, CSS, and SCSS.
These tokens are a key part of our design system and power forma-36-react-components
.
yarn add @contentful/forma-36-tokens
Or for NPM
npm i @contentful/forma-36-tokens
import F36Tokens from '@contentful/forma-36-tokens';
@import '@contentful/forma-36-tokens/dist/css/index.css';
@import '@contentful/forma-36-tokens/dist/scss/index.scss';
import tokens from '@contentful/forma-36-tokens/dist/json/transitions/transition-easings';
For local development run yarn
from the root of this repo to install all dependencies and run yarn build
from the root of this repo to build all packages.
All tokens are kept in the src/tokens
directory and organised as so:
.
├── border-radius
│ ├── border-radius.js
├── box-shadows
│ ├── box-shadows.js
│ └── glows.js
├── colors
│ ├── colors-blue.js
│ ├── colors-contrast.js
│ ├── colors-coral.js
│ ├── colors-elements.js
│ ├── colors-green.js
│ ├── colors-ice.js
│ ├── colors-mint.js
│ ├── colors-orange.js
│ ├── colors-peach.js
│ ├── colors-red.js
│ ├── colors-semantic.js
│ ├── colors-text.js
│ └── colors-white.js
├── spacing.js
├── transitions
│ ├── transition-durations.js
│ └── transition-easings.js
├── typography
│ ├── font-base.js
│ ├── font-size.js
│ ├── font-stack.js
│ ├── font-weight.js
│ ├── letter-spacing.js
│ └── line-height.js
└── typography.js
yarn build
Running the build script will populate the dist
directory with separately built JSON, CSS, SCSS and JS file with TS typings.
This script populates the dist folder with all tokens as JSON, CSS, SCSS and JS. For CSS and SCSS builds, an index file is included for ease of importing.
FAQs
Forma 36 Tokens
The npm package @contentful/f36-tokens receives a total of 77,465 weekly downloads. As such, @contentful/f36-tokens popularity was classified as popular.
We found that @contentful/f36-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.