Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@digdir/designsystemet-theme

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digdir/designsystemet-theme

Predefined themes for Designsystemet

  • 1.0.0-next.39
  • next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.2K
increased by34.63%
Maintainers
0
Weekly downloads
 
Created
Source

@digdir/designsystemet-theme

This package contains the following predefined themes for Designsystemet

  • altinn
  • digdir
  • tilsynet
  • brreg

Build your own theme on https://theme.designsystemet.no/

Usage

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/designsystemet-theme/<brand>.css';

// This imports Digdir brand css tokens
import '@digdir/designsystemet-theme';

//  This imports Altinn css tokens
import '@digdir/designsystemet-theme/altinn.css';

CSS

This package adds Designsystemet css variables to your :root {}. You only need to import this once in your application, preferably somewhere in your "root" html.

All variables are prefixed with ds.

import '@digdir/designsystemet-theme/altinn.css';
div {
  padding: var(--ds-spacing-1);
}

FAQs

Package last updated on 25 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc