Design tokens voor de basiselementen van de huisstijl van RVO


Keywords
nl-design-system, nl-rvo
License
ICU
Install
npm install @nl-rvo/basiselementen-design-tokens@1.0.0-alpha.5

Documentation

RVO Design System

The RVO design system is based on the NL Design System architecture.

For more info about the NL Design System and learn about things happening in our open source community, join the #nl-design-system Slack via praatmee.codefor.nl!

Getting started

Include the Design Token CSS variables:

<link rel="stylesheet" type="text/css" href="https://unpkg.com/@nl-rvo/design-tokens/dist/index.css" />

Combine it with the latest CSS Component classes from the NL Design System community, for example:

<link rel="stylesheet" type="text/css" href="https://unpkg.com/@nl-rvo/component-library-css/dist/index.css" />

Then you can go ahead and use the HTML snippets of the components in this Storybook.

Avoid automatic upgrades to a new version with breaking changes

For all dependencies, see what the version is you use while developing and update the URL without version to include a version number, and ensure your page keeps working even when new versions are released:

For alpha, beta and rc versions:

https://unpkg.com/@nl-rvo/design-tokens/dist/index.css

Above should become:

https://unpkg.com/@nl-rvo/design-tokens@1.0.0-alpha.2/dist/index.css

For stable versions it would become:

https://unpkg.com/@nl-rvo/design-tokens@^1.0.0/dist/index.css

npm packages

name version
@nl-rvo/component-library-css NPM version
@nl-rvo/design-tokens NPM version

Contributing

Install prerequisites

You need to have the following tools installed to run Storybook locally:

Open a terminal and run the following commands to check:

  • git --version: a relatively recent version should be installed (Git 2.28 or later)
  • node -v: should be at least the version defined in the engines section of package.json
  • npm -v: should be at least the version defined in the engines section of package.json
  • pnpm -v: should be at least the version defined in the engines section of package.json

Install code editor

You can use any editor you'd like, but in case you use Visual Studio Code. We recommend the following extensions that are useful for this project:

Developing locally

  1. Open Terminal
  2. Select the directory this repository should be cloned into with cd <name-of-directory>
  3. Clone this Git repository
  4. cd rvo
  5. git checkout master to switch to the main master branch, if you previously worked in this repository.
  6. git pull to get to the latest version of the master branch
  7. pnpm install to download and install all the dependencies

Run Docusaurus on your computer

  1. Open Terminal
  2. Ensure your current directory is rvo
  3. Run pnpm install to ensure the latest and greatest of all dependencies
  4. Run pnpm run docs
  5. The local version of docusaurus will be running on localhost:3000/rvo
  6. Press Control+C in your terminal to stop Docusaurus

Read the standalone/docusaurus/README.md for docusaurus details

Run Storybook on your computer

  1. Open Terminal.
  2. Ensure your current directory is rvo
  3. Run pnpm install to ensure the latest and greatest of all dependencies
  4. Run pnpm run storybook to start Storybook
  5. Your main browser opens automatically with your local storybook on localhost:6006.
  6. Press Control+C in your terminal to stop Storybook.

Debugging Storybook

First check the logs in the terminal if any error is displayed, if something doesn't work as expected.

Secondly check the JavaScript logs in your browsers developer tools if there are errors or warnings.

You can run the code checks with pnpm run lint to see if any code errors can be detected.

You can also check the build logs of the design tokens for errors, if you have changed Style Dictionary JSON files, by building those separately:

  1. cd proprietary/design-tokens/
  2. pnpm run build

Code of Conduct

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. Read our Code of Conduct if you haven't already.

License

This project is free and open-source software licensed under the European Union Public License (EUPL) v1.2. The documentation is licensed as Creative Commons Zero 1.0 Universal (CC0-1.0).

For information about proprietary assets in this repository, please carefully read the NOTICE file