feat: add theme manager

awesome!
This commit is contained in:
Sonny
2024-05-12 00:46:48 +02:00
committed by Sonny
parent b5cda75790
commit 3531038321
19 changed files with 271 additions and 203 deletions

View File

@@ -1,14 +1,14 @@
import { resolvePageComponent } from '@adonisjs/inertia/helpers';
import { createInertiaApp } from '@inertiajs/react';
import { hydrateRoot } from 'react-dom/client';
import { theme } from '~/styles/theme';
import { primaryColor } from '~/styles/theme';
import '../i18n/index';
const appName = import.meta.env.VITE_APP_NAME || 'MyLinks';
createInertiaApp({
progress: { color: theme.colors.primary },
progress: { color: primaryColor },
title: (title) => `${appName}${title && ` - ${title}`}`,