ic-angular-uikit 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-angular-uikit",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Composants Angular 22 accessibles (WCAG 2.1 AA) et thémables : formulaires, tableaux, menus, carrousel, tableau de bord… Thèmes clair, sombre et saisonniers, compatible CSP stricte.",
5
5
  "keywords": [
6
6
  "angular",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "license": "MIT",
23
23
  "author": "Imperium Clan Software",
24
- "homepage": "https://github.com/imperiumclansoftware/ic-angular-uikit#readme",
24
+ "homepage": "https://angular.uikit.imperiumclan.fr/",
25
25
  "repository": {
26
26
  "type": "git",
27
27
  "url": "git+https://github.com/imperiumclansoftware/ic-angular-uikit.git",
@@ -5,12 +5,14 @@
5
5
  @import './tokens.css';
6
6
  @import './themes/light.css';
7
7
  @import './themes/dark.css';
8
+ @import './themes/imperium-dark.css';
8
9
  @import './seasons.css';
9
10
 
10
- /* Un sous-arbre thémé reprend le fond et la couleur de texte de son thème. */
11
+ /* Un sous-arbre thémé reprend le fond, la couleur de texte et la police de son thème. */
11
12
  [data-ui-theme] {
12
13
  background-color: var(--ui-color-bg);
13
14
  color: var(--ui-color-text);
15
+ font-family: var(--ui-font-family);
14
16
  }
15
17
 
16
18
  body {
@@ -0,0 +1,165 @@
1
+ /*
2
+ * Thème « imperium-dark » — Imperium Clan, néo-héroïque : obsidienne, ardoise forgée, or antique, saphir arcanique.
3
+ * Appliqué par data-ui-theme="imperium-dark" (ThemeService ou attribut sur un sous-arbre).
4
+ * Polices attendues (non fournies par la librairie, à charger par l'application) : Cinzel (titres, emblèmes),
5
+ * UnifrakturCook (nom du clan, titre de bannière), Inter (interface), JetBrains Mono (code).
6
+ * Contrastes vérifiés WCAG AA : texte ≥ 4,5:1 sur fond et surfaces, contours de contrôles ≥ 3:1.
7
+ */
8
+ [data-ui-theme='imperium-dark'] {
9
+ color-scheme: dark;
10
+
11
+ /* Fondations */
12
+ --ui-imp-obsidian: #0c0e14;
13
+ --ui-imp-slate: #151924;
14
+ --ui-imp-gold: #d4af37;
15
+ --ui-imp-gold-light: #e6c866;
16
+ --ui-imp-gold-deep: #9c7a1c;
17
+ --ui-imp-sapphire: #3b82f6;
18
+ --ui-imp-sapphire-deep: #1e3a8a;
19
+
20
+ --ui-font-family: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
21
+ --ui-font-family-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
22
+ --ui-font-family-display: 'Cinzel Variable', 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
23
+ --ui-font-family-blackletter: 'UnifrakturCook', 'Cinzel Variable', 'Cinzel', Georgia, serif;
24
+ --ui-display-letter-spacing: 0.08em;
25
+ --ui-display-transform: uppercase;
26
+
27
+ --ui-ornament-color: var(--ui-imp-gold);
28
+ --ui-ornament-color-soft: rgb(212 175 55 / 0.38);
29
+
30
+ --ui-color-bg: #0c0e14;
31
+ --ui-color-surface: #151924;
32
+ --ui-color-surface-raised: #1c2130;
33
+ --ui-color-surface-sunken: #090b10;
34
+ --ui-color-overlay: rgb(4 5 8 / 0.72);
35
+
36
+ --ui-color-text: #f3f4f6;
37
+ --ui-color-text-muted: #b3b9c6;
38
+ --ui-color-text-subtle: #9098a8;
39
+ --ui-color-text-disabled: #5d6474;
40
+
41
+ --ui-color-border: #262c3b;
42
+ --ui-color-border-strong: #3a4256;
43
+ --ui-color-border-control: #6b7389;
44
+ --ui-color-focus-ring: #e6c866;
45
+
46
+ /* Primaire : or antique */
47
+ --ui-color-primary: #d4af37;
48
+ --ui-color-primary-hover: #e2c25a;
49
+ --ui-color-primary-subtle: rgb(212 175 55 / 0.14);
50
+ --ui-color-primary-text: #e6c866;
51
+ --ui-color-on-primary: #0c0e14;
52
+
53
+ /* Neutre : saphir arcanique (boutons secondaires, badges neutres) */
54
+ --ui-color-neutral: #1e3a8a;
55
+ --ui-color-neutral-hover: #25459f;
56
+ --ui-color-neutral-subtle: rgb(59 130 246 / 0.16);
57
+ --ui-color-neutral-text: #93b4fa;
58
+ --ui-color-on-neutral: #f3f4f6;
59
+
60
+ --ui-color-success: #10b981;
61
+ --ui-color-success-hover: #34d399;
62
+ --ui-color-success-subtle: rgb(16 185 129 / 0.15);
63
+ --ui-color-success-text: #6ee7b7;
64
+ --ui-color-on-success: #0c0e14;
65
+
66
+ --ui-color-warning: #f59e0b;
67
+ --ui-color-warning-hover: #fbbf24;
68
+ --ui-color-warning-subtle: rgb(245 158 11 / 0.15);
69
+ --ui-color-warning-text: #fcd34d;
70
+ --ui-color-on-warning: #0c0e14;
71
+
72
+ --ui-color-danger: #dc2626;
73
+ --ui-color-danger-hover: #ef4444;
74
+ --ui-color-danger-subtle: rgb(220 38 38 / 0.16);
75
+ --ui-color-danger-text: #f87171;
76
+ --ui-color-on-danger: #ffffff;
77
+
78
+ --ui-color-hover: rgb(230 200 102 / 0.07);
79
+ --ui-color-active: rgb(230 200 102 / 0.13);
80
+
81
+ --ui-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.5);
82
+ --ui-shadow-md: 0 6px 16px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(212 175 55 / 0.06);
83
+ --ui-shadow-lg: 0 24px 48px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(212 175 55 / 0.1);
84
+
85
+ --ui-radius-sm: 3px;
86
+ --ui-radius-md: 6px;
87
+ --ui-radius-lg: 10px;
88
+ }
89
+
90
+ /* ---------- Titres : Cinzel en capitales espacées ---------- */
91
+ [data-ui-theme='imperium-dark'] :is(h1, h2, h3) {
92
+ font-family: var(--ui-font-family-display);
93
+ font-weight: 600;
94
+ letter-spacing: var(--ui-display-letter-spacing);
95
+ text-transform: var(--ui-display-transform);
96
+ }
97
+ [data-ui-theme='imperium-dark'] code, [data-ui-theme='imperium-dark'] pre, [data-ui-theme='imperium-dark'] kbd { font-family: var(--ui-font-family-mono); }
98
+
99
+ /* ---------- Boutons (« ImperiumButton ») ---------- */
100
+ [data-ui-theme='imperium-dark'] .ui-button {
101
+ font-family: var(--ui-font-family-display);
102
+ font-weight: 700;
103
+ letter-spacing: 0.1em;
104
+ text-transform: uppercase;
105
+ }
106
+ /* Principal : or forgé, liseré clair intérieur et lueur au survol. */
107
+ [data-ui-theme='imperium-dark'] .ui-button.ui-button--primary {
108
+ --_bg: linear-gradient(180deg, #e2c25a, #d4af37 55%, #b8932a);
109
+ --_bg-hover: linear-gradient(180deg, #ecd078, #dcb945 55%, #c29d33);
110
+ --_border: #f0d98a;
111
+ box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 -1px 0 rgb(0 0 0 / 0.25);
112
+ }
113
+ [data-ui-theme='imperium-dark'] .ui-button.ui-button--primary:hover:not(:disabled, [aria-disabled='true']) {
114
+ box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0 0 1px rgb(212 175 55 / 0.35), 0 0 18px rgb(212 175 55 / 0.35);
115
+ }
116
+ [data-ui-theme='imperium-dark'] .ui-button.ui-button--primary:active:not(:disabled, [aria-disabled='true']) {
117
+ box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.35);
118
+ }
119
+ /* Secondaire : saphir arcanique. */
120
+ [data-ui-theme='imperium-dark'] .ui-button.ui-button--secondary {
121
+ --_bg: #1e3a8a;
122
+ --_bg-hover: #25459f;
123
+ --_fg: #f3f4f6;
124
+ --_border: #3b82f6;
125
+ }
126
+ [data-ui-theme='imperium-dark'] .ui-button.ui-button--secondary:hover:not(:disabled, [aria-disabled='true']) { box-shadow: 0 0 16px rgb(59 130 246 / 0.35); }
127
+ /* Contour et fantôme : filet d'or. */
128
+ [data-ui-theme='imperium-dark'] .ui-button.ui-button--outline { --_border: rgb(212 175 55 / 0.55); --_fg: #e6c866; }
129
+ [data-ui-theme='imperium-dark'] .ui-button.ui-button--ghost { --_fg: #e6c866; }
130
+
131
+ /* ---------- Onglets (« NavigationTab ») : filet lumineux et losange sous l'onglet actif ---------- */
132
+ [data-ui-theme='imperium-dark'] .ui-tabs__tab {
133
+ font-family: var(--ui-font-family-display);
134
+ font-weight: 600;
135
+ letter-spacing: 0.06em;
136
+ text-transform: uppercase;
137
+ }
138
+ [data-ui-theme='imperium-dark'] .ui-tabs--line .ui-tabs__tab--active { position: relative; box-shadow: 0 6px 12px -8px rgb(212 175 55 / 0.8); }
139
+ [data-ui-theme='imperium-dark'] .ui-tabs--line:not(.ui-tabs--vertical) .ui-tabs__tab--active::after {
140
+ content: '';
141
+ position: absolute;
142
+ bottom: -5px;
143
+ left: 50%;
144
+ width: 7px;
145
+ height: 7px;
146
+ border: 1px solid var(--ui-color-bg);
147
+ background: var(--ui-imp-gold);
148
+ rotate: 45deg;
149
+ translate: -50% 0;
150
+ }
151
+
152
+ /* ---------- Navigation latérale (« SidebarNavItem ») : filet d'or lumineux ---------- */
153
+ [data-ui-theme='imperium-dark'] .ui-menu-item:is(.ui-menu-item--active, .is-active, [aria-current='page']) {
154
+ background: linear-gradient(90deg, rgb(212 175 55 / 0.16), rgb(212 175 55 / 0.02) 80%);
155
+ }
156
+ [data-ui-theme='imperium-dark'] .ui-menu-item:is(.ui-menu-item--active, .is-active, [aria-current='page'])::before {
157
+ box-shadow: 0 0 10px rgb(212 175 55 / 0.7);
158
+ }
159
+
160
+ /* ---------- Surfaces ---------- */
161
+ [data-ui-theme='imperium-dark'] .ui-card { border-color: rgb(212 175 55 / 0.22); }
162
+ [data-ui-theme='imperium-dark'] .ui-card :is(h1, h2, h3, h4) { color: var(--ui-imp-gold-light); }
163
+ [data-ui-theme='imperium-dark'] dialog.ui-dialog { border: 1px solid rgb(212 175 55 / 0.4); }
164
+
165
+ /* Les champs, tableaux et listes denses restent sobres : aucune arabesque, seulement les couleurs du thème. */
package/styles/tokens.css CHANGED
@@ -38,6 +38,21 @@
38
38
  --ui-easing: cubic-bezier(0.2, 0, 0, 1);
39
39
 
40
40
  --ui-z-dialog: 1000;
41
+
42
+ /* Branches d'Imperium Clan : couleur principale (éléments graphiques), variante texte (≥ 4,5:1 sur fond sombre)
43
+ et couleur du texte posé sur la couleur pleine. */
44
+ --ui-branch-joueurs: #dc2626;
45
+ --ui-branch-joueurs-text: #f87171;
46
+ --ui-branch-joueurs-on: #ffffff;
47
+ --ui-branch-developpeurs: #10b981;
48
+ --ui-branch-developpeurs-text: #34d399;
49
+ --ui-branch-developpeurs-on: #0c0e14;
50
+ --ui-branch-communicants: #f59e0b;
51
+ --ui-branch-communicants-text: #fbbf24;
52
+ --ui-branch-communicants-on: #0c0e14;
53
+ --ui-branch-cine: #a855f7;
54
+ --ui-branch-cine-text: #c084fc;
55
+ --ui-branch-cine-on: #0c0e14;
41
56
  }
42
57
 
43
58
  @media (prefers-reduced-motion: reduce) {