Add business dashboard dark mode from Super Admin theme setting.

Login and in-app surfaces follow tenant themeMode, matching customer dark tokens, with themed switches and tighter card/table chrome.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-31 13:40:40 +03:30
co-authored by Cursor
parent 65012717d0
commit e9400c2281
83 changed files with 586 additions and 193 deletions
@@ -1,6 +1,7 @@
import { apiRequest } from '../lib/api'
import type { DashboardLocale } from '@meshkee/dashboard-core'
import type { BusinessPrimaryColorId } from '../utils/businessPrimaryColors'
import type { DashboardThemeMode } from '../utils/applyBusinessTheme'
import type { BusinessModuleId, HomeChartId } from '../utils/businessModules'
export interface ResolvedTenant {
@@ -11,10 +12,12 @@ export interface ResolvedTenant {
domain: string
primaryColor: BusinessPrimaryColorId
defaultLocale?: DashboardLocale
themeMode?: DashboardThemeMode
enabledModules?: BusinessModuleId[]
homeCharts?: [HomeChartId, HomeChartId]
specialProductsSource?: 'product' | 'store_item'
logoUrl?: string | null
logoDarkUrl?: string | null
faviconUrl?: string | null
}