Trail
Start here: the screen recipes to copy, the install, the stylesheets and how to look a part up
A theme for React apps: 139 component modules and 14 page templates (installed under components/ui/goop/trail/ and components/goop/trail/patterns/), written in Tailwind CSS v4 on one shared set of CSS variables, with shadcn/ui's file names and conventions. Light and dark are a class away. It fits issue trackers, CRM, admin consoles, support desks (dense work apps).
Install
For the person installing: React 19, react-dom 19 and Tailwind CSS v4. The theme installs from its registry, one item a module (@goop/trail-<file name> free, @goop-pro/trail-<file name> Goop Pro). Name the free registry once in your components.json, at registry.goop.so:
"registries": {
"@goop": "https://registry.goop.so/r/{name}.json"
}A free module installs by its name, from the app's root, in any shell; several names go in one command:
npx shadcn@4.23.1 add @goop/trail-buttonA Goop Pro module installs through the Goop MCP server (https://mcp.goop.so/mcp): its goop_install answer is the command, each Pro module named by a one-time link on the registry's host that lasts 10 minutes and installs once (npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-table.json --yes). Nothing to set up first: no key, no file, no @goop-pro entry in components.json. Run the answer's commands as written; for a later install, ask again.
The files your coding agent reads are an item too (EXAMPLES.md, "Your coding agent"); after it, run once from the app's root node goop/agent/setup.mjs (node src/goop/agent/setup.mjs in an app with a src/ folder): it puts the rules in AGENTS.md (and @AGENTS.md in a CLAUDE.md). Which items are free, the page templates and the example pages: EXAMPLES.md, "Install". The icons are the Tabler outline pack (@tabler/icons-react; Phosphor's filled set for a few filled marks), installed with the theme. A page item (@goop-pro/trail-page-<name>) installs only into a Next.js App Router app, online: build the page from a screen recipe instead.
An app built with the free Goop look: the six stylesheets in "The stylesheet" below (Inter comes with goop/trail/base.css) replace it. Remove the imports of its goop.css and goop-tailwind.css (often in src/styles/) and of its own Inter (an Inter @font-face or font package), rewrite a screen still using its g- classes with the theme's parts, and delete those files once nothing imports them: the six are then the app's only Goop styles, in their order, tune.css last. After an install that adds packages, restart the dev server with --force (Vite: npm run dev -- --force): a stale dependency cache breaks the new parts with "Invalid hook call".
Start here
- The theme's rules are your
AGENTS.md(goop/trail/agent/rules.md), always loaded: never read them again. With Goop's tools connected, callgoop_plan_page(a new app:goop_plan_app) before any file or command: it plans the page, gives its recipe and says what your plan allows; writegoop/plan.mdfrom its answer alone. Without them, before your first screen read only what steps 2 to 4 name, in this order. - Write the app's job and its objects (what each has: dates from and to, a stage, a parent, a booking slot) as
goop/plan.md's first two lines. Goop's plan file is plan.md in the folder that holds Goop's installed stylesheets (contract.css): src/goop/plan.md in an app with a src/ folder, else ./goop/plan.md beside package.json. - A new app: from its root,
node goop/agent/start.mjs --app <type> --planprints the start that fits the job (no type: the types, a line each): its frame and sidebar, each screen in its arrangement, and the view each object is (dated work a team plans by: a Gantt; stages: a Board; a booking: a WeekBoard; something inside something: a TreeView). Run it again without--planto write it, then write a line a page ingoop/plan.mdfrom what it printed. A page no type covers:agent/layout-chooser.md; another sidebar shape:docs/recipe-sidebars.md. - A screen to add, or an app no type fits:
node goop/agent/start.mjs <screen>…writes the frame, the app and those screens from the screen recipes' own code:overview(a dashboard),list(a table with filters, a row opening beside it;list:grouped,list:display,list:foot;list:timeline, a roadmap's Gantt,list:tree, pages in a TreeView, andlist:budgets, a Meter a budget, each a page of its own),record(one record's page;record:tabbed, its related lists in tabs;record:profile, a person's page),inbox(an inbox or help desk),settings,board,schedule,flow,account(signing in),chat,states. Name the screen your app opens on first. It never overwrites a file; add--replace-apponly to replace a new app's starterApp.tsx. With it, each screen is written empty, its line naming the command that writes it whole. Read and edit only the lines it prints, and never read a recipe it wrote. For a screen it did not write, or one added later, read its recipe:docs/screen-app.md(routes, the store, the toasts),docs/screen-frame.md(the frame, sidebar, top bar and router) and the screen's own (docs/screen-overview.md,docs/screen-list.md, …; every one is named below). Copy them whole, write that screen, then read the next screen's recipe. - A part your files already use, or a recipe shows, needs no lookup. For the rest, one call:
node goop/agent/lookup.mjs part <name> <name>…prints each one's import, props and example (--full: its whole page);find <need>names a part or a file below;tokens <group>prints the classes you may write, and aniconprop takes a name (lookup.mjs icons <word>), never an<svg>. Never open a part's source,agent/index.mdorEXAMPLES.md.
Dark mode is the class dark on <html>, never a prefers-color-scheme query alone: ColorModeToggle (or useColorMode() for a switch of your own) sets and keeps it; the start command's frame (screens/frame.tsx, beside goop/) has one in each screen's top bar, and "Dark mode" below gives the no-flash script.
Paths: goop/… starts where the install put goop/ (src/goop/ in an app with a src/ folder); docs/… and agent/… are beside this file, under goop/trail/ (docs/screen-list.md is goop/trail/docs/screen-list.md).
The stylesheet
Your app's main stylesheet imports six of the eight the install writes, in this order (here from src/index.css):
@import "tailwindcss";
@import "./goop/contract.css";
@import "./goop/base.css";
@import "./goop/trail/theme.css";
@import "./goop/trail/extensions.css";
@import "./goop/trail/base.css";
@import "./goop/trail/tune.css";goop/conventions.css and goop/trail/theme.scoped.css change nothing until you import them for a choice: docs/stylesheets.md. The app's index.html (beside package.json) needs <meta name="viewport" content="width=device-width, initial-scale=1" /> in <head>; Next.js writes its own. The phone's safe-area padding (pb-safe-bottom: the tab bar, the bottom sheet, the action sheet) is 0 px unless that tag's content also holds viewport-fit=cover (on Next.js, viewportFit: 'cover' in its viewport export).
Dark mode
dark on <html> makes the page dark; nothing else does. The switch is the theme's: ColorModeToggle (the frame recipe's top bar has it), ColorModeMenu (System, Light, Dark) or useColorMode(), from @/components/ui/goop/color-mode-toggle. To open in the kept mode with no flash, put this in index.html's <head>:
<script>
try { var colorMode = localStorage.getItem('theme'); } catch (e) {}
document.documentElement.classList.toggle('dark', colorMode === 'dark' ||
(colorMode !== 'light' && matchMedia('(prefers-color-scheme: dark)').matches));
</script>Routing
The theme ships no router: docs/screen-frame.md writes your app's own, a hash router of about 20 lines the frame reads (on a framework's router, keep its three names over that one). useRecordPeek() keeps the open record in ?peek=<id> with no router; for a router's own state, pass useRecordPeek({ adapter }), a RecordPeekAdapter: get(), set(id: string | null, 'push' | 'replace') (null: none open) and optional subscribe(listener) and back() (lookup.mjs part RecordPeek).
Your brand
The examples name a sample company, Fieldwork, from SAMPLE_BRAND in @/lib/goop/trail/sample-brand, the one theme file you edit: set your name, tile letter and web address word there once and take the name from it.
Accessibility
Every part is its control: its keys (arrows, Enter, Space, Escape, Tab) are on its own page (lookup.mjs part <name>, "Keys"), a layer moves the focus in and gives it back on close, and an icon-only control is named by its required aria-label. The focus ring shows on keyboard focus, not on a click. Under the system's reduced-motion setting the motion stops, and a layer's opening and closing shortens to 100 ms. On a touch screen the controls take a 44 px tap target by themselves (docs/touch.md).
More, when a job needs it
Beside this file; lookup.mjs find names them too.
docs/screen-frame.md: a screen recipe, the app's frame: the sidebar navigation, a screen's top bar, the light and dark switch, the app's routerdocs/recipe-frame-top-nav.md: a recipe, the app's frame with its places in a bar across the top, no sidebar (the frame'stop-navoption, in place ofscreen-frame.md'sframe.tsx)docs/screen-overview.md: a screen recipe, an overview or dashboard: a display title with period presets and a date range, number tiles with a fact and a sparkline, one combined chart, a chart beside a list, what is duedocs/screen-list.md: a screen recipe, a list page: a table with a search and a status filter with counts, a stepper in a row, a row's actions menu, a row opening its recorddocs/recipe-list-grouped.md: a recipe, the list page with rows folding under a band per status (the list'sgroupedoption, in place ofscreen-list.md's file)docs/recipe-list-display.md: a recipe, the list page with a Display menu: columns, grouping, sort, density (the list'sdisplayoption)docs/recipe-list-foot.md: a recipe, the list page with totals and the pager pinned at the table's foot (the list'sfootoption)docs/recipe-list-timeline.md: a recipe, a roadmap: projects as dated bars on a Gantt by team, the zoom and Today, a bar opening its project beside it (the list'stimelineoption, a page of its own)docs/recipe-list-tree.md: a recipe, pages kept in a tree: a TreeView of pages and folders, the chosen page opening beside it (the list'streeoption, a page of its own)docs/recipe-list-budgets.md: a recipe, budgets: a card a budget, a Meter of its spending against its limit, the limit changed in place in a NumberInput (the list'sbudgetsoption, a page of its own)docs/screen-record.md: a screen recipe, a record's detail page: its text, its properties edited in place as chips beside it, its historydocs/recipe-record-tabbed.md: a recipe, a record's page with its key facts in a band over tabs of its related lists (the record'stabbedoption, in place ofscreen-record.md's file)docs/recipe-record-profile.md: a recipe, a person's page: their profile panel at the start, their work and teammates beside it (the record'sprofileoption, a page of its own)docs/screen-inbox.md: a screen recipe, an inbox or help desk: queues and a status filter with counts, the thread with a reply box, the customer's panel with assignee chipsdocs/screen-settings.md: a screen recipe, a settings page: sections of rows with fields, selects and switchesagent/layout-chooser.md: choose a page's layout by its job: the signature arrangement, then one table per page role of its arrangements, when each fits and what Trail drawsagent/new-component.md: making a new component or custom control the theme lacks: build it beside the units, its token classes and states, the lintdocs/parts.md: the toast, icons, six default looks,label, field heights, table quantities, inks, cursors, cardsdocs/page-layout.md: the frame, a phone page scrolling, two or three panes, a record beside its list, page spacingdocs/touch.md: phones and touch screens, 44 px tap targets, type sizesdocs/status.md: status, priority and colour words (variant,hue), StatusMark, PriorityMark, stock levelsdocs/motion.md: motion for your own lists, folds, chips and glyph swaps (useRowGlide, usePickGlide, useFold, Presence, useFlip, useGlyphSwap)docs/recipe-table-create-row.md: a recipe, a table that makes its own records in place (TableCreateRow, useCreateRow)docs/data-parts.md: Gantt roadmap, StatTile metric tiles, TrendChip, BarList ranked list, PaginationPages, TreeViewdocs/record-parts.md: Properties, Board, ScrollArea, ColorPicker, ResizablePanelGroup panes, NavigationMenudocs/stylesheets.md: what each stylesheet holds, the accent, the window steps, tune.cssdocs/recipe-sidebars.md: a recipe, seven sidebar shapes (team workspace, one person, admin console, rail, two levels, saved views, recent items)docs/recipe-composer-modes.md: a recipe, a composer reply box with reply and note modes (help desk, inbox)docs/recipe-composer-toolbar.md: a recipe, your own controls in a composer toolbar (mention, format, menu)docs/recipe-activity-comment.md: a recipe, a comment or update in a record's history (activity feed)docs/recipe-unread-row.md: a recipe, an unread list row with its date at the enddocs/screen-app.md: a screen recipe, the app: its screens by route (your own small router), one store they share, the toasts, light and darkdocs/screen-board.md: a screen recipe, a board: stages as columns with counts, cards moved by drag and by the keys, a card opening beside it, a create in a column, filters with countsdocs/screen-schedule.md: a screen recipe, a week schedule: bookings by person or room, today's in a row over them, a slot opening its formdocs/screen-flow.md: a screen recipe, a flow in steps (booking, checkout, setup): each step checked as it is left, a day and a time, a review, a live summary beside it, a done statedocs/screen-account.md: a screen recipe, the signed-in account: sign in, the person's account menu in the frame, their profile, sign out (a sample session you replace with your auth)docs/screen-chat.md: a screen recipe, an assistant chat: past chats in the sidebar, answers thinking and streaming in with the sources they cite (Citation), Stop, rate and Try again (ReplyActions), an agent run's tool calls and its approval before it acts (ToolCall, ApprovalRequest), suggested prompts (sample replies you replace with your model)docs/screen-states.md: a screen recipe, the states round a screen's data: rows and cards loading, a failed load with Retry, a first run with starter cards, a filter that leaves nothing, not found, no access, a message sending or refused
Check what you wrote
node goop/agent/lint.mjs <file or folder> holds your files to the theme's values (it reads them with the app's Vite 8, else the oxc-parser the agent files add as a dev dependency). node goop/agent/review.mjs check http://localhost:<port>/#/<route> <file…> (the app recipe's router routes after the #; a plain /<route> is mapped to it) runs the lint, then takes three pictures of the screen (375 px light, 1280 px light and dark) to look at, in the installed Chrome browser (the pictures need it); every screen in one call, each URL followed by its files.
A React lint (npx oxlint, eslint-plugin-react-refresh) may say a unit file exports more than components: its *Variants table (buttonVariants) is exported on purpose, as shadcn/ui's own files do, so a link can wear a button's look, and so is a hook beside its components (useSidebar, useCreateRow), as shadcn/ui's sidebar does.
Licence
See LICENSE and, for the open-source packages and fonts the theme installs, NOTICE: each keeps its own licence, in its package's own licence file under node_modules.