diff --git a/adhan-webapp/static/README-KLEUREN.md b/adhan-webapp/static/README-KLEUREN.md new file mode 100644 index 0000000..d72da03 --- /dev/null +++ b/adhan-webapp/static/README-KLEUREN.md @@ -0,0 +1,119 @@ +# Kleurenschema Adhan App + +## Overzicht +Alle kleuren in de Adhan app worden nu centraal beheerd via het bestand `colors.css`. Dit maakt het gemakkelijk om het hele kleurenschema van de app aan te passen door slechts één bestand te wijzigen. + +## Hoofdkleuren +De app gebruikt vier hoofdkleuren die je kunt aanpassen: + +### 1. Blauw (Primair) +- `--primary-blue: #1e3c72` - Donkerblauw voor achtergronden +- `--secondary-blue: #2a5298` - Lichterblauw voor gradiënten +- `--accent-blue: #2563eb` - Helderblauw voor accenten + +### 2. Goud +- `--gold: #d4af37` - Goudkleur voor speciale accenten + +### 3. Basis kleuren +- `--white: #ffffff` - Wit +- `--black: #000000` - Zwart +- `--dark-gray: #111111` - Donkergrijs +- `--light-gray: #f7fafc` - Lichtgrijs + +## Hoe kleuren aanpassen? + +### Stap 1: Open colors.css +Bewerk het bestand: `adhan-webapp/static/colors.css` + +### Stap 2: Wijzig de hoofdkleuren +Verander de waarden in de `:root` sectie: + +```css +:root { + /* Hoofdkleuren - PAS DEZE AAN */ + --primary-blue: #1e3c72; /* Verander naar jouw donkere kleur */ + --secondary-blue: #2a5298; /* Verander naar jouw lichte kleur */ + --accent-blue: #2563eb; /* Verander naar jouw accent kleur */ + --gold: #d4af37; /* Verander naar jouw goud/accent kleur */ + + /* Basis kleuren - meestal niet nodig om aan te passen */ + --white: #ffffff; + --black: #000000; + --dark-gray: #111111; + --light-gray: #f7fafc; +} +``` + +### Stap 3: Sla op en herlaad +Na het opslaan van `colors.css` worden alle kleuren automatisch bijgewerkt in: +- Hoofdpagina (`index.html`) +- Adzkaar pagina (`adzkaar.html`) +- Quran speler (`quran.html`) +- Instellingen (`settings.html`) +- Debug pagina (`debug.html`) + +## Voorbeelden van kleurenschema's + +### Groen thema +```css +--primary-blue: #1e4d3c; +--secondary-blue: #2a8052; +--accent-blue: #25eb63; +--gold: #d4af37; +``` + +### Paars thema +```css +--primary-blue: #4c1e72; +--secondary-blue: #6a2a98; +--accent-blue: #8b25eb; +--gold: #d4af37; +``` + +### Rood thema +```css +--primary-blue: #721e1e; +--secondary-blue: #982a2a; +--accent-blue: #eb2525; +--gold: #d4af37; +``` + +## Geavanceerde aanpassingen + +### Transparante varianten +De app gebruikt automatisch transparante versies van de kleuren. Deze worden automatisch gegenereerd, maar je kunt ze ook handmatig aanpassen: + +```css +--white-10: rgba(255, 255, 255, 0.1); /* 10% transparant wit */ +--white-20: rgba(255, 255, 255, 0.2); /* 20% transparant wit */ +--black-30: rgba(0, 0, 0, 0.3); /* 30% transparant zwart */ +``` + +### Gradiënten +De hoofdgradiënt wordt automatisch gegenereerd uit de primaire kleuren: + +```css +--primary-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); +``` + +## Bestanden die het kleurenschema gebruiken + +1. **colors.css** - Centraal kleurenbestand (HOOFDBESTAND OM AAN TE PASSEN) +2. **style.css** - Importeert colors.css en gebruikt de variabelen +3. **quran.css** - Importeert colors.css voor Quran specifieke styling +4. **adzkaar.html** - Gebruikt de kleurvariabelen in inline CSS + +## Tips + +1. **Test altijd beide thema's**: Controleer zowel de lichte als donkere modus na wijzigingen +2. **Gebruik kleurcontrast tools**: Zorg ervoor dat tekst goed leesbaar blijft +3. **Maak een backup**: Kopieer `colors.css` voordat je grote wijzigingen maakt +4. **Consistentie**: Gebruik dezelfde kleurfamilie voor een professionele uitstraling + +## Problemen oplossen + +Als kleuren niet worden bijgewerkt: +1. Controleer of `colors.css` correct wordt geïmporteerd +2. Ververs de browser cache (Ctrl+F5 of Cmd+Shift+R) +3. Controleer de browser console voor CSS fouten +4. Zorg ervoor dat CSS variabelen correct zijn geschreven (met `--` prefix) \ No newline at end of file diff --git a/adhan-webapp/static/colors.css b/adhan-webapp/static/colors.css new file mode 100644 index 0000000..23e9225 --- /dev/null +++ b/adhan-webapp/static/colors.css @@ -0,0 +1,86 @@ +/* Centraal Kleurenschema voor Adhan App */ +:root { + /* Hoofdkleuren */ + --primary-blue: #1e3c72; + --secondary-blue: #2a5298; + --accent-blue: #2563eb; + --gold: #d4af37; + --white: #ffffff; + --black: #000000; + --dark-gray: #111111; + --light-gray: #f7fafc; + + /* Gradient achtergronden */ + --primary-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); + --gold-gradient: linear-gradient(135deg, var(--gold) 0%, #f4e17a 100%); + + /* Transparante varianten */ + --white-10: rgba(255, 255, 255, 0.1); + --white-15: rgba(255, 255, 255, 0.15); + --white-20: rgba(255, 255, 255, 0.2); + --white-30: rgba(255, 255, 255, 0.3); + --black-30: rgba(0, 0, 0, 0.3); + --black-50: rgba(0, 0, 0, 0.5); + + /* Tekst kleuren */ + --text-primary-light: #222222; + --text-primary-dark: #ffffff; + --text-secondary-light: #666666; + --text-secondary-dark: #bbbbbb; + --text-muted-light: #c0c6d0; + --text-muted-dark: #e0e6ed; + + /* Achtergrond kleuren */ + --bg-light: var(--light-gray); + --bg-dark: var(--dark-gray); + --panel-bg-light: var(--white); + --panel-bg-dark: rgba(24, 24, 24, 0.8); + + /* Border kleuren */ + --border-light: #e0e6ed; + --border-dark: var(--white-20); + + /* Accent kleuren voor verschillende states */ + --active-bg-light: #fffbe6; + --active-bg-dark: rgba(234, 179, 8, 0.08); + --hover-bg-light: rgba(212, 175, 55, 0.1); + --hover-bg-dark: var(--white-10); + + /* Schaduwen */ + --shadow-light: 0 8px 32px 0 rgba(0, 0, 0, 0.25); + --shadow-dark: 0 8px 32px 0 rgba(0, 0, 0, 0.5); + --text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); + --text-shadow-strong: 2px 2px 8px var(--black); +} + +/* Light theme variabelen */ +html.light { + --bg: var(--bg-light); + --text: var(--text-primary-light); + --text-secondary: var(--text-secondary-light); + --text-muted: var(--text-muted-light); + --panel-bg: var(--panel-bg-light); + --panel-text: var(--text-primary-light); + --accent: var(--accent-blue); + --accent-color: var(--gold); + --border-color: var(--border-light); + --active-bg: var(--active-bg-light); + --hover-bg: var(--hover-bg-light); + --shadow: var(--shadow-light); +} + +/* Dark theme variabelen */ +html.dark, body.dark { + --bg: var(--bg-dark); + --text: var(--text-primary-dark); + --text-secondary: var(--text-secondary-dark); + --text-muted: var(--text-muted-dark); + --panel-bg: var(--panel-bg-dark); + --panel-text: var(--text-primary-dark); + --accent: var(--white); + --accent-color: var(--gold); + --border-color: var(--border-dark); + --active-bg: var(--active-bg-dark); + --hover-bg: var(--hover-bg-dark); + --shadow: var(--shadow-dark); +} \ No newline at end of file diff --git a/adhan-webapp/static/quran.css b/adhan-webapp/static/quran.css index df88a01..6e2ecdc 100644 --- a/adhan-webapp/static/quran.css +++ b/adhan-webapp/static/quran.css @@ -1,29 +1,31 @@ +@import url('colors.css'); + /* Quran pagina - volledige breedte met smal zijmenu en correcte theme ondersteuning */ /* Default (dark) theme variabelen voor Quran pagina */ -:root { - --quran-bg: #111; - --quran-text: #fff; - --quran-panel-bg: rgba(24, 24, 24, 0.95); - --quran-panel-text: #fff; - --quran-accent: #fff; - --quran-border: rgba(255, 255, 255, 0.1); - --quran-card-bg: rgba(40, 40, 40, 0.95); - --quran-text-secondary: #bbb; - --quran-hover-bg: rgba(255, 255, 255, 0.1); +:root.quran-dark { + --quran-bg: var(--bg-dark); + --quran-text: var(--text-primary-dark); + --quran-panel-bg: var(--panel-bg-dark); + --quran-panel-text: var(--text-primary-dark); + --quran-accent: var(--white); + --quran-border: var(--border-dark); + --quran-card-bg: var(--panel-bg-dark); + --quran-text-secondary: var(--text-secondary-dark); + --quran-hover-bg: var(--hover-bg-dark); } /* Light theme variabelen voor Quran pagina */ -html.light { - --quran-bg: #f7fafc; - --quran-text: #222; - --quran-panel-bg: #fff; - --quran-panel-text: #222; - --quran-accent: #d4af37; - --quran-border: #e0e6ed; - --quran-card-bg: #ffffff; - --quran-text-secondary: #666; - --quran-hover-bg: rgba(212, 175, 55, 0.1); +:root.quran-light { + --quran-bg: var(--bg-light); + --quran-text: var(--text-primary-light); + --quran-panel-bg: var(--panel-bg-light); + --quran-panel-text: var(--text-primary-light); + --quran-accent: var(--gold); + --quran-border: var(--border-light); + --quran-card-bg: var(--white); + --quran-text-secondary: var(--text-secondary-light); + --quran-hover-bg: var(--hover-bg-light); } /* Zorg ervoor dat het zijmenu de Quran theme variabelen gebruikt */ diff --git a/adhan-webapp/static/style.css b/adhan-webapp/static/style.css index 297d566..255b9bb 100644 --- a/adhan-webapp/static/style.css +++ b/adhan-webapp/static/style.css @@ -1,58 +1,53 @@ +@import url('colors.css'); + :root { - --bg-light: #f7fafc; - --bg-dark: #162447; - --text-light: #222; - --text-dark: #fff; - --accent-light: #2563eb; - --accent-dark: #fff; - --accent-blue: #222; --panel-radius: 0rem; - --panel-shadow: 0 8px 32px 0 rgba(0,0,0,0.25); - --tijdkleur-light: #222; - --tijdkleur-dark: #fff; - --icoon-light: #222; - --icoon-dark: #fff; + --panel-shadow: var(--shadow); + --tijdkleur-light: var(--text-primary-light); + --tijdkleur-dark: var(--text-primary-dark); + --icoon-light: var(--text-primary-light); + --icoon-dark: var(--text-primary-dark); } html.light { - --bg: #f7fafc; - --text: #222; - --weather-temp: #222; - --panel-bg: #fff; - --panel-text: #222; - --accent: #2563eb; + --bg: var(--bg-light); + --text: var(--text-primary-light); + --weather-temp: var(--text-primary-light); + --panel-bg: var(--panel-bg-light); + --panel-text: var(--text-primary-light); + --accent: var(--accent-blue); --accent-blue: #f0f0f0; - --panel-border: #e0e6ed; - --list-bg: #f7fafc; - --list-border: #e0e6ed; - --active-bg: #fffbe6; + --panel-border: var(--border-light); + --list-bg: var(--bg-light); + --list-border: var(--border-light); + --active-bg: var(--active-bg-light); --tijdkleur: var(--tijdkleur-light); --icoon-kleur: var(--icoon-light); - --card-bg: #ffffff; - --border-color: #e0e6ed; - --primary-color: #2563eb; - --text-color: #222; - --text-secondary: #666; + --card-bg: var(--white); + --border-color: var(--border-light); + --primary-color: var(--accent-blue); + --text-color: var(--text-primary-light); + --text-secondary: var(--text-secondary-light); } html.dark, body.dark { - --bg: #111; - --text: #fff; - --panel-bg: #181818cc; - --panel-text: #fff; - --accent: #fff; - --accent-blue: #222; - --panel-border: #222; - --list-bg: rgba(255,255,255,0.04); - --list-border: #222; - --active-bg: rgba(234, 179, 8, 0.08); + --bg: var(--bg-dark); + --text: var(--text-primary-dark); + --panel-bg: var(--panel-bg-dark); + --panel-text: var(--text-primary-dark); + --accent: var(--white); + --accent-blue: var(--text-primary-light); + --panel-border: var(--text-primary-light); + --list-bg: var(--white-10); + --list-border: var(--text-primary-light); + --active-bg: var(--active-bg-dark); --tijdkleur: var(--tijdkleur-dark); --icoon-kleur: var(--icoon-dark); - --card-bg: rgba(255, 255, 255, 0.1); - --border-color: rgba(255, 255, 255, 0.2); - --primary-color: #fff; - --text-color: #fff; - --text-secondary: #bbb; + --card-bg: var(--white-10); + --border-color: var(--border-dark); + --primary-color: var(--white); + --text-color: var(--text-primary-dark); + --text-secondary: var(--text-secondary-dark); } body, html { diff --git a/adhan-webapp/templates/adzkaar.html b/adhan-webapp/templates/adzkaar.html index 851d847..100fe00 100644 --- a/adhan-webapp/templates/adzkaar.html +++ b/adhan-webapp/templates/adzkaar.html @@ -3,6 +3,7 @@