papercss/docs/content/_index.md

71 lines
2 KiB
Markdown
Raw Normal View History

2017-11-25 09:25:43 +01:00
---
title: Get PaperCSS
menu: main
weight: -270
---
#### Download
2022-12-26 21:02:44 +01:00
Download the latest version (1.9.1) using either of the links below. Or
2019-07-30 19:05:53 +02:00
download an older release via GitHub.
2017-11-25 09:25:43 +01:00
<div class="row flex-spaces text-center">
2022-12-26 21:02:44 +01:00
<a class="paper-btn margin" href="https://github.com/rhyneav/papercss/releases/download/v1.9.1/paper.css">CSS File</a>
<a class="paper-btn margin" href="https://github.com/rhyneav/papercss/releases/download/v1.9.1/paper.min.css">Minified CSS File</a>
2019-07-30 19:05:53 +02:00
<a class="paper-btn margin" href="https://github.com/rhyneav/papercss/releases">GitHub Releases</a>
2017-11-25 09:25:43 +01:00
</div>
#### NPM
2022-12-26 21:02:44 +01:00
PaperCSS is available on NPM, current version 1.9.1. Install with <code>npm install papercss --save</code> and find the CSS in:
2017-11-25 09:25:43 +01:00
2022-11-24 18:22:40 +01:00
- node_modules/papercss/dist/paper.css
- node_modules/papercss/dist/paper.min.css
2017-11-25 09:25:43 +01:00
#### CDN
Don't want to download it? That's cool. You can just link to PaperCSS via
[unpkg's CDN](https://unpkg.com/#/). You can use either:
2022-12-26 21:02:44 +01:00
- [https://unpkg.com/papercss@1.9.1/dist/paper.css](https://unpkg.com/papercss@1.9.1/dist/paper.css)
- [https://unpkg.com/papercss@1.9.1/dist/paper.min.css](https://unpkg.com/papercss@1.9.1/dist/paper.min.css)
2017-11-25 09:25:43 +01:00
2018-12-05 00:31:39 +01:00
Here's a quick snippet to get started with PaperCSS:
2017-11-25 09:25:43 +01:00
```html
<!DOCTYPE html>
<html lang="en">
2022-11-24 18:22:40 +01:00
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
2022-12-26 21:02:44 +01:00
href="https://unpkg.com/papercss@1.9.1/dist/paper.min.css"
2022-11-24 18:22:40 +01:00
/>
<title>Document</title>
</head>
<body>
<div class="paper container">
<h1>Some Fresh Title</h1>
<p>This is where some content would go.</p>
</div>
</body>
2017-11-25 09:25:43 +01:00
</html>
```
#### Build it Yourself
2018-01-02 15:48:06 +01:00
If you'd rather customize things, you can build the CSS yourself via the git repo
2017-11-25 09:25:43 +01:00
```sh
2018-01-02 15:48:06 +01:00
git clone https://github.com/papercss/papercss.git
cd papercss
2017-11-25 09:25:43 +01:00
npm install
npm run build
```
Grab the CSS out of the /dist folder created
2022-11-24 18:22:40 +01:00
You can also go into src/core/\_config.scss before building to change around the global styles of your new CSS.