Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@nl-rvo/component-library-css

Package Overview
Dependencies
Maintainers
3
Versions
516
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nl-rvo/component-library-css

Component library bundle for the RVO based on the NL Design System architecture

Source
npmnpm
Version
1.0.0-alpha.15
Version published
Weekly downloads
285
-55.12%
Maintainers
3
Weekly downloads
 
Created
Source

CSS Components

CSS components are developed using BEM class names and the stylesheets can be included in your page side-effect free. Apply the class names to your elements to make them stylable using design tokens.

npm install --save-dev --save-exact @nl-rvo/component-library-css

Theoretically you can include the components in your HTML page like so, but this is not the typical use case of this library:

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Example page</title>
    <link rel="stylesheet" href="node_modules/@nl-rvo/component-library-css" />
  </head>
  <body>
    <h1 class="utrecht-heading-1">Home</h1>
    <p class="utrecht-paragraph">Hello, world!</p>
  </body>
</html>

The BEM class names can be particularly useful to include only the CSS you need using CSS modules (in React).

import React from "react";
import style from "@nl-rvo/component-library-css";

export default class ExamplePage extends React.Component {
  render() {
    return (
      <>
        <h1 className={btn["utrecht-heading-1"]}>Home</h1>
        <p className={btn["utrecht-paragraph"]}>Hello, world!</p>
      </>
    );
  }
}

Keywords

rvo

FAQs

Package last updated on 13 Jun 2022

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