agcs-ui

Capa de interfaz de las apps de AGCS: tokens, reglas y primitivos de marca

AGCS-Studio-Lab
作者 AGCS-Studio-Lab
其他 · HTML · 更新时间: 2 weeks ago
0
星标
0
Forks
社区
BBB
安全:
优秀
A
质量:

name: agcs-ui description: Use this skill to build product app UI for AGCS | Studio + Lab (agcs-management-system, agcs-dris-system and later apps) -- dashboards, tables, forms, empty states and charts. Contains the app color system, the grid rules for screens, the UX rules and the vendored brand primitives. For decks, handbooks and documents use the AGCS brand design system (agcs-design-system) instead. user-invocable: true

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.

Hard rules (do not violate)

  1. Colors come from 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.
  2. Lime: one per group, three per screen at most. A group reads on its own: the menu, a chart, a table. The content's lime is the main focus; the menu's active item and the current selection are secondary. Every screen has at least one. Every lime carries a black mark (edge or stripe): on white the lime is 1.2:1 and disappears in grayscale, print and tritanopia. The primary button is black.
  3. States are label-driven. On-track: positive green #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.
  4. Colored text is only for errors and system messages. On white: red #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.
  5. Charts default to emphasis: everything gray (--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.
  6. Users may recolor only countries and areas, and only with the seven series colors (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.
  7. The construction grid (.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.
  8. Zero radius, zero shadow. Hierarchy from space, ground inversion and hairlines. Hover is opacity 0.7 or ground inversion; text links use the lime of ui/link.css instead.
  9. Icons: the AGCS library for concepts; Lucide at 1.5px in ink for functional icons the library does not draw (Max, 2026-09-09). No emoji anywhere.
  10. Every toggle comes from 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).

Key files

🔓 登录解锁更多
使用 GitHub 登录