MTCC design system
Styleguide
Tokens and components used across the site, in left-to-right and right-to-left. Every colour pair below was measured against WCAG 2.2 AA.
Colour
Tokens live in src/css/mtcc.css (@theme). Use the tailwind utilities (bg-navy, text-ink).
- navy
- ink
- night
- night-2
- mist
- mist-2
- blue
- blue-text
- cyan
- amber
- body
- muted
- success
- danger
Contrast audit (WCAG 2.2 AA: text 4.5:1, large text and UI graphics 3:1)
| Pair | Ratio | Result |
|---|---|---|
| ink on white | 19.04:1 | AA pass |
| body on white | 12.16:1 | AA pass |
| body on mist-2 | 11.13:1 | AA pass |
| muted (60% black) on white | 5.74:1 | AA pass |
| muted on mist | 5.56:1 | AA pass |
| muted on mist-2 | 5.59:1 | AA pass |
| navy on white | 12.59:1 | AA pass |
| navy on mist-2 | 11.52:1 | AA pass |
| white on navy | 12.59:1 | AA pass |
| blue on white (focus ring, graphics) | 4.83:1 | AA pass |
| blue-text on mist-2 | 5.43:1 | AA pass |
| white on blue | 4.83:1 | AA pass |
| cyan on navy | 8.88:1 | AA pass |
| cyan on night | 14.21:1 | AA pass |
| white 72% on navy (on-dark muted) | 7.19:1 | AA pass |
| white 72% on night | 10.33:1 | AA pass |
| white 86% on navy | 9.65:1 | AA pass |
| ink on amber | 11.98:1 | AA pass |
| danger on white | 6.54:1 | AA pass |
| danger on mist-2 | 5.98:1 | AA pass |
| success on white | 5.87:1 | AA pass |
| white on amber (never use) | 1.59:1 | Fails AA: fixed or banned |
| blue text on mist-2 (before fix; replaced by blue-text) | 4.42:1 | Fails AA: fixed or banned |
| navy 60% on white (sector hover, before fix; now 85%) | 3.91:1 | Fails AA: fixed or banned |
Type scale
Geist for Latin, Noto Sans Thaana for Dhivehi (no negative tracking, line height 1.7 or more).
Display hero clamp(40px, min(6vw, 8.2vh), 92px)
Display 1 clamp(44px, 6vw, 96px)
Display 2 clamp(28px, 2.7vw, 40px)
Section heading clamp(32px, 3.2vw, 48px)
Lede paragraph, 20px / 1.5. MTCC has served the Maldives since 1980.
Body copy, 18px / 1.6. Links in running text are underlined so they never rely on colour alone.
Eyebrow label
Spacing, layout and radii
Container 1440px, gutter clamp(24px, 4.44vw, 64px), section padding clamp(96px, 10vw, 224px). Breakpoints: sm 734, md 900, lg 1000, xl 1200, 2xl 1360.
8px base unit
24px card gap
64px max gutter
- Radius control 12px
- Radius panel 14px
- Radius card 20px
Buttons and links
All controls are at least 44px tall; focus shows a 3px ring (cyan on dark surfaces).
Text link inside a sentence: read the policy. Standalone link: Read more.
Chips and tags
partials/chip.html takes (list label url active).
- All
- Press release
- Projects
- Static label
In progress
Cards
News, document, person and project cards from partials/card-*.html. Each card is one link (stretched), headings are h3.
Annual report 2025 (PDF)
Audited financial statements and directors' report.
Sample Name
Board member
Alerts
partials/alert.html takes (list tone title body). Errors use role=alert, the rest role=status.
Information
Informational message with a next step.
Success
Your application was submitted.
Warning
This tender closes in two days.
Error
Please fix the highlighted fields.
Form fields
partials/form-field.html takes (list id label type name value hint error success required). Errors are linked with aria-describedby and start with a visible prefix.
Empty, loading and error states
Something went wrong
Try again
Tables
| Reference | Title | Closing | Status |
|---|---|---|---|
| T-2026-014 | Sample dredging works | 12 Dec 2026 | Open |
| T-2026-011 | Sample vessel maintenance | 30 Nov 2026 | Closing soon |
Content components (W5)
Listings, archives, schedules, investors, careers, projects and timeline components with inline sample data, in left-to-right and right-to-left.
Left-to-right
Filter chips and search (GET, no JS)
Archive card and document card (file type and size)
Schedule table (table on desktop, stacked cards under 640px)
| Route | Departs |
|---|---|
| Malé to Hulhumalé | 06:00 |
| Malé to Villimalé | 06:30 |
Share ribbon
Apply stepper (static)
Project status chips and percent bar
- Ongoing
- Physically completed
- Not started
- Idle
62%
Timeline row (excerpt lines break one per line)
2008
Merger of the two companies. First nationwide ferry network.
FAQ accordion
Who can use the portal?
Any registered customer can sign in with the account number on their bill.
Who can use the portal?
Any registered customer can sign in with the account number on their bill.
Right-to-left (Dhivehi sample text)
Filter chips and search (GET, no JS)
Archive card and document card (file type and size)
Schedule table (table on desktop, stacked cards under 640px)
| ރޫޓް | ފުރާ |
|---|---|
| މާލެ ން ހުޅުމާލެ | 06:00 |
| މާލެ ން ވިލިމާލެ | 06:30 |
Share ribbon
Apply stepper (static)
Project status chips and percent bar
- ކުރިއަށްދަނީ
- ނިމިފައި
- Not started
- Idle
62%
Timeline row (excerpt lines break one per line)
2008
ނަމޫނާ ފުރަތަމަ ސަތަރު. ނަމޫނާ ދެވަނަ ސަތަރު.
FAQ accordion
ސުވާލެއް؟
ޖަވާބު ނަމޫނާ
ސުވާލެއް؟
ޖަވާބު ނަމޫނާ
Accessibility and motion
- Focus: every interactive element shows a 3px outline (blue on light, cyan on dark); anchors keep 112px scroll padding below the sticky bar.
- Target size: all stand-alone controls and links are at least 24px; buttons and chips at least 40 to 48px.
- Motion: durations 180, 280, 420, 640, 1100ms with the fluid ease; under prefers-reduced-motion, animations and transitions drop to 1ms and reveal and parallax effects are disabled.
- Colour is never the only cue: errors carry a text prefix and icon, links in text are underlined, status chips carry text.
- Forced-colours mode keeps a system highlight focus outline.
Right-to-left (Dhivehi) sample
The block below is rendered with dir="rtl" lang="dv". Sample text only; final copy is supplied by MTCC.
ނަމޫނާ
އެމްޓީސީސީ ވެބްސައިޓް
މިއީ ދިވެހި ބަހުން ޓައިޕްސެޓް ބެލުމަށް ބޭނުންކުރާ ނަމޫނާ ޢިބާރާތެކެވެ. ލިންކެއް
ނޯޓް
މިއީ ނަމޫނާ މެސެޖެކެވެ.
Error: ނަން ލިޔުއްވާ
Annual report 2025 (PDF)
Audited financial statements and directors' report.
Sample Name
Board member
Page 2 of 5
Next