
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@cockroachlabs/design-tokens
Advanced tools
Uses style-dictionary to transform tokens defined in json into different formats.
pnpm install
pnpm run build
_tokens.scss
contains exported token values as Sass variables.
@import "~@cockroachlabs/design-tokens/dist/web/tokens"
.example {
background-color: $color-background-button-primary-success-base;
color: $color-font-button-primary-success-base;
border-width: 1px;
border-style: solid;
border-color: $color-border-button-primary-success-base;
}
tokens.styl
contains exported token values as Stylus variables.
@require "~@cockroachlabs/design-tokens/dist/web/tokens"
.example
color $color-intent-success-4
background-color $color-intent-success-1
border-radius 3px
tokens.js
contains exported token values as JavaScript constants.
import {
ColorFont1,
ColorBaseBlue,
ColorBasePurple,
} from "@cockroachlabs/design-tokens";
// ...
<SomeComponent
fontColor={ColorFont1}
interactionColor={ColorBaseBlue}
progressColor={ColorBasePurple}
/>;
a tokens.d.ts
file is also generated to act as types for tokens for TypeScript support.
FAQs
Design tokens for Cockroach Labs.
We found that @cockroachlabs/design-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.