Fahari Fahari 2.1.2

Themes and branding

For everyone: Appearance

The half-moon button in the top bar opens a quick menu: light, dark or "follow my device", eight favourite themes, and All themes, typefaces & sidebar, which opens the full Appearance panel (a drawer on computers, a bottom sheet on phones):

Group Themes
Classic Ocean Depths, Emerald, Royal, Crimson, Slate, Modern Minimalist
Warm Sunset Boulevard, Golden Hour, Desert Rose, Savanna, Coral Coast
Nature Forest Canopy, Botanical Garden, Lake Victoria
Cool Arctic Frost, Tech Innovation, Midnight Galaxy, Jacaranda
Bold Maasai, Kikoi, Graphite

Every theme is contrast-checked: white text on its main colour is at least 7:1 and on its highlight colour at least 4.5:1, in light and dark mode. Page backgrounds and cards pick up a faint tint of the theme. The choices are saved to the person's account and follow them to every device; public pages remember mode, theme and typeface in a cookie.

Which look wins: the person's own choice, then their school's default, then the platform default.

On phones

Below 900px wide, dashboards switch to an app layout. The tab bar along the bottom has three of the role's most-used pages, a raised New button in the middle that opens quick actions, and More, which opens every page as tiles with a search box, Appearance, Install the app and Sign out. The bar hides while scrolling down and returns when scrolling up, and respects iPhone and Android safe areas. Tabs and quick actions per role are set in core/Layout.php (BOTTOM_NAV, QUICK_ACTIONS); an item only appears if that role can open the page.

Super Admin → Appearance

The look everyone gets by default:

School Admin → Brand colours

Logos

Upload two versions of each logo:

Variant Use it for Where it appears
Light-background logo Dark-coloured artwork on a transparent background Light mode, white email headers, documents
Dark-background logo White or light artwork on a transparent background Dark mode, brand-coloured sidebar and email banners

Fahari picks the right one automatically for each screen and each email header. If only one is uploaded, it is used everywhere.

For developers: how the stylesheets work

Fahari has two stylesheets, both built from the same design tokens. In 2.1 the additions live in dev/css/*.css (app-* go into the dashboard sheet, site-* into the public one, both-* into both); run python3 dev/build_css.py after editing them. The dev/ folder is not needed on the live server.

File Loaded by
public/assets/css/solvo-app.css Every signed-in dashboard (all roles)
public/assets/css/solvo-site.css Marketing site, school websites, sign-in pages, legal pages, installer, docs
public/assets/css/solvo-chat.css Only the chat bubble when embedded on another website (generated)

Colours are CSS custom properties. Use the semantic tokens, never raw hex values, and light/dark and every theme work automatically:

.my-panel {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.my-panel a { color: var(--c-accent-text); }

Key tokens: --c-bg, --c-surface, --c-surface-2, --c-surface-3, --c-border, --c-border-strong, --c-text, --c-text-2, --c-text-3, --c-primary, --c-accent, --c-accent-hover, --c-accent-text, --c-success, --c-warning, --c-danger, --c-info (each with a -text and -soft variant), --shadow-s/m/l, --radius-s/m/l, --font-sans.

1.x variable names (--navy, --orange, --muted …) still work and follow the active theme, so any custom CSS you wrote for 1.x keeps working.

The <html> element carries data-mode (light, dark, system), data-theme (solvo, a preset name, school or custom), data-chrome (brand, light or dark) and data-font (inter, friendly, modern, geometric, readable, accessible, classic). Custom colours are injected as --brand-primary and --brand-accent; everything else is derived from those two with color-mix().

Each page's <body> has a class such as pg-school-admin-students-index, so a page-specific rule can be scoped without affecting anything else.