Get started Pico CSS โœจ

/anyblades/pico fork

[!NOTE] This is a community-driven successor to the Pico CSS framework with a few simple goals:

  1. Maintain pico minimally until its creator returns.
  2. Focus exclusively on the pico.css version, similar to how simple.css is maintained (for Sass version check @Yohn's fork instead).
  3. Keep all net new features in /anyblades/blades, shipped as pico.blades.css โ€” a drop-in compatible replacement for pico.css.

Pico CSS

Minimal CSS Framework for Semantic HTML

A minimalist and lightweight starter kit that prioritizes semantic syntax, making every HTML element responsive and elegant by default.

Write HTML, Add Pico CSS, and Voilร !

Whatโ€™s new in v2.4?

Now including all features from Blades CSS, shipped as pico.blades.css โ€” a drop-in compatible replacement for pico.css.

Also, it includes various fixes for original @picocss/pico issues:

A Superpowered HTML Reset

With just the right amount of everything, Pico is great starting point for a clean and lightweight design system.


Quick start

There are 4 ways to get started:

A. Install manually

Download CSS archive and link css/pico.css in the <head> of your website.

<link rel="stylesheet" href="css/pico.css" />

B. Usage from CDN

<link rel="stylesheet" href="
  https://cdn.jsdelivr.net/npm/@anyblades/pico@2/css/pico.min.css
"/>

Live example: /pallets/website/blob/main/src/pallets/templates/layout.html

Full list of CSS files available on CDN: /npm/@anyblades/pico@2/css


C. Starter projects


D. Install with NPM

npm install @anyblades/blades

You can use precompiled Pico+Blades CSS (same as CDN version):

<link rel="stylesheet" href="
  node_modules/@anyblades/blades/css/blades.css
" />

Or import standalone Blades CSS sources (without Pico CSS):

@import "@anyblades/blades/standalone";

Live example using Tailwind: /anyblades/buildawesome-starters/blob/main/site-tailwind/styles.css


To install and import both Pico+Blades CSS sources at once:

npm install @anyblades/pico @anyblades/blades
@import "@anyblades/pico";
@import "@anyblades/blades/standalone";

This is exactly how Blades CSS is built itself: /anyblades/blades/blob/main/src/blades.css


Appendix

Starter HTML template

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="color-scheme" content="light dark" />
    <link rel="stylesheet" href="css/pico.css" />
    <title>Hello world!</title>
  </head>
  <body>
    <main class="container">
      <h1>Hello world!</h1>
    </main>
  </body>
</html>

Documentation


Limitations

Pico CSS 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 many helpers or utility .classes, it requires CSS knowledge to build large projects.

Read more

Browser support

Pico CSS 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.

Contributing

Licensed under the MIT License.