import { Component } from '@angular/core'; import { DemoSectionComponent } from '../shared/demo-section.component'; import { PageHeaderComponent } from '../shared/page-header.component'; import { TOKENS_CORE, TOKENS_EXPORT, TOKENS_FEEDBACK, TOKENS_IMPORT, TOKENS_MODE_ACCENTS, TOKENS_NEUTRAL, TOKENS_SETUP, TOKENS_TYPE, } from '../snippets'; interface TokenSwatch { name: string; bgClass: string; hex: string; group: string; } /** * Design token catalog — Tailwind preset colors, typography scale, and mode accents. */ @Component({ selector: 'app-tokens-page', standalone: true, imports: [PageHeaderComponent, DemoSectionComponent], template: `
Extend the AFRICANIES theme preset and scan both your app sources and the published @africanies/africanies-ui bundle so JIT keeps classes used inside the library.
{{ token.name }}
{{ token.hex }}
heading-1 · 2.5rem / 700
Ship across continents
heading-2 · 2rem / 700
Shipment details
heading-3 · 1.5rem / 600
Cargo summary
body-lg
Supporting sentence for denser marketing or empty states.
body
Default reading size for forms, tables, and dialogs.
body-sm
Secondary copy and dense metadata.
caption
Hints, timestamps, and chip labels.
The color grids above show raw tokens. These cards show the same export (SFN green) and import (STN orange) families applied to panels — the way mode accents appear in product UI. Switch shipping mode in the sidebar header and compare with primary buttons elsewhere.
SFN / export
Lagos outbound
Uses export green tokens.
STN / import
US inbound
Uses import orange tokens.