Build and refactor UI in this repo using Chakra UI v2 + Emotion and the repo theme (`app/theme.ts`). Use for Chakra component usage, responsive layout, a11y, theme tokens/semanticTokens, component variants, and UI polish.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Build and refactor UI in this repo using Chakra UI v2 + Emotion and the repo theme (`app/theme.ts`). Use for Chakra component usage, responsive layout, a11y, theme tokens/semanticTokens, component variants, and UI polish.
Chakra Design System (Stacked Poker)
First steps (always)
Read the repo rules: .cursor/rules/frontend-guidelines.mdc.
Check the theme: app/theme.ts (colors, semantic tokens, breakpoints, shadows, variants).
Find the closest existing component under app/components/ and follow its patterns.
Preferred patterns in this repo
Use Chakra props over ad-hoc CSS when possible; use sx for complex selectors/media queries.
Prefer semantic tokens (text.primary, bg.navbar, input.lightGray, etc) over hardcoded colors.
Prefer colors.brand.* for brand colors (navy/pink/green/yellow).
Use responsive props or Chakra breakpoint helpers; keep portrait/landscape styling in sx only when needed.
Use useReducedMotion() for motion-heavy UI and provide a non-animated fallback.
NEVER modify a shared semantic token in theme.ts to style a specific component. Semantic tokens are app-wide. For component-specific dark-mode overrides, use _dark={{ color: '...' }} or useColorModeValue() directly on that component. See references/theme-and-tokens.md for details.
Documentation sources (don’t paste full docs)
Use the Chakra MCP server (see .cursor/mcp.json) for component docs and props.