@kreftforeningen/web-css
v1.0.19
Published
Variables and styles.
Readme
@kreftforeningen/web-css
Style variables for Kreftforeningen.
Installation
pnpm add @kreftforeningen/web-css@import "@kreftforeningen/web-css";at the top of your main css file
Content
Semantic elements
Basic styling for semantic elements such as:
- Headings
- Blockquote
Colors
Colors in oklch. Main colors also in hex.
- KF Blue
- KF Green
- KF Orange
- KF Red
- KF Pink
- KF Purple
- Gray
- Black
- White
- Vipps
Fonts
- IBM Plex Sans
- IBM Plex Condesed
- IBM Plex Serif
Animations
- Pulsating text
- Fade in / fade out
Color Extraction
To extract all color variables from the CSS into JSON files, run:
pnpm run buildThis will generate:
json/colors.jsonwith all--kf-color-*variablesjson/vipps-colors.jsonwith--vipps-color-*variablesjson/pink-ribbon-colors.jsonwith--pink-ribbon-color-*variables
NPM.js
This git is published as a package on https://www.npmjs.com/package/@kreftforeningen/web-css
