You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@sikt/sds-tokens

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sikt/sds-tokens

## Consume

5.1.0
latest
npmnpm
Version published
Weekly downloads
1.3K
-44.38%
Maintainers
3
Weekly downloads
 
Created
Source

@sikt/sds-tokens

Consume

npm i -s @sikt/sds-tokens

Stylesheet

@import url("@sikt/sds-tokens");

.prefix-custom-block__element--blue {
  color: var(--sds-color-brand-primary-strong);
}

Note CSS tokens are best used by importing @sikt/sds-core which will include them as CSS variables. But you can still make use of them directly from @sikt/sds-tokens if need be.

React

import * as tokens from "@sikt/sds-tokens";

<Button style={{ color: tokens.default.color.brand.primary.strong.$value }}>
  Hello, World!
</Button>;

Tailwind CSS

This is a v4 config with peer dependency on tailwindcss@^4.0.0. It disables Tailwind preflight and rely on CSS resets and variables from @sikt/sds-core.

@import url("@sikt/sds-core");
@import url("@sikt/sds-tokens/dist/tailwind/config.css");
<button class="text-brand-primary-strong">Hello, World!</button>

Caveats

Theme utilities where we have our own tokens have been disabled in the Tailwind config with --property-*: initial;.

Tailwind spacing (padding/margin) is scale constructed from a base value. This has been disabled and instead you should use our CSS custom properties p-(--sds-space-padding-small).

Design Tokens

Colors are available in light (default) and dark scheme.
Sizes are, in some cases, available for media mobile (default), tablet & desktop.
When there is no corresponding token in the non-default version the default should be used.

Tips

  • Relative sizes should be used on user font size setting scalable properties like font-size, line-height, etc.
  • Custom media queries are transformed to valid CSS during build step and need to be imported into the PostCSS file that uses them.

Note There is currently a bug in Figma that translates HSL to incorrect HEX color values. If you use the same name token you will get the correct HEX color value.

Contribute

Created using Style Dictionary and exported as CSS & JavaScript variables.

Note Do not edit these directly in the /dist output directory but rather in the /src source directory.

FAQs

Package last updated on 08 Jul 2025

Did you know?

Socket

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.

Install

Related posts