PaperCSS2

the less formal CSS framework fork

^

Paper Themes

PaperCSS2 exposes paper surface tokens for products that want coordinated page backgrounds, panels, menu surfaces, and borders.

Post-it theme

Apply the class to html, body, or a scoped wrapper:

<html class="paper-theme-postit">

The class maps the Post-it token set into generic --paper-theme-* variables and updates --main-background plus --main-background-light:

.paper-theme-postit {
  --paper-theme-surface: var(--paper-theme-postit-surface);
  --paper-theme-border: var(--paper-theme-postit-border);
}

Available Post-it tokens:

  • --paper-theme-postit-body-background
  • --paper-theme-postit-shell-background
  • --paper-theme-postit-header-background
  • --paper-theme-postit-mobile-band-background
  • --paper-theme-postit-menu-background
  • --paper-theme-postit-surface
  • --paper-theme-postit-surface-strong
  • --paper-theme-postit-surface-plain
  • --paper-theme-postit-surface-soft
  • --paper-theme-postit-surface-muted
  • --paper-theme-postit-hover-surface
  • --paper-theme-postit-border
  • --paper-theme-postit-border-light
  • --paper-theme-postit-border-counter

Override the SCSS variables in src/core/_config.scss before building, or set the CSS custom properties downstream for product-specific palettes.

Note-line background

Use .paper-note-lines on an outer page shell when you want a subtle notebook rule behind the content:

<main class="paper-note-lines">

The utility adds only the repeating paper line image. Keep cards, menus, feeds, and other raised surfaces on their own solid backgrounds so the notebook rule stays in the back layer.

Available note-line tokens:

  • --paper-note-lines-background-image
  • --paper-note-lines-background-position
  • --paper-note-lines-background-size
  • --paper-note-lines-color
  • --paper-note-lines-opacity
  • --paper-note-lines-gap
  • --paper-note-lines-offset-y

Change --paper-note-lines-background-size and --paper-note-lines-background-position at runtime for spacing and alignment. The default wavy image is generated from SCSS color and opacity variables; for a runtime color swap, replace --paper-note-lines-background-image with another image value.