Keep/keep-notes/GLOBALS-CSS-CORRIGÉ-SLATE.css

324 lines
10 KiB
CSS

# 🔧 CORRECTION COMPLÈTE : Thème Slate
Ramez, voici le fichier CORRIGÉ complet à copier dans `keep-notes/app/globals.css`
---
## INSTRUCTIONS PRÉCISES
### Étape 1 : Remplacez le thème principal (:root)
Cherchez `:root {` dans le fichier (ligne 100)
Remplacez TOUTES les lignes 100-133 par ceci :
```css
:root {
--radius: 0.625rem;
/* ============================================
THEME SLATE (GRIS-BLEU) - PRINCIPAL ⭐
============================================ */
/* Backgrounds */
--background: oklch(0.985 0.003 230); /* Blanc grisâtre léger */
--card: oklch(1 0 0); /* Blanc pur */
--sidebar: oklch(0.97 0.004 230); /* Gris-bleu très pâle */
--input: oklch(0.98 0.003 230); /* Gris-bleu pâle */
/* Textes */
--foreground: oklch(0.2 0.02 230); /* Gris-bleu foncé */
--card-foreground: oklch(0.2 0.02 230);
--popover-foreground: oklch(0.2 0.02 230);
--foreground-secondary: oklch(0.45 0.015 230); /* Gris-bleu moyen */
--foreground-muted: oklch(0.6 0.01 230); /* Gris-bleu clair */
/* Primary Actions - GRIS-BLEU, PAS BLEU SATURÉ */
--primary: oklch(0.45 0.08 230); /* Gris-bleu doux */
--primary-foreground: oklch(0.99 0 0); /* Blanc */
/* Secondary */
--secondary: oklch(0.94 0.005 230); /* Gris-bleu très pâle */
--secondary-foreground: oklch(0.2 0.02 230);
/* Accents */
--muted: oklch(0.92 0.005 230);
--muted-foreground: oklch(0.6 0.01 230);
--accent: oklch(0.94 0.005 230);
--accent-foreground: oklch(0.2 0.02 230);
/* Functional */
--destructive: oklch(0.6 0.18 25); /* Rouge */
--border: oklch(0.9 0.008 230); /* Gris-bleu très clair */
--input: oklch(0.98 0.003 230);
--ring: oklch(0.7 0.005 230);
/* Sidebar */
--sidebar: oklch(0.97 0.004 230);
--sidebar-foreground: oklch(0.2 0.02 230);
--sidebar-primary: oklch(0.45 0.08 230);
--sidebar-primary-foreground: oklch(0.99 0 0);
--sidebar-accent: oklch(0.94 0.005 230);
--sidebar-accent-foreground: oklch(0.2 0.02 230);
--sidebar-border: oklch(0.9 0.008 230);
--sidebar-ring: oklch(0.7 0.005 230);
/* Popover */
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.2 0.02 230);
/* Charts (conservés) */
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
}
```
---
### Étape 2 : Remplacez le thème dark par défaut (.dark)
Cherchez `.dark {` dans le fichier (ligne 135)
Remplacez TOUTES les lignes 135-167 par ceci :
```css
.dark {
/* ============================================
THEME SLATE DARK MODE
============================================ */
/* Backgrounds */
--background: oklch(0.14 0.005 230); /* Noir grisâtre */
--card: oklch(0.18 0.006 230); /* Gris-bleu foncé */
--sidebar: oklch(0.12 0.005 230); /* Noir grisâtre */
--input: oklch(0.2 0.006 230);
/* Textes */
--foreground: oklch(0.97 0.003 230); /* Blanc grisâtre */
--card-foreground: oklch(0.97 0.003 230);
--popover-foreground: oklch(0.97 0.003 230);
--foreground-secondary: oklch(0.75 0.008 230);
--foreground-muted: oklch(0.55 0.01 230);
--popover-foreground: oklch(0.97 0.003 230);
/* Primary Actions */
--primary: oklch(0.55 0.08 230); /* Gris-bleu plus clair */
--primary-foreground: oklch(0.1 0 0); /* Noir */
/* Secondary */
--secondary: oklch(0.24 0.006 230);
--secondary-foreground: oklch(0.97 0.003 230);
/* Accents */
--muted: oklch(0.22 0.006 230);
--muted-foreground: oklch(0.55 0.01 230);
--accent: oklch(0.24 0.006 230);
--accent-foreground: oklch(0.97 0.003 230);
/* Functional */
--destructive: oklch(0.65 0.18 25);
--border: oklch(0.28 0.01 230);
--input: oklch(0.2 0.006 230);
--ring: oklch(0.6 0.01 230);
/* Sidebar */
--sidebar: oklch(0.12 0.005 230);
--sidebar-foreground: oklch(0.97 0.003 230);
--sidebar-primary: oklch(0.55 0.08 230);
--sidebar-primary-foreground: oklch(0.1 0 0);
--sidebar-accent: oklch(0.24 0.006 230);
--sidebar-accent-foreground: oklch(0.97 0.003 230);
--sidebar-border: oklch(0.28 0.01 230);
--sidebar-ring: oklch(0.6 0.01 230);
/* Popover */
--popover: oklch(0.18 0.006 230);
--popover-foreground: oklch(0.97 0.003 230);
/* Charts */
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
}
```
---
### Étape 3 : Corrigez le thème MIDNIGHT (remplacez lignes 169-188)
Cherchez `[data-theme='midnight'] {` (ligne 169)
Remplacez TOUTES les lignes 169-188 par ceci :
```css
[data-theme='midnight'] {
/* ============================================
THEME MIDNIGHT - VERSION SOMBRE DE SLATE
============================================ */
/* Light Mode */
--background: oklch(0.94 0.005 250); /* Gris-bleu très pâle */
--foreground: oklch(0.18 0.03 250); /* Gris-bleu très foncé */
--card: oklch(0.97 0.006 250); /* Gris-bleu pâle */
--card-foreground: oklch(0.18 0.03 250);
--popover: oklch(0.97 0.006 250);
--popover-foreground: oklch(0.18 0.03 250);
--primary: oklch(0.5 0.12 250); /* Gris-bleu saturé */
--primary-foreground: oklch(0.99 0 0); /* Blanc */
--secondary: oklch(0.2 0.01 250);
--secondary-foreground: oklch(0.18 0.03 250);
--muted: oklch(0.22 0.01 250);
--muted-foreground: oklch(0.55 0.02 250);
--accent: oklch(0.25 0.015 250);
--accent-foreground: oklch(0.18 0.03 250);
--destructive: oklch(0.6 0.22 25);
--border: oklch(0.85 0.015 250);
--input: oklch(0.25 0.01 250);
--ring: oklch(0.65 0.015 250);
--sidebar: oklch(0.9 0.01 250);
--sidebar-foreground: oklch(0.18 0.03 250);
--sidebar-primary: oklch(0.5 0.12 250);
--sidebar-primary-foreground: oklch(0.99 0 0);
--sidebar-accent: oklch(0.25 0.015 250);
--sidebar-accent-foreground: oklch(0.18 0.03 250);
--sidebar-border: oklch(0.85 0.015 250);
--sidebar-ring: oklch(0.65 0.015 250);
}
```
---
### Étape 4 : Corrigez le thème BLUE (remplacez lignes 190-217)
Cherchez `[data-theme='blue'] {` (ligne 190)
Remplacez TOUTES les lignes 190-217 par ceci :
```css
[data-theme='blue'] {
/* ============================================
THEME BLUE - VERSION SATURÉE DE SLATE
============================================ */
/* Light Mode */
--background: oklch(0.985 0.005 225); /* Blanc légèrement bleuté */
--foreground: oklch(0.18 0.035 225); /* Gris-bleu foncé saturé */
--card: oklch(0.98 0.01 225); /* Blanc légèrement bleuté */
--card-foreground: oklch(0.18 0.035 225);
--popover: oklch(0.98 0.01 225);
--popover-foreground: oklch(0.18 0.035 225);
--primary: oklch(0.5 0.15 225); /* Gris-bleu saturé vibrant */
--primary-foreground: oklch(0.99 0 0); /* Blanc */
--secondary: oklch(0.93 0.008 225);
--secondary-foreground: oklch(0.18 0.035 225);
--muted: oklch(0.9 0.01 225);
--muted-foreground: oklch(0.58 0.015 225);
--accent: oklch(0.93 0.01 225);
--accent-foreground: oklch(0.18 0.035 225);
--destructive: oklch(0.6 0.2 25);
--border: oklch(0.87 0.012 225);
--input: oklch(0.95 0.01 225);
--ring: oklch(0.65 0.015 225);
--sidebar: oklch(0.965 0.008 225);
--sidebar-foreground: oklch(0.18 0.035 225);
--sidebar-primary: oklch(0.5 0.15 225);
--sidebar-primary-foreground: oklch(0.99 0 0);
--sidebar-accent: oklch(0.93 0.01 225);
--sidebar-accent-foreground: oklch(0.18 0.035 225);
--sidebar-border: oklch(0.87 0.012 225);
--sidebar-ring: oklch(0.65 0.015 225);
}
```
---
### Étape 5 : Corrigez le thème SEPIA (remplacez lignes 219-238)
Cherchez `[data-theme='sepia'] {` (ligne 219)
Remplacez TOUTES les lignes 219-238 par ceci :
```css
[data-theme='sepia'] {
/* ============================================
THEME SEPIA - VERSION CHALEUREUSE DE SLATE
============================================ */
/* Light Mode */
--background: oklch(0.985 0.004 45); /* Blanc légèrement doré */
--foreground: oklch(0.2 0.015 45); /* Gris-brun foncé */
--card: oklch(0.98 0.01 45); /* Blanc légèrement doré */
--card-foreground: oklch(0.2 0.015 45);
--popover: oklch(0.98 0.01 45);
--popover-foreground: oklch(0.2 0.015 45);
--primary: oklch(0.45 0.08 45); /* Gris-brun chaud */
--primary-foreground: oklch(0.99 0 0); /* Blanc */
--secondary: oklch(0.94 0.008 45);
--secondary-foreground: oklch(0.2 0.015 45);
--muted: oklch(0.91 0.01 45);
--muted-foreground: oklch(0.6 0.012 45);
--accent: oklch(0.93 0.01 45);
--accent-foreground: oklch(0.2 0.015 45);
--destructive: oklch(0.6 0.2 25);
--border: oklch(0.88 0.012 45);
--input: oklch(0.97 0.008 45);
--ring: oklch(0.68 0.01 45);
--sidebar: oklch(0.96 0.01 45);
--sidebar-foreground: oklch(0.2 0.015 45);
--sidebar-primary: oklch(0.45 0.08 45);
--sidebar-primary-foreground: oklch(0.99 0 0);
--sidebar-accent: oklch(0.93 0.01 45);
--sidebar-accent-foreground: oklch(0.2 0.015 45);
--sidebar-border: oklch(0.88 0.012 45);
--sidebar-ring: oklch(0.68 0.01 45);
}
```
---
## APRÈS LES MODIFICATIONS
1. **Enregistrez** le fichier (`Ctrl+S`)
2. **Allez dans vos settings** (Settings Apparence)
3. **Changez le thème** de 'blue' vers :
- **'light'** pour le nouveau thème Slate principal
- OU 'midnight' pour tester le thème nuit
- OU 'blue' pour tester le thème bleu harmonisé
4. **Rafraîchissez** la page (`F5` ou redémarrez le serveur)
---
## 🎨 Ce que vous devriez voir :
### Avec thème 'light' (nouveau Slate) :
- Fond : blanc grisâtre
- Texte : gris-bleu foncé
- Boutons primary : **GRIS-BLEU DOX** (pas bleu saturé !)
- Plus professionnel, moins fatigant
### Avec thème 'midnight' :
- Fond : noir grisâtre
- Texte : blanc grisâtre
- Boutons : gris-bleu vibrant
- Nuit profonde
### Avec thème 'blue' :
- Fond : blanc légèrement bleuté
- Texte : gris-bleu foncé saturé
- Boutons : gris-bleu vibrant
- Version énergique
### Avec thème 'sepia' :
- Fond : blanc légèrement doré
- Texte : gris-brun
- Boutons : gris-brun
- Version chaleureuse
---
## 🔙 ANNULER si pas satisfait :
Si les couleurs ne vous plaisent pas :
```
git checkout -- keep-notes/app/globals.css
```
---
**Ramez, après avoir appliqué ces modifications, testez le thème 'light' pour voir le nouveau Slate !** 🎨🚀