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
From the repository, install its development dependencies and build the distributable files. This build creates dist/; copy the files into your own public assets directory. There is currently no published npm installation command.
git clone https://github.com/eristavi/RevaCSS.git
cd RevaCSS
npm ci
npm run build:cssYou can also download the current preview stylesheet directly from this documentation site. It is a development build, not a versioned release package.
Start with reva.css. If you use reva-fonts.css, copy its adjacent fonts/ directory too. Fonts are optional.
2. Create a page
Choose HTML for its meaning. 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.