Up and running in three steps
Download the files or link the stylesheet, then copy any example from the docs. There's nothing to install and nothing to initialize.
Download the files or link the stylesheet, then copy any example from the docs. There's nothing to install and nothing to initialize.
Grab the latest release from GitHub. Everything you need is in a single stylesheet.
Download from GitHubAdd the stylesheet to your <head>. Optional themes go after it.
<link rel="stylesheet" href="purecssframework.css">
Build with the grid, buttons and components. Copy and paste from the docs.
<a class="btn primary">Hello</a>
14KB zipped. MIT licensed. Includes the full stylesheet, optional themes and the SASS source.
| File | Notes | Zipped | Minified | Status |
|---|---|---|---|---|
purecssframework.css |
Everything you need to run all the CSS, components and layouts. | 14kb | 82kb | Required |
theme-dark.css |
A dark version of PCF. Try it with the "Theme" menu at the top right of this site. Load it after purecssframework.css so it can override the colors. | 2kb | 9kb | Optional |
theme-colors.css |
Every class that sets a color, in one small file. Handy for changing color sets without a preprocessor. Load it after purecssframework.css. | 2kb | 9kb | Optional |
SASS source |
All the SASS files you need to build purecssframework.css. Variables are set for colors, font stacks, border radius, buttons, form sizes and more. Every component is its own .scss file imported into purecssframework.scss. | – | – | Optional |
standalones/pch-carousel.css |
A standalone carousel with no dependencies, so pages that don't need it don't download it. Learn more about the carousel. SASS version not available yet. | 2kb | 14kb | Optional |
purecssframework.css first, then any theme files, then your own styles.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.3.1/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer">
Then use any icon: <i class="fa-solid fa-bolt"></i>. See the Icons section for more.