A minimal, monospace-first CSS stylesheet with automatic light/dark mode
npm install @wispplace/cssA minimal, monospace-first CSS stylesheet with automatic light/dark mode. See it live on https://wisp.place or https://sites.wisp.place/wisp.place/wisp.css for a demo.
html
`$3
Just copy
wisp.css to your project and link to it:`html
`Features
- Automatic dark mode via
prefers-color-scheme
- CSS custom properties for easy theming
- JetBrains Mono typography
- Components: cards, buttons, alerts, forms
- Utility classes: spacing, flexbox, text styling
- Responsive with mobile-first breakpointsCSS Variables
All variables use the
--wisp- prefix. Unprefixed aliases are also available for convenience.$3
`css
--wisp-bg / Main background /
--wisp-bg-alt / Alternate background (cards, etc) /
--wisp-text / Primary text /
--wisp-text-muted / Secondary text /
--wisp-text-subtle / Tertiary text /
--wisp-border / Strong borders /
--wisp-border-light / Light borders /
--wisp-accent / Accent/link color /
--wisp-cta-bg / Button background /
--wisp-cta-text / Button text /
--wisp-code-bg / Code block background /
--wisp-success / Success state /
--wisp-danger / Error/danger state /
--wisp-warning / Warning state /
--wisp-info / Info state /
`$3
Override variables in your own CSS:
`css
:root {
--wisp-accent: oklch(0.65 0.20 200); / Blue accent /
}
`Components
$3
`html
Basic card
Success card
Danger card
Info card
`$3
`html
CTA Primary
CTA Secondary
`$3
`html
Success message
Error message
Warning message
Info message
`$3
`html
`Utility Classes
$3
-
.m-{0-4} - margin
- .mt-{0-6}, .mb-{0-6}, .ml-{0-4}, .mr-{0-4} - directional margin
- .p-{0-6} - padding
- .px-{1-4}, .py-{1-4} - horizontal/vertical padding
- .gap-{1-6} - flex/grid gap$3
-
.flex, .inline-flex
- .flex-col, .flex-wrap
- .items-start, .items-center, .items-end
- .justify-start, .justify-center, .justify-end, .justify-between$3
-
.text-left, .text-center, .text-right
- .text-sm, .text-base, .text-lg, .text-xl
- .font-normal, .font-medium, .font-semibold, .font-bold
- .text-muted, .text-subtle, .text-accent, .text-success, .text-danger$3
-
.hidden, .block, .inline, .inline-block, .flex, .grid
- .hide-mobile - hidden on screens < 768px
- .hide-desktop - hidden on screens >= 769pxLayout
`html
``MIT