mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 08:45:06 -04:00
59 lines
2.5 KiB
HTML
59 lines
2.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
${require('./_head.html')
|
|
title="Documentation"
|
|
description="Pico works without package manager or dependencies! There are 4 ways to get started with pico.css: manually, from a CDN, with NPM, or with Composer."
|
|
canonical=""
|
|
}
|
|
</head>
|
|
|
|
<body>
|
|
${require('./_nav.html')}
|
|
|
|
<main class="container" id="docs">
|
|
${require('./_sidebar.html') active="start-link"}
|
|
|
|
<div role="document">
|
|
<section id="start">
|
|
<hgroup>
|
|
<h1>Usage</h1>
|
|
<h2>Works without package manager or dependencies 🙂!</h2>
|
|
</hgroup>
|
|
<p>There are 4 ways to get started with pico.css:</p>
|
|
<h3>Install manually</h3>
|
|
<p><a href="https://github.com/picocss/pico/archive/refs/heads/master.zip">Download Pico</a> and link <code>/css/pico.min.css</code> in the <code><<b>head</b>></code> of your website.</p>
|
|
<pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>></code></pre>
|
|
<h3>Install from CDN</h3>
|
|
<p>Alternatively, you can use <a href="https://www.jsdelivr.com/package/npm/@picocss/pico">jsDelivr CDN</a> to link pico.css</p>
|
|
<pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css"</u>></code></pre>
|
|
<h3>Install with NPM</h3>
|
|
<pre><code><b>npm</b> <i>install</i> <u>@picocss/pico</u></code></pre>
|
|
<h3>Install with Composer</h3>
|
|
<pre><code><b>composer</b> <i>require</i> <u>picocss/pico</u></code></pre>
|
|
<p>Starter HTML template:</p>
|
|
|
|
<pre><code><em><!doctype html></em>
|
|
<<b>html</b> <i>lang</i>=<u>"en"</u>>
|
|
<<b>head</b>>
|
|
<<b>meta</b> <i>charset</i>=<u>"utf-8"</u>>
|
|
<<b>meta</b> <i>name</i>=<u>"viewport"</u> <i>content</i>=<u>"width=device-width, initial-scale=1"</u>>
|
|
<<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>>
|
|
<<b>title</b>>Hello, world!</<b>title</b>>
|
|
</<b>head</b>>
|
|
<<b>body</b>>
|
|
<<b>main</b> <i>class</i>=<u>"container"</u>>
|
|
<<b>h1</b>>Hello, world!</<b>h1</b>>
|
|
</<b>main</b>>
|
|
</<b>body</b>>
|
|
</<b>html</b>></code></pre>
|
|
|
|
</section>
|
|
|
|
${require('./_footer.html')}
|
|
|
|
</div>
|
|
</main>
|
|
<script src="js/commons.min.js"></script>
|
|
</body>
|
|
</html>
|