Minimal CSS Framework for semantic HTML
Pico CSS is a minimalist and lightweight starter kit that prioritizes semantic HTML, making every HTML tag responsive and elegant by default.
Class-light and semantic
Pico uses simple native HTML tags as much as possible. Less than 10 .classes are used in Pico.
Great styles with just one CSS file
No dependencies, package manager, external files, or JavaScript.
Responsive everything
Elegant and consistent adaptive spacings and typography on all devices.
Light or Dark mode
Shipped with two beautiful color themes, automatically enabled according to the user preference.
- Usage
- Class-less version
- Limitations
- Documentation
- Browser Support
- Contributing
- Copyright and license
There are 4 ways to get started with pico.css:
Install manually
Download Pico and link /css/pico.min.css
in the <head>
of your website.
<link rel="stylesheet" href="css/pico.min.css" />
Install from CDN
Alternatively, you can use jsDelivr CDN to link pico.css.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css" />
Install with NPM
npm install @picocss/pico@next
yarn add @picocss/pico@next
Install with Composer
composer require picocss/pico
Pico provides a .classless
version (example).
In this version, header
, main
and footer
act as containers.
Use the default .classless
version if you need centered viewports:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css" />
Or use the .fluid.classless
version if you need a fluid container:
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.fluid.classless.min.css"
/>
Then just write pure HTML, and it should look great:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
/>
<title>Hello, world!</title>
</head>
<body>
<main>
<h1>Hello, world!</h1>
</main>
</body>
</html>
Pico can be used without custom CSS for quick or small projects. However, it’s designed as a starting point, like a “reset CSS on steroids”. As Pico does not integrate any helpers or utilities .classes
, this minimal CSS framework requires SCSS or CSS knowledge to build large projects.
Getting started
Customization
Layout
Content
Forms
Components
About
Pico is designed and tested for the latest stable Chrome, Firefox, Edge, and Safari releases. It does not support any version of IE, including IE 11.
If you are interested in contributing to Pico CSS, please read our contributing guidelines.
Licensed under the MIT License.