
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@digdir/design-system-tokens
Advanced tools
Transformed design tokens from the Digdir Common Designsystem to work in code.
npm|yarn|pnpm install @digdir/design-system-tokens
This package provides tokens for each of our supported brands.
Currently supported brands:
altinn
digdir
tilsynet
brreg
When importing the package make sure to specify which brand tokens you want to import. By default the digdir
is imported if you don't specify a brand.
import '@digdir/design-system-tokens/brand/<brand>/tokens';
// This imports Digdir brand css tokens
import '@digdir/design-system-tokens';
// This imports Altinn css tokens
import '@digdir/design-system-tokens/brand/altinn/tokens.css';
All tokens files have the same name, tokens
, separated by file extension for desired format.
Currently supported token format is css
.
When importing css tokens a set of css variables are added to your :root {}
.
You only need to import this once in your application, preferably somewhere in your "root" html.
All variables are prefixed with fds
as to not polute your namespace.
import '@digdir/design-system-tokens/brand/altinn/tokens.css';
div {
padding: var(--fds-spacing-1);
}
FAQs
Tokens for Designsystemet
The npm package @digdir/design-system-tokens receives a total of 6,049 weekly downloads. As such, @digdir/design-system-tokens popularity was classified as popular.
We found that @digdir/design-system-tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.