// Tokens & icons copy-paste examples. export /** * */ const TOKENS_SETUP = `// Point Tailwind at the africanies-theme preset and scan @africanies/africanies-ui so its classes aren't purged. // Don't re-declare token colors locally — extend the preset. // tailwind.config.js — monorepo paths (adjust __dirname to your app root) const path = require('node:path'); module.exports = { presets: [require('@africanies/africanies-theme/tailwind-preset')], content: [ path.join(__dirname, 'src/**/*.{html,ts}'), // Required: scan the UI library so its literal Tailwind classes survive purge. path.join(__dirname, '../../libs/africanies-ui/src/**/*.{html,ts}'), path.join(__dirname, '../../libs/africanies-theme/src/**/*.{html,ts}'), // Published-app equivalent: // './src/**/*.{html,ts}', // './node_modules/@africanies/africanies-ui/**/*.{js,mjs}', ], }; `; export /** * */ const TOKENS_CORE = `// Ink / surface utilities — use literal class strings (Tailwind can't see dynamic names).
Muted supporting copy
Primary body on welcome background
Supporting sentence for denser marketing or empty states.
Default reading size for forms, tables, and dialogs.
Secondary copy and dense metadata.
Hints, timestamps, and chip labels. `; export /** * */ const TOKENS_MODE_ACCENTS = `// Primary chrome that follows SFN/STN. Bind [class] to modeColor.classes() literals — // don't interpolate Tailwind token names yourself. import { Component, inject } from '@angular/core'; import { ModeColorService } from '@africanies/africanies-theme'; import { ButtonComponent } from '@africanies/africanies-ui'; @Component({ selector: 'app-mode-accent-demo', standalone: true, imports: [ButtonComponent], template: \` @let colors = modeColor.classes(); Accent labelSFN export / STN import
Shipment headline