Skip to content
OAIT Design System

Design system

AI agents

Paste one prompt into an AI coding agent (Codex, Claude Code, Cursor, Copilot, Gemini CLI) opened on a repository, and the agent brings that repository in line with this design system: tokens, components, the one header and footer, the sign-in page, content, accessibility, and languages. It works on websites, web apps, and mobile apps.

The prompt

Copy it as it is. The agent downloads the specification itself; if it has no network access, download the file below and commit it to the repository root first.

You are working in this repository. Your task: make its interface conform exactly to the OAIT Design System, the brand guidelines and design system of the Office of AI Transformation at Global University.

1. GET THE SPECIFICATION
- If the file oait-design-system.agent.json is already in this repository, use it.
- Otherwise download https://oait.app/design-system/downloads/oait-design-system.agent.json and save it at the repository root under that name. It is about 2.4 MB: save it with a command (curl or wget), never print it.
- If you cannot reach the network, stop and ask me to add the file to the repository root.
- Tell me the "version" you are working from.

2. READ BEFORE YOU CHANGE ANYTHING
- Read these sections of the file in full: "how_to_use_this_file", "strict", "agent_brief", "rules", "site_chrome", "setup", and "apply_steps". For a mobile app (Flutter, React Native, Expo, Android, iOS, or a web shell such as Capacitor) read "apps" and follow "apps.apply_steps" instead.
- Look values and recipes up in "tokens", "components", "page_patterns", "content", "accessibility", and "languages" as you work. Never guess a value.
- Do not load the "files" or "files_apps" sections into your context. Write their entries to disk with a short script, as apply step 2 describes.

3. THE FILE IS THE SPECIFICATION
- Where this repository's styles, components, or conventions differ from the file, the file wins and the repository changes. Do not blend the two or keep an old look because it is already built.
- Never invent a color, size, radius, shadow, duration, breakpoint, type style, font, or icon. Use only what the file defines.
- Use the one header, the one footer, and the one sign-in page of "site_chrome" exactly as specified. Fill only the slots listed under "product_chooses".
- Where the file is silent, follow its closest component or pattern and list the assumption in your report.

4. HOW TO WORK
- Start with step 1 of "apply_steps": survey the repository and tell me, in a short plan, which stack you found, which screens and components you will change, and anything you cannot make conform. Then carry on without waiting, unless you found a blocker.
- Follow the steps in order. Change presentation only: markup, styles, copy, accessibility, and languages. Do not change business logic, data models, API calls, routes, authentication, analytics, environment files, or secrets.
- Add no dependency the "setup" section does not name. Keep the project's own linter, type checker, and tests passing.
- Work on a new branch, in small commits with clear messages. Do not push, merge, or deploy unless I ask.

5. VERIFY
- Run the commands in "checks" that this repository can run, and the project's own build and tests. Fix every failure and run them again.
- Check each list named "acceptance", "strict.done_means", and "checks.manual" item by item, in light and dark (where the product ships dark), in English and Arabic (right to left) where the product has them, at 390px and 1440px.

6. REPORT
- End with the report "strict.report" describes: what changed per screen, each check command with its real result, a "Not done" list with reasons, and your assumptions. Do not say the work is done while an item is on the "Not done" list without saying so.

Human-readable guidelines, for reference only (the JSON file is the authority): https://oait.app/design-system

The specification

oait-design-system.agent.json (version 2.1.0, about 2,488 KB) holds every rule, token, component recipe, page pattern, and check, plus the stylesheets themselves, in one file an agent can read. It is generated from the same source as these pages, so the two never disagree.

Keep later work consistent

After the first pass, add this block to the repository's AGENTS.md or CLAUDE.md, so every later change follows the same rules.

# 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.

Downloads

Tips

  • For a large product, add a scope line at the end of the prompt, such as "Start with the header, the footer, and the sign-in page only."
  • To approve the scope first, add "Stop after the plan and wait for me."
  • Ask for the report the prompt describes, and read its "Not done" list before you merge.