agentleFS
raycanvas-airaycanvas-ai/paneloui/AGENTS.md

paneloui

AGENTS.md49 starsChanged 7 days agoMITView on GitHub

Panelo's design rules for coding agents. This project uses Panelo (React + Tailwind CSS v4, source-owned components under components/). These rules always apply when writing UI code. MCP tools are on demand; these rules are not optional context.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,040 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository8 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before hand-building any UI element, check for an installed Panelo component under components/base/ and components/application/, and prefer …

    line 16
  2. Very specific:

    Import through the @/ alias, e.g.

    line 18
  3. Very specific:

    Never use raw palette classes (text-gray-500, bg-white, border-neutral-200) or hex/oklch literals.

    line 22
  4. Very specific:

    Use Panelo's composite type utilities: text-title-1-medium, text-title-2-medium, text-title-3-semibold, text-headline-medium, …

    line 32
  5. Very specific:

    Never rebuild type by stacking text-sm font-medium leading-5.

    line 33
  6. Very specific:

    When unsure about a token or a component's API, read the component's source under components/ and the tokens in styles/theme.css.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Panelo's design rules for coding agents.

Free vs pro code (this repo)

  • Pro blocks (every tier: "pro" entry in components/application/docs/components-index.ts) live in components/panelo/pro/, which is gitignored and never pushed. New pro blocks go there too.
  • Free code never imports a path inside pro/. It goes through @pro only (PRO_LOADERS, PRO_PARTS, HAS_PRO), which falls back to components/panelo/pro-fallback.ts so a fresh clone still builds. Pro code may import free code.
  • A free catalogue entry (e.g. the charts in components/panelo/blocks/charts/) must not live in or read from pro/.
<!-- panelo:rules:start -->

Panelo design rules

This project uses Panelo (React + Tailwind CSS v4, source-owned components under components/). These rules always apply when writing UI code. MCP tools are on demand; these rules are not optional context.

Components first

  • Before hand-building any UI element, check for an installed Panelo component under components/base/ and components/application/, and prefer it.
  • Missing a component? Install it (npx shadcn@latest add @panelo/<name>) instead of writing a lookalike.
  • Import through the @/ alias, e.g. import { Button } from "@/components/base/buttons/button".

Color: semantic tokens only

  • Never use raw palette classes (text-gray-500, bg-white, border-neutral-200) or hex/oklch literals. Every color rides a Panelo semantic token, which also makes dark mode automatic.
  • Text: text-text-primary, text-text-secondary, text-text-tertiary, text-text-placeholder, errors text-text-error-primary.
  • Surfaces: bg-background-primary-default, bg-background-secondary-default / -hover, bg-background-tertiary-default, page ground bg-background-full.
  • Borders: border-border-button-default / -hover, hairlines border-separator-border, tables border-border-table, errors border-border-error-default.
  • Icons: text-foreground-icon-primary through text-foreground-icon-quaternary.
  • Charts: the chart-1 … chart-5 tokens (plus -active variants). CTAs and selection states: the accent-50 … accent-950 ramp.
  • Dark mode flips tokens via the .dark class on <html>. Do not write dark: overrides with raw colors; if a token pair looks wrong in dark mode, pick a different token, not a literal.

Typography: composite utilities only

  • Use Panelo's composite type utilities: text-title-1-medium, text-title-2-medium, text-title-3-semibold, text-headline-medium, text-body-medium, text-body-regular, text-body-2-*, text-caption-1-semibold, and friends. Each sets size, weight, line-height, and letter-spacing together.
  • Never rebuild type by stacking text-sm font-medium leading-5; if a style seems missing, look in styles/typography.css before inventing one.

Spacing and shape

  • Stay on Tailwind's spacing scale (gap-2, p-4, mt-6); prefer flex/grid gap over per-child margins. Arbitrary values (p-[13px]) only when matching an existing Panelo component exactly.
  • Cards and panels: rounded-3xl with border-border-button-default. Inputs and menu rows: rounded-md to rounded-xl. Pills: rounded-full.

Mechanics

  • Direction: wrap the app (or a mixed-language region) in DirectionProvider from @/components/foundations/direction/direction, with an explicit BCP 47 locale (ar, he, en-US, zh-CN). Set matching lang and dir on <html> for full-app RTL. CSS dir alone does not configure React Aria keyboard navigation or portal placement. Use useDirection() for custom interactions and put its value on custom portal roots.
  • Use logical styles: ms/me, ps/pe, start/end, text-start/text-end, border-s/border-e, rounded-s/rounded-e, and inline logical CSS properties. Mirror navigation/disclosure glyphs and horizontal drawer motion in RTL. Preserve physical coordinates for measured geometry, charts, canvas, and decorative art. Keep code, OTP digits, email addresses and URLs in explicit LTR regions; isolate mixed text with <bdi> or dir="auto". Translating labels and formatting application data is separate from layout direction. See https://www.panelo.com/rtl.
  • Internal vertical scroll regions must soften the top edge with a progressive blur and surface fade once scrolled, rather than sharply clipping content. Keep headers outside the scroll region. Use a stationary, pointer-events-none, aria-hidden overlay in a relative wrapper: a 24px masked 1px backdrop blur, a 16px masked 4px backdrop blur, and a gradient from the enclosing semantic surface token to transparent. Ramp each layer's opacity from 0 to 1 over the first 24px of scrolling; keep it invisible at scrollTop 0. Apply opacity to the individual layers, never the overlay parent (a translucent parent creates a backdrop root and can break blur at normal browser zoom). Verify top/reset, overflow, light/dark mode, and 100% zoom; preserve keyboard scrolling and do not blur the whole content area.
  • Merge classes with cx() from @/utils/cx (tailwind-merge aware of Panelo's composite text styles). No string concatenation, no plain clsx.
  • Icons come from @remixicon/react, passed as component references (leadingIcon={RiAddLine}), not rendered elements.
  • Form components build on react-aria-components; extend the installed Panelo form components rather than raw <input>/<select>.
  • Focus states: outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring.

When unsure about a token or a component's API, read the component's source under components/ and the tokens in styles/theme.css.

<!-- panelo:rules:end --><!-- BEGIN:nextjs-agent-rules -->

This is NOT the Next.js you know

This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ (resolved from this file's directory; in monorepos the next package may not be visible from the repo root) before writing any code. Heed deprecation notices.

This block is written and re-added by next dev — verify at node_modules/next/dist/server/lib/generate-agent-files.js. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.

<!-- END:nextjs-agent-rules -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.