> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/compliance/dga.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# DGA design system

The DGA Unified Design System and Platforms Code in Mutamad.

Mutamad implements the **DGA Unified Design System** and **Platforms Code**: every component of DGA's Figma library, and DGA's page templates, audited page by page.

## How it was built

DGA's own implementation, `@platformscode/core` (MIT), is the source of truth for values. Each component is rebuilt as a **server-rendered Drupal component** in `mutamad_theme`, with DGA's colours, sizes, radius, shadows and texts as design tokens — not by loading DGA's web components, which render only in the browser, bring a second design system beside Bootstrap, and could not run under the strict Content Security Policy.

| DGA asset                       | In Mutamad                                                                        |
| ------------------------------- | --------------------------------------------------------------------------------- |
| Colours, sizes, radius, shadows | Tokens in the theme's `scss/_variables.scss`                                      |
| Typeface                        | IBM Plex Sans Arabic, served by the site                                          |
| Icons                           | Hugeicons Free (MIT): DGA's icons are Hugeicons' stroke set                       |
| Components                      | Every Figma component; checked against all 82 components of `@platformscode/core` |
| Page templates                  | See below                                                                         |

## Page templates

| DGA template     | Mutamad                                     |
| ---------------- | ------------------------------------------- |
| Home Page        | The home page, in DGA's section order       |
| About the Entity | `/about` and five pages                     |
| Service Page     | The Service content type                    |
| FAQ              | `/faq`                                      |
| Life Journeys    | Optional content type                       |
| e-Participation  | Hub, policy, optional e-Consultations       |
| Contact Us       | The Contact form                            |
| Help & Support   | `/help`                                     |
| Site Map         | `/sitemap`                                  |
| Page Not Found   | `/page-not-found`, with a real 404 status   |
| Cookies Banner   | The consent notice                          |
| Chatbot          | Optional AI chatbot                         |
| Rating Section   | *Was this page useful?* and service ratings |

## The Digital Stamp

DGA's Digital Stamp is shown on every page, above the header, in the page's language. Its registration number, link and domain are set once in the theme settings, for every page and both languages. Until set, it says the site is a demo.

## Accessibility

* WCAG 2.1 AA, tested with axe on every component story and on the Arabic and English pages in CI
* Keyboard-reachable everything; visible focus
* Links distinguished by more than colour
* Charts drawn as SVG with text alternatives, readable without JavaScript
* Accessibility Tools in the footer: text size and high contrast through the page's colours, not a filter
* The editor's accessibility checker (Editoria11y) flags issues while writing; the App Admin sees a site-wide report

## Where Mutamad departs from DGA, and why

| DGA                              | Mutamad                                         | Why                                                        |
| -------------------------------- | ----------------------------------------------- | ---------------------------------------------------------- |
| Partners' logos on the home page | The standards Mutamad aligns with, as text      | Naming NCA or DGA as partners would claim an endorsement   |
| Chart greens                     | DGA's green first, then lavender, gold and blue | DGA's four greens are too alike for colour-blind readers   |
| Voice search                     | Left out                                        | The browser sends recordings to its maker's servers (PDPL) |
| Charts by ApexCharts             | Drawn on the server                             | No JavaScript, no CDN, printable                           |
| Cookie banner sample text        | A text true to the site                         | DGA's sample treats browsing as consent                    |

## Checks

104 `mutamad-verify` checks are tagged DGA: components in the library, page templates, the Digital Stamp, menus marking the active section, the consent banner, and more.
