feat(design): re-theme to CIBG Huisstijl (Bootstrap 5.2), replacing RHC/Utrecht
The portal now adheres to the CIBG design system (designsystem.cibg.nl) — a customized Bootstrap 5.2 build — replacing the Rijkshuisstijl-Community / Utrecht theme. See ADR-0003. - Vendor @cibg/huisstijl@3.22.0 under public/cibg-huisstijl/, loaded via a <link> in index.html (Storybook serves it via staticDirs). Drop the two @rijkshuisstijl-community deps. - Token bridge in styles.scss: redefine the app's ~54 --rhc-* tokens onto CIBG/--bs-* values, so components keep referencing tokens (no 300+ site rewrite). System-font stack; licensed RO/Rijks text fonts intentionally not shipped. - Re-skin every shared atom to Bootstrap/CIBG classes (btn, form-control, form-check-*, table, breadcrumb, …) keeping their input() APIs. alert is hand-rolled (CIBG drops .alert); local .card/.badge renamed to avoid Bootstrap collisions. - Domain pages: drop stray rhc-*/utrecht-* classes; registration-table → table table-striped. Verified: build green, check:tokens OK, lint clean, 174 tests pass, build-storybook OK, and the served build loads the vendored CSS (200, .btn-primary present). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2,16 +2,30 @@ import { Component, input } from '@angular/core';
|
||||
|
||||
type AlertType = 'info' | 'ok' | 'warning' | 'error';
|
||||
|
||||
/** Atom: alert/message banner. */
|
||||
/** Atom: alert/message banner. CIBG's Bootstrap build drops the stock `.alert`, so this
|
||||
is a hand-rolled surface styled from the (CIBG-valued) token bridge — no raw hex. */
|
||||
@Component({
|
||||
selector: 'app-alert',
|
||||
styles: [`
|
||||
.alert-box{
|
||||
border:var(--rhc-border-width-sm) solid;
|
||||
border-inline-start-width:var(--rhc-border-width-md);
|
||||
border-radius:var(--rhc-border-radius-md);
|
||||
padding:var(--rhc-space-max-md) var(--rhc-space-max-lg);
|
||||
color:var(--rhc-color-foreground-default);
|
||||
}
|
||||
.alert-info{background:var(--rhc-color-hemelblauw-100);border-color:var(--rhc-color-foreground-link)}
|
||||
.alert-ok{background:var(--rhc-color-groen-300);border-color:var(--rhc-color-groen-500)}
|
||||
.alert-warning{background:var(--rhc-color-geel-100);border-color:var(--rhc-color-geel-600)}
|
||||
.alert-error{background:var(--rhc-color-rood-100);border-color:var(--rhc-color-rood-500)}
|
||||
`],
|
||||
template: `
|
||||
<div
|
||||
class="utrecht-alert rhc-alert"
|
||||
[class.utrecht-alert--info]="type() === 'info'"
|
||||
[class.utrecht-alert--ok]="type() === 'ok'"
|
||||
[class.utrecht-alert--warning]="type() === 'warning'"
|
||||
[class.utrecht-alert--error]="type() === 'error'"
|
||||
class="alert-box"
|
||||
[class.alert-info]="type() === 'info'"
|
||||
[class.alert-ok]="type() === 'ok'"
|
||||
[class.alert-warning]="type() === 'warning'"
|
||||
[class.alert-error]="type() === 'error'"
|
||||
role="status">
|
||||
<ng-content />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user