Graffiti
A minimal CSS framework with utilities that are actually useful.
Install / Use
/learn @stolinski/GraffitiREADME
Graffiti
The standards-first, full-featured CSS library for the modern web.
Install
NPM Package
npm install @drop-in/graffiti
Then import in your project:
// Import everything (default, ~75KB)
import "@drop-in/graffiti";
// Or import only what you need for smaller bundles
import "@drop-in/graffiti/minimal"; // core + utilities (~26KB)
import "@drop-in/graffiti/standard"; // core + utilities + layouts (~33KB)
// Or pick individual modules
import "@drop-in/graffiti/core"; // variables, reset, typography
import "@drop-in/graffiti/utilities"; // helper classes
import "@drop-in/graffiti/layouts"; // page layouts
import "@drop-in/graffiti/components"; // UI components
// Optionally import decks component styles separately
import "@drop-in/graffiti/decks";
Copy & Paste
Download the CSS file directly:
https://raw.githubusercontent.com/stolinski/graffiti/refs/heads/main/drop-in.css
CLI Tool
npx @drop-in/graffiti
This copies drop-in.css to your src/ folder.
Features
- Fluid Typography: Automatically scales between min/max viewport sizes using
clamp()andpow() - Container Queries: Typography can respond to container width with
.fcclass - OKLCH Color System: Perceptually uniform colors with automatic 1-9 scales using relative color syntax
- Auto Dark Mode: Uses
light-dark()withcolor-schemefor automatic theming - CSS Scroll-Snap Layouts: Carousel and reel patterns with no JavaScript required
- Form Validation States: Built-in error, success, and warning styles
- Modern Layout Patterns: Cluster, carousel, reel, holy grail, and more
- Design Tokens: Comprehensive spacing, shadows, colors, line heights, and easing functions
- Logical Properties: Full RTL/LTR support throughout
- Minimal & Composable: Small footprint, mix and match classes
- Modular Architecture: Optional separate import for
@drop-in/deckscomponent styles
Browser Support
Graffiti uses modern CSS features and requires recent browser versions:
Minimum versions:
- Chrome 123+ (March 2024)
- Safari 17.5+ (May 2024)
- Firefox 128+ (July 2024)
- Edge 123+ (March 2024)
Key features requiring modern browsers:
- OKLCH color space with relative color syntax
light-dark()function for automatic theming- Container queries for responsive typography
linear()easing functions- Logical properties for RTL/LTR support
Documentation
Full documentation: https://graffiti-ui.com/
License
ISC
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
