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.
bpk-tokens-css
Advanced tools
Design tokens for colours, spacing, font, etc.
npm install bpk-tokens --save-dev
@import '~bpk-tokens/tokens/base.default.scss';
.my-selector {
padding: $bpk-spacing-base;
}
For React Native:
// Individual tokens
import { spacingBase } from 'bpk-tokens/tokens/base.react.native';
console.log(spacingBase);
// Whole token categories
import { colors } from 'bpk-tokens/tokens/base.react.native';
console.log(colors.colorSkyGrayTint01);
// All tokens
import * as tokens from 'bpk-tokens/tokens/base.react.native';
console.log(tokens);
For web:
// Individual tokens
import { spacingBase } from 'bpk-tokens/tokens/base.es6';
console.log(spacingBase);
// Whole token categories
import { colors } from 'bpk-tokens/tokens/base.es6';
console.log(colors.colorSkyGrayTint01);
// All tokens
import * as tokens from 'bpk-tokens/tokens/base.es6';
console.log(tokens);
// Individual tokens
import { spacingBase } from 'bpk-tokens/tokens/base.common';
console.log(spacingBase);
// All tokens
import * as tokens from 'bpk-tokens/tokens/base.common';
console.log(tokens);
It is possible to add opacity to Backpack color tokens as follows:
import { colorSkyBlue } from 'bpk-tokens/tokens/base.react.native';
import { setOpacity } from 'bpk-tokens';
const transparentBlue500 = setOpacity(colorSkyBlue, 0.7);
console.log(transparentBlue500);
FAQs
Backpack design tokens for colors, spacing, font, etc.
The npm package bpk-tokens-css receives a total of 20 weekly downloads. As such, bpk-tokens-css popularity was classified as not popular.
We found that bpk-tokens-css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.