S SPM UI Kitmytts.sa look and feel · Tailwind v4
Version 0.1 · 2026-12-01

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.

Tokens, not hex codes

Components use semantic utilities (bg-surface, text-fg-muted, bg-primary-gradient). A theme only redefines the variables.

RTL first

Logical utilities only (ms-* pe-* start-* text-start). Directional icons mirror automatically.

Vue 3 + Vuetify ready

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.

AspectDGA Platforms Codemytts.saSPM decision (recommended)
PurposeMandatory style for government platformsBrand of the product ownermytts look and feel by default; SPM sells to non-profits, where DGA compliance is not required
Primary colourSA-flag green #1b8354, gold #dba102, lavender #80519fPurple #480689, magenta #d4088c, violet #860bf4, pink #f853bcmytts colours. Green stays out of the brand so it never competes with "on track" status green
SurfaceLight, white cardsDark #0e011a, glass cardsDark glass by default; a mytts light theme for dense tables, long data entry and printed reports
TypographyIBM Plex Sans ArabicTajawalTajawal, with IBM Plex Sans Arabic as the fallback
Shape4px controls, 16px cards, 40px tallPills (64px), 20px cards, 28–80px panelsmytts shapes; 44px control height for touch
Neutrals, status, accessibilityComplete neutral scale, contrast-checked success/warning/error/info, focus rulesNot defined (marketing site)Take from DGA: status colours, neutral scale, focus ring, 4px spacing grid, component anatomy
Government tenantsRequired-The DGA theme is ready: a tenant switches theme without any component change
Recommendation: mytts look and feel on top of DGA's foundations (status colours, neutrals, accessibility and component anatomy), with themes as a per-tenant setting. This gives SPM a distinctive brand today and a compliant DGA skin for government clients later (the study's §1 expansion path).
Accessibility adjustment: mytts uses magenta #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.

Appearance

Saved to your profile. Your administrator chooses which themes are available.

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

Status colours (success, warning, danger, info) mean RAG and workflow state only, and always appear with an icon or a label.
Don't use gold 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.

Display · text-5xl font-extrabold

Strategy in motion

H1 · text-4xl font-bold

Executive dashboard

H2 · text-2xl font-bold

Strategic pillars

H3 · text-lg font-bold

Key performance indicators

Body · text-base text-fg-muted

Strategic performance shows what the organisation achieved. Execution progress shows what it delivered. They are always shown apart.

Caption · text-xs text-fg-subtle

Updated 2 hours ago · Approved by the strategy office

KPI figure · text-5xl font-light num

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, chips
rounded-menumenus, alerts, popovers
rounded-cardcards, tiles
rounded-paneldialogs, panels
rounded-t-sectionpage sections

Surfaces

.card

Glass card: border-line, a gradient wash, a light blur. The default container.

.panel

Larger radius and padding. Forms, filters, dialogs.

bg-surface-solid

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

Do use logical utilities: ms-4 me-2 ps-4 pe-2 start-0 end-0 text-start border-s rounded-s. They flip with dir.
Don't use ml- mr- pl- pr- left- right- text-left text-right. They break the Arabic layout.
Do set 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).
Don't mirror numbers, charts' time axes, phone numbers, code or Latin identifiers such as 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.

Shown on the strategy house and reports.

people

Target must be above the baseline (320) for an increasing KPI.

Approved versions can't be edited. Raise a change request.

Evidence

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.

Frameworks in use
Polarity

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.

On track At risk Off track No data
Draft Submitted Under review Approved Returned Rejected Locked
KPI-014 New 3 pending

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.

The Q4 measurement window opens on 1 January.
Strategy version 3 was approved and published.

Progress, loading and empty states

Execution progress72%
Data coverage38 / 40
Recalculating…
No indicators yet

Link an indicator to this objective so its performance can be measured.

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.

  1. Definition
  2. Pillars and objectives
  3. 3KPIs and OKRs
  4. 4Initiatives
  5. 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

KPI-014

Beneficiaries employed after training

At risk

Actual

255

Target

300

Baseline

180

Achievement

85%

Q4 2026 · updated 2 days ago Approved 3 evidence files Trace to source

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.

4 results
Status
Beneficiaries employedPrograms department85%At risk
Donor retention rateFinance department104%On track
Volunteer hoursCommunity department61%Off track
Operating cost ratioFinance department97%On track
1–4 of 4

Timeline, accordion and avatars

  1. Approved by Strategy Office · Q4 value 255

    2026-11-30 14:02

  2. Returned evidence missing for October

    2026-11-28 09:15

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

س م ن +4 Strategy committee

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.

Polarity decides whether a higher actual is better or worse.

Approve this value?

KPI-014 · Q4 2026 · 255 people. Once approved the value is locked; corrections need a change request.

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.

Q4 2026 س

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%

Enablers: governance · people · technology · partnerships
OBJ-03

Improve beneficiaries' financial independence

KPI-014

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.

Performance vs execution by pillar Strategic performanceExecution progress
Indicator status
32 / 40
● 32● 5● 3

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

Due tomorrow

Change request · Strategy v3 targets

You submitted this request, so another approver must decide.

Under review

Usage rules

Every official number shows its period, freshness and approval state, and links to its source.
Never combine strategic performance and execution progress into one number or one bar.
Every string comes from the i18n file, in Arabic and English. Test every screen in both directions.
Never hard-code a colour, radius or font. Add a token to @theme first.
Contrast is at least 4.5:1 for text and 3:1 for icons and borders. Check both themes.
Don't put essential information only in colour, tooltips or toasts.
Use the mytts light theme where people read and type for long periods: big tables, data entry, print.
Don't build one-off controls in feature code. Extend this kit and update this page.

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.