@kyberbits/prism

2.0.11 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @kyberbits/prism

Weekly Downloads

1

Version

2.0.11

License

MIT

Unpacked Size

20 kB

Total Files

12

Last publish

Collaborators

  • aaronellington