1 | <!doctype html>
|
2 | <html lang="en">
|
3 | <head>
|
4 | ${require('./_head.html')
|
5 | title="Documentation"
|
6 | 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."
|
7 | canonical=""
|
8 | }
|
9 | </head>
|
10 |
|
11 | <body>
|
12 | ${require('./_nav.html')}
|
13 |
|
14 | <main class="container" id="docs">
|
15 | ${require('./_sidebar.html') active="start-link"}
|
16 |
|
17 | <div role="document">
|
18 | <section id="start">
|
19 | <hgroup>
|
20 | <h1>Usage</h1>
|
21 | <h2>Works without package manager or dependencies 🙂!</h2>
|
22 | </hgroup>
|
23 | <p>There are 4 ways to get started with pico.css:</p>
|
24 | <h3>Install manually</h3>
|
25 | <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>
|
26 | <pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>></code></pre>
|
27 | <h3>Install from CDN</h3>
|
28 | <p>Alternatively, you can use <a href="https://unpkg.com/@picocss/pico@1.*/">unpkg CDN</a> to link pico.css</p>
|
29 | <pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://unpkg.com/@picocss/pico@1.*/css/pico.min.css"</u>></code></pre>
|
30 | <h3>Install with NPM</h3>
|
31 | <pre><code><b>npm</b> <i>install</i> <u>@picocss/pico</u></code></pre>
|
32 | <h3>Install with Composer</h3>
|
33 | <pre><code><b>composer</b> <i>require</i> <u>picocss/pico</u></code></pre>
|
34 | <p>Starter HTML template:</p>
|
35 |
|
36 | <pre><code><em><!doctype html></em>
|
37 | <<b>html</b> <i>lang</i>=<u>"en"</u>>
|
38 | <<b>head</b>>
|
39 | <<b>meta</b> <i>charset</i>=<u>"utf-8"</u>>
|
40 | <<b>meta</b> <i>name</i>=<u>"viewport"</u> <i>content</i>=<u>"width=device-width, initial-scale=1"</u>>
|
41 | <<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>>
|
42 | <<b>title</b>>Hello, world!</<b>title</b>>
|
43 | </<b>head</b>>
|
44 | <<b>body</b>>
|
45 | <<b>main</b> <i>class</i>=<u>"container"</u>>
|
46 | <<b>h1</b>>Hello, world!</<b>h1</b>>
|
47 | </<b>main</b>>
|
48 | </<b>body</b>>
|
49 | </<b>html</b>></code></pre>
|
50 |
|
51 | </section>
|
52 |
|
53 | ${require('./_footer.html')}
|
54 |
|
55 | </div>
|
56 | </main>
|
57 | <script src="js/commons.min.js"></script>
|
58 | </body>
|
59 | </html>
|