granum
v2.1.2
Published
CSS micro framework
Maintainers
Readme
Granum
CSS micro framework.
Ultra compact set of styles and behaviours for basic web pages.
14 KB minified and gzipped.
With icons, components and some JavaScript.
Usage
npm
npm install granumManual
Download
and include bundled styles and scripts from dist directory.
<link rel="stylesheet" href="granum.min.css">
<!-- optional -->
<script src="granum.min.js" defer></script>CDN
<link rel="stylesheet" href="https://unpkg.com/granum">
<!-- optional -->
<script src="https://unpkg.com/granum/dist/granum.min.js" defer></script>Features
- lightweight
- simple class names
- modern
- responsive
- mobile friendly
- semantic
- valid
- cross-browser
- JavaScript is optional
- neutral style
- no floats
- no hacks
Components
- custom checkbox, radio, switch
- interactive components: modal, drawer, gallery, popup, tooltips, dropdown, tabs, slider
- responsive components (dropdown, form, flex, grid)
- scrollable table with fixed headers and column
- controlled with css custom properties (
vars) - dark mode
- custom input with prefix and suffix
- form validation
- status colors, spacing, tags, badges
mask-imageSVG icons (100+)
JavaScript hooks
- toggle CSS
class - filter table
- sort table
- align table columns
- store details state
- store inputs
- get inputs from URL
- check group of checkboxes
- alert, confirm, prompt
- escape
- customize CSS
vars
Browser suppport
Modern browsers.
