</code></pre></footer></article><p>There are 2 ways to customize your version of Pico.css:</p><h4>Overriding CSS variables</h4><p>All Pico's styles and colors are set with <em>CSS custom properties</em> (variables). Just override the CSS variables to customize your version of Pico.</p><pre><code><em>/* <spanclass="name"></span>Light scheme (Default) */
</code></pre><p>You can find all the CSS variables used in the default theme here: <ahref="https://github.com/picocss/pico/blob/master/css/themes/default.css">css/themes/default.css</a></p><h4>Importing Pico SASS library</h4><p>We recommend customizing Pico by importing SASS source files into your project. This way, you can keep Pico up to date without conflicts since Pico code and your custom code are separated.</p><p>Compile the SASS file to CSS to get a custom version of Pico.</p><pre><code><em>/* Custom <spanclass="name"></span>version */</em>
<em>// Override default variables</em>
<i>$primary-500</i>: <uclass="c500">…</u>;
<i>$primary-600</i>: <uclass="c600">…</u>;
<i>$primary-700</i>: <uclass="c700">…</u>;
<em>// Import full Pico source code</em>
<b>@import</b><u>"path/pico"</u>;</code></pre><p>Alternatively, you can create a custom theme and import it into your project with the components you need.</p><pre><code><em>/* Custom <spanclass="name"></span>version */</em>
<em>// Custom theme</em>
<b>@import</b><u>"path/themes/custom"</u>;
<em>// Import needed components</em>
<b>@import</b><u>"path/layout/document"</u>;
<b>@import</b><u>"path/layout/sectioning"</u>;
<em>…</em>
</code></pre><p>Compiling a custom SASS version allows you to create a lighter version with only the components that are useful to you. Example here: <ahref="https://github.com/picocss/pico/blob/master/scss/pico.slim.scss">scss/pico.slim.scss</a>.</p></section><footer><hr><p><small>Code licensed <ahref="https://github.com/picocss/pico/blob/master/LICENSE.md"class="secondary">MIT</a></small></p></footer></div></main><scriptsrc="js/commons.min.js"></script><scriptsrc="js/customization.min.js"></script></body></html>