@kyberbits/prism
v2.0.11
Published
A CSS toolkit.
Downloads
20
Readme
prism
A CSS toolkit.
Features
- No layout support
- No CSS classes (almost)
- Dark and Light mode built-in
Control of Dark Mode
- Defaults to Dark Mode but matches system if available (prefers-color-scheme)
- Disable Dark Mode: Add
disable-dark-mode
class to the<html>
tag - Disable Light Mode: Add
disable-light-mode
class to the<html>
tag
Option 1: Use Everything
Import the combined CSS file: ./prism.css
@import url('../node_modules/@kyberbits/prism/prism.css');
Customization/Theming
/* Example */
:root {
--k-prism-dark-color-background-accent: #00bfff;
}
All variables defined here: src/prism.scss
Special Thanks
This project was inspired by Bolt.css