Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@skyscanner/bpk-foundations-react-native
Advanced tools
Common Backpack design tokens for colors, spacing, font, etc.
React Native design tokens for colours, spacing, font, etc.
npm install @skyscanner/bpk-foundations-react-native --save-dev
For React Native:
// Individual tokens
import { spacingBase } from '@skyscanner/bpk-foundations-react-native/tokens/base.react.native';
console.log(spacingBase);
// Whole token categories
import { colors } from '@skyscanner/bpk-foundations-react-native/tokens/base.react.native';
console.log(colors.colorSkyGrayTint01);
// All tokens
import * as tokens from '@skyscanner/bpk-foundations-react-native/tokens/base.react.native';
console.log(tokens);
For web:
// Individual tokens
import { spacingBase } from '@skyscanner/bpk-foundations-react-native/tokens/base.es6';
console.log(spacingBase);
// Whole token categories
import { colors } from '@skyscanner/bpk-foundations-react-native/tokens/base.es6';
console.log(colors.colorSkyGrayTint01);
// All tokens
import * as tokens from '@skyscanner/bpk-foundations-react-native/tokens/base.es6';
console.log(tokens);
// Individual tokens
import { spacingBase } from '@skyscanner/bpk-foundations-react-native/tokens/base.common';
console.log(spacingBase);
// All tokens
import * as tokens from '@skyscanner/bpk-foundations-react-native/tokens/base.common';
console.log(tokens);
It is possible to add opacity to Backpack color tokens as follows:
import { colorSkyBlue } from '@skyscanner/bpk-foundations-react-native/tokens/base.react.native';
import { setOpacity } from '@skyscanner/bpk-foundations-react-native';
const transparentBlue500 = setOpacity(colorSkyBlue, 0.7);
console.log(transparentBlue500);
FAQs
Common Backpack design tokens for colors, spacing, font, etc.
We found that @skyscanner/bpk-foundations-react-native 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.