CSS foundation for the Nanoo Labs ecosystem. Design tokens, resets, and utility component built on LightningCSS.
pnpm LightningCSS CSS Custom Properties Design Tokens
This package provides the core visual identity for Nanoo Labs — minimal CSS reset, design tokens as CSS custom properties, and essential UI components.
- Build: LightningCSS CLI (
lightningcss-cli) — bundling, minification, autoprefix via browser targets. - Tokens: CSS custom properties (
--nl-*) — colors, spacing (REM), radius, typography. - Components: BEM-like
nl-*classes — container, button, card, text utilities - Themes: Dark-first with light override via
@media+[data-theme]. - Zero runtime: No pre-processor, no framework. Output is static CSS.
pnpm add @nlbs/cssimport "@nlbs/css"Or via CDN for quick prototyping:
<link rel="stylesheet" href="https://unpkg.com/@nlbs/css" />src/
├── main.css # Entry — imports all modules
├── reset.css # Minimal reset
├── variables.css # Static tokens: spacing, radius, typography
├── themes/
│ ├── dark.css # Color tokens (default)
│ └── light.css # Light overrides (see themes/README.md)
├── layout.css # Container classes
├── typography.css # Headings, text utils, links
├── button.css # Button variants
└── card.css # Card component
Dark by default (:root). Light mode via @media (prefers-color-scheme) + [data-theme="light"].
See themes/README.md for the full palette tablee.
- Build prod:
pnpm build— minify bundle →dist/nanoo.min.css - Dev:
pnpm dev— unminified bundle →dist/nanoo.css - Targets:
last 2 versions(via lightningcss--targets)
Part of the nanoolabs.dev ecosystems. Keep design tokens and component contracts in sync with consuming repos.
- Branch from
mainwithrefactor/name-refactornaming. - Commit messages follow Conventional Commits (e.g.,
refactor: clean up style component button). - Rebuild before pushing:
pnpm build.
ISC © Nanoo Labs