Getting Started

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.

1

Download

Grab the latest release from GitHub. Everything you need is in a single stylesheet.

Download from GitHub
2

Link the CSS

Add the stylesheet to your <head>. Optional themes go after it.

<link rel="stylesheet" href="purecssframework.css">
3

Use the classes

Build with the grid, buttons and components. Copy and paste from the docs.

<a class="btn primary">Hello</a>
Latest release

Pure CSS Framework V1

14KB zipped. MIT licensed. Includes the full stylesheet, optional themes and the SASS source.

Download PCF V1 Previous version: PCF Beta
What's in the download

Files

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

Load order

Always load purecssframework.css first, then any theme files, then your own styles.

Optional: icons with Font Awesome

PCF ships with a few lightweight pure-CSS icons (hamburger, profile, arrows, alert) and does not require any icon library. The icons you see on this website come from Font Awesome Free 7.3.1, using its CSS-only webfont build, so it still adds no JavaScript. If you want the same icons, add this after PCF:
<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.