@taurean/stylebase
Version:
a starter set of CSS files
37 lines (24 loc) • 1.76 kB
Markdown
# stylebase
[](https://www.npmjs.com/package/@taurean/stylebase) [](https://github.com/taurean/stylebase) [](https://github.com/taurean/stylebase)
A CSS framework with functional utility classes, layout utilities, design patterns, and design tokens for modern web development.
## Installation
**NPM (recommended):**
```bash
npm i @taurean/stylebase
```
**Direct download:**
Download `stylebase.min.css` from the [latest release](https://github.com/taurean/stylebase/releases) or use the file in `dist/`.
## Usage
Import globally **once** in your project as one of the earliest CSS files. This ensures design tokens and utility classes are available throughout your application.
```css
@import '@taurean/stylebase';
```
**Important:** Only import once to avoid duplicate styles and ensure proper cascade order.
## What's Included
- **Color system** - Complete OKLCH color palette with 11 shades per hue
- **Fluid typography** - Responsive font sizes using clamp()
- **Fluid spacing** - Responsive spacing scale using clamp()
- **CSS Grid layout** - 12-column grid with responsive gutters
- **Layout utilities** - Waterfall spacing, root container, grid helpers
- **Sensible defaults** - Base styles for HTML elements
Built from best practices and resources including Evil Martians' Harmony color palette, Every Layout patterns, Cube CSS methodology, and Utopia fluid scales.