Theme Mode
Default theme mode for the skin. Users can override this in their preferences.Valid values:
'auto'- Follow system theme preference (recommended)'light'- Always use light theme'dark'- Always use dark theme
Theme Colors
The theme color used in the HTML meta tag and browser UI (address bar, task switcher).This color should match your wiki’s primary brand color. It’s particularly visible on mobile devices.Example:
Progressive Web App (PWA)
Citizen can generate a web app manifest to enable PWA features like “Add to Home Screen” on mobile devices.Enable Manifest
Enable or disable the web app manifest endpoint.When enabled, Citizen provides a manifest at
/api.php?action=appmanifest that allows users to install your wiki as a progressive web app.Example:The manifest is only generated when anonymous users have read permissions (
$wgGroupPermissions['*']['read'] = true).Manifest Options
Configuration for the web app manifest. Customize PWA appearance and behavior.Default value:Properties:
background_color(string) - Splash screen background colordescription(string) - Description shown in app stores and install promptsshort_name(string) - Short name for home screen (12 characters max recommended)theme_color(string) - Browser UI color (usually matches$wgCitizenThemeColor)icons(array) - Custom icon definitions (see below)
If
icons is empty or not provided, Citizen automatically generates icons from $wgLogos. For best results, ensure $wgLogos includes 192x192 and 512x512 PNG icons.Font Loading
Citizen includes optional font packages for better typography in specific languages.Enable Noto Sans CJK font for Chinese, Japanese, and Korean text.This loads an additional resource module (
skins.citizen.styles.fonts.cjk) with optimized fonts for CJK languages.Example:Enable Noto Naskh Arabic font for Arabic text.This loads an additional resource module (
skins.citizen.styles.fonts.ar) with optimized fonts for Arabic script.Example:Complete Example
Client Preferences
While server-side configuration sets defaults, users can customize their theme through MediaWiki’s client preferences system. Citizen respects these preferences:skin-theme- User’s theme choice (overrides$wgCitizenThemeDefault)citizen-feature-pure-black- Use pure black for dark modecitizen-feature-image-dimming- Dim images in dark mode