# using jawnpaper without npm

Load jawnpaper from its public hosted files, through npm, or from a self-hosted copy.

## quickstart (public hosted files)

Two lines in `<head>`, one class on `<body>`:

```html
<link rel="stylesheet" href="https://jamditis.com/jawnpaper/jawnpaper.css">
<script src="https://jamditis.com/jawnpaper/jawnpaper.js" defer></script>
<body class="notebook">
```

That's it — your page is now wobbly cream paper.

## fixed production versions

The public URLs serve the current deployed version. They are not immutable or commit-pinned URLs. The source repository is private, so jsDelivr's GitHub URLs cannot serve its files.

For a fixed version, download `jawnpaper.css` and `jawnpaper.js` from the public URLs above plus [paper-grain.svg](https://jamditis.com/jawnpaper/paper-grain.svg), keep those three files together in your project, and reference them with local paths:

```html
<link rel="stylesheet" href="/assets/jawnpaper/jawnpaper.css">
<script src="/assets/jawnpaper/jawnpaper.js" defer></script>
```

Keep `paper-grain.svg` beside the CSS file: the `.notebook--grainy` effect loads it with a relative URL.

Commit the downloaded files to your own repository to record the exact version. Review updates before replacing them. See the fonts note below for external font dependencies.

## npm

```
npm install jawnpaper
```

Then import the CSS in your bundler entry (works in Vite, webpack, Parcel, Rollup, esbuild):

```js
import 'jawnpaper/jawnpaper.css';
import 'jawnpaper/jawnpaper.js';
```

Add `class="notebook"` to your `<body>` and you're done.

## self-host

Copy `jawnpaper.css`, `jawnpaper.js`, `paper-grain.svg`, and (optionally) `jawnpaper.svg` into your project's static folder, then reference them with relative paths. See the main README for the file roles.

## a note on Google Fonts

`jawnpaper.css` `@import`s Caveat, Patrick Hand, and Patrick Hand SC from Google Fonts. That's a third-party network request — relevant for privacy, CSP headers, and offline use. The README has three swap-out options (preconnect, self-host, or system fonts): see the "fonts" section of [README.md](./README.md#fonts).
