One design language for every SPM screen
This page holds every UI component SPM needs, each with a live demo, when to use it, and the code to copy. The look and feel is mytts.sa: a dark glass surface, purple-to-magenta gradients, pill controls and Tajawal. Use the switches at the top to see every demo in Arabic RTL and English LTR, and in each theme.
Components use semantic utilities (bg-surface, text-fg-muted, bg-primary-gradient). A theme only redefines the variables.
Logical utilities only (ms-* pe-* start-* text-start). Directional icons mirror automatically.
Simple elements use these classes directly in Vue templates; complex widgets are Vuetify 4, themed with the same tokens (pm/decisions/SPM-ADR-0002).
Recommended Saudi design system
The owner asked for a recommendation for the best Saudi-style design system. Two sources were checked on 2026-12-01: the DGA Platforms Code design system (design.dga.gov.sa, the official one for Saudi government platforms; its values were read from its live stylesheet) and the mytts.sa brand, which the owner chose as SPM's look and feel.
| Aspect | DGA Platforms Code | mytts.sa | SPM decision (recommended) |
|---|---|---|---|
| Purpose | Mandatory style for government platforms | Brand of the product owner | mytts look and feel by default; SPM sells to non-profits, where DGA compliance is not required |
| Primary colour | SA-flag green #1b8354, gold #dba102, lavender #80519f | Purple #480689, magenta #d4088c, violet #860bf4, pink #f853bc | mytts colours. Green stays out of the brand so it never competes with "on track" status green |
| Surface | Light, white cards | Dark #0e011a, glass cards | Dark glass by default; a mytts light theme for dense tables, long data entry and printed reports |
| Typography | IBM Plex Sans Arabic | Tajawal | Tajawal, with IBM Plex Sans Arabic as the fallback |
| Shape | 4px controls, 16px cards, 40px tall | Pills (64px), 20px cards, 28–80px panels | mytts shapes; 44px control height for touch |
| Neutrals, status, accessibility | Complete neutral scale, contrast-checked success/warning/error/info, focus rules | Not defined (marketing site) | Take from DGA: status colours, neutral scale, focus ring, 4px spacing grid, component anatomy |
| Government tenants | Required | - | The DGA theme is ready: a tenant switches theme without any component change |
#d4088c for links, which is only 3.3:1 on the dark background. On dark, link and accent text uses pink #f853bc (6.9:1). Magenta stays for fills and gradients.User themes
Each user picks a theme in their profile (owner's decision, 2026-12-01). The tenant administrator sets the default and may limit the list; for example, a government tenant can offer only DGA. "Match system" follows the device's light or dark setting. The choice is saved on the user's profile, so it follows them to any device, and the server renders it on first paint, so the page never flashes. Picking a card below re-themes this whole page and is remembered.
Colour
Swatches below read the live theme variables, so they change with the Theme switch. Use the semantic name in code, never the hex value.
Gradients
bg-primary-gradient
Primary buttons, active states, progress
bg-card-gradient
Glass cards
bg-soft-gradient
Secondary buttons
bg-shell-gradient
Top bar and side navigation
highlight for "amber" status, or brand purple for "good". Readers must never have to guess whether a colour is brand or meaning.Typography
Tajawal for Arabic and Latin text (weights 300–800); KPI figures use tabular numerals (num) so columns line up. Western digits by default; Arabic-Indic digits are a tenant setting.
Strategy in motion
Executive dashboard
Strategic pillars
Key performance indicators
Strategic performance shows what the organisation achieved. Execution progress shows what it delivered. They are always shown apart.
Updated 2 hours ago · Approved by the strategy office
84.6%
Spacing, radius and surfaces
Spacing follows a 4px grid (Tailwind's default scale). Radii are tokens, so the DGA theme turns pills into 4px corners without touching markup.
rounded-controlbuttons, inputs, chipsrounded-menumenus, alerts, popoversrounded-cardcards, tilesrounded-paneldialogs, panelsrounded-t-sectionpage sectionsSurfaces
Glass card: border-line, a gradient wash, a light blur. The default container.
Larger radius and padding. Forms, filters, dialogs.
Opaque. Menus and overlays above content, where glass would hurt legibility.
Icons
Line icons at a 1.5 stroke (lucide-vue-next in the app; inline SVG here). Add flip to directional icons (arrows, chevrons, "next"), and they mirror in RTL. Never mirror icons with a meaning of their own, such as check, clock or search.
RTL rules
ms-4 me-2 ps-4 pe-2 start-0 end-0 text-start border-s rounded-s. They flip with dir.ml- mr- pl- pr- left- right- text-left text-right. They break the Arabic layout.dir and lang on <html> from the user's language. Use the rtl: variant only for real exceptions (a slider thumb's travel, for example).KPI-014. Wrap them in dir="ltr" when embedded in Arabic text.Buttons
One primary action per view. Use secondary for the main alternative, outline or ghost for low emphasis, and danger only for destructive or irreversible actions. Labels are verbs: "Approve", "Submit value".
Form fields
Every field has a visible label. Help text goes under the field, and errors replace the help text with what to fix. Validate when the user leaves a field and on submit, never on each keystroke. Required fields are marked; optional ones are not.
Selection controls
Checkbox for independent options, radio for one choice from a few, switch for a setting that applies immediately, and the segmented control (mytts' section switcher) for changing a view.
Badges and status
RAG status (BRD §6.7) always pairs colour with an icon and a word. Workflow states (BRD §11) use one fixed badge per state across the product.
Alerts and toasts
Alerts stay in the page for conditions the user must know about. Toasts confirm a completed action and disappear after 5 seconds; never put an action that matters only in a toast.
Progress, loading and empty states
Link an indicator to this objective so its performance can be measured.
Navigation
Breadcrumbs show where a record sits in the strategy chain. Use tabs for sibling views of one record, a stepper for the strategy wizard (SCR-05), and pagination for long tables.
- Definition
- Pillars and objectives
- 3KPIs and OKRs
- 4Initiatives
- 5Review and submit
Cards and KPI tiles
The KPI card answers four questions at a glance: how well, against what, how fresh, and approved or not. Strategic performance and execution progress are separate figures, always labelled (BRD §6.4).
Strategic performance
65%
+5.2 pts on last quarter
Execution progress
100%
18 initiatives delivered · impact not yet achieved
Indicators met
32 / 40
8 need follow-up
Critical risks
03
Need a decision
Beneficiaries employed after training
Actual
255
Target
300
Baseline
180
Achievement
85%
Data table
Every list of records has filters, sorting and pagination, always (owner's rule). In the app, all three run on the server (Vuetify v-data-table-server, whitelisted filters and sorts) and their state lives in the URL; this demo filters in the browser only to show the pattern. Numbers align to the end, text to the start. Wide tables scroll inside their card; the page never scrolls sideways.
| Status | |||
|---|---|---|---|
| Beneficiaries employed | Programs department | 85% | At risk |
| Donor retention rate | Finance department | 104% | On track |
| Volunteer hours | Community department | 61% | Off track |
| Operating cost ratio | Finance department | 97% | On track |
No indicators match these filters.
Timeline, accordion and avatars
Approved by Strategy Office · Q4 value 255
2026-11-30 14:02
Returned evidence missing for October
2026-11-28 09:15
Submitted by the KPI owner
2026-11-27 16:40
How is achievement calculated?
Actual divided by target for increasing KPIs, capped as configured by the strategy office.
Who can approve values?
Anyone with approval authority for the unit, except the person who submitted the value.
Dialog, drawer, menu and tooltip
The dialog confirms decisions that change official records (MOD-08). The drawer shows a record's details without leaving the list (MOD-01). Menus hold secondary actions, and tooltips only explain; they never hold essential information.
App shell
The product frame: the shell gradient for the side navigation and the top bar, content on the page background. The side navigation sits at the start edge (right in Arabic). Shown at reduced scale.
Executive dashboard
Strategic performance
84.6%
Execution progress
91.2%
Indicators met
32/40
Critical risks
03
Strategy house and strategy map
The strategy house (SCR-02) reads top to bottom: vision, pillars, enablers. A pillar shows its own performance score and colour. A strategy map node (SCR-04) is a compact card with the same status language.
Vision
A self-reliant community with dignified livelihoods
Social impact
92%
Financial sustainability
76%
Institutional excellence
88%
Digital transformation
64%
Improve beneficiaries' financial independence
Beneficiaries employed after training
Charts
In the app, charts are Apache ECharts (vue-echarts) styled with these tokens. Rules: performance and execution are two series with a legend; RAG colours only for status; label values directly; time runs left to right even in Arabic; every chart has a table view.
Risk heatmap
5 × 5 likelihood × impact (ISO 31000). Cells show the count of risks; colour encodes the score band, and the number keeps it readable without colour.
Impact → · Likelihood ↑
Approval inbox
An approval item (SCR-13) shows what is asked, by whom, how long it has waited and the SLA, with the decision buttons in reach. Self-submitted items show why they can't be approved.
KPI value · Beneficiaries employed · Q4
Submitted by Programs department · 2 days ago · SLA 3 days
Change request · Strategy v3 targets
You submitted this request, so another approver must decide.
Usage rules
@theme first.Sources: mytts.sa (live page and stylesheet, read 2026-12-01); DGA Platforms Code design system, design.dga.gov.sa (live stylesheet, read 2026-12-01); BRD v1.1 sections cited inline. Tokens: docs/design/design-system.md.