# WoofJS DESIGN.md

> Public preview. The complete DESIGN.md source (all 51 design tokens, spacing, components and frontmatter) requires DesignMD Pro: https://www.designmdpro.app/pricing

A single-screen landing page for a Scratch-inspired JavaScript library — a monospace code sample with real syntax highlighting on white, and three candy-colored pill buttons as the entire interface.

- Website: https://woofjs.com
- Primary color: Emerald `#6FCF97`
- Fonts: Helvetica Neue, Consolas, Arial
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/woofjs

## Palette preview

- `code`: `#000000`
- `number`: `#1cb9d6`
- `string`: `#a70ce2`
- `comment`: `#808080`
- `keyword`: `#2a00ff`
- `outline`: `#767676`
- `primary`: `#6fcf97`
- `surface`: `#ffffff`

## Typography preview

- `body-md`: Helvetica Neue
- `code-lg`: Consolas
- `label-lg`: Arial

---

## Overview

WoofJS is a Scratch-inspired JavaScript library for making games, aimed at beginners and classrooms. The entire homepage is one screen: a commented-out code sample at the top that doubles as the welcome message, and three pill buttons at the bottom. There is no navigation, no hero image, no footer copy — the code sample *is* the hero, and it literally greets you ("// Hey there, welcome to WoofJS!").

The design is the smallest possible expression of the product: white space, monospace type, and three flat candy colors. It reads as a teaching tool that is confident enough to show its own source before asking for anything.

## Colors

- `primary` `#6fcf97` — mint green, the lead "Start Coding" button.
- `secondary` `#56ccf2` — sky blue, "For Educators".
- `tertiary` `#ca65e6` — orchid, "Project Showcase".
- `on-primary` `#ffffff` — the label on all three buttons; the three fills are the only saturated color on the page.
- `code` `#000000` — plain code text.
- `comment` `#808080` — the gray of `//` comment lines, which carry all of the page's prose.
- `string` `#a70ce2` — string literals (`'seconds'`).
- `number` `#1cb9d6` — numeric literals (`.001`).
- `keyword` `#2a00ff` — language keywords and member access (`var`, `circle.mov`).
- `surface` `#ffffff` — the entire page ground.
- `outline` `#767676` — the input border on the share/email control.

The syntax palette is the site's only real color system: five token colors doing the job a brand palette usually does. The three button colors are unrelated to the code colors on purpose — they are navigation, not content. The social share rail on the left edge carries the standard third-party brand colors (Facebook blue, Pinterest red, X black) and is not part of this system.

## Typography

Two families, split by role. Everything in the code sample is **Consolas** over the Monaco/Andale Mono/Ubuntu Mono stack, set at 22.4px/400 on a 1.3 line height — large enough that the syntax colors read at a glance, with keywords and strings picked out by color alone. The three buttons are **Arial** at 24px/400, and the small "10 Shares" label and share controls use Helvetica Neue at 16px/400. There is no bold, no uppercase and no tracking anywhere; the monospace/sans split is the entire typographic hierarchy.

## Layout

A single full-viewport column, left-aligned with generous margin. The code block runs down the left third of the page, comments and statements alternating with blank lines exactly as they would appear in an editor. A vertical share rail is pinned to the left edge — a "10 Shares" count above four square icon buttons (Facebook, X, Pinterest, email). The three CTA pills sit alone on a row near the bottom, centered, with wide gaps between them. Nothing else competes for attention.

## Elevation & Depth

Completely flat. There are no shadows in the captured styles — not on the buttons, the share rail or the input. The buttons are pure fills on white, and the share rail separates itself only by its position at the page edge. The flatness suits the content: the page is a screenshot of an editor, and editors have no depth.

## Shapes

One radius, used once: **20px**, turning all three buttons into full pills. Everything else on the page is square — the code block has no container at all, and the share icons are plain squares. The pills are the only shaped objects, which is why they read as the only interactive ones.

## Motion & Micro-interaction

There is no motion. The captured styles contain no transitions, no animations and no transforms — buttons do not darken, lift or scale on hover in any captured rule. For a page this small, that is a feature: nothing moves until you click.

## Voice & Content Strategy

The voice is the product's own. The headline is a code comment, the tagline is a code comment, and the invitation is a code comment ("// Want to code something together? :-)"). The sample itself is a complete, runnable idea — spawn a circle every millisecond and move it forever — with its own inline commentary ("// Go, little circles, go!"). The three buttons name their audiences plainly: Start Coding, For Educators, Project Showcase. There is no marketing sentence anywhere on the page.

## Components

- **Code sample** — Consolas 22.4px/400 on a 1.3 line height, comments in `#808080`, strings in `#a70ce2`, numbers in `#1cb9d6`, keywords in `#2a00ff`, plain code in `#000000`, on the bare white ground with no container.
- **CTA pill** — a 20px-radius pill in one of the three flat colors with white Arial 24px/400 text and ~10px padding: `primary` green ("Start Coding"), `secondary` blue ("For Educators"), `tertiary` orchid ("Project Showcase").
- **Share rail** — a left-edge vertical stack: a "10 Shares" count in Helvetica Neue 16px above four square brand-color icon buttons (Facebook `#3b5998`, X `#000000`, Pinterest `#cb2027`, email `#aaaaaa`).
- **Text field** — a 30px white input with a `#767676` border and the same 20px pill radius, set in Consolas 13.3px.

## Do's and Don'ts

- Do set all code in Consolas at 22.4px and let the five syntax colors carry the hierarchy; don't bold or uppercase code.
- Do keep comments in `#808080` — they are the page's only prose, and their grayness is what makes the colored tokens pop.
- Do keep the three buttons as the only saturated shapes, in their fixed order and colors (green, blue, orchid); don't add a fourth or reorder them.
- Do keep the page flat — no shadows, no transitions, no hover states in the captured styles; don't add lift or motion to the pills.
- Do keep the 20px pill radius on buttons and inputs only; don't round the code block or the share icons.
- Do leave the social rail's brand colors alone — they belong to Facebook, X and Pinterest, not to this system.
- Don't treat the white-on-color button labels as accessible small text — white on `primary` green measures 1.90:1, on `secondary` blue 1.86:1 and on `tertiary` orchid 3.22:1, so the labels stay at the 24px Arial scale; and the cyan `number` token on white is 2.34:1, so keep syntax colors to code display rather than UI text.
