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