@aiaiai-pt/design-system 0.8.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AppFrame.svelte +75 -0
- package/components/AppFrame.svelte.d.ts +42 -0
- package/components/ContentBlock.svelte +100 -0
- package/components/ContentBlock.svelte.d.ts +37 -0
- package/components/Hero.svelte +87 -0
- package/components/Hero.svelte.d.ts +37 -0
- package/components/Link.svelte +100 -0
- package/components/Link.svelte.d.ts +46 -0
- package/components/ServiceNavigation.svelte +160 -0
- package/components/ServiceNavigation.svelte.d.ts +49 -0
- package/components/SiteFooter.svelte +83 -0
- package/components/SiteFooter.svelte.d.ts +37 -0
- package/components/SiteHeader.svelte +90 -0
- package/components/SiteHeader.svelte.d.ts +36 -0
- package/components/SkipLink.svelte +63 -0
- package/components/SkipLink.svelte.d.ts +33 -0
- package/components/StatusTimeline.svelte +193 -0
- package/components/StatusTimeline.svelte.d.ts +44 -0
- package/components/ValueSourcePicker.svelte +49 -25
- package/components/VotingWidget.svelte +292 -0
- package/components/VotingWidget.svelte.d.ts +80 -0
- package/components/WidgetGrid.svelte +83 -0
- package/components/WidgetGrid.svelte.d.ts +42 -0
- package/components/index.js +13 -0
- package/package.json +1 -1
- package/tokens/themes/valongo.css +44 -0
package/package.json
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* aiaiai Design System — Tier 1: Tenant Theme — Município de Valongo
|
|
3
|
+
*
|
|
4
|
+
* Example citizen-portal tenant theme (#7 portal template system). Demonstrates
|
|
5
|
+
* the Tier-1 contract: a municipality re-skins brand tokens only; structure,
|
|
6
|
+
* typography, spacing, motion, radius, and a11y stay frozen and
|
|
7
|
+
* conformance-checkable (Designers Italia "Modello Comuni" model).
|
|
8
|
+
*
|
|
9
|
+
* In production these overrides come from the tenant's `portal` ontology row
|
|
10
|
+
* and are injected at runtime by the portal's hooks.server.ts; this static
|
|
11
|
+
* file is the seed/example.
|
|
12
|
+
*
|
|
13
|
+
* Tier-1 rules: override < 20 semantic tokens; change accent + surface tint;
|
|
14
|
+
* keep everything else.
|
|
15
|
+
*
|
|
16
|
+
* Apply via: <html data-theme="valongo">
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
[data-theme="valongo"] {
|
|
20
|
+
/* ─── Accent: Valongo civic green ─── */
|
|
21
|
+
--color-accent: #2e7d32;
|
|
22
|
+
--color-accent-hover: #1b5e20;
|
|
23
|
+
--color-accent-subtle: #eaf4ea;
|
|
24
|
+
|
|
25
|
+
/* ─── Surface: warm neutral ─── */
|
|
26
|
+
--color-surface: #ffffff;
|
|
27
|
+
--color-surface-secondary: #f4f6f3;
|
|
28
|
+
--color-surface-tertiary: #e8ece6;
|
|
29
|
+
|
|
30
|
+
/* ─── Borders ─── */
|
|
31
|
+
--color-border: #d7ded3;
|
|
32
|
+
--color-border-strong: #abb8a4;
|
|
33
|
+
|
|
34
|
+
/* ─── Text ─── */
|
|
35
|
+
--color-text: #1c241b;
|
|
36
|
+
--color-text-secondary: #44513f;
|
|
37
|
+
--color-text-muted: #71806b;
|
|
38
|
+
|
|
39
|
+
/* ─── Overlay + focus follow the brand ─── */
|
|
40
|
+
--color-overlay: rgba(28, 36, 27, 0.5);
|
|
41
|
+
--focus-ring-color: var(--color-accent);
|
|
42
|
+
|
|
43
|
+
/* Total overrides: 14 tokens. Still an aiaiai product, in Valongo's colours. */
|
|
44
|
+
}
|