@ids-group-ltd/ids-design-system 0.5.0 → 0.5.1
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/CHANGELOG.md +116 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +283 -180
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.1.0.json +9 -0
- package/migrations/0.2.0.json +73 -0
- package/migrations/0.2.1.json +7 -0
- package/migrations/0.2.2.json +8 -0
- package/migrations/0.3.0.json +49 -0
- package/migrations/0.4.0.json +149 -0
- package/migrations/0.5.0.json +256 -0
- package/migrations/0.5.1.json +307 -0
- package/migrations/AUTHORING.md +134 -0
- package/migrations/README.md +35 -0
- package/package.json +1 -1
- package/styles/_status.scss +57 -0
- package/styles/_tokens.scss +9 -1
- package/themes/_base-palette.scss +14 -3
- package/themes/_semantic.scss +20 -38
- package/themes/dark/_theme.scss +1 -7
- package/types/ids-group-ltd-ids-design-system.d.ts +148 -101
package/themes/_semantic.scss
CHANGED
|
@@ -65,22 +65,22 @@
|
|
|
65
65
|
|
|
66
66
|
/* Text overlaid on arbitrary imagery (camera feeds, photos) — pairs a
|
|
67
67
|
guaranteed-light colour with a contrast shadow. */
|
|
68
|
-
--text-on-media:
|
|
68
|
+
--text-on-media: white;
|
|
69
69
|
--text-on-media-shadow: 0 1px 3px hsl(0deg 0% 0% / 70%);
|
|
70
70
|
--text-link: var(--blue-700);
|
|
71
|
-
--text-on-primary:
|
|
72
|
-
--text-on-success:
|
|
71
|
+
--text-on-primary: white;
|
|
72
|
+
--text-on-success: white;
|
|
73
73
|
|
|
74
74
|
/* Warning fill is yellow (--yellow-400 #F4D43A) — white text on it is only
|
|
75
75
|
~1.5:1 (fails WCAG). On-warning text is the darkest neutral (~10:1). */
|
|
76
76
|
--text-on-warning: var(--static-ink);
|
|
77
|
-
--text-on-error:
|
|
77
|
+
--text-on-error: white;
|
|
78
78
|
|
|
79
79
|
/* Icons */
|
|
80
80
|
--icon-default: var(--neutral-500);
|
|
81
81
|
--icon-strong: var(--neutral-700);
|
|
82
82
|
--icon-muted: var(--neutral-400);
|
|
83
|
-
--icon-on-primary:
|
|
83
|
+
--icon-on-primary: white;
|
|
84
84
|
|
|
85
85
|
/* Semantic → palette bridge. The lib knows colours by PURPOSE; the theme
|
|
86
86
|
(themes/light/_theme.scss) ships the concrete ramps + HSL channels. This
|
|
@@ -115,16 +115,16 @@
|
|
|
115
115
|
--primary-muted: var(--blue-100);
|
|
116
116
|
--primary-muted-strong: var(--blue-200);
|
|
117
117
|
--primary-strong: var(--blue-700);
|
|
118
|
-
--primary-on:
|
|
118
|
+
--primary-on: white;
|
|
119
119
|
|
|
120
|
-
/* Accent / secondary role —
|
|
121
|
-
|
|
122
|
-
--
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
--secondary-h: var(--
|
|
126
|
-
--secondary-s: var(--
|
|
127
|
-
--secondary-l: var(--
|
|
120
|
+
/* Accent / secondary role — maps onto the palette --orange family (Tier-1),
|
|
121
|
+
kept distinct from --primary so the brand slots read apart. Override
|
|
122
|
+
--secondary-h/s/l per-brand (or via the tweaks panel) to reskin it —
|
|
123
|
+
--secondary recomposes automatically. Hover/pressed derive from --secondary
|
|
124
|
+
so any hue change propagates. */
|
|
125
|
+
--secondary-h: var(--orange-h);
|
|
126
|
+
--secondary-s: var(--orange-s);
|
|
127
|
+
--secondary-l: var(--orange-l);
|
|
128
128
|
|
|
129
129
|
--secondary: hsl(var(--secondary-h) var(--secondary-s) var(--secondary-l));
|
|
130
130
|
--secondary-hover: color-mix(in srgb, var(--secondary) 88%, black);
|
|
@@ -139,12 +139,12 @@
|
|
|
139
139
|
tonal accents (decorative chips, hierarchy tones, indicators). Mirrors
|
|
140
140
|
the --primary / --secondary token-family shape: HSL channels for halo
|
|
141
141
|
composition, hover/pressed via color-mix, subtle/muted ramps for tonal
|
|
142
|
-
surfaces.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
--tertiary-h: var(--
|
|
146
|
-
--tertiary-s: var(--
|
|
147
|
-
--tertiary-l: var(--
|
|
142
|
+
surfaces. Maps onto the palette --violet family (Tier-1), distinct from
|
|
143
|
+
--primary / --secondary. Brands override --tertiary-h/s/l (or --tertiary
|
|
144
|
+
directly for non-HSL values) to reskin it. */
|
|
145
|
+
--tertiary-h: var(--violet-h);
|
|
146
|
+
--tertiary-s: var(--violet-s);
|
|
147
|
+
--tertiary-l: var(--violet-l);
|
|
148
148
|
|
|
149
149
|
--tertiary: hsl(var(--tertiary-h) var(--tertiary-s) var(--tertiary-l));
|
|
150
150
|
--tertiary-hover: color-mix(in srgb, var(--tertiary) 88%, black);
|
|
@@ -200,24 +200,6 @@
|
|
|
200
200
|
--info-border: var(--sky-200);
|
|
201
201
|
--info-text: var(--sky-700);
|
|
202
202
|
|
|
203
|
-
/* Status pills (event lifecycle).
|
|
204
|
-
DECISION: --status-confirmed-* chains through --primary-* so a
|
|
205
|
-
brand re-skin moves Confirmed with it. The other lifecycle
|
|
206
|
-
stages are deliberately neutral/green/dark to keep semantic
|
|
207
|
-
distance from brand. */
|
|
208
|
-
|
|
209
|
-
/* Status pills — canonical (single system).
|
|
210
|
-
Legacy classes `.badge--active` (single) and ad-hoc semantic
|
|
211
|
-
pills are unified in the Badge component to consume these tokens. */
|
|
212
|
-
--status-planning-bg-color: var(--neutral-150);
|
|
213
|
-
--status-planning-text-color: var(--neutral-700);
|
|
214
|
-
--status-confirmed-bg-color: var(--primary-subtitle);
|
|
215
|
-
--status-confirmed-text-color: var(--primary-strong);
|
|
216
|
-
--status-active-bg-color: var(--green-50);
|
|
217
|
-
--status-active-text-color: var(--green-700);
|
|
218
|
-
--status-completed-bg-color: var(--neutral-900);
|
|
219
|
-
--status-completed-text-color: var(--neutral-0);
|
|
220
|
-
|
|
221
203
|
/* Focus rings.
|
|
222
204
|
Outer halos use hsla() composed from brand/danger HSL channels
|
|
223
205
|
so re-skinning --primary-h propagates into focus state.
|
package/themes/dark/_theme.scss
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// follow the flip: tint/subtle surfaces (near-white *-50 picks → dark hue
|
|
13
13
|
// tints), on-tint text (*-text / *-strong → lighter stops), hover/pressed
|
|
14
14
|
// direction, scrim (must stay dark), focus halo alpha, and charts.
|
|
15
|
-
// On-fill text
|
|
15
|
+
// On-dark-fill text points at --static-ink; on-light-fill uses literal white.
|
|
16
16
|
// =========================================================================
|
|
17
17
|
|
|
18
18
|
@use 'palette';
|
|
@@ -84,12 +84,6 @@
|
|
|
84
84
|
--info-border: hsl(217deg 38% 32%);
|
|
85
85
|
--info-text: hsl(217deg 90% 74%);
|
|
86
86
|
|
|
87
|
-
// Status pills that referenced palette stops directly (green-50/700) — repoint
|
|
88
|
-
// to the dark status roles so the lifecycle pill reads on dark. (planning →
|
|
89
|
-
// neutral, confirmed → primary-*, completed → neutral all follow flips.)
|
|
90
|
-
--status-active-bg-color: var(--success-subtitle);
|
|
91
|
-
--status-active-text-color: var(--success-text);
|
|
92
|
-
|
|
93
87
|
// Scrim stays dark — must NOT follow --shadow-tint-l: 95%.
|
|
94
88
|
--surface-scrim: hsl(225deg 39% 4% / 70%);
|
|
95
89
|
|