Skip to content

feat(konsta): foundation — KonstaProvider, hooks, theme CSS removal#333

Open
hessius wants to merge 1 commit intoversion/2.4.0from
feat/konsta-foundation
Open

feat(konsta): foundation — KonstaProvider, hooks, theme CSS removal#333
hessius wants to merge 1 commit intoversion/2.4.0from
feat/konsta-foundation

Conversation

@hessius
Copy link
Owner

@hessius hessius commented Mar 27, 2026

Summary

Lays the groundwork for Konsta UI integration (#332).

Changes

  • Install konsta@5.0.8 — Tailwind-native mobile UI components
  • KonstaProvider in App.tsx — wraps content when mobile or settings toggle is on
  • useKonstaOverride hook — single gate: isMobile() || forcedViaSettings
  • usePlatformTheme refactored — resolves KonstaTheme ('ios'|'material') instead of CSS classes
  • Removed custom ios-theme.css and material-theme.css (Konsta replaces them)
  • i18n keys for Konsta UI toggle in all 6 locales

Testing

  • ✅ 416 frontend tests pass
  • ✅ Build clean
  • ✅ Lint: 0 errors (27 warnings, same baseline)

Part of #332

…ove custom theme CSS

- Install konsta@5.0.8 (Tailwind-native mobile UI components)
- Add KonstaProvider wrapper in App.tsx (active on mobile or when forced via settings)
- Create useKonstaOverride hook (isMobile || settings toggle)
- Refactor usePlatformTheme to resolve KonstaTheme ('ios'|'material')
- Remove custom ios-theme.css and material-theme.css (replaced by Konsta)
- Remove theme CSS imports from main.tsx
- Add @import 'konsta/react/theme.css' to index.css
- Add USE_KONSTA_UI storage key to constants
- Add i18n keys for Konsta UI toggle in all 6 locales

Part of #332

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant