Capa de interfaz de las apps de AGCS: tokens, reglas y primitivos de marca
Read README.md, then docs/color.md, docs/grid.md and ux-rules.md. This system is for screens. The brand lives in agcs-design-system (Claude Design: "AGCS · Decks y documentos") and still governs voice, the mark, the icon library and the fonts; this one adds what an app needs and a deck does not.
Before writing any copy, read writing.md in agcs-design-system: it is the single voice standard for everything AGCS ships, apps included.
Before changing any color or grid value, run node tools/check-palette.mjs. If it fails, the change does not go in.
tokens/colors.css roles, never raw hex in components: --surface, --ink, --ink-2, --ink-3, --rule, --highlight, --state-*, --text-*, --series-*. Grays are the ten gray-* steps; Tailwind's slate, zinc, neutral and stone are out.#A7D7B5 with black text and an ink outline. En riesgo: amber #FFB800 with black text. Guardrail cruzado: red fill #E31A22 with white text (4.7:1, APCA 76). Positive green is a functional state color, never a chart series or decoration. Amber replaces the brand's #FFFF00 in apps only, because the yellow and the lime look alike.#8E1116, blue #05699F. On black: the brand red #ED1C24 and blue #00A1F1. Everything else is ink, links included. Links are ink and always underlined, with the agcs-link class from ui/link.css (Max, 2026-10-15): on hover and focus, a lime band behind the line of text with black text on light, and lime text with no band on dark. A button that looks like a link uses the same class. Links are never blue.--chart-rest), one datum in lime with a black edge. To compare series (countries, areas), use the seven series colors in fixed order; past seven, "Otros" in gray. A chart of series never carries state colors. Axis from zero, no pie or donut.src/series.js: CUSTOMIZABLE_KINDS, checkChoice()). The color follows the entity across every chart. Lime, amber and red are never offered. The theme is fixed to AGCS; High contrast is validated and kept, not offered..agcs-grid, 16px, 1px) goes on four places only: module entry headers, empty states, diagram canvases, and bar charts where the grid is the scale (alignedBars() in src/grid-chart.js). Tables, text, forms and other charts are flat. Data is never rounded to land on a line.ui/link.css instead.ui/disclosure.jsx (with ui/disclosure.css); apps build none of their own. Menu (anchored, closes on outside click, Escape, Tab out or choosing an item) is only for links and account actions: the account and workspace menu and the mobile bar menu. Everything else is a Disclosure that opens in the page flow and closes only on its button, including a list inside a menu. Never a popup or modal for content (management AGENTS.md).tokens/colors.css, tokens/shadcn.css, tokens/tailwind-v4.css, tokens/tailwind-v3.cjs, tokens/grid.css, tokens/fonts.csssrc/palette.js, src/series.js, src/grid-chart.js, src/color-math.jstools/check-palette.mjs -- the tests every change passesdocs/color.md, docs/grid.md, ux-rules.mdui/ -- brand primitives apps copy into src/components/brand/; ui/disclosure.jsx + ui/disclosure.css is the menu and disclosure, and ui/link.css the text links, copied as istests/ -- npm test runs the menu and disclosure with React 18 and 19, and checks the rules of ui/disclosure.css and ui/link.csspreview/ -- the Design System cardsreference/paleta-dashboards.html, reference/grid-apps.html, reference/menu-disclosure.html, reference/links.html -- the pages the decisions were made on