Pico offers a .conditional
version that restricts styling to elements within .pico
class containers.
The remaining minimal :root
reset ensures typography consistency across your entire site.
See the version picker to easily select the ideal Pico CSS version variant to match your project's needs.
Install manually#
Download Pico and link /css/pico.conditional.min.css
in the <head>
of your website.
Usage from CDN#
Alternatively, you can use jsDelivr CDN to linkpico.conditional.min.css
.
Usage with Sass#
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.conditional.min.css">
<title>Hello world!</title>
</head>
<body>
<main>
<section>
<p>Unstyled hello world!</p>
</section>
<section class="pico">
<p>Styled hello world!</p>
</section>
</main>
</body>
</html>
Examples#
Example with Pico styles:
Example without Pico styles: