This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Puleo CSS is a mid-level CSS library that provides a starting point for custom designs. It builds on Open Props and follows ITCSS principles for modular CSS architecture.
- Use
pnpmfor all package operations (project uses pnpm v9.1.4) pnpm install- Install dependencies
pnpm build- Generate files and build all CSS outputspnpm generate- Generate CSS files from JavaScript configuration (runs before build)pnpm clean- Remove all output files
pnpm dev- Start development server with file watchingpnpm watch- Watch files and rebuild on changespnpm start- Start browser-sync server for testing
pnpm lint- Run ESLint on JavaScript filespnpm lint:styles- Run Stylelint on CSS filespnpm format- Format code with Prettier
pnpm release- Create a new release (runs lint, build, changelog, and publish)
css/- Source CSS files organized by ITCSS layersgenerated/- Auto-generated CSS (props, scales, objects)- Individual CSS modules (normalize.css, elements.css, etc.)
src/- JavaScript build scripts for generating CSSoutput/- Built CSS files (both .post.css and .min.css versions)examples/- Example usage and CSS feature demonstrationspublic/- Demo/documentation site
- Settings - Design tokens and CSS custom properties
- Tools - Mixins and functions (via PostCSS)
- Generic - CSS reset/normalization
- Elements - Improved HTML element styling
- Objects - Layout patterns and utility classes
- Components - Specific UI components (user-defined)
- Utilities - Helper classes
- Modern CSS with PostCSS processing (nesting, custom properties, color functions)
- Fluid typography and spacing scales based on modular scale
- Dark theme support via
.theme-darkclass - Source maps for debugging
- Both minified and unminified outputs
The build process uses PostCSS with these key plugins:
- postcss-import - Resolving @import statements
- postcss-preset-env - Modern CSS features
- postcss-dark-theme-class - Dark theme transformation
- cssnano (in nano config) - Minification
Files are generated in this order:
- JavaScript build scripts generate CSS files
- PostCSS processes all CSS files
- Both regular and minified versions are output
When modifying CSS:
- Run
pnpm devto start the development server - Open
http://localhost:3000to view the demo page - Test changes in both light and dark themes
- Check the prose demo at
/prose.htmlfor typography