Base styling and utilities for all NRK projects.
@nrk/core-cssexposes a set of class names and mixins to ease creating backwards compatible layouts and standard NRK styling. The code is built on BEM-conventions and is namespaced
nrk-to play nice with existing projects.
npm install @nrk/core-css
then import it into your stylesheet:
Recommended only for prototyping.
@nrk/core-css and install dependencies:
git clone email@example.com:nrkno/core-css.gitcd core-cssnpm installnpm start # Your browser will open documentation with hot reloading
Building and committing
After having applied changes, remember to build the CSS, SVG and fonts before pushing the changes upstream.
git checkout -b feature/my-changes# update the source codenpm run buildgit commit -am "Add my changes"git push origin feature/my-changes# then make PR to the master branch,# and assign a CSS developer to review your code
NOTE! Please also make sure to keep commits small, clean and that the commit message actually refers to the updated files. Formally, make sure the message is Capitalized and starts with a verb.