wiregui/wiregui/pages/style.py
Stefano Bertelli 1fc80b9c0a
Some checks failed
CI / test (push) Successful in 1m48s
CI / release (push) Failing after 29s
CI / docker (push) Has been skipped
feat: UI modernization — Manrope font, dark/light theme, card-based layouts
- Add Manrope as primary UI font via Google Fonts (wiregui/pages/style.py)
- Add dark/light/auto theme toggle in header, persisted to users.theme_preference
- Alembic migration for theme_preference column
- Redesign account page with card-based layout matching admin pages
- Convert settings page from tabs to stacked cards
- Replace all outline buttons with solid unelevated buttons
- Fix dark mode: remove hardcoded bg-grey-1/text-grey-7, use theme-safe colors
- Fix CI: add ca-certificates to release job for SSL cert verification
- Add no-coauthor and commit conventions to CLAUDE.md
2026-03-30 21:40:29 -05:00

20 lines
No EOL
756 B
Python

"""Shared UI styling — font, theme, global CSS."""
from nicegui import ui
def apply_style():
"""Add Manrope font and global CSS overrides. Call once per page."""
ui.add_head_html(
'<link rel="preconnect" href="https://fonts.googleapis.com">'
'<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>'
'<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap" rel="stylesheet">'
)
ui.add_css("""
body, input, button, select, textarea {
font-family: 'Manrope', sans-serif !important;
}
code, .font-mono, .q-table__container .monospace {
font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}
""")