new colors

This commit is contained in:
2025-12-30 13:23:14 +00:00
parent eeed7497cb
commit 854e80cddd
4 changed files with 62 additions and 11 deletions

View File

@@ -5,15 +5,42 @@
:root { :root {
--font-sans: 'Public Sans', sans-serif; --font-sans: 'Public Sans', sans-serif;
--ui-bg: rgb(220,220,220); --ui-primary: rgb(189, 23, 255);
} }
.light {
--ui-bg: var(--color-neutral-100);
}
.dark { .dark {
/*--ui-bg: var(--ui-color-neutral-950);*/ /*--ui-bg: var(--ui-color-neutral-950);*/
--ui-bg: rgb(17,17,17); --ui-bg: oklch(16.7% 0.004 49.25);
--ui-bg-accented: rgba(189, 23, 255, 0.3); --ui-bg-accented: rgba(189, 23, 255, 0.3);
--ui-bg-elevated: rgba(189, 23, 255, 0.2); --ui-bg-elevated: rgba(189, 23, 255, 0.2);
--ui-primary: rgb(189, 23, 255);
}
.ui-red {
--ui-primary: var(--color-red-500);
--ui-bg-elevated: oklch(63.7% 0.237 25.331 / 20%);
--ui-bg-accented: oklch(63.7% 0.237 25.331 / 40%);
}
.ui-blue {
--ui-primary: var(--color-blue-500);
--ui-bg-elevated: oklch(62.3% 0.214 259.815 / 20%);
--ui-bg-accented: oklch(62.3% 0.214 259.815 / 40%);
}
.ui-violet {
--ui-primary: var(--color-violet-500);
--ui-bg-elevated: oklch(60.6% 0.25 292.717 / 20%);
--ui-bg-accented: oklch(60.6% 0.25 292.717 / 40%);
}
.ui-orange {
--ui-primary: var(--color-orange-600);
} }
.dark-widget-bg { .dark-widget-bg {

View File

@@ -10,7 +10,7 @@ const items_def: NavigationMenuItem[][] = [
active: true active: true
}, { }, {
label: 'Inbox', label: 'Inbox',
icon: 'i-lucide-inbox', icon: 'solar:chat-round-unread-outline',
badge: '4' badge: '4'
}, { }, {
label: 'Contacts', label: 'Contacts',

View File

@@ -8,19 +8,44 @@ const nav : NavigationMenuItem[][] = [[
to: "/dashboard" to: "/dashboard"
}, { }, {
label: 'Notifications', label: 'Notifications',
icon: 'i-lucide-inbox', icon: 'solar:chat-round-unread-outline',
badge: '4', badge: '4',
to: "/events" to: "/events"
}, { }, {
label: 'Settings', label: 'Settings',
icon: 'i-lucide-settings', icon: 'i-lucide-settings',
to: '/settings' //to: '/settings',
}]]; children: [
{
label: "General",
icon: "solar:settings-minimalistic-broken",
to: "/settings",
},
{
label: "Profile",
icon: "solar:user-broken",
to: "/settings/profile"
},
{
label: "Theme",
icon: "solar:pallete-2-broken",
to: "/settings/theme"
},
],
}]
];
/*[ /*[
{ {
label: "Feedback" label: "Feedback"
} }
]];*/ ]];*/
// set color
useHead({
bodyAttrs: {
class: "ui-blue"
}
})
</script> </script>
<template> <template>
<UDashboardGroup> <UDashboardGroup>
@@ -28,7 +53,7 @@ const nav : NavigationMenuItem[][] = [[
<UDashboardSidebarCollapse /> <UDashboardSidebarCollapse />
<UContainer class="overflow-auto"> <UContainer class="max-w-full overflow-auto">
<!-- in my case I want the button to be the same everywhere. <!-- in my case I want the button to be the same everywhere.
if you wanna customize it per page, place it per page inside UContainer --> if you wanna customize it per page, place it per page inside UContainer -->
<!--<UDashboardSidebarToggle variant="subtle" class="absolute z-20 top-3 left-2.5"/>--> <!--<UDashboardSidebarToggle variant="subtle" class="absolute z-20 top-3 left-2.5"/>-->

View File

@@ -123,7 +123,7 @@ import { h } from 'vue'
<template> <template>
<DashboardHeader title="Dashboard"/> <DashboardHeader title="Dashboard"/>
<UContainer class="max-w-full">
<div class="mt-3 mb-3 flex flex-col w-full relative z-0"> <div class="mt-3 mb-3 flex flex-col w-full relative z-0">
<ProseH2 class="text-center m-0.5 w-full">Hey there, user!</ProseH2> <ProseH2 class="text-center m-0.5 w-full">Hey there, user!</ProseH2>
<ProseP class="text-center text-muted m-0.5">Welcome to the UI!</ProseP> <ProseP class="text-center text-muted m-0.5">Welcome to the UI!</ProseP>
@@ -144,8 +144,7 @@ import { h } from 'vue'
<UTable :data="table_demo" :columns="table_headers" class="flex-1 "/> <UTable :data="table_demo" :columns="table_headers" class="flex-1 "/>
</UContainer>
<UFooter> <UFooter>
<p>footer</p> <p>footer</p>
</UFooter> </UFooter>