MicProtocol / web /src /App.vue
Benard John
feat: implement full-stack architecture with database models, authentication services, and web dashboard components
37b5223
Raw History Blame Contribute Delete
2.04 kB
<template>
<n-config-provider
:theme="themeStore.theme === 'dark' ? darkTheme : null"
:theme-overrides="themeOverrides"
:locale="enUS"
>
<n-loading-bar-provider>
<n-dialog-provider>
<n-notification-provider>
<n-message-provider>
<app-layout />
</n-message-provider>
</n-notification-provider>
</n-dialog-provider>
</n-loading-bar-provider>
</n-config-provider>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { darkTheme, enUS } from 'naive-ui'
import type { GlobalThemeOverrides } from 'naive-ui'
import AppLayout from './components/AppLayout.vue'
import { useThemeStore } from './stores/theme'
const themeStore = useThemeStore()
// Ukweli brand — Kenya-flag green primary, savanna gold accent.
const themeOverrides = computed<GlobalThemeOverrides>(() => ({
common: {
primaryColor: themeStore.theme === 'dark' ? '#2EA84A' : '#006600',
primaryColorHover: themeStore.theme === 'dark' ? '#45C260' : '#008000',
primaryColorPressed: themeStore.theme === 'dark' ? '#1F7A35' : '#004D00',
primaryColorSuppl: themeStore.theme === 'dark' ? '#2EA84A' : '#006600',
infoColor: '#1F6FB8',
successColor: '#1F8A4C',
warningColor: '#B5740E',
errorColor: '#B51C1C',
fontFamily: 'Inter, "Noto Sans", -apple-system, BlinkMacSystemFont, sans-serif',
fontSize: '14px',
borderRadius: '10px',
bodyColor: themeStore.theme === 'dark' ? '#161B22' : '#FAF7F2',
cardColor: themeStore.theme === 'dark' ? '#161B22' : '#FFFFFF',
modalColor: themeStore.theme === 'dark' ? '#161B22' : '#FFFFFF',
popoverColor: themeStore.theme === 'dark' ? '#1F2630' : '#FFFFFF',
},
Button: {
borderRadiusMedium: '10px',
borderRadiusLarge: '12px',
fontWeight: '600',
},
Card: { borderRadius: '14px' },
Input: { borderRadius: '10px' },
Tag: { borderRadius: '6px' },
Modal: { borderRadius: '18px' },
Message: { borderRadius: '10px' },
}))
</script>