LEARN
Get started
RevaCSS styles native HTML and adds a small set of classes for component patterns. Your application does not need browser JavaScript or a CSS build step to use the generated files.
1. Get the stylesheets
This version is in development. Download the documentation stylesheet for experimentation, or build from source using the instructions below. Versioned GitHub downloads appear here after release publication is verified.
For an existing site, copy dist/ into your public assets and update the stylesheet path. Start with reva.css; reva.min.css is the minified equivalent. Fonts are optional: using reva-fonts.css also requires its adjacent fonts/ directory.
Build the stylesheets from source
For contributors who want to edit the framework’s CSS or design tokens:
git clone https://github.com/eristavi/RevaCSS.git
cd RevaCSS
npm ci
npm run build:cssYou can also download this documentation build’s stylesheet for experimentation. Use a versioned release when deploying your own site.
These pages describe RevaCSS 2.0.0 in development. Use the documentation build for a preview or build the stylesheets from source.
2. Create a page
Save this complete example beside the downloaded dist directory. Native buttons need no component class; card and container identify layout patterns.
3. Configure the parent
Settings on html supply defaults for supported descendants. Omit anything you do not want to change.
Keep attributes on the parent where possible. Individual exceptions can override one setting without replacing the others. See styling and inheritance before adding configuration to every component.
4. Style part of an existing site
Load the scoped build instead of the global build. Put configuration on its .reva boundary; each boundary starts with its own defaults.
A CSS scope is not Shadow DOM isolation. Keep overlay markup within its boundary and use the matching scoped glass extension when needed.
Where to go next
- Build a custom component that inherits themes, palettes and supported materials.
- Configure scrolling, overlays and disclosure motion.
- Understand surfaces, selection and validation feedback.
- Explore modern CSS patterns with native fallbacks.
- Pick a colour mode and optional material.
- Use native form markup.
- Look up exact files, attributes and component APIs.
- Understand native behaviour and application responsibilities.