diff --git a/docs/superpowers/specs/2026-07-27-monochrome-theme-design.md b/docs/superpowers/specs/2026-07-27-monochrome-theme-design.md
new file mode 100644
index 0000000..debbcd2
--- /dev/null
+++ b/docs/superpowers/specs/2026-07-27-monochrome-theme-design.md
@@ -0,0 +1,71 @@
+# Monochrome Theme Redesign — Heimdall
+
+**Date**: 2026-07-27
+**Status**: Draft
+
+## Objectif
+
+Refondre le thème Heimdall (dashboard surveillance MudBlazor) en noir & blanc pur,
+avec ajout de Font Awesome pour les icônes, en conservant les couleurs de statut
+(vert/rouge/orange) pour les indicateurs fonctionnels.
+
+## Palette
+
+### Light Mode
+
+| Rôle | Couleur |
+|------|---------|
+| Background | `#FAFAFA` |
+| Surface (cards) | `#FFFFFF` |
+| Appbar | `#000000` |
+| Drawer | `#FFFFFF` |
+| Text Primary | `#111111` |
+| Text Secondary | `#555555` |
+| Lines/Inputs | `#E5E5E5` |
+| Success | `#16A34A` |
+| Error | `#DC2626` |
+| Warning | `#EA580C` |
+
+### Dark Mode
+
+| Rôle | Couleur |
+|------|---------|
+| Background | `#0A0A0A` |
+| Surface | `#1A1A1A` |
+| Appbar | `#000000` |
+| Drawer | `#1A1A1A` |
+| Text Primary | `#F5F5F5` |
+| Text Secondary | `#A3A3A3` |
+| Lines/Inputs | `#333333` |
+| Success | `#22C55E` |
+| Error | `#EF4444` |
+| Warning | `#F97316` |
+
+## Typos
+
+- Police existante : **Inter** (Google Fonts) — weights 300/400/500/600/700
+- Police code : **Fira Code** (déjà présente)
+- Hiérarchie renforcée : titres en 600/700, body en 400, labels en 500
+
+## Icônes
+
+- **Font Awesome 6 Free** ajouté via CDN
+- Matériel Icons MudBlazor conservés pour la navigation
+- Font Awesome utilisé pour : statuts, badges, auth page, empty states
+
+## Pages impactées
+
+1. **MainLayout.razor** — Palette MudTheme noir/blanc
+2. **App.razor** — Ajout CDN Font Awesome
+3. **app.css** — Refonte globale, auth pages monochrome, transitions
+4. **ReconnectModal.razor.css** — Dark mode
+5. **MudBlazorLayout.razor** — Ajout thème (layout fallback)
+
+## Principes de lisibilité
+
+- Contrastes élevés (ratio WCAG AA+)
+- Ombres douces sur les cards
+- Bordures fines (1px) pour les surfaces
+- États de survol clairs (darken/lighten)
+- Transitions smooth sur dark/light switch
+- Statuts couleur qui ressortent sur fond neutre
diff --git a/src/Heimdall.Web/Components/App.razor b/src/Heimdall.Web/Components/App.razor
index 27b1f2c..b34ffff 100644
--- a/src/Heimdall.Web/Components/App.razor
+++ b/src/Heimdall.Web/Components/App.razor
@@ -1,4 +1,4 @@
-
+
@@ -6,6 +6,7 @@
diff --git a/src/Heimdall.Web/Components/Layout/MainLayout.razor b/src/Heimdall.Web/Components/Layout/MainLayout.razor
index b4ddc2a..0822abb 100644
--- a/src/Heimdall.Web/Components/Layout/MainLayout.razor
+++ b/src/Heimdall.Web/Components/Layout/MainLayout.razor
@@ -1,4 +1,4 @@
-@inherits LayoutComponentBase
+@inherits LayoutComponentBase
@inject AuthState Auth
@inject NavigationManager Navigation
@inject HeimdallAuthStateProvider AuthStateProvider
@@ -12,7 +12,9 @@
_drawerOpen = !_drawerOpen)" />
- Heimdall
+
+ Heimdall
+
@* Global Search *@
-
+
@@ -48,44 +50,44 @@
@if (Auth.IsLoggedIn)
{
- Navigation
+ Navigation
-
- Dashboard
+
+ Dashboard
-
- Sites & Caméras
+
+ Sites & Caméras
@if (Auth.HasPermission("Admin.Users") || Auth.HasPermission("Admin.Manage"))
{
- Administration
-
- Utilisateurs
+ Administration
+
+ Utilisateurs
-
- Agents
+
+ Agents
-
- Rôles & Permissions
+
+ Rôles & Permissions
-
- Groupes
+
+ Groupes
-
- Matrice des permissions
+
+ Matrice des permissions
-
- Événements
+
+ Événements
-
- Snapshots
+
+ Snapshots
-
- Journal d'audit
+
+ Journal d'audit
-
- Configuration
+
+ Configuration
}
@@ -114,45 +116,114 @@
{
PaletteLight = new PaletteLight
{
- Primary = "#1976D2",
- Secondary = "#9E9E9E",
- Tertiary = "#009688",
- AppbarBackground = "#1565C0",
+ // ─── Noir & Blanc — mode clair ─────────────────────────
+ Black = "#000000",
+ White = "#FFFFFF",
+
+ Primary = "#111111",
+ PrimaryContrastText = "#FFFFFF",
+ Secondary = "#555555",
+ SecondaryContrastText = "#FFFFFF",
+ Tertiary = "#333333",
+ TertiaryContrastText = "#FFFFFF",
+
+ // Appbar — noir pur
+ AppbarBackground = "#000000",
AppbarText = "#FFFFFF",
- Background = "#F5F5F5",
+
+ // Fond général
+ Background = "#FAFAFA",
Surface = "#FFFFFF",
+
+ // Navigation
DrawerBackground = "#FFFFFF",
- DrawerText = "#424242",
- TextPrimary = "#212121",
- TextSecondary = "#616161",
- TextDisabled = "#BDBDBD",
- Dark = "#0D47A1",
- DarkLighten = "#1976D2",
- Info = "#42A5F5",
- Warning = "#FF9800",
- Error = "#F44336",
- Success = "#4CAF50",
+ DrawerText = "#111111",
+ DrawerIcon = "#555555",
+
+ // Typographie
+ TextPrimary = "#111111",
+ TextSecondary = "#555555",
+ TextDisabled = "#A3A3A3",
+
+ // Bordures & lignes
+ LinesDefault = "#E5E5E5",
+ LinesInputs = "#D4D4D4",
+
+ // Ombres & profondeur
+ Dark = "#000000",
+ DarkLighten = "#1A1A1A",
+
+ // Couleurs de statut (volontairement vives sur fond clair)
+ Info = "#2563EB",
+ Warning = "#EA580C",
+ Error = "#DC2626",
+ Success = "#16A34A",
+
+ // Tableaux
+ TableLines = "#E5E5E5",
+ TableStriped = "#FAFAFA",
+
+ // Séparateurs
+ Divider = "#E5E5E5",
+ DividerLight = "#F0F0F0",
+
+ // Overlays & interactions
},
+
PaletteDark = new PaletteDark
{
- Primary = "#64B5F6",
- Secondary = "#BDBDBD",
- Tertiary = "#80CBC4",
- AppbarBackground = "#212121",
+ // ─── Noir & Blanc — mode sombre ────────────────────────
+ Black = "#000000",
+ White = "#FFFFFF",
+
+ Primary = "#FFFFFF",
+ PrimaryContrastText = "#000000",
+ Secondary = "#A3A3A3",
+ SecondaryContrastText = "#000000",
+ Tertiary = "#CCCCCC",
+ TertiaryContrastText = "#000000",
+
+ // Appbar — noir (identique au light)
+ AppbarBackground = "#000000",
AppbarText = "#FFFFFF",
- Background = "#121212",
- Surface = "#424242",
- DrawerBackground = "#424242",
- DrawerText = "#BDBDBD",
- TextPrimary = "#E0E0E0",
- TextSecondary = "#BDBDBD",
- TextDisabled = "#757575",
- Dark = "#1A237E",
- DarkLighten = "#1976D2",
- Info = "#42A5F5",
- Warning = "#FFA726",
- Error = "#EF5350",
- Success = "#66BB6A",
+
+ // Fond général — presque noir
+ Background = "#0A0A0A",
+ Surface = "#1A1A1A",
+
+ // Navigation
+ DrawerBackground = "#1A1A1A",
+ DrawerText = "#F5F5F5",
+ DrawerIcon = "#A3A3A3",
+
+ // Typographie
+ TextPrimary = "#F5F5F5",
+ TextSecondary = "#A3A3A3",
+ TextDisabled = "#555555",
+
+ // Bordures & lignes
+ LinesDefault = "#333333",
+ LinesInputs = "#444444",
+
+ // Ombres & profondeur
+ Dark = "#000000",
+ DarkLighten = "#0A0A0A",
+
+ // Couleurs de statut (légèrement adoucies pour dark)
+ Info = "#60A5FA",
+ Warning = "#F97316",
+ Error = "#EF4444",
+ Success = "#22C55E",
+
+ // Tableaux
+ TableLines = "#333333",
+ TableStriped = "#222222",
+
+ // Séparateurs
+ Divider = "#333333",
+ DividerLight = "#2A2A2A",
+
+ // Overlays & interactions
}
};
diff --git a/src/Heimdall.Web/Components/Layout/MudBlazorLayout.razor b/src/Heimdall.Web/Components/Layout/MudBlazorLayout.razor
index b821904..f22e477 100644
--- a/src/Heimdall.Web/Components/Layout/MudBlazorLayout.razor
+++ b/src/Heimdall.Web/Components/Layout/MudBlazorLayout.razor
@@ -1,6 +1,6 @@
@inherits LayoutComponentBase
-
+
@@ -9,3 +9,76 @@
@Body
+
+@code {
+ // Thème monochrome noir & blanc — partagé avec MainLayout
+ private readonly MudTheme _theme = new()
+ {
+ PaletteLight = new PaletteLight
+ {
+ Black = "#000000",
+ White = "#FFFFFF",
+ Primary = "#111111",
+ PrimaryContrastText = "#FFFFFF",
+ Secondary = "#555555",
+ SecondaryContrastText = "#FFFFFF",
+ Tertiary = "#333333",
+ TertiaryContrastText = "#FFFFFF",
+ AppbarBackground = "#000000",
+ AppbarText = "#FFFFFF",
+ Background = "#FAFAFA",
+ Surface = "#FFFFFF",
+ DrawerBackground = "#FFFFFF",
+ DrawerText = "#111111",
+ DrawerIcon = "#555555",
+ TextPrimary = "#111111",
+ TextSecondary = "#555555",
+ TextDisabled = "#A3A3A3",
+ LinesDefault = "#E5E5E5",
+ LinesInputs = "#D4D4D4",
+ Dark = "#000000",
+ DarkLighten = "#1A1A1A",
+ Info = "#2563EB",
+ Warning = "#EA580C",
+ Error = "#DC2626",
+ Success = "#16A34A",
+ TableLines = "#E5E5E5",
+ TableStriped = "#FAFAFA",
+ Divider = "#E5E5E5",
+ DividerLight = "#F0F0F0",
+ },
+ PaletteDark = new PaletteDark
+ {
+ Black = "#000000",
+ White = "#FFFFFF",
+ Primary = "#FFFFFF",
+ PrimaryContrastText = "#000000",
+ Secondary = "#A3A3A3",
+ SecondaryContrastText = "#000000",
+ Tertiary = "#CCCCCC",
+ TertiaryContrastText = "#000000",
+ AppbarBackground = "#000000",
+ AppbarText = "#FFFFFF",
+ Background = "#0A0A0A",
+ Surface = "#1A1A1A",
+ DrawerBackground = "#1A1A1A",
+ DrawerText = "#F5F5F5",
+ DrawerIcon = "#A3A3A3",
+ TextPrimary = "#F5F5F5",
+ TextSecondary = "#A3A3A3",
+ TextDisabled = "#555555",
+ LinesDefault = "#333333",
+ LinesInputs = "#444444",
+ Dark = "#000000",
+ DarkLighten = "#0A0A0A",
+ Info = "#60A5FA",
+ Warning = "#F97316",
+ Error = "#EF4444",
+ Success = "#22C55E",
+ TableLines = "#333333",
+ TableStriped = "#222222",
+ Divider = "#333333",
+ DividerLight = "#2A2A2A",
+ }
+ };
+}
diff --git a/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css b/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css
index d8beb8f..ab033fb 100644
--- a/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css
+++ b/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css
@@ -1,3 +1,5 @@
+/* ─── Reconnect Modal — Dark/Light compatible ───────────────── */
+
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
@@ -19,27 +21,29 @@
display: block;
}
-
#components-reconnect-modal {
- background-color: white;
- width: 20rem;
+ background-color: var(--bg-card, #FFFFFF);
+ color: var(--text-primary, #111111);
+ width: 22rem;
+ max-width: 90vw;
margin: 20vh auto;
padding: 2rem;
- border: 0;
- border-radius: 0.5rem;
- box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
+ border: 1px solid var(--border-color, #E5E5E5);
+ border-radius: 16px;
+ box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
opacity: 0;
transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
}
#components-reconnect-modal[open] {
- animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
+ animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s,
+ components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
animation-fill-mode: both;
}
#components-reconnect-modal::backdrop {
- background-color: rgba(0, 0, 0, 0.4);
+ background-color: rgba(0, 0, 0, 0.5);
animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
opacity: 1;
}
@@ -48,30 +52,19 @@
0% {
transform: translateY(30px) scale(0.95);
}
-
100% {
transform: translateY(0);
}
}
@keyframes components-reconnect-modal-fadeInOpacity {
- 0% {
- opacity: 0;
- }
-
- 100% {
- opacity: 1;
- }
+ 0% { opacity: 0; }
+ 100% { opacity: 1; }
}
@keyframes components-reconnect-modal-fadeOutOpacity {
- 0% {
- opacity: 1;
- }
-
- 100% {
- opacity: 0;
- }
+ 0% { opacity: 1; }
+ 100% { opacity: 0; }
}
.components-reconnect-container {
@@ -79,77 +72,79 @@
flex-direction: column;
align-items: center;
gap: 1rem;
+ text-align: center;
}
#components-reconnect-modal p {
margin: 0;
- text-align: center;
}
#components-reconnect-modal button {
- border: 0;
- background-color: #6b9ed2;
- color: white;
- padding: 4px 24px;
- border-radius: 4px;
+ border: 1.5px solid var(--border-color, #E5E5E5);
+ background: var(--bg-surface, #FFFFFF);
+ color: var(--text-primary, #111111);
+ padding: 8px 28px;
+ border-radius: 8px;
+ font-weight: 500;
+ cursor: pointer;
+ transition: background 0.2s ease, border-color 0.2s ease;
}
- #components-reconnect-modal button:hover {
- background-color: #3b6ea2;
- }
+#components-reconnect-modal button:hover {
+ background: var(--bg-hover, rgba(0, 0, 0, 0.04));
+ border-color: var(--text-secondary, #555555);
+}
- #components-reconnect-modal button:active {
- background-color: #6b9ed2;
- }
+#components-reconnect-modal button:active {
+ background: var(--bg-active, rgba(0, 0, 0, 0.06));
+}
+/* Rejoining animation ring */
.components-rejoining-animation {
position: relative;
- width: 80px;
- height: 80px;
+ width: 72px;
+ height: 72px;
}
- .components-rejoining-animation div {
- position: absolute;
- border: 3px solid #0087ff;
- opacity: 1;
- border-radius: 50%;
- animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
- }
+.components-rejoining-animation div {
+ position: absolute;
+ border: 3px solid #555555;
+ opacity: 1;
+ border-radius: 50%;
+ animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
+}
- .components-rejoining-animation div:nth-child(2) {
- animation-delay: -0.5s;
- }
+.components-rejoining-animation div:nth-child(2) {
+ animation-delay: -0.5s;
+}
@keyframes components-rejoining-animation {
0% {
- top: 40px;
- left: 40px;
+ top: 36px;
+ left: 36px;
width: 0;
height: 0;
opacity: 0;
}
-
4.9% {
- top: 40px;
- left: 40px;
+ top: 36px;
+ left: 36px;
width: 0;
height: 0;
opacity: 0;
}
-
5% {
- top: 40px;
- left: 40px;
+ top: 36px;
+ left: 36px;
width: 0;
height: 0;
opacity: 1;
}
-
100% {
- top: 0px;
- left: 0px;
- width: 80px;
- height: 80px;
+ top: 0;
+ left: 0;
+ width: 72px;
+ height: 72px;
opacity: 0;
}
}
diff --git a/src/Heimdall.Web/Components/Pages/Admin/AllAgentsPage.razor b/src/Heimdall.Web/Components/Pages/Admin/AllAgentsPage.razor
index 620b488..bbc970c 100644
--- a/src/Heimdall.Web/Components/Pages/Admin/AllAgentsPage.razor
+++ b/src/Heimdall.Web/Components/Pages/Admin/AllAgentsPage.razor
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
-
+
Agents
diff --git a/src/Heimdall.Web/Components/Pages/Admin/ClaimsPage.razor b/src/Heimdall.Web/Components/Pages/Admin/ClaimsPage.razor
index 7d1e827..7674648 100644
--- a/src/Heimdall.Web/Components/Pages/Admin/ClaimsPage.razor
+++ b/src/Heimdall.Web/Components/Pages/Admin/ClaimsPage.razor
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
-
+
Matrice des permissions
diff --git a/src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor b/src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor
index 3f99353..d19d7e1 100644
--- a/src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor
+++ b/src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
-
+
Groupes
diff --git a/src/Heimdall.Web/Components/Pages/Admin/RolesPage.razor b/src/Heimdall.Web/Components/Pages/Admin/RolesPage.razor
index f69f387..f196a23 100644
--- a/src/Heimdall.Web/Components/Pages/Admin/RolesPage.razor
+++ b/src/Heimdall.Web/Components/Pages/Admin/RolesPage.razor
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
-
+
Rôles & Permissions
diff --git a/src/Heimdall.Web/Components/Pages/AuditLogsPage.razor b/src/Heimdall.Web/Components/Pages/AuditLogsPage.razor
index 333cc0f..ce5a249 100644
--- a/src/Heimdall.Web/Components/Pages/AuditLogsPage.razor
+++ b/src/Heimdall.Web/Components/Pages/AuditLogsPage.razor
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
-
+
Journal d'audit
diff --git a/src/Heimdall.Web/Components/Pages/CameraDetail.razor b/src/Heimdall.Web/Components/Pages/CameraDetail.razor
index 03bb11b..328e1a1 100644
--- a/src/Heimdall.Web/Components/Pages/CameraDetail.razor
+++ b/src/Heimdall.Web/Components/Pages/CameraDetail.razor
@@ -6,7 +6,7 @@
@inject NavigationManager Nav
-
+
Caméra : @_camera?.Name
diff --git a/src/Heimdall.Web/Components/Pages/CamerasPage.razor b/src/Heimdall.Web/Components/Pages/CamerasPage.razor
index cd348f6..7537bc3 100644
--- a/src/Heimdall.Web/Components/Pages/CamerasPage.razor
+++ b/src/Heimdall.Web/Components/Pages/CamerasPage.razor
@@ -6,7 +6,7 @@
@inject NavigationManager Nav
-
+
Caméras du site
diff --git a/src/Heimdall.Web/Components/Pages/EventsPage.razor b/src/Heimdall.Web/Components/Pages/EventsPage.razor
index e7dfcad..839d376 100644
--- a/src/Heimdall.Web/Components/Pages/EventsPage.razor
+++ b/src/Heimdall.Web/Components/Pages/EventsPage.razor
@@ -6,7 +6,7 @@
@inject NavigationManager Nav
-
+
Événements
diff --git a/src/Heimdall.Web/Components/Pages/Login.razor b/src/Heimdall.Web/Components/Pages/Login.razor
index fe4ff4f..8ba3abe 100644
--- a/src/Heimdall.Web/Components/Pages/Login.razor
+++ b/src/Heimdall.Web/Components/Pages/Login.razor
@@ -13,7 +13,7 @@