# Paste this block into your product's AGENTS.md, CLAUDE.md, .cursorrules, or the project instructions of v0, Lovable, or Bolt. Replace `docs/design-system` with the path to the package in your repository.

## Design system (OAIT Design System 2.1.0)

This product is part of the OAIT family (Global University, Beirut). Every interface follows the OAIT Design System.

- Before writing or changing any UI, read `docs/design-system/DESIGN.md` in full. It holds the rules, the setup, the tokens, and a recipe for every component. Component details: `docs/design-system/components/<name>.md`; page structure: `docs/design-system/patterns/`.
- Styles come from `docs/design-system/tokens/tailwind.css` with `reference/css/base.css` in `layer(base)` (Tailwind v4; shadcn/ui adds `tokens/shadcn.css` after `tailwind.css`), or from `tokens/oait.css` plus `reference/oait-ui.css` (plain CSS). Never add colors, sizes, radii, shadows, durations, or z-index values of your own.
- Orange is a fill: `bg-primary` with `text-on-primary`. Orange text is `text-primary-ink`. Never <code>text-primary</code>, never a hex value, never a Tailwind palette color.
- One header, one footer, one sign-in page (D-CSN-51 to 57, D-BCP-41 to 43): use the family's as they are, from `site_chrome` in `oait-design-system.agent.json` or the component pages. Header: lock-up; navigation (from 1280px with four or five links); then the language switcher (an icon in a header: 48px, `translate`, its words kept for screen readers), the theme toggle (a 48px `dark_mode` icon button named "Dark theme", only in a product that ships a dark theme), the sign-in pair (the text button "Sign in", then Sign in with Global ID as its circle, 48px with no stroke; signed in, the account button in place of both), and the menu button. No call to action in a header. Footer: brand zone; one or two product link groups; the Platforms group with every family product; the legal bar opening with "Powered by OAIT at Global University" (links to oait.app and gu.edu.lb, no © line) and ending with the language switcher and, where the product ships a dark theme, the theme button, both as full buttons with labels (icons in the header, full buttons in the footer); below 640px the bar is centered, the endorsement takes its own line, and the rest follows on the line below. Sign-in page: the same card and order on every product: "Sign in", email (placeholder "name@gu.edu.lb"), password (placeholder "Your password"), "Forgot your password?", the filled "Sign in", Sign in with Global ID directly under it, "Create account"; no "or" divider; mobile first, no vertical scroll in a window 640px tall or more. Four grades of one color: the page is `surface`; the header and the footer are `surface-container`; the Platforms panel is `surface-container-high`, rounded, in two columns from 640px; the footer's legal bar is `surface-container-highest`. Scrollbars come from the base layer: never restyle them. Fill the slots; never reorder, restyle, or add to them.
- One portal shell (D-CSN-58, D-BCP-44): an admin console or any staff back end uses the console shell and its six page types (overview, directory, record, create form, review queue, platform settings), from `portal` in `oait-design-system.agent.json` or `patterns/admin-console.md`. Bar and drawer on `surface-container`, the page a `surface` sheet, "Overview" first in the drawer, one filled button per page.
- One filled primary button per view. Hover and press are state layers, not new colors. Nothing lifts or scales.
- Keep the one focus ring from the base layer; never remove it. Every control is at least 48×48px.
- Never write `dark:` color variants or `prefers-color-scheme` queries: the tokens switch themes.
- English, Arabic (RTL), and French: logical properties only (<code>ms-*</code>, <code>pe-*</code>, <code>start-*</code>, `text-start`), mirrored directional icons, product names in `<bdi translate="no">`, Western digits.
- Icons: Material Symbols Rounded only (no Lucide, no emoji). Fonts: self-hosted Roboto Flex, Inter (headings only, through `--font-heading`, which the base layer sets on `h1` to `h6`), Noto Kufi Arabic, and Roboto Mono. Never host or bundle San Francisco.
- Copy: sentence case, US spelling, verb-first labels from the glossary in DESIGN.md, no exclamation marks, "face or fingerprint" before "passkey".
- Motion: short fades for state changes, and only the moves the component pages give (dialog, sheet, and menu entrances, chevron turns, the ID card flip); anything that moves by itself for more than 5 seconds gets a Pause control; respect reduced motion.
- Native elements first: `<button>` for actions, `<a href>` for navigation, real form controls, and `<dialog>` with `showModal()` for modals (Radix Dialog in React).
- Mobile apps (native iOS or Android, Flutter, React Native, or a shell): read DESIGN.md section 13 as well. Use the generated token files of `docs/design-system/tokens/native/` for the stack, bundle the fonts of `assets/fonts/`, keep text scaling on, keep 48-unit targets, use start and end, and leave system UI (permission prompts, the passkey sheet, pickers) unstyled. In Material themes the `primary` slot holds `primaryInk`: set the orange fill explicitly on the main button.
- Before you finish, run the checks in DESIGN.md section 10 (`tools/csslint.cjs`, `tools/twcheck.mjs`, `tools/audit-page.cjs`) and fix every failure.
- If a case is not covered, follow the closest component page and say what you assumed. Do not invent a new pattern.
