Documentation
A minimal CSS library inspired by shadcn, usable with plain HTML.
Getting started
Include the stylesheet and script, then use class names and data attributes.
Link these two files in your HTML:
Theming
Set data-theme on <html> to light or dark.
<html>.
Typography
Headings, body text, muted copy, and inline pre.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Body text with the text class.
Small body text with text-small.
Muted text with text-muted.
Inline
prefor short snippets.
Blockquote
Quoted content with a left border and surface background.
Design is not just what it looks like and feels like. Design is how it works.
— Steve Jobs
Spacers & HR
Vertical and horizontal spacing helpers, plus a horizontal rule.
Above the spacer
Below the spacer
Buttons
Primary, secondary, error, link, and text variants.
Tooltip
Wrap a control and set data-tooltip for hover/focus text.
Forms
Labels, inputs, errors, hints, and textareas.
Select
Custom select with data-select attributes.
select:change detail.
Datepicker
Calendar picker initialized via data-datepicker.
datepicker:change detail.
Timepicker
Hour, minute, and meridiem columns with data-timepicker.
timepicker:change detail.
Radio
Custom radio controls with a visually hidden native input.
Checkbox
Custom checkbox with an SVG check mark.
Table
Native tables styled by minima defaults.
| # | Name | |
|---|---|---|
| 1 | namishh | hey@namishh.com |
| 2 | rohith | hey@rohith.net |
| 3 | mridul | hey@mridul.sh |
Alerts
Primary, secondary, and error alert banners.
Avatar
Sizes xl, lg, md, sm, plus radius helpers.
Badge
Small status labels in primary, secondary, and error.
Tabs
Use data-tabs, data-tabs-trigger, and data-tabs-panel. This page uses the same pattern for Preview / Code.
Toast
Add a toast container, then call showToast(message, options).
Popover
Trigger and panel pair with data-popover.
Dialog
Open with data-dialog-open="id" matching the overlay id.
Accordion
Expandable items with data-accordion triggers and panels.