---
name: screenery
description: "Use when the user asks for a website, landing page, dashboard or app screen and wants it to look designed rather than generated: for a business of any kind (bakery, dentist, plumber, law firm, cinema, shop, studio, SaaS product) or a screen such as a dashboard, pricing page, article, portfolio or 404. Picks a finished Screenery template (plain HTML, CSS and JavaScript, no build step), copies it, replaces the content while keeping the design, and checks the result at 1440, 768 and 390 pixels wide."
---

# Screenery

Screenery is a library of finished website and app-screen templates. Each is one folder of plain HTML, CSS and JavaScript in its own visual world, with its own themed components (dropdown, notice, confirmation dialog) and one signature interaction. Your job with this skill is to start from the right template and adapt it without flattening it.

You copy files. There is nothing to import and no component library to learn.

## 1. Find the templates

The catalogue is `catalogue.md`, next to this file: every template with its slug, the kind of business or screen it suits, its visual world and its preview parameters. Read it first.

The templates live in the public repository `gorgekara/screenery`:

| What | Where |
| --- | --- |
| A template's folder | `https://github.com/gorgekara/screenery/tree/main/templates/<slug>` |
| One file | `https://raw.githubusercontent.com/gorgekara/screenery/main/templates/<slug>/index.html` (also `style.css`, `script.js`, `meta.json`) |
| The catalogue as JSON | `https://raw.githubusercontent.com/gorgekara/screenery/main/registry.json` |

If the project you are working in already contains a `templates/<slug>/` folder from Screenery, use the local copy.

## 2. Pick one

Match the kind of business or screen first, then the mood. Tell the user which template you picked and why in one or two sentences, and name one alternative. If the user's brand clearly conflicts with a world (a law firm and a punk poster), say so and offer the closest quieter template. Do not blend two templates into one page.

## 3. Copy it

Copy the whole folder, pictures included, into the user's project:

```bash
npx degit gorgekara/screenery/templates/<slug> <target-folder>
```

Without `npx`, fetch `index.html`, `style.css`, `script.js` and each file under `assets/` from the raw URLs above.

Read all three files before you change anything. Each opens with a comment that names the template and summarises its structure. That comment is your map.

## 4. Remove the badge

Delete this line, the last element of `<body>` in `index.html`:

```html
<script src="../../shared/badge.js" defer></script>
```

Nothing else in the template refers to it. Delete `meta.json` too: it only describes the template to the catalogue.

## 5. Adapt without flattening

The design of a template is its composition: the layout, the type scale, the palette and the one signature interaction. Keep all four.

Keep:

- The `:root` block at the top of `style.css`. Every colour, typeface, space and radius is a custom property there. Change values, keep names.
- Every class name, the section order and the grid.
- The typefaces, unless the user gives you brand fonts. Then replace the Google Fonts `<link>` and the `--sans`, `--serif` or `--mono` value together.
- Every state: validation, loading, error, success, empty, open and closed. Connect them to real conditions; do not delete them.
- Keyboard access, focus return, Escape on overlays and the `prefers-reduced-motion` rules.

Replace:

- All copy. Brands, people, quotes, prices and figures in the templates are fictional. None of it should survive.
- Photos in `assets/`, keeping correct `width` and `height` attributes.
- Demo data at the top of `script.js` with the user's data, in the same shape the render functions read.
- `<title>`, the meta description, `theme-color` and the inline SVG favicon.

Do not:

- Rebuild sections as rows of identical cards, add eyebrow labels above headings, add gradients, or swap the type for a system font.
- Convert the CSS to Tailwind or a component library unless the user asks for that.
- Invent customers, testimonials, logos, metrics or prices. Where a fact is missing, leave a marked placeholder and list it for the user.
- Remove a section just because it is hard to fill. Remove it only when the user has nothing true to put there, and say that you did.

### Frameworks

The markup and CSS port directly: move the contents of `<body>` into a component, keep class names, import `style.css` once and globally. `script.js` is written against the DOM. For a page-level screen, wrap it in a function and call it once after mount. For a screen that shares state with an app, move its state object into the framework's state and turn each render function into a component. `perihelion`, `solstice` and `halo` import Three.js 0.170.0 through an import map; in a bundler install `three@0.170.0` instead.

### Preview states

Many templates read URL parameters so you can open a state directly while you check your work. They are listed per template in `catalogue.md`. These hooks fill the page with sample data: remove them, or keep them out of production, once the page is wired to real data.

## 6. Check the result

Serve the folder with any static server and open the page at 1440, 768 and 390 pixels wide. At each width confirm:

1. No horizontal scroll.
2. No console errors and no failed requests.
3. Nothing left of the template's fictional brand. Search the files for its name and for `.example` addresses.
4. No `badge.js` script tag.
5. Every form state is reachable: empty submit, invalid input, failure, success.
6. Every menu, drawer and dialog opens and closes with the keyboard, and focus returns.
7. Text contrast still passes after any colour change: 4.5:1 for body text, 3:1 for large text.
8. The phone layout is still a designed composition, not a squeezed desktop.

If you have a browser tool, take a screenshot at each width and look at it. If the project includes `scripts/inspect.mjs`, it runs the mechanical checks at 1440, 1024, 768 and 390 and writes `assets/report.json`.

Finish by telling the user which template you used, what you replaced, what you removed and why, which placeholders need their input, and anything you could not verify.
