Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@bcredi/design-tokens
Advanced tools
The tokens used to build our components and our pages.
Package | Version |
---|---|
@bcredi/design-tokens |
The available tokens are for:
colors
: Color palletefonts
: Custom fonts and typographic scalemodels
: Box-model rules (z-index)screens
: Grid definitions (viewports, gutters and containers)To install it in your project, run:
npm i --save @bcredi/design-tokens
# or yarn add @bcredi/design-tokens
After installing it, you'll be able to use it in two different ways:
To use it in your Sass stylesheets, import the source file using:
@import '[node_modules path]/@bcredi/design-tokens/dist/[token_file].scss';
To use it in your PostCSS pipe, follow the postcss-map plugin usage with the custom yml
files in the options object:
const path = require('path');
const postcss = require('postcss');
const map = require('postcss-map');
const mapsDir = path.join(__dirname, 'node_modules/@bcredi/design-tokens/dist');
const opts = {
basePath: 'css',
maps: [`${mapsDir}/[token_file].yml`],
};
postcss()
.use(map(opts))
.process(YOUR_CSS_FILE.css)
.then(result => {
fs.writeFileSync('output.css', result.css);
});
You can use the tokens as .js
or as .json
files:
To use the tokens with default CommonJS:
// js files
const tokenFile = require('@bcredi/design-tokens/dist/[token_file].js');
// json files
const tokenFile = require('@bcredi/design-tokens/dist/[token_file].json');
To use the tokens with ES6 Modules:
// js files
import tokens from '@bcredi/design-tokens/dist/[token_file].js';
// json files
import '@bcredi/design-tokens/dist/[token_file].json';
[node_modules path]
[token_file]
with the names from the list aboveFAQs
Design tokens for building Bcredi Design System UI
We found that @bcredi/design-tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
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.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.