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

@warp-ds/css

Package Overview
Dependencies
Maintainers
6
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@warp-ds/css

This is the CSS package for WARP.

  • 1.0.0-alpha.16
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
573
decreased by-57.3%
Maintainers
6
Weekly downloads
 
Created
Source

WARP CSS

This is the CSS package for WARP.

The package includes resets, component classes and tokens.

Usage

The CSS files should be used directly from Eik. This is because we can alias releases by major versions.

We publish 2 versions of resets. The minified that can be used in production and non-minified that can be used in development.

<link href="https://assets.finn.no/pkg/@warp-ds/css/v1/resets.min.css" rel="stylesheet" />
or
<link href="https://assets.finn.no/pkg/@warp-ds/css/v1/resets.css" rel="stylesheet" />

Usage (npm)

Only component classes are published to npm to be used in the component libraries.

pnpm install @warp-ds/css

Component classes

The package includes component classes, such as:

  • attention
  • pageIndicator
  • ribbon
  • slider
  • modal
  • box
  • pill
  • step
  • card
  • switchToggle
  • toaster
  • toast
  • tabs
  • tab
  • expandable
  • suffix
  • prefix

And shortcuts, such as:

  • button
  • button--secondary
  • button--default
  • button--small
  • button--link
  • button--primary
  • button--cta
  • button--pill
  • button--utility
  • button--utility-flat
  • button--destructive
  • button--destructive-flat
  • button--flat

Tokens

Creates brand-css files from tokens.

Uses the Tokenizer to build css vars. The output is css files, one for each support brand. These CSS files are what's actually holding the theme.

Usage of tokens

If you have new components to add tokens to (if you only want to update existing tokens proceed to step 2):

  1. Under applicable brand create a new yml file and preferably name it the same as the new component(e.g. button.yml if it is a button component)
  2. Update tokens needed.
  3. Push your changes.
  4. The CSS files for each brand will be built and published to Eik. Please find your release here and search for the css urls which were published under Eik login and publish step. ! Be aware that it takes some time before we update the aliased version on Eik so if you need to test your changes immediately use the full version and not an alias.

How to contribute

If you'd like to contribute to @warp-ds/css, start by reviewing the contributing guidelines.

FAQs

Package last updated on 30 Jun 2023

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