Overview
Every configuration value the components need — colours, fonts, type scale, breakpoints — ships inside @aegov/designsystem. You do not have to configure anything to get a consistent result.
With Tailwind CSS v4, configuration is CSS-first: there is no tailwind.config.js. You customise the design system in your own stylesheet with the @theme directive.
Setting up
Your stylesheet imports Tailwind first, then the design system's base and theme, as described in Installation. Add your own @theme block after those three imports, so your values win:
/* src/styles.css */
@import "tailwindcss";
@import "@aegov/designsystem/base";
@import "@aegov/designsystem/theme";
/* Your customisations (optional) */
@theme {
/* Add your customisations here */
}
Default configuration
The theme import provides these defaults:
| Group | Defaults |
|---|---|
| Breakpoints | xs 480px · sm 640px · md 768px · lg 1024px · xl 1280px · 2xl 1536px |
| Fonts | Roboto (font-roboto), Inter (font-inter), Noto Kufi Arabic (font-notokufi), Alexandria (font-alexandria) |
| Type scale | text-xs (0.75rem) to text-display (3.625rem) |
| Headings | h1 3rem · h2 2.5rem · h3 2.125rem · h4 1.75rem · h5 1.5rem · h6 1.25rem |
| Primary colour | AE Gold (aegold) |
| Secondary colour | Camel (camel) |
| Support colours | primary-support (Camel) and secondary-support (Desert) |
| Palette | Every colour as a full 50–950 swatch (except whitely, 50–500), defined in OKLCH |
The base import adds the .aegov-container class: centred, up to 1536px wide, with side padding of 0.75rem on mobile and 1.5rem from the lg breakpoint (it varies in between).
Configuring your brand colour
A federal entity may brand its website with a colour other than the default primary, AE Gold. If you choose a different primary colour, use a dark colour scheme for the secondary colour.
600 as the base colour and 700 for the hover state, the footer uses primary tints for its borders and bottom bar, and navigation items use the primary colour for hover. Always replace the full 50–950 swatch, generated the same way as the default palette, never a single shade.
How to add brand colours
Override the primary and secondary tokens in your @theme block. Every component — including those rendered in shadow DOM — reads these tokens, so the change applies everywhere:
/* src/styles.css */
@import "tailwindcss";
@import "@aegov/designsystem/base";
@import "@aegov/designsystem/theme";
@theme {
/* Primary colour swatches (50 to 950) */
--color-primary-50: #fff6ed;
--color-primary-100: #ffead5;
--color-primary-200: #ffd2aa;
--color-primary-300: #ffb271;
--color-primary-400: #f88931;
--color-primary-500: #df6402;
--color-primary-600: #be4b00;
--color-primary-700: #9e3e0e;
--color-primary-800: #823515;
--color-primary-900: #692c14;
--color-primary-950: #3f180a;
/* Secondary colour swatches (50 to 950) */
--color-secondary-50: #f6f6f6;
--color-secondary-100: #e7e7e7;
--color-secondary-200: #d1d1d1;
--color-secondary-300: #b0b0b0;
--color-secondary-400: #888888;
--color-secondary-500: #6d6d6d;
--color-secondary-600: #5d5d5d;
--color-secondary-700: #4f4f4f;
--color-secondary-800: #454545;
--color-secondary-900: #3d3d3d;
--color-secondary-950: #1a1a1a;
}
The primary-support and secondary-support tokens follow the same --color-primary-support-50 … 950 pattern if you need to change them too.
Check contrast after changing colours: text on the 600 swatch must still meet WCAG AA (4.5:1) against the 50 swatch.