Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@biom3/design-tokens
Advanced tools
![BIOM3-textured-logos-10](https://user-images.githubusercontent.com/1452237/205792502-2b1e7d79-6f0e-42dc-a455-dbcb5506cef1.png)
This package publishes via CICD to the public npm component: @biom3/design-tokens
.
Through this component we expose our complete library of BIOME design tokens. They are made available for use as both:
To use the typescript design tokens, simply import them from the root of the pacakge. For example:
import { base, ui } from "@biom3/design-tokens";
To use these variables inside bespoke react typescript components:
import { base, ui, pickTokenValue } from "@biom3/design-tokens";
const DemoComponent = () => (
<div
style={{
fontSize: base.text.body.medium.regular.fontSize,
color: pickTokenValue(ui.text.body.color.primary, base),
}}
>
test component text
</div>
);
All the BIOME design tokens can be imported and used as simple css variables, by importing css files from your App code. For example:
import "@biom3/design-tokens/css/base-onLight.global.css"; // contains all "onLight" BASE design tokens
// import "@biom3/design-tokens/css/base-onDark.global.css"; // contains all "onDark" BASE design tokens
import "@biom3/design-tokens/css/ui.global.css"; // contains all UI design tokens
*@NOTE All css-variable declarations are global styles scoped to the body selector, thus the base design-token files will overwrite each other, so you should only use 1 base design-token css file at a time. Choose the theme css file based on whether you are planning to display UI in "onDark" or "onLight" (or add your own!).
To use these css variables, the procedure is simple:
@import "@biom3/design-tokens/css/base-onDark.global.css";
@import "@biom3/design-tokens/css/ui.global.css";
/* your bespoke item class styles */
.headingText {
color: var(--ui-text-heading-color-primary);
}
FAQs
![BIOM3-textured-logos-10](https://user-images.githubusercontent.com/1452237/205792502-2b1e7d79-6f0e-42dc-a455-dbcb5506cef1.png)
The npm package @biom3/design-tokens receives a total of 0 weekly downloads. As such, @biom3/design-tokens popularity was classified as not popular.
We found that @biom3/design-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.