Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@cockroachlabs/design-tokens
Advanced tools
Design tokens for Cockroach Labs.
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 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.