PaperCSS2 fork builds are maintained from this repository. During active
development, consume the generated CSS from the fork checkout, a submodule, or a
local file dependency. The upstream papercss NPM package and CDN do not include
PaperCSS2 fork features.
Clone the fork and build the CSS artifacts:
git clone https://github.com/digix-kr/papercss2.git
cd papercss2
npm install
npm run css:buildThen import one of the generated files:
When using the fork from another project during active development, use a local file dependency:
{
"dependencies": {
"papercss2": "file:./packages/papercss2"
}
}Then import the built CSS:
import "papercss2/dist/paper.css";
If you only need upstream PaperCSS 1.9.2 without fork features, install or link the upstream package:
Here’s a quick local snippet to get started with a built PaperCSS2 file:
<!DOCTYPE html>
<html lang="en">
<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" href="./dist/paper.min.css" />
<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>
</html>If you’d rather customize things, build the CSS yourself via the git repo:
git clone https://github.com/digix-kr/papercss2.git
cd papercss2
npm install
npm run buildGrab the CSS out of the /dist folder created
You can also go into src/core/_config.scss before building to change around the global styles of your new CSS.