Skip to the content.

The harness

One architecture, six boilerplates

Every template npx elegant copies is the same three-layer shell over a different framework and store. Swap React for Angular, or Redux for Pinia, and the folder layout, the naming and the tests stay the same. The architecture is the thing you learn, not the framework.

Why three layers

UI and UX mean different things to different people

A designer, a developer and an enterprise each split the same work a different way. The harness splits the code the way all three already think about it.

A designer splitting work between UX research and wireframes on one side and visual design on the other

Designer's perspective

UX handles analytical work like research and wireframes, while UI focuses on visual design and aesthetics.

A developer's split of the same work: HTML and JavaScript for behaviour, CSS for presentation

Developer's perspective

UX uses HTML and JavaScript for behaviour, while UI relies on CSS for visual presentation.

An enterprise view combining the UI layer, web server operations and state management into one architecture

Enterprise perspective

Frontend architecture combines the UI layer, web server operations and state management into one application.

How it is built

From prompt to reviewed code

The harness is built for an AI-assisted lifecycle: describe the component, generate it into the atomic layer it belongs to, run the tests and Storybook that came with it, then review. The CLI reference lists every generator.

The AI-assisted software development lifecycle used by Elegant, from prompt through generated code to review

Try it

Answer a question right now

No account, no setup. Edit the starter and press Run. The same tests grade you here and in every question.

Workspace

Edit the module below and run the question's tests. Press Ctrl+Enter (or Cmd+Enter on a Mac) to run from the editor. Your draft is kept in this browser.

See all questions →

Take it with you

Read it as a book

All three sides, every term and its best practices, in one PDF you can read offline. The book page lists every chapter.

Cover of the Elegant Frontend book

The book · free PDF

Elegant Frontend

Every term on this site and its best practices in one book: what it is, a worked example, the common mistakes and the quality gates, in 45 chapters.

  • Part I: The UI Side16 terms
  • Part II: The Server Side20 terms
  • Part III: The State Side9 terms
Download the PDF

354 pages · 3.6 MB · updated October 2026

Keep going

Where to go from here

Pick the surface that matches how you like to study, or read the full glossary first.