A starter set of CSS files for building modular web components and layouts.
CLAUDE.md#
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Build Commands#
npm run build: Builds minified CSS todist/stylebase.min.cssnpm run build:preview: Builds non-minified CSS todist-preview/stylebase.css
Code Style Guidelines#
- CSS is organized using cascade layers:
@layer webfont, token, defaults, utility, layoutwebfont: Only for webfont importstoken: Only for defining design tokens/variables, no classesdefaults: Only for styling HTML elements, not classesutility: Utility classes with namespaced format using escaped colonslayout: Layout classes with namespaced format using escaped colons
- CSS variables use kebab-case with
--prefix (e.g.,--step-0,--waterfall-gap) - Class naming follows namespaced format with escaped colons (e.g.,
l\:waterfall) only for layouts and utilities - Use 4-space indentation in all CSS files
- Include descriptive comments for CSS variables, showing their responsive ranges
- Fluid typography uses
clamp()for responsive sizing - Import modules with their appropriate layer:
@import "module/file.css" layer(layername) - Maintain version information in banner comment (handled by PostCSS config)
- Files should only contain CSS related to their specific purpose (follow single responsibility)