diff --git a/README.md b/README.md index efbdf77..93a81cf 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Limits

-One commit gate and three skill files for coding agents. +One commit gate and five skill files for coding agents. The gate is the part that cannot be ignored: it rejects a commit or a pull request whose message does not carry the five-key slice report. The skills describe how to produce one. @@ -61,9 +61,13 @@ npm run gate:check -- pr-body.md | **`steerloop`** | Interaction gates: when to stop, what a slice is, what the report contains | Every coding task, at the start | | **`craftloop`** | Engineering depth: spec, architecture, security, verification, git and PR delivery | Substantial work | | **`webperf`** | Web performance: symptom to one fix with the instrument that proves it | A slow page, or a change touching loading, bundles, images, queries | +| **`landing-page-design`** | Landing pages end to end: intake, structure, copy, and a fixed visual system | Building or reviewing a marketing page, section, or component | +| **`figma-designer`** | Designing inside Figma with variables, text styles and auto layout | Work on a Figma file through the Figma MCP | `craftloop` is vendored here with two sentences changed: an unanswered gate counts as a blocker, and a value the request does not state is the user's decision rather than a default to invent. +`landing-page-design` and `figma-designer` are MIT, copied verbatim from their author at a pinned commit. Provenance and license: [`THIRD_PARTY_NOTICE.md`](./THIRD_PARTY_NOTICE.md). + ## How it works

@@ -138,6 +142,8 @@ skills/craftloop/SKILL.md the method skills/craftloop/references/ security rules, loaded on demand skills/webperf/SKILL.md web performance router skills/webperf/references/ 31 recipes, one per symptom +skills/landing-page-design/ vendored, MIT, see THIRD_PARTY_NOTICE.md +skills/figma-designer/ vendored, MIT, see THIRD_PARTY_NOTICE.md gate/steerloop-gate.mjs the report validator gate/steerloop-gate.test.mjs 26 tests, run by npm test .githooks/commit-msg hook that calls the validator diff --git a/THIRD_PARTY_LICENSE b/THIRD_PARTY_LICENSE new file mode 100644 index 0000000..9ff21c8 --- /dev/null +++ b/THIRD_PARTY_LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Elaya + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/THIRD_PARTY_NOTICE.md b/THIRD_PARTY_NOTICE.md new file mode 100644 index 0000000..9ce5197 --- /dev/null +++ b/THIRD_PARTY_NOTICE.md @@ -0,0 +1,13 @@ +# Third-party notices + +## landing-page-design, figma-designer + +- Source: https://github.com/elayadesign/ai-design-skills +- Commit: `456d9e0d3e2d84c748bb143c6ca3d90c45e16213` (2026-11-02) +- Copyright (c) 2026 Elaya +- License: MIT, full text in `THIRD_PARTY_LICENSE` +- Files are copied verbatim and are not modified here. + +Both skills are self-contained: `landing-page-design` carries its own visual +system, `figma-designer` extends the official Figma skills and expects the +Figma MCP server to be available. diff --git a/assets/readme/build_hero.py b/assets/readme/build_hero.py index 1f13606..67e616b 100644 --- a/assets/readme/build_hero.py +++ b/assets/readme/build_hero.py @@ -43,7 +43,7 @@ def hero() -> None: canvas.paste(panel, (500, 16), panel) d = ImageDraw.Draw(canvas) - d.text((72, 104), "AGENT SKILLS · THREE FILES", font=font("consola.ttf", 17), fill=MUTED) + d.text((72, 104), "AGENT SKILLS · FIVE FILES", font=font("consola.ttf", 17), fill=MUTED) d.text((72, 146), "steerloop", font=font("segoeuib.ttf", 92), fill=FG) d.text((74, 262), "One slice at a time. The agent asks", font=font("segoeui.ttf", 25), fill=(201, 205, 210)) d.text((74, 296), "before it writes code.", font=font("segoeui.ttf", 25), fill=(201, 205, 210)) @@ -55,7 +55,7 @@ def hero() -> None: d.text((90, 362), cmd, font=cf, fill=ACCENT) d.line([(72, 420), (72 + tw + 36, 420)], fill=(58, 58, 58)) - d.text((72, 430), "skills/steerloop · skills/craftloop · skills/webperf · MIT", font=font("consola.ttf", 14), fill=DIM) + d.text((72, 430), "steerloop · craftloop · webperf · landing-page-design · figma-designer", font=font("consola.ttf", 14), fill=DIM) canvas.save(HERE / "hero.png", optimize=True) diff --git a/assets/readme/hero.png b/assets/readme/hero.png index 4f04303..ce77951 100644 Binary files a/assets/readme/hero.png and b/assets/readme/hero.png differ diff --git a/package.json b/package.json index ad60ced..681fceb 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,8 @@ "skills", "gate", ".githooks", + "THIRD_PARTY_NOTICE.md", + "THIRD_PARTY_LICENSE", "README.md", "LICENSE" ] diff --git a/skills/figma-designer/SKILL.md b/skills/figma-designer/SKILL.md new file mode 100644 index 0000000..d9aba58 --- /dev/null +++ b/skills/figma-designer/SKILL.md @@ -0,0 +1,405 @@ +--- +name: figma-designer +description: "Design inside Figma the way this designer does: real variables, text styles, auto layout and components, on a fixed visual system (Tailwind type and radius scale, spacing tokens, two-layer color tokens, button and state rules). Use this skill whenever you create, edit or review anything in a Figma file through the Figma MCP: screens, landing pages, components, mockups, design systems, tokens, or any UI. Use it even when the user doesn't name the skill and only says things like 'design a page in Figma', 'make a button component', 'mock this up' or shares a figma.com link. Load it before writing any use_figma code." +--- + +# Figma Designer + +These are the designer's own rules for working in Figma. They sit on top of the official Figma skills and don't replace them. + +- **Load `figma-use` before any `use_figma` call.** It holds the Plugin API rules (color ranges, font loading, layout sizing). This skill only adds design rules. +- For full screens and pages, also load `figma-generate-design`. For component libraries and tokens, also load `figma-generate-library`. +- Exact token names and values are in [Token reference](#token-reference) at the end of this file. Read it before you create or bind any variable or text style. + +## Workflow + +1. **Check the file first.** List local variable collections and text styles, and search the file's libraries (`search_design_system`) for variables, styles and components. Reuse what exists before creating anything. +2. **Set up foundations if missing.** Create everything below before you build any screen: + - the `spacing` and `radius` variables + - the two color layers (`Core Colors`, then `Color System` with Light and Dark modes) + - the text styles + + Light and dark are variable modes, never two sets of hardcoded colors. + - **Show the tokens on the canvas.** Place a `Foundations` frame on the `Foundations` page, the same way components sit in their own frame. Inside it, add one auto layout section for each collection: + - `Core Colors`: one row per palette, one swatch per shade + - `Color System`: one row per group, with the Light and Dark modes side by side using explicit variable modes on two columns + - `spacing`: a bar per token, sized to its value + - `radius`: a square per token, with that radius + - Text styles: one sample line per style + - **Bind the samples so they update with the tokens.** Every swatch fill is bound to its variable. Every spacing bar and radius sample is bound to its variable. Every text sample uses its style. When the user edits a token, the frame updates by itself. + - **Labels:** each sample is labeled with its token name and, for Color System, its alias (`Surface/Primary → Grayscale/870`). Text can't bind to a color value, so hex labels don't update by themselves. Re-sync the labels whenever you create, rename or change tokens. +3. **Build section by section.** Do the hero first, then one section per step. Never build a whole page in one pass. Screenshot after each section and fix it before moving on. +4. **Use auto layout everywhere.** Every frame with children uses auto layout. Padding and gap are bound to spacing variables, never typed numbers. +5. **Bind, don't type.** + - Bind every fill, stroke, radius, padding and gap to a variable. + - Every text layer uses a text style. + - Bind designs to `Color System` tokens only, never to `Core Colors` directly. +6. **Self check before finishing.** Run the checklist at the end of this file, fix every failure, then report what was built and what was skipped. + +## Typography + +- **Fonts:** any font is allowed. Use the one the user or brand names; check it with `figma.listAvailableFontsAsync()` before loading. +- **One typeface per file** unless the user asks for a pair. Geist Mono is allowed beside the main font only for code, data or numbers. +- **No italic styles. No weights above bold.** +- **Sizes come from the Tailwind type scale only:** 12, 14, 16, 18, 20, 24, 30, 36, 48, 60, 72, 96, 128. If a size falls between steps, snap to the step below and take its line height. +- **Text styles.** Create the named styles in [Token reference → Text styles](#text-styles) (Heading 1 to 6, Title 1 to 5, Body 1 to 6, Button-lg/md/sm/Xsm, Caption 1 to 5). Use the names exactly, including capitalization. + - Group them in folders by type, so the panel reads `Heading / Heading 1`, `Body / Body 4`, `Button / Button-md`. + - Every text layer uses one of these styles. Never set a loose size or weight; changing the weight on a styled layer detaches the style. +- **Which group to use:** + - **Heading:** page and section headings, largest to smallest. Heading 1 is the hero. + - **Title:** card titles, list item titles, labels that lead a block, nav items. + - **Body:** running text. Within each size, 1 is the strongest weight and the last is regular. + - **Button:** text inside buttons only. Main buttons use Button-md; small header buttons use Button-sm. + - **Caption:** metadata, helper text, badges, timestamps, fine print. +- **New styles.** If a project needs one, add the next number in its group (for example Body 7), built from a scale step. Never invent a new name or an off-scale size. +- **Copy:** + - No hyphens inside text. + - No single word alone on a heading's last line. Break headings by hand at meaningful points (use a line break in the text, not a narrower frame). + - The hero heading (Heading 1) has no periods, neither at the end nor between phrases. Split two ideas with a line break: `See the slop` / `Decide what to fix`, not `See the slop. Decide what to fix.` + +## Spacing + +- Use only the `spacing/*` number variables: 0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96. Nothing in between. +- Bind `paddingTop/Right/Bottom/Left` and `itemSpacing` to them with `setBoundVariable`. Give spacing variables the `GAP` scope, which covers both padding and gap. +- When a design value falls between tokens, snap it to the nearest token and bind it. +- Main buttons use 8 vertical padding (`spacing/75`) and 12 horizontal (`spacing/100`). + +## Corner radius + +- Use Tailwind radius values only (0, 2, 4, 6, 8, 12, 16, 24, full), as `radius/*` variables with the `CORNER_RADIUS` scope. Bind each corner (`topLeftRadius`…). +- **Nested radius rule.** When a shape sits inside another and the gap between them is under 32: + `inner radius = outer radius − gap` + Apply it only when the result is greater than 2. Example: a card at 16 with 8 padding gives inner elements 8. +- Check this on every nested frame: read the parent's radius and padding, compute the child's radius, and set it to the matching `radius/*` variable. + +## Color + +### Token structure: two layers, in every file + +The names and structure are fixed. The hex values follow the user's brand. Full name list: [Token reference → Color](#color-1). + +1. **`Core Colors` collection:** raw palettes. `Primary`, `Secondary`, `Accent`, `Grayscale`, and semantic palettes `Red` (error), `Green` (success) and `Yellow` (warning). + - Each palette has at least 10 shades, from `00` (near white) to `1000` (near black). `500` is the base hue. + - Build the shades from the brand's base colors. + - Transparent colors live here too, as a `Grayscale-Alpha` palette (`700-16` … `700-80`) with the opacity stored in the variable. An alias can't add opacity, so `Overlay/*` aliases these. +2. **`Color System` collection:** semantic tokens with `Light` and `Dark` modes. Every value is an alias to a Core Color, never a raw hex. + - Groups: `Border/`, `Surface/`, `Action/`, `Text/`, `Icon/`, `Overlay/`. + - Each role has a base token plus the variants it needs: `-Hover`, `-Click` or `-Selected`, `-Disabled`, `-Subtle`, `-Inverted`. + +- Designs bind only to `Color System` tokens. A rebrand then changes only `Core Colors`. +- Name tokens by role, never by raw color (no `Surface/Blue 500`). +- Scope variables to what they color: `FRAME_FILL`/`SHAPE_FILL` for surfaces, `TEXT_FILL` for text, `STROKE_COLOR` for borders. Never leave `ALL_SCOPES`. + +### Surfaces + +- **Dark mode backgrounds, only these:** `#000000` · `#181818` · `#1F1F1F` · `#272727` · `#313131` · `#131209` +- **No background gradients.** Surfaces are flat. This includes buttons and fade overlays. +- **Hero heading** is the one gradient exception, on the text only, left to right: + - dark theme `#FFFFFF` → `#9B9B9B` + - light theme `#000000` → `#666666` + + Bind both gradient stops to color variables (`boundVariables.color` on each stop) so the gradient switches with the mode. +- **One accent color**, kept below 80% saturation. +- **Borders go all the way around or not at all.** Never a single-side border on a card. To divide rows, use a 1px rectangle filled with a `Border/*` token, not a one-side stroke. + +## Contrast and accessibility + +- Body text: at least **4.5:1** against its background. +- Large text (24 and up, or 18 bold and up) and UI parts (icons, input borders, focus rings): at least **3:1**. +- On gradient headings, check contrast at the lightest end of the gradient, not the darkest. +- Never rely on color alone to show state. Pair it with an icon, label or weight change. +- Touch targets are at least 44 × 44 on mobile frames. +- If a brand color fails contrast with white text, use a darker shade of the same palette for the `Action/*` token rather than changing the text. + +## Layout + +- Hero heading and subheading max width **680**. +- No eyebrow tag (the small pill or label above a heading, like `● Design QA, not a redesign`) by default. Add one only when the user asks for it, or when an inspiration image the user uploaded shows one. +- Desktop frames are 1440 wide, with a centered content container of 1200 to 1280. +- Add 768 and 390 frames when the screen needs responsive versions. +- Don't default to three equal cards in a row. Consider a two-column zig zag, an asymmetric grid or a bento layout. +- Align shared elements across side-by-side cards: titles, prices, lists and buttons start at the same Y. + +## Icons + +- Use Phosphor, Solar or Iconamoon. Never Material Icons or Material Symbols. +- Use one stroke weight across the whole file. +- Import icons as SVG (`createNodeFromSvg`) and recolor them with a bound `Icon/*` token. Never redraw an icon from primitives. + +## Components and states + +- Anything used more than once is a component. Expose its text as component properties. +- **Interactive components** get variants for **Default, Hover, Pressed, Focus, Disabled**. Inputs also get **Error** and **Filled**. +- **Buttons** are one component set with these two properties, every combination present (25 variants per size): + - `Type` = Primary | Secondary | Tertiary | Error | Warning + - `State` = Default | Hover | Pressed | Focus | Disabled + + Bind fills to `Action/*` (for example `Action/Primary`, `Action/Primary-Hover`, `Action/Primary-Click`, `Action/Primary-Disabled`), borders to `Border/*` and labels to `Text/*`. Focus adds a visible ring (2px outside stroke at 3:1 or better), not just a color change. +- **Data views** get **Loading** (a skeleton shaped like the real layout), **Empty** (a composed getting-started view) and **Error** states. + +## Motion (prototype only) + +- Use Smart Animate with the custom bezier `0.22, 1, 0.36, 1`: + - 500ms for layout changes + - 300ms for color or opacity +- Never use Figma's default linear or ease presets. + +## Content + +- Real draft copy, never placeholder text. +- Use believable names, brands and numbers for the product's industry. Avoid suspiciously round figures and stock names like "Acme". +- **Banned filler:** "revolutionize", "supercharge", "cutting edge", "effortless", "transform your workflow", "take it to the next level", "harness the power", "world class". +- Sentence case for headings and buttons. + +## Landing pages + +When the task is a landing page, also follow the user's `landing-page-design` skill for page structure and copy (intake questions, section order, CTA rules). That includes the mandatory large tagline section with a word-by-word reveal, shown as a prototype interaction. If that skill isn't available, ask the user for it before planning sections. + +## File hygiene + +- Name every layer meaningfully (`Pricing / Card / Pro`). Never leave `Frame 427`, `Group 3`, `Vector` or `Rectangle 1`. +- Variable collections: `spacing`, `radius`, `Core Colors` and `Color System`, with `Light` and `Dark` modes on `Color System`. +- Text styles use the names above, grouped in folders by type. +- One page per area: `Foundations`, `Components`, `Screens`. +- Put new top-level frames in clear canvas space, never on top of existing work. Don't delete or move the user's existing layers unless asked. + +## Checklist (run before reporting) + +- [ ] Every text layer uses a named text style (Heading, Title, Body, Button, Caption) on the Tailwind scale +- [ ] Every padding and gap is bound to a spacing variable +- [ ] Every radius is bound to a radius variable, and nested radii follow the formula +- [ ] Every fill and stroke is bound to a `Color System` token (never a raw hex or a Core Color), and Light and Dark modes both work +- [ ] Core Colors palettes have at least 10 shades each, and every Color System token is an alias +- [ ] The `Foundations` frame shows every token and text style, with samples bound to their variables and labels in sync +- [ ] Contrast passes 4.5:1 for body and 3:1 for large text and UI parts +- [ ] No background gradients, no single-side borders, no italics +- [ ] Hero heading and subheading capped at 680, the hero heading has no periods, and there are no eyebrow tags unless asked for or shown in an uploaded inspiration image +- [ ] Interactive components have all state variants, and buttons have all 5 types × 5 states +- [ ] Icons from Phosphor, Solar or Iconamoon at one stroke weight +- [ ] No placeholder copy, no layer named `Frame` or `Group` + +## Token reference + +The names are fixed. Color hex values follow the user's brand; spacing, radius and type values are fixed. + +### Spacing + +Collection `spacing`, one mode, `FLOAT`, scope `GAP`. + +| Token | Value | +|---|---| +| spacing/0 | 0 | +| spacing/25 | 2 | +| spacing/50 | 4 | +| spacing/75 | 8 | +| spacing/100 | 12 | +| spacing/200 | 16 | +| spacing/300 | 24 | +| spacing/400 | 32 | +| spacing/500 | 40 | +| spacing/600 | 48 | +| spacing/700 | 64 | +| spacing/800 | 80 | +| spacing/900 | 96 | + +### Radius + +Collection `radius`, one mode, `FLOAT`, scope `CORNER_RADIUS`. + +| Token | Value | +|---|---| +| radius/0 | 0 | +| radius/2 | 2 | +| radius/4 | 4 | +| radius/6 | 6 | +| radius/8 | 8 | +| radius/12 | 12 | +| radius/16 | 16 | +| radius/24 | 24 | +| radius/full | 9999 | + +### Text styles + +The font is the file's one typeface (any font). Style names go in folders (`Heading / Heading 1`). Letter spacing is 0 unless the user sets it. + +| Folder / Style | Scale step | Size / line height | Weight | +|---|---|---|---| +| Heading / Heading 1 | `text-6xl` | 60 / 60 | Regular | +| Heading / Heading 2 | `text-5xl` | 48 / 48 | Regular | +| Heading / Heading 3 | `text-4xl` | 36 / 40 | Regular | +| Heading / Heading 4 | `text-3xl` | 30 / 36 | Regular | +| Heading / Heading 5 | `text-2xl` | 24 / 32 | Regular | +| Heading / Heading 6 | `text-xl` | 20 / 28 | Regular | +| Title / Title 1 | `text-xl` | 20 / 28 | Medium | +| Title / Title 2 | `text-lg` | 18 / 28 | Medium | +| Title / Title 3 | `text-base` | 16 / 24 | Medium | +| Title / Title 4 | `text-sm` | 14 / 20 | Medium | +| Title / Title 5 | `text-xs` | 12 / 16 | Medium | +| Body / Body 1 | `text-base` | 16 / 24 | Semibold | +| Body / Body 2 | `text-base` | 16 / 24 | Medium | +| Body / Body 3 | `text-base` | 16 / 24 | Regular | +| Body / Body 4 | `text-sm` | 14 / 20 | Semibold | +| Body / Body 5 | `text-sm` | 14 / 20 | Medium | +| Body / Body 6 | `text-sm` | 14 / 20 | Regular | +| Button / Button-lg | `text-lg` | 18 / 28 | Semibold | +| Button / Button-md | `text-base` | 16 / 24 | Semibold | +| Button / Button-sm | `text-sm` | 14 / 20 | Semibold | +| Button / Button-Xsm | `text-xs` | 12 / 16 | Semibold | +| Caption / Caption 1 | `text-sm` | 14 / 20 | Medium | +| Caption / Caption 2 | `text-sm` | 14 / 20 | Regular | +| Caption / Caption 3 | `text-xs` | 12 / 16 | Semibold | +| Caption / Caption 4 | `text-xs` | 12 / 16 | Medium | +| Caption / Caption 5 | `text-xs` | 12 / 16 | Regular | + +Font style strings differ by family. Check them with `figma.listAvailableFontsAsync()` before loading (for example Geist uses `SemiBold`, Inter-style families use `Semi Bold`). + +### Color + +#### Layer 1: `Core Colors` + +One mode. Raw hex values from the brand. + +| Palette | Role | Shades | +|---|---|---| +| `Primary` | main brand hue | 00, 50, 100, 150, 200, 300, 350, 400, 450, 500, 600, 700, 800, 850, 900, 950, 1000 | +| `Secondary` | second brand hue | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 | +| `Accent` | accent hue | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 | +| `Grayscale` | neutrals | 00, 50, 100, 150, 200, 250, 300, 400, 450, 500, 600, 700, 750, 800, 850, 870, 900, 950, 1000 | +| `Red` | error | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 | +| `Green` | success | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 | +| `Yellow` | warning | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 | +| `Grayscale-Alpha` | see-through neutrals for overlays | 700-16, 700-24, 700-40, 700-64, 700-80 (the Grayscale/700 hex at 16%, 24%, 40%, 64%, 80% opacity, stored in the variable's own opacity field) | + +- `00` is near white, `500` is the base hue and `1000` is near black. +- Keep the Grayscale dark steps on the allowed dark backgrounds: `1000` = #000000, `870` = #181818, `850` = #1F1F1F, `800` = #272727, `750` = #313131. + +#### Layer 2: `Color System` + +Modes `Light` and `Dark`. Every value is an alias to a Core Color. The Dark column is the user's reference mapping. Build the Light column by mirroring the shade (a dark surface at Grayscale 870 becomes a light surface near Grayscale 00/50), then check contrast. + +**Border** + +| Token | Dark alias | +|---|---| +| Border/Primary | Grayscale/750 | +| Border/Primary-Disabled | Grayscale/800 | +| Border/Primary-light | Grayscale/700 | +| Border/Secondary | Grayscale/750 | +| Border/Tertiary | Grayscale/600 | +| Border/Action-Primary | Primary/400 | +| Border/Action-Disabled | Primary/600 | +| Border/Action-Secondary | Grayscale/500 | +| Border/Error | Red/400 | +| Border/Error-disabled | Red/700 | +| Border/Success | Green/400 | +| Border/Warning | Yellow/300 | +| Border/Warning - Disabled | Yellow/700 | + +**Surface** + +| Token | Dark alias | +|---|---| +| Surface/Primary | Grayscale/870 | +| Surface/Primary-Hover | Grayscale/800 | +| Surface/Primary-Selected | Grayscale/700 | +| Surface/Primary-subtle | Grayscale/850 | +| Surface/Secondary | Grayscale/800 | +| Surface/Secondary-Hover | Grayscale/700 | +| Surface/Secondary-Selected | Grayscale/700 | +| Surface/Secondary-Subtle | Grayscale/750 | +| Surface/Tertiary | Grayscale/600 | +| Surface/Tertiary-Hover | Grayscale/450 | +| Surface/Accent | Accent/500 | +| Surface/Accent-subtle | Accent/200 | +| Surface/Info | Primary/400 | +| Surface/Info-subtle | Primary/150 | +| Surface/Error | Red/500 | +| Surface/Error-subtle | Red/100 | +| Surface/Error - Darker | Red/700 | +| Surface/Inverted | Grayscale/00 | +| Surface/Inverted-Hover | Grayscale/250 | +| Surface/Inverted-Disabled | Grayscale/450 | +| Surface/Warning | Yellow/500 | +| Surface/Warning-subtle | Yellow/100 | +| Surface/Warning - Hover | Yellow/700 | +| Surface/Success | Green/500 | +| Surface/Success-Subtle | Green/100 | + +**Action** (button and control fills) + +| Token | Dark alias | +|---|---| +| Action/Primary | Primary/500 | +| Action/Primary-Hover | Primary/700 | +| Action/Primary-Click | Primary/600 | +| Action/Primary-Disabled | Primary/700 | +| Action/Secondary | Grayscale/600 | +| Action/Secondary-Hover | Grayscale/750 | +| Action/Secondary-Click | Grayscale/700 | +| Action/Error | Red/700 | +| Action/Error-Hover | Red/800 | +| Action/Error-Disabled | Red/800 | +| Action/Error-Subtle | Red/150 | +| Action/Warning | Yellow/500 | +| Action/Warning - Hover | Yellow/700 | +| Action/Warning - Disabled | Yellow/800 | +| Action/Warning - Subtle | Yellow/100 | + +**Text** + +| Token | Dark alias | +|---|---| +| Text/Primary | Grayscale/50 | +| Text/Primary-Disabled | Grayscale/750 | +| Text/Primary-Subtle | Grayscale/500 | +| Text/Secondary | Grayscale/200 | +| Text/Secondary-Disabled | Grayscale/500 | +| Text/Tertiary | Grayscale/400 | +| Text/Inverted | Grayscale/850 | +| Text/Error | Red/500 | +| Text/Error-Disabled | Red/800 | +| Text/Error-Inverted | Red/800 | +| Text/Error-Inverted-Disabled | Red/200 | +| Text/Success | Green/600 | +| Text/Success-Inverted | Green/700 | +| Text/Success-Inverted-Disabled | Green/300 | +| Text/Info | Primary/350 | +| Text/Info-Inverted | Primary/700 | +| Text/Info-Inverted-Disabled | Primary/200 | +| Text/Warning | Yellow/500 | +| Text/Warning - Disabled | Yellow/800 | +| Text/Warning-Inverted | Yellow/800 | +| Text/Warning-Inverted-Disabled | Yellow/300 | + +**Icon** + +| Token | Dark alias | +|---|---| +| Icon/Default | Grayscale/50 | +| Icon/Secondary | Grayscale/200 | +| Icon/Subtle | Grayscale/500 | +| Icon/Inverted | Grayscale/850 | +| Icon/Disabled | Grayscale/750 | +| Icon/Error | Red/500 | +| Icon/Error-Disabled | Red/800 | +| Icon/Error-Inverted-Disabled | Red/200 | +| Icon/Info | Primary/350 | +| Icon/Info-Disabled | Primary/200 | +| Icon/Warning | Yellow/500 | +| Icon/Warning-Inverted | Yellow/700 | +| Icon/Warning - Disabled | Yellow/800 | +| Icon/Warning-Inverted-Disabled | Yellow/300 | +| Icon/Success | Green/400 | +| Icon/Success-Inverted-Disabled | Green/300 | + +**Overlay** + +| Token | Value | +|---|---| +| Overlay/xs | Grayscale-Alpha/700-16 | +| Overlay/sm | Grayscale-Alpha/700-24 | +| Overlay/md | Grayscale-Alpha/700-40 | +| Overlay/lg | Grayscale-Alpha/700-64 | +| Overlay/xlg | Grayscale-Alpha/700-80 | + +An alias can't add opacity; it takes the target as it is. So the transparency lives in Core Colors (`Grayscale-Alpha`) and Overlay aliases it. Never put opacity on an overlay layer by hand. diff --git a/skills/landing-page-design/SKILL.md b/skills/landing-page-design/SKILL.md new file mode 100644 index 0000000..519a6f2 --- /dev/null +++ b/skills/landing-page-design/SKILL.md @@ -0,0 +1,479 @@ +--- +name: landing-page-design +description: "Complete system for building high converting landing pages: intake questions, page structure, layout selection, conversion copywriting, SEO, plus strict visual rules for typography, spacing, corner radius, backgrounds, hero layout, icons, and motion. Use this skill whenever building, editing, styling, reviewing, or writing copy for ANY landing page, marketing site, web UI, page section, component, or prototype, even when the user does not mention design, conversion, tokens, or a design system. Always consult it before choosing page sections, headlines, CTAs, fonts, font sizes, spacing values, border radii, background colors, icons, or transitions." +--- + +# Landing Page Design + +A landing page is not a homepage. A homepage serves multiple intents. A landing page wins one intent: + +**one offer → one audience → one primary action.** + +This skill has two halves. **Part A** decides what the page says and how it is structured. **Part B** is the non negotiable visual system. Work through A before touching B. + +## Scope + +Apply to all web UI work: landing pages, marketing sites, components, dashboards, prototypes, and design reviews. When a rule here conflicts with a framework default, this file wins. When the user's explicit prompt conflicts with a rule, the user wins. + +**Companion skill.** For upgrading an *existing* site rather than building a new one, use `redesign-existing-projects` ([github.com/elayadesign/redesign-skill](https://github.com/elayadesign/redesign-skill)). It diagnoses generic patterns and defers to this file for every concrete value. + +--- + +# PART A — Strategy and structure + +## A1. Intake + +Gather these before designing or writing. Ask only for what is missing, and ask in one batch rather than one question at a time. + +**Purpose** +- What is the ONE primary action? (trial, demo, buy, waitlist, download) +- What is the offer, exactly what do they get? +- What counts as a conversion? (click, signup, purchase) + +**Audience and context** +- Who is the ICP? +- What problem are they trying to solve? +- Top three objections, meaning why they do not convert today +- Traffic source: ads, search, social, email +- What do visitors already know when they land? + +**Proof and assets** +- Proof points: logos, testimonials, numbers, case studies +- Screenshots, demo video, product GIFs +- Guarantees, refund terms, cancellation terms + +**Constraints** +- Brand voice: casual or professional +- Design direction: minimal editorial, playful 3D, glass UI +- Mobile priority? + +If the user cannot answer, make a reasonable assumption, state it in one line, and continue. Do not stall the build. + +## A2. Page structure + +**Above the fold (required)** +1. Headline, outcome plus audience +2. Subheadline, clarifies how and adds specificity +3. Primary CTA, clear verb plus what they get +4. One proof signal, logo strip, stat, or short testimonial +5. Hero visual, product screenshot or video, or a strong illustration + +**Mid page (the argument)** +6. Problem to solution, one section +7. Benefits, three to five, outcome driven +8. How it works, three steps +9. Social proof, testimonials or a case study + +**Bottom (objection handling)** +10. FAQ, six to twelve questions +11. Risk reversal, trial, cancel anytime, guarantee +12. Final CTA, identical to the top + +Include the mandatory tagline reveal section from B11 somewhere in the mid page argument, typically right after the hero or after benefits. + +## A3. Layout selection + +Pick one and say why. + +| Type | Use when | +|---|---| +| **A. Classic hero plus sections** | The product is understandable from a hero screenshot. Most common. | +| **B. Long form story** | You need to educate and overcome skepticism. | +| **C. Minimal conversion page** | High intent traffic (email to known users), or a short offer like a download or waitlist. | +| **D. Comparison page** | Search intent includes alternatives ("X vs Y", "best for"). Usually paired with SEO pages. | + +## A4. Conversion rules + +**Match message to source.** If traffic comes from ads, mirror the ad headline in the hero and keep the same promise and visual tone. + +**Make the next step obvious.** One primary CTA. Never place competing CTAs above the fold. + +**Write benefit first.** Features are what it does. Benefits are what that means for them. + +**Be specific.** +- ❌ "Save time and streamline" +- ✅ "Cut your weekly reporting from 4 hours to 15 minutes" + +**Reduce risk.** Pick at least one: free trial, free plan, no credit card, cancel anytime, money back guarantee. + +**Treat objections as a section, not a footnote.** Move the FAQ earlier for high friction offers. Put proof directly beside the claim it supports. + +## A5. Copywriting + +**Headline formulas** +- "{Outcome} without {pain}" +- "The {category} for {audience}" +- "Ship {result} in {time}" + +**Subheadline.** One or two sentences. Clarify what it is and who it is for. + +**CTA.** Verb plus what they get. Never "Learn more" or "Submit". Use "Start free trial", "Book a demo", "Get the checklist". + +**Benefit bullets.** Bold benefit, then the proof or detail. Example: **Faster iteration** — generate three layout variants in one click. + +Note: the copy rules in B1 still apply. No hyphens inside sentences, no orphaned words. + +## A6. Build order + +Work section by section, in this order: + +1. Hero +2. Benefits +3. How it works +4. Proof +5. FAQ +6. Final CTA + +Never rebuild the whole page on each iteration. Section by section keeps control and keeps diffs reviewable. + +## A7. SEO and AEO + +**Do not index** ad only campaign pages or highly time bound offers. Use `noindex` or keep them behind a non indexed path. + +**Do index** evergreen offers and pages where search intent matches the promise. Add a clear title and meta description, internal links from the homepage and feature pages, and the FAQ in plain question and answer form for AEO. Add FAQ schema if appropriate. + +## A8. Pitfalls + +- Too many CTAs above the fold +- Vague value prop: "streamline", "optimize" +- A large feature list with no outcomes +- Proof buried at the bottom +- Mobile layout that breaks readability +- No clear next step + +--- + +# PART B — Visual system + +Every visual value must resolve through these rules instead of being invented ad hoc. + +## B1. Typography + +### Fonts + +**Use:** Geist, Manrope, Geist Mono, Poppins. + +**Never use:** Inter, Roboto, Arial, Open Sans, Helvetica. + +**Never use italic fonts** anywhere in the interface. + +**One typeface per site.** Do not pair two fonts unless the prompt explicitly asks for it. Geist Mono is allowed alongside a primary font only for code, data, or numeric UI where a monospace is functionally required. + +**Never use ultra bold weights** (900 / black). Cap at semibold or bold. + +### Copy rules + +**No hyphens in text.** Do not use `-` inside body copy, headings, or labels. Rewrite the phrase instead. + +**No orphaned words.** A single word must never sit alone on the last line. Apply `text-wrap: balance` for headings and `text-wrap: pretty` for body copy. + +### Type scale + +Always resolve font sizes to Tailwind's default type scale. Never leave arbitrary values in place, including `text-[19px]`, `font-size: 22px`, or `1.4rem`. + +If an existing size does not land exactly on a step, snap it to the **closest step below**, taking both the size and its paired line height. + +| Class | Size | Line height | +|---|---|---| +| `text-xs` | 12px (0.75rem) | 16px | +| `text-sm` | 14px (0.875rem) | 20px | +| `text-base` | 16px (1rem) | 24px | +| `text-lg` | 18px (1.125rem) | 28px | +| `text-xl` | 20px (1.25rem) | 28px | +| `text-2xl` | 24px (1.5rem) | 32px | +| `text-3xl` | 30px (1.875rem) | 36px | +| `text-4xl` | 36px (2.25rem) | 40px | +| `text-5xl` | 48px (3rem) | 1 | +| `text-6xl` | 60px (3.75rem) | 1 | +| `text-7xl` | 72px (4.5rem) | 1 | +| `text-8xl` | 96px (6rem) | 1 | +| `text-9xl` | 128px (8rem) | 1 | + +Do not combine scale snapping with independently set custom line heights elsewhere in an audit. Tracking and line height may only be adjusted **within** the value the matched step already provides, so the two rules never fight each other. + +### Text styles + +Every piece of text uses one of these named styles. Never style text with a loose size and weight. Use the names exactly as written, including capitalization. + +| Style | Scale step | Size / line height | Weight | +|---|---|---|---| +| Heading 1 | `text-6xl` | 60 / 60 | Semibold | +| Heading 2 | `text-5xl` | 48 / 48 | Semibold | +| Heading 3 | `text-4xl` | 36 / 40 | Semibold | +| Heading 4 | `text-3xl` | 30 / 36 | Semibold | +| Heading 5 | `text-2xl` | 24 / 32 | Semibold | +| Heading 6 | `text-xl` | 20 / 28 | Semibold | +| Title 1 | `text-xl` | 20 / 28 | Medium | +| Title 2 | `text-lg` | 18 / 28 | Medium | +| Title 3 | `text-base` | 16 / 24 | Medium | +| Title 4 | `text-sm` | 14 / 20 | Medium | +| Title 5 | `text-xs` | 12 / 16 | Medium | +| Body 1 | `text-base` | 16 / 24 | Semibold | +| Body 2 | `text-base` | 16 / 24 | Medium | +| Body 3 | `text-base` | 16 / 24 | Regular | +| Body 4 | `text-sm` | 14 / 20 | Semibold | +| Body 5 | `text-sm` | 14 / 20 | Medium | +| Body 6 | `text-sm` | 14 / 20 | Regular | +| Button-lg | `text-lg` | 18 / 28 | Semibold | +| Button-md | `text-base` | 16 / 24 | Semibold | +| Button-sm | `text-sm` | 14 / 20 | Semibold | +| Button-Xsm | `text-xs` | 12 / 16 | Semibold | +| Caption 1 | `text-sm` | 14 / 20 | Medium | +| Caption 2 | `text-sm` | 14 / 20 | Regular | +| Caption 3 | `text-xs` | 12 / 16 | Semibold | +| Caption 4 | `text-xs` | 12 / 16 | Medium | +| Caption 5 | `text-xs` | 12 / 16 | Regular | + +How the groups work: + +- **Heading** for page and section headings, largest to smallest. Heading 1 is the hero. +- **Title** for card titles, list item titles, labels that lead a block, and nav items. +- **Body** for running text. Within each size, 1 is the strongest weight and the last is regular. +- **Button** for text inside buttons only. Main buttons use Button-md, small header buttons use Button-sm. +- **Caption** for metadata, helper text, badges, timestamps, and fine print. + +The sizes come from the type scale above, so a style never introduces an off scale value. If a project needs a new style, add the next number in its group (for example Body 7) built from a scale step, rather than inventing a new name. + +In code, define each style once as a reusable class or token with the same name in kebab case (`heading-1`, `body-4`, `button-md`, `caption-2`) and apply that, instead of repeating size and weight utilities on every element. + +## B2. Spacing + +Only these values. Nothing between them, nothing outside them. + +| Token | Value | +|---|---| +| Spacing-0 | 0 | +| Spacing-25 | 2px | +| Spacing-50 | 4px | +| Spacing-75 | 8px | +| Spacing-100 | 12px | +| Spacing-200 | 16px | +| Spacing-300 | 24px | +| Spacing-400 | 32px | +| Spacing-500 | 40px | +| Spacing-600 | 48px | +| Spacing-700 | 64px | +| Spacing-800 | 80px | +| Spacing-900 | 96px | + +**Main buttons:** 8px vertical padding, 12px horizontal padding. + +## B3. Corner radius + +Only use Tailwind's radius values. + +**Nested radius formula.** When a shape sits inside another shape and the gap between them is **less than 32px**: + +``` +inner radius = outer radius − gap +``` + +Apply this only when the result is **greater than 2**. Below that, leave the inner shape square or unchanged. + +Example: an outer card at `rounded-2xl` (16px) with 8px of internal padding gives an inner element an 8px radius (`rounded-lg`). + +## B4. Borders and backgrounds + +- **Never apply a border to only one side of a card.** Borders go all the way around or not at all. +- **Never use gradients in backgrounds.** Backgrounds are flat. + +### Dark mode background colors + +Use only these: + +`#000000` · `#181818` · `#1F1F1F` · `#272727` · `#313131` · `#131209` + +## B5. Hero section + +### Heading color + +- **Dark theme:** left to right gradient on the heading text, `#FFFFFF` → `#9B9B9B`. +- **Light theme:** left to right gradient on the heading text, `#000000` → `#666666`. + +This is the one place gradients are used, and only on text, never on the background. + +### Layout + +- Heading and subheading both get a **max width of 680px**. +- Read the heading copy and insert line breaks at **meaningful** points. +- Never break a line in a way that cuts a phrase awkwardly or makes the sentence harder to read. Break where the thought breaks. + +## B6. Icons + +**Use:** Phosphor, Solar, or Iconamoon. + +**Never use:** Material Icons, Material Symbols. + +## B7. Motion + +Motion should feel weighted and decelerate into place. Never ship a browser default curve (`ease`, `linear`, `ease-in-out`). + +**Base curve:** `ease-[cubic-bezier(0.22,1,0.36,1)]` with `duration-500` for layout and position changes. Color and opacity shifts on hover may use `duration-300`, never shorter than 200ms. + +Animate only `transform` and `opacity`. Never animate `top`, `left`, `width`, or `height`. + +Respect `prefers-reduced-motion`: replace movement with a plain opacity change. + +### Navigation + +**Resting state.** A compact bar that floats off the top edge rather than sitting flush against it, centered and sized to its content. It uses a translucent surface over a background blur so page content stays faintly visible behind it. Spacing comes from B2, radius from B3. + +**Menu toggle.** The open and close icon transforms between its two states instead of swapping instantly. Use an icon from B6 or draw the lines yourself; either way the change is animated with the base curve. + +**Mobile menu.** Opens as a full height panel, not a small dropdown. The panel background uses the theme's base surface at high opacity with a strong blur. + +**Link entrance.** Links inside the open menu arrive one after another in reading order, each moving up a short distance (Spacing-300, 24px) while fading in. Step each item 60ms after the previous one and cap the total sequence at 400ms so long menus never feel slow. + +### Scroll reveals + +Sections entering the viewport rise a short distance (Spacing-400, 32px) and fade from 0 to full opacity over 600 to 800ms on the base curve. Reveal each section once; do not replay on scroll back up. + +Trigger reveals with `IntersectionObserver` or Framer Motion's `whileInView`. Never attach work to an unthrottled `window.addEventListener('scroll')`, since it runs on every frame and drags down mobile performance. + +--- + +## B8. Content realism + +Every piece of sample content should read like it came from a real product with real users. + +- **Write the copy.** No placeholder Latin, no "Your headline here". Draft real sentences in the product's voice. +- **People.** Give testimonials and team members full, specific names that fit the product's audience and region. Never reuse one face for two people. +- **Brands and logos.** Invent names that sound like they belong in the product's industry. A logistics tool's customers sound like logistics companies, not generic tech startups. +- **Never invent facts.** On a real product's page, prices, guarantees, statistics, customer counts, testimonials, and logos must come from the user or a real source. When a fact is missing, use a clearly marked placeholder such as `{{price}}` or `{{testimonial}}` instead of making one up. +- **Sample numbers.** In fictional demos and prototypes (where the invented names and brands above are fine), avoid suspiciously round figures. Pricing should look like real pricing, metrics should carry a decimal or an odd final digit, and dates across a list should vary. +- **Banned filler words.** Do not write "revolutionize", "supercharge", "cutting edge", "effortless", "transform your workflow", "take it to the next level", "harness the power", or "world class". Say what the product does in plain terms instead. +- **Sentence case** for headings and buttons. +- **System messages.** Confirmations are calm and specific ("Invoice sent to Dana"). Errors say what failed and what to do next ("Upload failed. The file is over 20 MB."). No cute interjections, no exclamation marks. + +## B9. States + +Every interactive element ships with its full state set: + +- **Hover** — background shift, slight scale, or translate +- **Active** — `scale(0.98)` or `translateY(1px)` for physical feedback +- **Focus** — a visible focus ring. Accessibility requirement, not optional. +- **Loading** — skeleton loaders shaped like the real layout, not circular spinners +- **Empty** — a composed "getting started" view, never a blank panel +- **Error** — inline and specific. Never `window.alert()`. + +No dead links. A button pointing at `#` is either linked or visually disabled. The current page must be indicated in the navigation. + +## B10. Ship requirements + +Things that get forgotten and make a page feel unfinished: + +- Privacy policy and terms links in the footer +- A custom, branded 404 +- Client side form validation for email format and required fields +- A skip to content link for keyboard users +- Cookie consent where the jurisdiction requires it +- A branded favicon +- ``, meta description, `og:image`, and social sharing tags +- Alt text on every meaningful image +- Semantic HTML: `<nav>`, `<main>`, `<article>`, `<aside>`, `<section>` +- A way back from every page +- A check at 390px wide: no horizontal overflow, buttons keep their text inside, and the primary action is visible in the first screen + +## B11. Tagline reveal section (mandatory) + +Every landing page includes one large type section stating the core benefit or tagline, separate from the hero. It sits further down the page as its own moment, not stacked directly under the hero. + +**Copy** +- Minimum two lines of text. +- A benefit statement or tagline, written in the voice of A5, not a generic section heading. + +**Typography** +- Use Heading 3 to Heading 1 from the B1 text styles, depending on line count. +- Max width capped like the hero, so lines break at meaningful points per B5. + +**Animation** +- Text starts in a subtle, muted tone, roughly 25 to 35% opacity of the theme's base text color. +- As the section scrolls into view, each word transitions individually from that muted tone to the full text color, in reading order. +- Words activate one at a time as they cross a trigger line, not the entire block flipping at once. The transition uses the base curve from B7, never a linear fade. +- Implement with `IntersectionObserver` per word, or a single scroll listener throttled through `requestAnimationFrame`. Never an unthrottled `window.addEventListener('scroll')`, per B7. +- Under `prefers-reduced-motion`, show the final text at full color right away, with no word by word animation. + +--- + +# Output format + +When generating a landing page from scratch, return these in order before writing code: + +1. **Page outline** — sections and their order +2. **Hero copy** — headline, subheadline, CTA, proof line +3. **Benefits** — three to five outcome driven bullets +4. **How it works** — three steps +5. **FAQ** — six to twelve questions and answers +6. **SEO / AEO** — index or noindex recommendation, plus title and meta if indexed +7. **Layout recommendation** — A, B, C, or D, and why + +Then build section by section per A6. + +--- + +# Quick checklist + +**Strategy** +- [ ] One offer, one audience, one primary action +- [ ] No competing CTAs above the fold +- [ ] Specific numbers instead of vague verbs +- [ ] At least one risk reversal +- [ ] Proof sits next to the claim it supports +- [ ] Layout type chosen deliberately + +**Visual** +- [ ] Single approved typeface, no italics, no ultra bold +- [ ] No hyphens in copy, no orphaned words +- [ ] Every font size lands on a Tailwind scale step +- [ ] Every text element uses a named text style (Heading, Title, Body, Button, Caption) +- [ ] Every spacing value comes from the spacing table +- [ ] Nested radii follow the formula +- [ ] No single sided card borders, no background gradients +- [ ] Hero heading and subheading capped at 680px with meaningful line breaks +- [ ] Icons from Phosphor, Solar, or Iconamoon +- [ ] Every transition uses the B7 base curve, scroll reveals use IntersectionObserver +- [ ] Tagline reveal section present, minimum two lines, words activate one at a time on scroll +- [ ] No invented prices, stats, or testimonials; missing facts use marked placeholders +- [ ] Checked at 390px with no overflow + +**Content and ship** +- [ ] Real draft copy, believable names and numbers, no banned filler words +- [ ] Hover, active, focus, loading, empty, and error states all present +- [ ] No dead links, current nav item indicated +- [ ] 404, legal links, form validation, favicon, meta tags, alt text + +--- + +## Credits + +The no invented facts rule and reduced motion support for the tagline reveal were suggested by [@allen-baler](https://github.com/allen-baler) in [#1](https://github.com/elayadesign/ai-design-skills/pull/1). + +Parts of this skill were adapted from [taste-skill](https://github.com/Leonxlnx/taste-skill) by Leon Lin ([@LexnLin](https://x.com/LexnLin)), MIT licensed. Its redesign audit structure, content realism checks, and motion and navigation ideas informed the matching sections here, which have since been rewritten. + +<details> +<summary>taste-skill license</summary> + +``` +MIT License + +Copyright (c) 2026 Leonxlnx + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +``` +</details>