Open source personal finance application
refactor(theme): migrate to nuxt-ui semantic colors
Ilya Komichev098f1284f75b
diff --git a/app/app.config.ts b/app/app.config.tsindex a535fe3a..af1b7255 100644--- a/app/app.config.ts+++ b/app/app.config.ts@@ -31,7 +31,22 @@ export default defineAppConfig({},modal: {slots: {- overlay: '!bg-(--overlay)',+ overlay: '!bg-overlay',+ },+ },+ selectMenu: {+ defaultVariants: {+ size: 'lg',+ variant: 'outline',+ },+ slots: {+ base: 'min-h-[42px] px-4 min-w-[160px]',+ item: 'hover:bg-elevated/50 rounded-sm',+ },+ variants: {+ variant: {+ outline: 'bg-elevated/30 hover:!bg-elevated/50',+ },},},toast: {@@ -39,7 +54,7 @@ export default defineAppConfig({close: false,},slots: {- description: 'text-1',+ description: 'text-highlighted',title: 'text-3xl',wrapper: 'flex-row items-center gap-3',},diff --git a/app/assets/css/main.css b/app/assets/css/main.cssindex 590d73f7..c8242588 100644--- a/app/assets/css/main.css+++ b/app/assets/css/main.css@@ -20,7 +20,7 @@@layer base {html,body {- @apply antialiased text-default bg-(--item-1) select-none;+ @apply antialiased text-default bg-muted/30 select-none;overscroll-behavior-y: none;}}diff --git a/app/assets/css/theme.css b/app/assets/css/theme.cssindex d1704e0a..bd1d949a 100644--- a/app/assets/css/theme.css+++ b/app/assets/css/theme.css@@ -1,32 +1,8 @@:root {- --ui-secondary: var(--ui-color-secondary-500);- --ui-success: var(--ui-color-success-500);- --ui-info: var(--ui-color-info-500);- --ui-warning: var(--ui-color-warning-500);- --ui-error: var(--ui-color-error-500);-- --color-neutral-400: var(--ui-color-neutral-400);- --color-neutral-500: var(--ui-color-neutral-500);-- --expense-1: oklch(0.63 0.24 24.81);- --expense-2: oklch(0.63 0.24 24.81 / 0.5);- --income-1: oklch(0.65 0.2 142.06);- --income-2: oklch(0.65 0.2 142.06 / 0.5);-- --text-alert-1: oklch(0.63 0.24 24.81);-- --chart-label: var(--text-4);- --chart-line: var(--item-5);- --chart-splitLine: var(--item-6);- --chart-axisLabel: var(--text-1);-}--.dark {- --ui-secondary: var(--ui-color-secondary-400);- --ui-success: var(--ui-color-success-400);- --ui-info: var(--ui-color-info-400);- --ui-warning: var(--ui-color-warning-400);- --ui-error: var(--ui-color-error-400);+ --chart-label: var(--ui-text-dimmed);+ --chart-line: var(--ui-border);+ --chart-splitLine: var(--ui-border-accented);+ --chart-axisLabel: var(--ui-text-highlighted);}/*@@ -35,20 +11,20 @@.dark {color-scheme: dark;- --item-1: color-mix(in oklch, var(--ui-color-neutral-950) 30%, var(--ui-color-neutral-900));- --item-2: var(--ui-color-neutral-900);- --item-3: color-mix(in oklch, var(--ui-color-neutral-900) 70%, var(--ui-color-neutral-800));- --item-4: var(--ui-color-neutral-800);- --item-5: color-mix(in oklch, var(--ui-color-neutral-800) 85%, var(--ui-color-neutral-700));- --item-6: color-mix(in oklch, var(--ui-color-neutral-800) 55%, var(--ui-color-neutral-700));- --item-7: color-mix(in oklch, var(--ui-color-neutral-500) 60%, var(--ui-color-neutral-400));+ --ui-bg: var(--ui-color-neutral-900);+ --ui-bg-muted: var(--ui-color-neutral-950);+ --ui-bg-elevated: var(--ui-color-neutral-800);+ --ui-bg-accented: var(--ui-color-neutral-800);+ --ui-border: var(--ui-color-neutral-700);+ --ui-border-accented: var(--ui-color-neutral-800);- --overlay: #000000cc;+ --ui-secondary: var(--ui-color-secondary-400);+ --ui-success: var(--ui-color-success-400);+ --ui-info: var(--ui-color-info-400);+ --ui-warning: var(--ui-color-warning-400);+ --ui-error: var(--ui-color-error-400);- --text-1: rgb(220 220 220);- --text-2: rgb(160 160 160);- --text-3: rgb(200 200 200);- --text-4: rgb(130 130 130);+ --color-overlay: #000000cc;}/*@@ -57,52 +33,30 @@.light {color-scheme: light;- --item-1: white;- --item-2: var(--ui-color-neutral-50);- --item-3: var(--ui-color-neutral-100);- --item-4: color-mix(in oklch, var(--ui-color-neutral-100) 90%, var(--ui-color-neutral-200));- --item-5: color-mix(in oklch, var(--ui-color-neutral-100) 70%, var(--ui-color-neutral-200));- --item-6: var(--ui-color-neutral-200);- --item-7: color-mix(in oklch, var(--ui-color-neutral-300) 50%, var(--ui-color-neutral-400));+ --ui-bg: white;+ --ui-bg-muted: var(--ui-color-neutral-50);+ --ui-bg-elevated: var(--ui-color-neutral-200);+ --ui-bg-accented: var(--ui-color-neutral-100);+ --ui-border: var(--ui-color-neutral-400);+ --ui-border-accented: var(--ui-color-neutral-100);- --overlay: #00000099;+ --ui-secondary: var(--ui-color-secondary-500);+ --ui-success: var(--ui-color-success-500);+ --ui-info: var(--ui-color-info-500);+ --ui-warning: var(--ui-color-warning-500);+ --ui-error: var(--ui-color-error-500);- --text-1: rgb(0 0 0);- --text-2: rgb(80 80 80);- --text-3: rgb(64 64 64);- --text-4: rgb(100 100 100);+ --color-overlay: #00000099;}@theme static {- --aspect-auto: auto;- --aspect-square: 1 / 1;-- --color-1: oklch(0.87 0 0);- --color-2: oklch(0.67 0 0);- --color-3: oklch(0.81 0 0);- --color-4: oklch(0.54 0 0);-- --color-alert-1: oklch(0.63 0.24 24.81);-+ --color-overlay: #00000099;--color-expense-1: oklch(0.63 0.24 24.81);--color-expense-2: oklch(0.63 0.24 24.81 / 0.5);---color-income-1: oklch(0.65 0.2 142.06);--color-income-2: oklch(0.65 0.2 142.06 / 0.5);---color-icon-primary: var(--color-neutral-50);-- --color-item-1: var(--item-1);- --color-item-2: var(--item-2);- --color-item-3: var(--item-3);- --color-item-4: var(--item-4);- --color-item-5: var(--item-5);- --color-item-6: var(--item-6);- --color-item-7: var(--item-7);---text-2xs: 10px;-- --breakpoint-2sm: 320px;--breakpoint-3sm: 360px;}diff --git a/app/assets/css/utility.css b/app/assets/css/utility.cssindex 27b19404..5378d960 100644--- a/app/assets/css/utility.css+++ b/app/assets/css/utility.css@@ -1,5 +1,5 @@@utility interactive {- @apply select-none hover:bg-item-6/50 dark:hover:bg-item-7/10;+ @apply select-none hover:bg-elevated/50;}@utility flex-center {@@ -27,9 +27,7 @@@apply flex items-center justify-center p-2;}-@utility scrollbar {- @apply h-full overflow-hidden overflow-y-auto;-+@utility scrollerBlock {&::-webkit-scrollbar {@apply w-1.5 h-1.5;}diff --git a/app/components/app/Copyright.vue b/app/components/app/Copyright.vueindex 38caf22e..ec4895f7 100644--- a/app/components/app/Copyright.vue+++ b/app/components/app/Copyright.vue@@ -9,7 +9,7 @@ const { t } = useI18n()>{{ t('app.madeBy.text') }}<Icon- class="text-alert-1 mx-2 animate-[heartbeat_3s_ease-in-out_infinite] text-2xl"+ class="mx-2 animate-[heartbeat_3s_ease-in-out_infinite] text-2xl text-[oklch(0.63_0.24_24.81)]"name="mdi:heart"/>{{ t('app.madeBy.name') }}diff --git a/app/components/bottomSheet/BottomSheet.vue b/app/components/bottomSheet/BottomSheet.vueindex da834e80..541abefb 100644--- a/app/components/bottomSheet/BottomSheet.vue+++ b/app/components/bottomSheet/BottomSheet.vue@@ -91,7 +91,7 @@ const dragClasses = computed(() => [<div:class="overflowClasses":style="overlayStyles"- class="pointer-events-auto absolute inset-0 z-10 size-full bg-(--overlay)"+ class="bg-overlay pointer-events-auto absolute inset-0 z-10 size-full"@click="close()"/>diff --git a/app/components/bottomSheet/BottomSheetClose.vue b/app/components/bottomSheet/BottomSheetClose.vueindex be2c4aa6..9ce01882 100644--- a/app/components/bottomSheet/BottomSheetClose.vue+++ b/app/components/bottomSheet/BottomSheetClose.vue@@ -8,12 +8,12 @@ const emit = defineEmits<{<buttontype="button":aria-label="$t('base.close')"- class="bg-item-3 absolute top-1 right-1 z-30 flex size-8 cursor-default items-center justify-center rounded-full transition ease-in-out hover:bg-(--item-5)"+ class="bg-elevated hover:bg-elevated/50 absolute top-1 right-1 z-30 flex size-8 cursor-default items-center justify-center rounded-full transition ease-in-out"@click="(e: Event) => emit('click', e)"><Iconname="lucide:x"- color="text-muted"+ class="text-muted light:text-inverted"size="22"/></button>diff --git a/app/components/bottomSheet/BottomSheetHandler.vue b/app/components/bottomSheet/BottomSheetHandler.vueindex 781a6bb9..ddb6cd73 100644--- a/app/components/bottomSheet/BottomSheetHandler.vue+++ b/app/components/bottomSheet/BottomSheetHandler.vue@@ -1,9 +1,9 @@<template><divclass="- handler flex-center after:bg-item-7 absolute top-0 left-0 z-30- h-[16px] w-full transition- after:block after:h-[4px] after:w-[32px] after:rounded-sm after:content-[''] hover:bg-(--item-5)+ handler flex-center after:bg-inverted hover:bg-elevated absolute top-0 left-0+ z-30 h-[16px] w-full+ transition after:block after:h-[4px] after:w-[32px] after:rounded-sm after:content-['']"/></template>diff --git a/app/components/bottomSheet/BottomSheetModal.vue b/app/components/bottomSheet/BottomSheetModal.vueindex 26320c13..6a7dcaf9 100644--- a/app/components/bottomSheet/BottomSheetModal.vue+++ b/app/components/bottomSheet/BottomSheetModal.vue@@ -8,7 +8,7 @@ defineEmits<{<Teleport to="body"><BottomSheetisShow- dragClassesCustom="bottomSheetDragClassesCustom"+ dragClassesCustom="bottomSheetDragClassesCustom min-h-[50dvh]"@closed="$emit('closed')"><template #handler="{ close }">diff --git a/app/components/categories/Header.vue b/app/components/categories/Header.vueindex 01bc7a54..a7e02110 100644--- a/app/components/categories/Header.vue+++ b/app/components/categories/Header.vue@@ -23,13 +23,13 @@ function onParentClick(event: Event) {<template v-if="props.parentCategory"><NuxtLink:to="`/categories/${props.category.parentId}`"- class="text-muted truncate text-lg font-medium no-underline hover:text-(--ui-text-highlighted) @lg:text-xl"+ class="text-muted hover:text-highlighted truncate text-lg font-medium no-underline @lg:text-xl"@click="onParentClick">{{ props.parentCategory.name }}</NuxtLink>- <span class="text-4 mx-1 text-lg @lg:text-xl">/</span>+ <span class="text-muted mx-1 text-lg @lg:text-xl">/</span></template><span class="truncate">diff --git a/app/components/categories/Item.vue b/app/components/categories/Item.vueindex b2e67607..e5ed529d 100644--- a/app/components/categories/Item.vue+++ b/app/components/categories/Item.vue@@ -7,13 +7,13 @@ export type CategoryItemProps = {activeItemId?: string | 0 | false | nullcategory: CategoryItemcategoryId: CategoryId- chevronOnLeft?: booleanclass?: stringcontextMenuItems?: ContextMenuItem[][]insideClasses?: stringisExpanded?: booleanisShowChevron?: booleanisShowParent?: boolean+ leftMenuButton?: booleanlineWidth?: numberstacked?: booleanto?: string@@ -35,12 +35,13 @@ const emit = defineEmits<{:stacked="props.stacked":category="props.category":categoryId="props.categoryId"- :chevronOnLeft="props.chevronOnLeft":class="props.class":insideClasses="props.insideClasses":isExpanded="props.isExpanded":isShowChevron="props.isShowChevron":isShowParent="props.isShowParent"+ :leftMenuButton="props.leftMenuButton"+ :leftMenuItems="props.contextMenuItems":lineWidth="props.lineWidth":to="props.to"@click="emit('click', $event)"@@ -55,12 +56,12 @@ const emit = defineEmits<{:stacked="props.stacked":category="props.category":categoryId="props.categoryId"- :chevronOnLeft="props.chevronOnLeft":class="props.class":insideClasses="props.insideClasses":isExpanded="props.isExpanded":isShowChevron="props.isShowChevron":isShowParent="props.isShowParent"+ :leftMenuButton="props.leftMenuButton":lineWidth="props.lineWidth":to="props.to"@click="emit('click', $event)"diff --git a/app/components/categories/ItemBody.vue b/app/components/categories/ItemBody.vueindex 5e2efd10..cef08b7a 100644--- a/app/components/categories/ItemBody.vue+++ b/app/components/categories/ItemBody.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import type { ContextMenuItem } from '#ui/components/ContextMenu.vue'+import type { CategoryId, CategoryItem } from '~/components/categories/types'import { useCategoriesStore } from '~/components/categories/useCategoriesStore'@@ -7,12 +9,13 @@ const props = defineProps<{activeItemId?: string | 0 | false | nullcategory: CategoryItemcategoryId: CategoryId- chevronOnLeft?: booleanclass?: stringinsideClasses?: stringisExpanded?: booleanisShowChevron?: booleanisShowParent?: boolean+ leftMenuButton?: boolean+ leftMenuItems?: ContextMenuItem[][]lineWidth?: numberstacked?: booleanto?: string@@ -24,65 +27,86 @@ const emit = defineEmits<{toggle: []}>()+const { t } = useI18n()const categoriesStore = useCategoriesStore()const childCategoriesIds = computed(() => categoriesStore.getChildrenIds(props.categoryId))const parentCategory = computed(() => categoriesStore.items[props.category?.parentId])const hasChildren = computed(() => childCategoriesIds.value.length > 0)-const showLeftChevron = computed(() => !!props.chevronOnLeft && !!props.isShowChevron && hasChildren.value)-const showRightChevron = computed(() => !props.chevronOnLeft && !!props.isShowChevron && hasChildren.value)+const showInlineChevron = computed(() => !!props.leftMenuButton && !!props.isShowChevron && hasChildren.value)+const showRightChevron = computed(() => !props.leftMenuButton && !!props.isShowChevron && hasChildren.value)++const rowTo = computed(() => props.leftMenuButton && hasChildren.value ? undefined : props.to)function onToggleClick(e: Event) {e.stopPropagation()e.preventDefault()emit('toggle')}++function onRowClick(e: Event) {+ if (props.leftMenuButton && hasChildren.value) {+ e.preventDefault()+ e.stopPropagation()+ emit('toggle')+ return+ }+ emit('click', e)+}</script><template>- <div v-if="props.chevronOnLeft && props.category" :class="cn('flex items-center', props.class)">- <button- v-if="showLeftChevron"- type="button"- class="flex-center text-muted hover:bg-elevated h-9 w-9 shrink-0 cursor-pointer rounded-full"- :aria-label="$t('base.toggleExpand')"- @click="onToggleClick"- >+ <UiElement+ v-if="props.leftMenuButton && props.category"+ :isActive="props.activeItemId === props.categoryId"+ :class="props.class"+ :lineWidth="props.lineWidth"+ :insideClasses="`min-h-[46px] ${props.insideClasses ?? ''}`"+ :to="rowTo"+ @click="onRowClick"+ >+ <template #leftIcon>+ <UiIconBase+ :color="props.category.color"+ :name="props.category.icon"+ invert+ @click="emit('filter', props.categoryId ?? '')"+ />+ </template>++ <div class="flex grow items-center gap-1 overflow-hidden">+ <CategoriesName+ :stacked="props.stacked"+ :category="props.category"+ :parentCategory="parentCategory"+ :childrenCount="showInlineChevron ? undefined : childCategoriesIds.length"+ :isShowParent="props.isShowParent"+ />+<Icon+ v-if="showInlineChevron":name="props.isExpanded ? 'lucide:chevron-down' : 'lucide:chevron-right'"size="18"+ class="text-muted shrink-0"/>- </button>- <div v-else class="h-9 w-9 shrink-0" />- <UiElement- :isActive="props.activeItemId === props.categoryId"- class="min-w-0 grow"- :lineWidth="props.lineWidth"- :insideClasses="`min-h-[46px] ${props.insideClasses ?? ''}`"- :to="props.to"- @click="(e: Event) => emit('click', e)"+ </div>++ <UDropdownMenu+ v-if="props.leftMenuItems"+ :items="props.leftMenuItems"+ :content="{ align: 'end', side: 'bottom' }">- <template #leftIcon>- <UiIconBase- :color="props.category.color"- :name="props.category.icon"- invert- @click="emit('filter', props.categoryId ?? '')"- />- </template>-- <div class="grid grow gap-0.5 overflow-hidden">- <CategoriesName- :stacked="props.stacked"- :category="props.category"- :parentCategory="parentCategory"- :childrenCount="childCategoriesIds.length"- :isShowParent="props.isShowParent"- />- </div>- </UiElement>- </div>+ <button+ type="button"+ class="flex-center text-muted hover:bg-elevated/50 -my-1 -mr-1 h-9 w-9 shrink-0 cursor-pointer rounded-sm"+ :aria-label="t('base.moreOptions')"+ @click.stop.prevent+ >+ <Icon name="lucide:ellipsis-vertical" size="18" />+ </button>+ </UDropdownMenu>+ </UiElement><UiElementv-else-if="props.category"@@ -115,8 +139,8 @@ function onToggleClick(e: Event) {<buttonv-if="showRightChevron"type="button"- class="flex-center text-muted hover:bg-elevated -mr-1 h-9 w-9 shrink-0 cursor-pointer rounded-sm"- :aria-label="$t('base.toggleExpand')"+ class="flex-center text-muted hover:bg-elevated/50 -mr-1 h-9 w-9 shrink-0 cursor-pointer rounded-sm"+ :aria-label="t('base.toggleExpand')"@click="onToggleClick"><Icondiff --git a/app/components/categories/List.vue b/app/components/categories/List.vueindex 82ff9f72..70d659a1 100644--- a/app/components/categories/List.vue+++ b/app/components/categories/List.vue@@ -26,14 +26,6 @@ const emit = defineEmits<{const categoriesStore = useCategoriesStore()-const anyRootHasChildren = computed(() =>- props.ids.some(id => categoriesStore.hasChildren(id)),-)--const rootChevronOnLeft = computed(() =>- !!props.categoriesItemProps?.chevronOnLeft && anyRootHasChildren.value,-)-const isChildrenGrid = computed(() => props.childrenView === 'grid')function getRootLineWidth(categoryId: CategoryId) {@@ -64,7 +56,6 @@ function getChildrenIds(categoryId: CategoryId) {:to="props.getTo?.(categoryId)"v-bind="categoriesItemProps"class="group"- :chevronOnLeft="rootChevronOnLeft":lineWidth="getRootLineWidth(categoryId)"@click="emit('click', categoryId)"@toggle="props.expanded?.toggle(categoryId)"@@ -73,8 +64,8 @@ function getChildrenIds(categoryId: CategoryId) {<divv-if="props.expanded?.isExpanded(categoryId) && categoriesStore.hasChildren(categoryId)":class="isChildrenGrid- ? 'ml-9 pb-4 pl-10 pr-2'- : (rootChevronOnLeft ? '-mt-px ml-9 pb-1 pl-10' : '-mt-px ml-5 pb-1 pl-3')"+ ? 'ml-2 pb-4 pl-3 pr-2'+ : '-mt-px ml-5 pb-1 pl-3'"><template v-if="!isChildrenGrid"><CategoriesItem@@ -89,7 +80,6 @@ function getChildrenIds(categoryId: CategoryId) {:lineWidth="1"v-bind="categoriesItemProps"class="group"- :chevronOnLeft="false"@click="emit('click', childId)"/></template>diff --git a/app/components/categories/Name.vue b/app/components/categories/Name.vueindex bb2b5abd..fd414719 100644--- a/app/components/categories/Name.vue+++ b/app/components/categories/Name.vue@@ -26,14 +26,14 @@ const nameClass = computed(() =><divv-if="hasChildren && childrenCount"- class="text-4 shrink-0"+ class="text-muted shrink-0">{{ childrenCount }}</div></div><template v-if="isShowParent && !hasChildren && props.category?.parentId">- <div class="text-2xs text-4 truncate leading-none">+ <div class="text-2xs text-muted truncate leading-none">{{ props.parentCategory?.name }}</div></template>diff --git a/app/components/categories/SelectorGrid.vue b/app/components/categories/SelectorGrid.vueindex 872f04e9..c783380e 100644--- a/app/components/categories/SelectorGrid.vue+++ b/app/components/categories/SelectorGrid.vue@@ -13,7 +13,7 @@ const emit = defineEmits<{}>()const categoriesStore = useCategoriesStore()-const itemClasses = 'bg-item-3 rounded-sm'+const itemClasses = 'bg-elevated/30 rounded-sm'function select(id: CategoryId) {if (categoriesStore.hasChildren(id))diff --git a/app/components/categories/SelectorTree.vue b/app/components/categories/SelectorTree.vueindex a0762f2b..bef7a4c6 100644--- a/app/components/categories/SelectorTree.vue+++ b/app/components/categories/SelectorTree.vue@@ -67,9 +67,9 @@ onMounted(() => {:key="categoryId"class="group/item":class="{- 'bg-item-3 relative mb-2 rounded-md': opened.includes(categoryId),- 'bg-item-3 rounded-md': isChildsSelected(categoryId),- 'border !border-(--ui-primary)/60': isEveryChildsSelected(categoryId),+ 'bg-elevated relative mb-2 rounded-md': opened.includes(categoryId),+ 'bg-elevated rounded-md': isChildsSelected(categoryId),+ '!border-primary/60 border': isEveryChildsSelected(categoryId),}"><CategoriesItemdiff --git a/app/components/categories/page/List.vue b/app/components/categories/page/List.vueindex 530fbc19..a972333a 100644--- a/app/components/categories/page/List.vue+++ b/app/components/categories/page/List.vue@@ -128,7 +128,7 @@ const { getCategoryContextMenuItems } = useCategoryContextMenu({<CategoriesList:ids="categoriesStore.categoriesRootIds":categoriesItemProps="{- chevronOnLeft: true,+ leftMenuButton: true,lineWidth: 1,}":childrenView="categoriesView"diff --git a/app/components/categories/page/New.vue b/app/components/categories/page/New.vueindex 35203db3..544cf1df 100644--- a/app/components/categories/page/New.vue+++ b/app/components/categories/page/New.vue@@ -24,7 +24,7 @@ useHead({{{ t('categories.createNewTitle') }}</h1>- <UiHeader v-else>+ <UiHeader v-else hideSearch><UiHeaderTitle>{{ t('categories.createNewTitle') }}</UiHeaderTitle>@@ -33,7 +33,7 @@ useHead({<CategoriesForm:categoryForm="categoryForm"@update="(key: string, value: CategoryItem[keyof CategoryItem]) => (categoryForm as Record<string, any>)[key] = value"- @afterSave="() => router.replace('/dashboard')"+ @afterSave="(id: string) => router.replace(isOnboarding ? '/dashboard' : `/categories/${id}`)"/></UiPage></template>diff --git a/app/components/categories/useCategoryContextMenu.ts b/app/components/categories/useCategoryContextMenu.tsindex 342c3723..6cfbbc54 100644--- a/app/components/categories/useCategoryContextMenu.ts+++ b/app/components/categories/useCategoryContextMenu.ts@@ -1,20 +1,34 @@import type { CategoryId } from '~/components/categories/types'+import { useCategoriesStore } from '~/components/categories/useCategoriesStore'+export function useCategoryContextMenu(options?: {onDelete?: (categoryId: CategoryId) => void}) {const { t } = useI18n()const router = useRouter()+ const categoriesStore = useCategoriesStore()function getCategoryContextMenuItems(categoryId: CategoryId) {if (categoryId === 'transfer')return undefined- const editGroup = [{- icon: 'lucide:pencil',- label: t('base.edit'),- onSelect: () => router.push(`/categories/${categoryId}/edit`),- }]+ const isChild = categoriesStore.items[categoryId]?.parentId !== 0++ const editGroup = [+ ...(isChild+ ? []+ : [{+ icon: 'lucide:square-arrow-out-up-right',+ label: t('base.open'),+ onSelect: () => router.push(`/categories/${categoryId}`),+ }]),+ {+ icon: 'lucide:pencil',+ label: t('base.edit'),+ onSelect: () => router.push(`/categories/${categoryId}/edit`),+ },+ ]if (!options?.onDelete)return [editGroup]diff --git a/app/components/color/Palette.vue b/app/components/color/Palette.vueindex a2a04ec7..1ed26f9d 100644--- a/app/components/color/Palette.vue+++ b/app/components/color/Palette.vue@@ -51,7 +51,7 @@ const walletColorsUsed = computed(() => {v-for="(color, idx) in colorsGroup":key="idx":class="cn('w-full overflow-hidden rounded-sm border-2 border-transparent',- color === props.activeColor && 'border-(--ui-primary) shadow',+ color === props.activeColor && 'border-primary shadow',!color && 'pointer-events-none',)"@click="emit('click', color)"@@ -66,7 +66,7 @@ const walletColorsUsed = computed(() => {<divv-if="props.isWallet && walletColorsUsed.has(color)"- class="bg-item-4 size-3 rounded-full"+ class="bg-accented size-3 rounded-full"/></div></div>diff --git a/app/components/date/LinkItem.vue b/app/components/date/LinkItem.vueindex 04027fb5..4d28d4ec 100644--- a/app/components/date/LinkItem.vue+++ b/app/components/date/LinkItem.vue@@ -15,7 +15,7 @@ const emit = defineEmits<{:class="cn('flex items-center text-nowrap rounded-sm text-xs leading-none px-3','interactive flex items-center justify-center min-h-[32px]',- props.variant === 'small' ? 'px-2 text-2xs text-muted' : 'bg-(--item-4)',+ props.variant === 'small' ? 'px-2 text-2xs text-muted' : 'bg-accented',props.isActive ? 'text-primary' : '',)"@click="(e: Event) => emit('click', e)"diff --git a/app/components/date/LinkItemNoBg.vue b/app/components/date/LinkItemNoBg.vueindex 36023f47..d2df9098 100644--- a/app/components/date/LinkItemNoBg.vue+++ b/app/components/date/LinkItemNoBg.vue@@ -6,8 +6,8 @@ const props = defineProps<{<template><div- :class="cn('flex min-h-[32px] items-center justify-center rounded-full px-1 text-xs leading-none text-nowrap text-(--ui-text)',- props.isActive && 'text-primary bg-(--item-5)',+ :class="cn('flex min-h-[32px] items-center justify-center rounded-full px-1 text-xs leading-none text-nowrap text-default',+ props.isActive && 'text-primary bg-elevated',)"><slot />diff --git a/app/components/date/Nav.vue b/app/components/date/Nav.vueindex ad34f6f7..a4d37d03 100644--- a/app/components/date/Nav.vue+++ b/app/components/date/Nav.vue@@ -14,7 +14,7 @@ const emit = defineEmits<{<div class="flex items-center gap-1"><UiActionButton:ariaLabel="$t('base.previous')"- :class="cn('bg-item-3', isStart && 'hover:transparent opacity-30')"+ :class="cn('bg-elevated/30', isStart && 'hover:transparent opacity-30')"@click="emit('changeDate', 'prev')"><Icon name="lucide:chevron-left" size="24" />@@ -22,7 +22,7 @@ const emit = defineEmits<{<UiActionButton:ariaLabel="$t('base.next')"- :class="cn('bg-item-3', isEnd && 'hover:transparent opacity-30')"+ :class="cn('bg-elevated/30', isEnd && 'hover:transparent opacity-30')"@click="emit('changeDate', 'next')"><Icon name="lucide:chevron-left" size="24" class="rotate-180" />diff --git a/app/components/date/Trns.vue b/app/components/date/Trns.vueindex 65ee7112..ab5fd4d7 100644--- a/app/components/date/Trns.vue+++ b/app/components/date/Trns.vue@@ -18,12 +18,12 @@ const formattedDate = computed(() => {{{ formattedDate.day }}</div>- <div class="text-2">+ <div class="text-muted"><div class="text-2xs pb-[2px] leading-none">{{ formattedDate.weekday }}</div>- <div class="text-1 flex gap-1 text-sm leading-none font-medium">+ <div class="flex gap-1 text-sm leading-none font-medium"><div>{{ formattedDate.month }}</div><div>{{ formattedDate.year }}</div></div>diff --git a/app/components/form/Input.vue b/app/components/form/Input.vueindex d2489861..daaa8bbc 100644--- a/app/components/form/Input.vue+++ b/app/components/form/Input.vue@@ -15,7 +15,7 @@ const emit = defineEmits<{:placeholder="props.placeholder":value="props.modelValue":type="props.type ?? 'text'"- class="border-item-6 bg-item-3 placeholder:text-muted m-0 w-full rounded-sm border border-solid px-3 py-2 text-base font-normal outline-none hover:bg-(--item-5) focus:border-(--ui-primary)"+ class="bg-elevated/30 placeholder:text-muted hover:bg-elevated/50 focus:bg-elevated/50 focus:border-primary m-0 min-h-[42px] w-full rounded-md border border-transparent px-4 py-2 text-base font-normal outline-none"@input="(event: Event) => emit('update:modelValue', (event.target as HTMLInputElement).value)"></template>diff --git a/app/components/form/Select.vue b/app/components/form/Select.vueindex 9cafdb93..ee812228 100644--- a/app/components/form/Select.vue+++ b/app/components/form/Select.vue@@ -10,32 +10,18 @@ const props = defineProps<{const emit = defineEmits<{change: [value: string]}>()++const model = computed({+ get: () => props.value,+ set: (v: string) => emit('change', v),+})</script><template>- <select- :value="props.value"- @change="emit('change', ($event.target as HTMLSelectElement).value)"- >- <option- v-for="option in props.options"- :key="option.value"- :value="option.value"- >- {{ option.label }}- </option>- </select>+ <USelectMenu+ v-model="model"+ :items="props.options"+ :searchInput="false"+ valueKey="value"+ /></template>--<style scoped>-@reference '../../assets/css/main.css';--select {- appearance: none;- background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM4MDgwODAiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZXZyb25zLXVwLWRvd24iPjxwYXRoIGQ9Im03IDE1IDUgNSA1LTUiLz48cGF0aCBkPSJtNyA5IDUtNSA1IDUiLz48L3N2Zz4=');- background-position: right 0.7rem center;- background-repeat: no-repeat;- background-size: 1.25em 1.25em;- @apply bg-item-3 border border-transparent outline-none -my-px block min-h-[42px] w-full grow items-center gap-0 gap-x-2 overflow-hidden rounded-md px-4 pr-10 py-2 ring-0 hover:bg-(--item-5) focus:border-(--ui-primary);-}-</style>diff --git a/app/components/form/Switch.vue b/app/components/form/Switch.vueindex 722d2aa7..d9b52e3e 100644--- a/app/components/form/Switch.vue+++ b/app/components/form/Switch.vue@@ -16,13 +16,15 @@ const emit = defineEmits<{</div><div- :class="cn('relative h-5 w-10 rounded-xl py-px px-[2px] transition-colors ease-in-out',- value ? 'bg-(--ui-primary)' : 'bg-(--ui-bg-accented)',+ :class="cn(+ 'relative h-5 w-10 rounded-xl py-px px-[2px] transition-colors ease-in-out',+ value ? 'bg-primary' : 'bg-elevated',)"><div- :class="cn('bg-default size-4.5 rounded-xl shadow-md transition-transform ease-in-out',- value && 'translate-x-4.5',+ :class="cn(+ 'bg-default size-4.5 rounded-xl shadow-md transition-transform ease-in-out',+ value && 'translate-x-4.5',)"/></div>diff --git a/app/components/form/Textarea.vue b/app/components/form/Textarea.vueindex a199651c..29d9d6c1 100644--- a/app/components/form/Textarea.vue+++ b/app/components/form/Textarea.vue@@ -14,7 +14,7 @@ const emit = defineEmits<{<textarea:placeholder="props.placeholder":value="props.modelValue"- class="border-item-6 bg-item-3 placeholder:text-muted m-0 w-full rounded-sm border border-solid px-3 py-2 text-base font-normal outline-none hover:bg-(--item-5) focus:border-(--ui-primary)"+ class="bg-elevated/30 placeholder:text-muted hover:bg-elevated/50 focus:border-primary m-0 w-full rounded-md border border-transparent px-4 py-2 text-base font-normal outline-none"@input="(event: Event) => emit('update:modelValue', (event.target as HTMLTextAreaElement).value)"/></template>diff --git a/app/components/layout/ConfirmModal.vue b/app/components/layout/ConfirmModal.vueindex 9702ca9a..ed2910e5 100644--- a/app/components/layout/ConfirmModal.vue+++ b/app/components/layout/ConfirmModal.vue@@ -44,7 +44,7 @@ useEventListener('keydown', (e: KeyboardEvent) => {<template v-if="description || highlight" #body><div class="text-muted">{{ description }}- <span v-if="highlight" class="font-medium text-(--ui-error)">+ <span v-if="highlight" class="text-error font-medium">{{ highlight }}</span></div>diff --git a/app/components/layout/MenuBottomModal.vue b/app/components/layout/MenuBottomModal.vueindex 37a9c5c6..4a01e522 100644--- a/app/components/layout/MenuBottomModal.vue+++ b/app/components/layout/MenuBottomModal.vue@@ -32,7 +32,7 @@ function onSearchClick() {<div class="bottomSheetContentInside px-3 pt-4 pb-2"><divv-if="!isDemo"- class="border-item-6 mx-2 border-b pt-2 pb-2"+ class="border-default mx-2 border-b pt-2 pb-2"><UserViewLogout /></div>diff --git a/app/components/layout/Sidebar.vue b/app/components/layout/Sidebar.vueindex c3284112..8fd0b1bd 100644--- a/app/components/layout/Sidebar.vue+++ b/app/components/layout/Sidebar.vue@@ -80,7 +80,7 @@ const sidebarCategoryIds = computed(() => {><template #trigger><div- class="interactive group-data-[state='open']:!bg-item-4 block cursor-default rounded-sm px-3 py-2"+ class="interactive group-data-[state='open']:!bg-accented block cursor-default rounded-sm px-3 py-2"><UiLogo /></div>@@ -162,7 +162,7 @@ const sidebarCategoryIds = computed(() => {><UiActionButton:ariaLabel="t('app.toggleSidebar')"- class="text-4 z-10 justify-start px-3"+ class="text-muted z-10 justify-start px-3"@click="emit('toggleSidebar')"><Icon :name="props.isShowSidebar ? 'lucide:panel-left-close' : 'lucide:panel-left'" size="18" />diff --git a/app/components/menu/Tabs.ts b/app/components/menu/Tabs.tsindex 2b09c356..5680b88f 100644--- a/app/components/menu/Tabs.ts+++ b/app/components/menu/Tabs.ts@@ -1,4 +1,4 @@export const tabsNavUi = {- list: 'w-full grid grid-flow-col auto-cols-[minmax(max-content,1fr)]',link: 'justify-center',+ list: 'w-full grid grid-flow-col auto-cols-[minmax(max-content,1fr)]',}diff --git a/app/components/search/SearchCommandPalette.vue b/app/components/search/SearchCommandPalette.vueindex bb2dc3b8..4a8a4431 100644--- a/app/components/search/SearchCommandPalette.vue+++ b/app/components/search/SearchCommandPalette.vue@@ -116,7 +116,7 @@ function getTransfer(item: SearchResultItem): TransferFull | undefined {</div><divv-if="getWallet(rawItem as SearchResultItem)?.desc"- class="text-2xs text-4 leading-none"+ class="text-2xs text-muted leading-none">{{ getWallet(rawItem as SearchResultItem)?.desc }}</div>@@ -150,7 +150,7 @@ function getTransfer(item: SearchResultItem): TransferFull | undefined {stacked/><div class="flex items-center gap-2">- <div class="text-2xs text-4 leading-none">+ <div class="text-2xs text-muted leading-none">{{ getTransaction(rawItem as SearchResultItem)?.wallet?.name }}</div></div>@@ -174,7 +174,7 @@ function getTransfer(item: SearchResultItem): TransferFull | undefined {v-if="getTransfer(rawItem as SearchResultItem)"class="grid gap-1">- <div class="text-3 flex items-center gap-1 text-sm leading-none">+ <div class="text-toned flex items-center gap-1 text-sm leading-none"><span class="font-semibold">{{ getTransfer(rawItem as SearchResultItem)?.expenseWallet?.name }}</span><Icon name="lucide:move-right" size="16" /><span class="font-semibold">{{ getTransfer(rawItem as SearchResultItem)?.incomeWallet?.name }}</span>diff --git a/app/components/stat/ConfigModal.vue b/app/components/stat/ConfigModal.vueindex 9254948d..b195932b 100644--- a/app/components/stat/ConfigModal.vue+++ b/app/components/stat/ConfigModal.vue@@ -47,7 +47,7 @@ const isOpen = ref(false)<!-- Wallets --><divv-if="props.isShowWallets"- class="border-item-3 border-b pb-3"+ class="border-accented border-b pb-3"><UiTitleSection size="sm" class="pb-2">{{ t('stat.config.wallets.title') }}@@ -75,7 +75,7 @@ const isOpen = ref(false)<!-- Statistics --><div- class="border-item-3 border-b pb-3"+ class="border-accented border-b pb-3"><UiTitleSection size="sm" class="pb-2">{{ t('statistics.title') }}diff --git a/app/components/stat/Header.vue b/app/components/stat/Header.vueindex 43e08dd8..ec96c614 100644--- a/app/components/stat/Header.vue+++ b/app/components/stat/Header.vue@@ -70,7 +70,7 @@ const isPopoverOpen = ref(false)<template #content="{ close: closeContent }"><div class="min-w-52 p-1 pt-4 pb-3"><!-- Mobile: search, filters, config -->- <div class="sm:hidden" :class="[$slots.popover ? 'mb-2 border-b border-(--ui-border) pb-3' : '']">+ <div class="sm:hidden" :class="[$slots.popover ? 'border-default mb-2 border-b pb-3' : '']"><StatFilterSelectorv-if="filterCategories || filterWallets":isShowCategories="!!filterCategories"diff --git a/app/components/stat/categories/ConfigMenu.vue b/app/components/stat/categories/ConfigMenu.vueindex 06955f86..20d21b72 100644--- a/app/components/stat/categories/ConfigMenu.vue+++ b/app/components/stat/categories/ConfigMenu.vue@@ -135,10 +135,10 @@ function setGrouping(mode: GroupingMode) {<div class="grid gap-3"><!-- Chart -->- <div class="overflow-hidden rounded-sm border border-(--ui-border)">+ <div class="border-default overflow-hidden rounded-sm border"><div class="bg-accented flex items-stretch" :class="{ 'pb-px': isExpandedChartCard }"><div- class="hover:bg-elevated flex grow cursor-pointer items-center gap-2 rounded-tr-sm rounded-br-sm px-3 py-2"+ class="hover:bg-elevated/50 flex grow cursor-pointer items-center gap-2 rounded-tr-sm rounded-br-sm px-3 py-2"@click="isExpandedChartCard = !isExpandedChartCard"><Icon@@ -150,7 +150,7 @@ function setGrouping(mode: GroupingMode) {</div></div><div- class="hover:bg-elevated flex shrink-0 cursor-pointer items-center rounded-tl-sm rounded-bl-sm px-3"+ class="hover:bg-elevated/50 flex shrink-0 cursor-pointer items-center rounded-tl-sm rounded-bl-sm px-3"@click.stop="toggleChartShow"><FormSwitch :value="isChartShow" />@@ -226,10 +226,10 @@ function setGrouping(mode: GroupingMode) {</div><!-- Round categories -->- <div class="overflow-hidden rounded-sm border border-(--ui-border)">+ <div class="border-default overflow-hidden rounded-sm border"><div class="bg-accented flex items-stretch" :class="{ 'pb-px': isExpandedRoundCard }"><div- class="hover:bg-elevated flex grow cursor-pointer items-center gap-2 rounded-tr-sm rounded-br-sm px-3 py-2"+ class="hover:bg-elevated/50 flex grow cursor-pointer items-center gap-2 rounded-tr-sm rounded-br-sm px-3 py-2"@click="isExpandedRoundCard = !isExpandedRoundCard"><Icon@@ -241,7 +241,7 @@ function setGrouping(mode: GroupingMode) {</div></div><div- class="hover:bg-elevated flex shrink-0 cursor-pointer items-center rounded-tl-sm rounded-bl-sm px-3"+ class="hover:bg-elevated/50 flex shrink-0 cursor-pointer items-center rounded-tl-sm rounded-bl-sm px-3"@click.stop="toggleMaster('catsRound', isCatsRoundShow)"><FormSwitch :value="isCatsRoundShow" />@@ -283,10 +283,10 @@ function setGrouping(mode: GroupingMode) {</div><!-- List -->- <div class="overflow-hidden rounded-sm border border-(--ui-border)">+ <div class="border-default overflow-hidden rounded-sm border"><div class="bg-accented flex items-stretch" :class="{ 'pb-px': isExpandedListCard }"><div- class="hover:bg-elevated flex grow cursor-pointer items-center gap-2 rounded-tr-sm rounded-br-sm px-3 py-2"+ class="hover:bg-elevated/50 flex grow cursor-pointer items-center gap-2 rounded-tr-sm rounded-br-sm px-3 py-2"@click="isExpandedListCard = !isExpandedListCard"><Icon@@ -298,7 +298,7 @@ function setGrouping(mode: GroupingMode) {</div></div><div- class="hover:bg-elevated flex shrink-0 cursor-pointer items-center rounded-tl-sm rounded-bl-sm px-3"+ class="hover:bg-elevated/50 flex shrink-0 cursor-pointer items-center rounded-tl-sm rounded-bl-sm px-3"@click.stop="toggleMaster('catsList', isCatsListShow)"><FormSwitch :value="isCatsListShow" />diff --git a/app/components/stat/categories/Line.vue b/app/components/stat/categories/Line.vueindex 5c27c2eb..a5990dfb 100644--- a/app/components/stat/categories/Line.vue+++ b/app/components/stat/categories/Line.vue@@ -65,7 +65,7 @@ function onAmountClick(e: MouseEvent) {v-if="category"ref="longPressRef":class="[props.insideClass, {- '-bg-item-3 ': props.isActive,+ '-bg-elevated ': props.isActive,}]":style="props.insideStyle"class="relative"@@ -82,7 +82,7 @@ function onAmountClick(e: MouseEvent) {v-if="isLines"class="absolute bottom-2 left-0 w-full overflow-hidden rounded-lg pr-3 pl-[52px]">- <div class="bg-item-4 overflow-hidden rounded-lg">+ <div class="bg-accented overflow-hidden rounded-lg"><div:style="barStyle"class="h-1 opacity-60"diff --git a/app/components/stat/categories/RoundSection.vue b/app/components/stat/categories/RoundSection.vueindex e460691c..338eabc5 100644--- a/app/components/stat/categories/RoundSection.vue+++ b/app/components/stat/categories/RoundSection.vue@@ -76,7 +76,7 @@ const filteredSet = computed(() => new Set(props.filteredCategoriesIds)):class="{'opacity-60': filteredSet.size > 0 && !filteredSet.has(item.id),'opacity-50': !filteredSet.has(item.id) && item.value === 0,- '!border-(--ui-primary)': filteredSet.has(item.id),+ '!border-primary': filteredSet.has(item.id),}"class="transition-opacity"isShowAmountdiff --git a/app/components/stat/categories/Vertical.vue b/app/components/stat/categories/Vertical.vueindex 082eedb4..9bcef452 100644--- a/app/components/stat/categories/Vertical.vue+++ b/app/components/stat/categories/Vertical.vue@@ -36,9 +36,9 @@ const { longPressRef } = useCategoryLongPress(<divv-if="category"ref="longPressRef"- class="rounded-sm p-1 pt-5 pb-2 hover:bg-(--item-5)"+ class="hover:bg-elevated rounded-sm p-1 pt-5 pb-2">- <div class="bg-item-3 flex h-28 items-end rounded-sm">+ <div class="bg-elevated flex h-28 items-end rounded-sm"><divclass="relative w-7 rounded-t":style="barStyle"diff --git a/app/components/stat/chart/Intervals.vue b/app/components/stat/chart/Intervals.vueindex 2fa8a8b3..b2187f6c 100644--- a/app/components/stat/chart/Intervals.vue+++ b/app/components/stat/chart/Intervals.vue@@ -45,7 +45,7 @@ const selectedPeriod = ref(props.period)v-model="selectedPeriod":items="availableIntervals":ui="{- base: 'ring-0 text-muted text-2xs hover:bg-(--item-5)',+ base: 'ring-0 text-muted text-2xs hover:bg-elevated',trailingIcon: 'size-4',content: 'w-24',}"diff --git a/app/components/stat/chart/View.vue b/app/components/stat/chart/View.vueindex 8209ead5..1ff7411d 100644--- a/app/components/stat/chart/View.vue+++ b/app/components/stat/chart/View.vue@@ -119,7 +119,7 @@ function buildChartSeries(series: ChartSeries[]) {autoresize><template #tooltip="params">- <div class="rounded-md bg-(--item-5) px-2 pt-2">+ <div class="bg-elevated rounded-md px-2 pt-2"><div class="text-muted pb-2 text-xs">{{ formatByLocale(new Date(+(params as TooltipParam[])[0]!.name), getFormatForChart(period), locale) }}</div>@@ -127,7 +127,7 @@ function buildChartSeries(series: ChartSeries[]) {<div class="grid gap-0"><divv-for="(param, i) in (params as TooltipParam[])" :key="i"- class="border-item-6 flex items-center justify-between gap-4 border-b pb-1 last:border-b-0"+ class="border-default flex items-center justify-between gap-4 border-b pb-1 last:border-b-0"><div class="flex items-center gap-2"><div class="size-2.5 rounded-full" :style="`background: ${param.color}`" />@@ -136,7 +136,7 @@ function buildChartSeries(series: ChartSeries[]) {</div></div>- <div class="font-secondary text-1 text-right text-lg">+ <div class="font-secondary text-highlighted text-right text-lg">{{ formatChartAmount(param.value, locale) }}</div></div>diff --git a/app/components/stat/chart/Wrap.vue b/app/components/stat/chart/Wrap.vueindex c85b3632..f4fde385 100644--- a/app/components/stat/chart/Wrap.vue+++ b/app/components/stat/chart/Wrap.vue@@ -6,12 +6,10 @@ import { statConfigKey, statDateKey } from '~/components/stat/injectionKeys'import { useTrnsFormStore } from '~/components/trnForm/useTrnsFormStore'defineProps<{- isEmpty?: booleanseries: ChartSeries[]xAxisLabels: number[]}>()-const { t } = useI18n()const statDate = inject(statDateKey)!const statConfig = inject(statConfigKey)!const trnsFormStore = useTrnsFormStore()@@ -44,7 +42,7 @@ function onChangePeriod(period: Period) {<div class="h-7"><StatChartIntervals- :class="{ 'border-item-4 border-l': isShowQuick }"+ :class="{ 'border-accented border-l': isShowQuick }":period="statDate.params.value.intervalsBy":range="statDate.range.value"@changePeriod="onChangePeriod"@@ -52,22 +50,12 @@ function onChangePeriod(period: Period) {</div></div>- <div class="relative">- <LazyStatChartView- v-show="!isEmpty"- :chartType- :period="statDate.params.value.intervalsBy"- :series- :xAxisLabels- @click="onClickChart"- />-- <div- v-if="isEmpty"- class="text-muted grid h-40 place-items-center text-sm @3xl/stat:h-52"- >- {{ t('stat.noDataForPeriod') }}- </div>- </div>+ <LazyStatChartView+ :chartType+ :period="statDate.params.value.intervalsBy"+ :series+ :xAxisLabels+ @click="onClickChart"+ /></div></template>diff --git a/app/components/stat/chart/config.ts b/app/components/stat/chart/config.tsindex beabda89..7895fc23 100644--- a/app/components/stat/chart/config.ts+++ b/app/components/stat/chart/config.ts@@ -18,13 +18,13 @@ type SeriesOption = (BarSeriesOption | LineSeriesOption) & {export const seriesOptions: Record<SeriesSlug, SeriesOption> = {expense: {- color: 'var(--expense-1)',- markLineColor: 'var(--expense-2)',+ color: 'var(--color-expense-1)',+ markLineColor: 'var(--color-expense-2)',type: 'bar',},income: {- color: 'var(--income-1)',- markLineColor: 'var(--income-2)',+ color: 'var(--color-income-1)',+ markLineColor: 'var(--color-income-2)',type: 'bar',},}diff --git a/app/components/stat/date/Nav.vue b/app/components/stat/date/Nav.vuedeleted file mode 100644index 6a43afcf..00000000--- a/app/components/stat/date/Nav.vue+++ /dev/null@@ -1,48 +0,0 @@-<script setup lang="ts">-const { isEnd, isShowNavHome, isStart, position = 'left' } = defineProps<{- isEnd: boolean- isShowNavHome: boolean- isStart: boolean- position?: 'left' | 'right'-}>()--const emit = defineEmits<{- changeDate: [action: 'prev' | 'next' | 'today']-}>()-</script>--<template>- <div class="flex items-center gap-1">- <UiActionButton- v-if="position === 'left' && isShowNavHome"- :ariaLabel="$t('base.today')"- @click="emit('changeDate', 'today')"- >- <Icon name="lucide:undo-2" size="20" />- </UiActionButton>-- <UiActionButton- :ariaLabel="$t('base.previous')"- :class="cn('bg-item-3', isStart && 'hover:transparent opacity-30')"- @click="emit('changeDate', 'prev')"- >- <Icon name="lucide:chevron-left" size="24" />- </UiActionButton>-- <UiActionButton- :ariaLabel="$t('base.next')"- :class="cn('bg-item-3', isEnd && 'hover:transparent opacity-30')"- @click="emit('changeDate', 'next')"- >- <Icon name="lucide:chevron-left" size="24" class="rotate-180" />- </UiActionButton>-- <UiActionButton- v-if="position === 'right' && isShowNavHome"- :ariaLabel="$t('base.today')"- @click="emit('changeDate', 'today')"- >- <Icon name="lucide:undo-2" size="20" />- </UiActionButton>- </div>-</template>diff --git a/app/components/stat/date/Navigation.vue b/app/components/stat/date/Navigation.vueindex ced05b9a..2ddb9653 100644--- a/app/components/stat/date/Navigation.vue+++ b/app/components/stat/date/Navigation.vue@@ -68,7 +68,7 @@ function changeDate(way: 'next' | 'prev' | 'today') {><template #trigger><UiTitleCollapse- class="_bg-item-4 text-md !grow-0"+ class="text-md !grow-0"isShown><StatDateRange />@@ -95,7 +95,7 @@ function changeDate(way: 'next' | 'prev' | 'today') {><template #trigger><UiTitleCollapse- class="_bg-item-4 text-md !grow-0"+ class="text-md !grow-0"isShown><StatDateRange />diff --git a/app/components/stat/date/Range.vue b/app/components/stat/date/Range.vueindex 28cc2caf..5d703585 100644--- a/app/components/stat/date/Range.vue+++ b/app/components/stat/date/Range.vue@@ -27,11 +27,11 @@ const date = computed(() => {</script><template>- <div class="flex items-center gap-1 leading-none text-nowrap capitalize">+ <div class="flex min-h-[42px] items-center gap-1 leading-none text-nowrap capitalize ">{{ date }}<datav-if="statDate.params.value.isShowMaxRange && statDate.params.value.intervalSelected === -1"- class="flex-inline bg-item-3 text-2xs text-4 w-auto items-center rounded-sm px-1 py-px leading-none"+ class="flex-inline bg-elevated text-2xs text-muted w-auto items-center rounded-sm px-1 py-px leading-none">max</data></div></template>diff --git a/app/components/stat/filter/Selected.vue b/app/components/stat/filter/Selected.vueindex 3ca2fc57..3d8a79d2 100644--- a/app/components/stat/filter/Selected.vue+++ b/app/components/stat/filter/Selected.vue@@ -11,7 +11,7 @@ const props = defineProps<{const filter = inject(filterKey)!const walletsStore = useWalletsStore()const categoriesStore = useCategoriesStore()-const itemClasses = 'bg-item-3 rounded-sm'+const itemClasses = 'bg-elevated/30 rounded-sm'</script><template>diff --git a/app/components/stat/sum/Item.vue b/app/components/stat/sum/Item.vueindex 0038c77f..4e9b9d35 100644--- a/app/components/stat/sum/Item.vue+++ b/app/components/stat/sum/Item.vue@@ -25,8 +25,8 @@ const currenciesStore = useCurrenciesStore():class="cn(props.plain? 'px-1 pb-1'- : 'flex-1 flex-wrap rounded-sm border border-transparent bg-(--item-3) px-3 py-2 @2xl/stat:max-w-max',- props.isActive && 'bg-item-2 border-(--ui-primary)/40',+ : 'flex-1 flex-wrap rounded-sm border border-transparent bg-elevated/30 px-3 py-2 @2xl/stat:max-w-max',+ props.isActive && 'bg-elevated/30 border-primary/40',)"@click="(e: Event) => emit('click', e)">diff --git a/app/components/theme/Picker.vue b/app/components/theme/Picker.vueindex fe807915..bdcab9c4 100644--- a/app/components/theme/Picker.vue+++ b/app/components/theme/Picker.vue@@ -33,7 +33,8 @@ const primary = computed({},})-const radiuses = [0, 0.25, 0.375, 0.5, 1, 1.5]+const radiuses = [0, 0.25, 0.375, 0.5]+const radiusItems = radiuses.map(r => ({ label: String(r), value: r }))const radius = computed({get() {return appConfig.theme.radius@@ -49,6 +50,11 @@ const modes = [{ icon: 'i-lucide-moon', label: 'dark' },{ icon: 'i-lucide-monitor', label: 'system' },]+const modeItems = computed(() => [+ { icon: 'i-lucide-sun', label: t('theme.light'), value: 'light' },+ { icon: 'i-lucide-moon', label: t('theme.dark'), value: 'dark' },+ { icon: 'i-lucide-monitor', label: t('theme.system'), value: 'system' },+])const mode = computed({get() {return colorMode.value@@ -57,140 +63,170 @@ const mode = computed({colorMode.preference = option},})+const modePreference = computed({+ get() {+ return colorMode.preference+ },+ set(option) {+ colorMode.preference = option+ },+})+const selectedModeItem = computed(() =>+ modeItems.value.find(m => m.value === modePreference.value),+)++function capitalize(s: string) {+ return s.charAt(0).toUpperCase() + s.slice(1)+}++const BLACK_PRIMARY = '__black__'+const primaryItems = computed(() => [+ { label: 'Black', value: BLACK_PRIMARY },+ ...primaryColors.map(c => ({ label: capitalize(c), value: c })),+])+const primarySelected = computed({+ get() {+ return appConfig.theme.blackAsPrimary ? BLACK_PRIMARY : primary.value+ },+ set(option) {+ if (option === BLACK_PRIMARY) {+ setBlackAsPrimary(true)+ }+ else {+ setBlackAsPrimary(false)+ primary.value = option+ }+ },+})++const neutralItems = computed(() => neutralColors.map(c => ({ label: capitalize(c), value: c })))function setBlackAsPrimary(value: boolean) {appConfig.theme.blackAsPrimary = valuewindow.localStorage.setItem('nuxt-ui-black-as-primary', String(value))}--const activeTab = ref('mode')</script><template>- <!-- Inline mode: tabs -->- <div+ <!-- Inline mode: dropdowns inside a settings card -->+ <UiSettingsCardv-if="props.inline"- class="border-item-6 overflow-hidden rounded-lg border"+ :title="t('theme.title')">- <div class="px-4 pt-4 pb-2 text-lg font-semibold">- {{ t('theme.title') }}- </div>-- <div class="px-4 pb-2">- <UiTabsScroll>- <UiTabsItemPill- :isActive="activeTab === 'mode'"- variant="outline"- @click="activeTab = 'mode'"- >- {{ t('theme.picker.theme') }}- </UiTabsItemPill>- <UiTabsItemPill- variant="outline"- :isActive="activeTab === 'primary'"- @click="activeTab = 'primary'"+ <div class="grid gap-3">+ <!-- Theme mode -->+ <div class="flex flex-col items-start gap-1">+ <span class="text-muted text-xs">{{ t('theme.picker.theme') }}</span>+ <USelectMenu+ v-model="modePreference"+ :items="modeItems"+ valueKey="value"+ :searchInput="false">- {{ t('theme.picker.primary') }}- </UiTabsItemPill>- <UiTabsItemPill- variant="outline"- :isActive="activeTab === 'neutral'"- @click="activeTab = 'neutral'"- >- {{ t('theme.picker.neutral') }}- </UiTabsItemPill>- <UiTabsItemPill- variant="outline"- :isActive="activeTab === 'radius'"- @click="activeTab = 'radius'"- >- {{ t('theme.picker.radius') }}- </UiTabsItemPill>- </UiTabsScroll>- </div>-- <!-- Theme mode -->- <div v-if="activeTab === 'mode'" class="grid grid-cols-3 px-4 pb-4">- <UiElement- v-for="m in modes"- :key="m.label"- :isActive="colorMode.preference === m.label"- @click="mode = m.label"- >- <template #leftIcon>- <UIcon :name="m.icon" class="text-muted size-5" />- </template>- <span class="text-sm capitalize">{{ m.label }}</span>- </UiElement>- </div>+ <template #leading>+ <UIcon :name="selectedModeItem?.icon" class="size-5" />+ </template>+ <template #item-leading="{ item }">+ <UIcon :name="item.icon" class="size-5" />+ </template>+ </USelectMenu>+ </div>- <!-- Primary color -->- <div v-if="activeTab === 'primary'" class="grid grid-cols-3 px-4 pb-4">- <UiElement- :isActive="appConfig.theme.blackAsPrimary"- @click="setBlackAsPrimary(true)"- >- <template #leftIcon>- <span class="inline-block size-5 rounded-full bg-black dark:bg-white" />- </template>- <span class="text-sm capitalize">Black</span>- </UiElement>-- <UiElement- v-for="color in primaryColors"- :key="color"- :isActive="!appConfig.theme.blackAsPrimary && primary === color"- @click="primary = color"- >- <template #leftIcon>- <span- class="inline-block size-5 rounded-full bg-(--color-light) dark:bg-(--color-dark)"- :style="{- '--color-light': `var(--color-${color}-500)`,- '--color-dark': `var(--color-${color}-400)`,- }"- />- </template>- <span class="text-sm capitalize">{{ color }}</span>- </UiElement>- </div>+ <!-- Primary color -->+ <div class="flex flex-col items-start gap-1">+ <span class="text-muted text-xs">{{ t('theme.picker.primary') }}</span>+ <USelectMenu+ v-model="primarySelected"+ :items="primaryItems"+ valueKey="value"+ :searchInput="false"+ >+ <template #leading>+ <span+ v-if="primarySelected === BLACK_PRIMARY"+ class="size-5 rounded-full bg-black dark:bg-white"+ />+ <span+ v-else+ class="size-5 rounded-full bg-(--color-light) dark:bg-(--color-dark)"+ :style="{+ '--color-light': `var(--color-${primarySelected}-500)`,+ '--color-dark': `var(--color-${primarySelected}-400)`,+ }"+ />+ </template>+ <template #item-leading="{ item }">+ <span+ v-if="item.value === BLACK_PRIMARY"+ class="size-5 rounded-full bg-black dark:bg-white"+ />+ <span+ v-else+ class="size-5 rounded-full bg-(--color-light) dark:bg-(--color-dark)"+ :style="{+ '--color-light': `var(--color-${item.value}-500)`,+ '--color-dark': `var(--color-${item.value}-400)`,+ }"+ />+ </template>+ </USelectMenu>+ </div>- <!-- Neutral color -->- <div v-if="activeTab === 'neutral'" class="grid grid-cols-3 px-4 pb-4">- <UiElement- v-for="color in neutralColors"- :key="color"- :isActive="neutral === color"- @click="neutral = color"- >- <template #leftIcon>- <span- class="inline-block size-5 rounded-full bg-(--color-light) dark:bg-(--color-dark)"- :style="{- '--color-light': `var(--color-${color}-500)`,- '--color-dark': `var(--color-${color}-400)`,- }"- />- </template>- <span class="text-sm capitalize">{{ color }}</span>- </UiElement>- </div>+ <!-- Neutral color -->+ <div class="flex flex-col items-start gap-1">+ <span class="text-muted text-xs">{{ t('theme.picker.neutral') }}</span>+ <USelectMenu+ v-model="neutral"+ :items="neutralItems"+ valueKey="value"+ :searchInput="false"+ >+ <template #leading>+ <span+ class="size-5 rounded-full bg-(--color-light) dark:bg-(--color-dark)"+ :style="{+ '--color-light': `var(--color-${neutral}-500)`,+ '--color-dark': `var(--color-${neutral}-400)`,+ }"+ />+ </template>+ <template #item-leading="{ item }">+ <span+ class="size-5 rounded-full bg-(--color-light) dark:bg-(--color-dark)"+ :style="{+ '--color-light': `var(--color-${item.value}-500)`,+ '--color-dark': `var(--color-${item.value}-400)`,+ }"+ />+ </template>+ </USelectMenu>+ </div>- <!-- Radius -->- <div v-if="activeTab === 'radius'" class="grid grid-cols-3 px-4 pb-4">- <UiElement- v-for="r in radiuses"- :key="r"- :isActive="radius === r"- @click="radius = r"- >- <template #leftIcon>- <UIcon name="i-lucide-square" class="text-muted size-5" :style="{ borderRadius: `${r * 4}px` }" />- </template>- <span class="text-sm">{{ r }}</span>- </UiElement>+ <!-- Radius -->+ <div class="flex flex-col items-start gap-1">+ <span class="text-muted text-xs">{{ t('theme.picker.radius') }}</span>+ <USelectMenu+ v-model="radius"+ :items="radiusItems"+ valueKey="value"+ :searchInput="false"+ >+ <template #leading>+ <span+ class="bg-elevated size-5"+ :style="{ borderRadius: `${radius}rem` }"+ />+ </template>+ <template #item-leading="{ item }">+ <span+ class="bg-elevated size-5"+ :style="{ borderRadius: `${item.value}rem` }"+ />+ </template>+ </USelectMenu>+ </div></div>- </div>+ </UiSettingsCard><!-- Popover mode: button with popover --><UPopover@@ -262,16 +298,25 @@ const activeTab = ref('mode'){{ t('theme.picker.radius') }}</legend>- <div class="-mx-2 grid grid-cols-5 gap-1">- <ThemePickerButton- v-for="r in radiuses"- :key="r"- :label="String(r)"- class="justify-center px-0"- :selected="radius === r"- @click="radius = r"- />- </div>+ <USelectMenu+ v-model="radius"+ :items="radiusItems"+ valueKey="value"+ :searchInput="false"+ >+ <template #leading>+ <span+ class="bg-elevated size-5"+ :style="{ borderRadius: `${radius}rem` }"+ />+ </template>+ <template #item-leading="{ item }">+ <span+ class="bg-elevated size-5"+ :style="{ borderRadius: `${item.value}rem` }"+ />+ </template>+ </USelectMenu></fieldset><fieldset>diff --git a/app/components/theme/PickerButton.vue b/app/components/theme/PickerButton.vueindex cb6f8d32..d6b8e392 100644--- a/app/components/theme/PickerButton.vue+++ b/app/components/theme/PickerButton.vue@@ -14,7 +14,7 @@ defineProps<{variant="outline":icon="icon":label="label"- class="rounded-[calc(var(--ui-radius))] text-[11px] capitalize ring-(--ui-border)"+ class="ring-default rounded-sm text-[11px] capitalize":class="[selected ? 'bg-elevated' : 'hover:bg-elevated/50']"><template v-if="chip" #leading>diff --git a/app/components/trnForm/Date.vue b/app/components/trnForm/Date.vueindex 40fbf4bc..6789af39 100644--- a/app/components/trnForm/Date.vue+++ b/app/components/trnForm/Date.vue@@ -42,8 +42,8 @@ function changeDate(way: 'prev' | 'next' | 'today') {@closeModal="isShow = false"><template #trigger>- <UiActionButton class="text-2 grid h-full w-full content-center !justify-start px-2 text-left">- <div class="text-1 text-sm">+ <UiActionButton class="text-muted grid h-full w-full content-center !justify-start px-2 text-left">+ <div class="text-highlighted text-sm">{{ formattedDate?.day }} {{ formattedDate?.month }}</div><div class="font-regular text-2xs leading-none">diff --git a/app/components/trnForm/EditedTrn.vue b/app/components/trnForm/EditedTrn.vueindex 79963f80..216abac9 100644--- a/app/components/trnForm/EditedTrn.vue+++ b/app/components/trnForm/EditedTrn.vue@@ -14,7 +14,7 @@ const trnsFormStore = useTrnsFormStore()<TrnsItemv-if="trnsStore.computeTrnItem(trnsFormStore.values.trnId)":trnItem="trnsStore.computeTrnItem(trnsFormStore.values.trnId)!"- class="group bg-item-3 rounded-lg"+ class="group bg-elevated/50 rounded-lg"@click="trnsFormStore.values.trnId = null"/></div>diff --git a/app/components/trnForm/FloatOpener.vue b/app/components/trnForm/FloatOpener.vueindex 96918f6a..617497ce 100644--- a/app/components/trnForm/FloatOpener.vue+++ b/app/components/trnForm/FloatOpener.vue@@ -8,8 +8,8 @@ const { openFormForCreate, ui } = useTrnsFormStore()<divv-if="!ui.isShow"class="- group fixed top-0 right-0 h-full w-[300px] items-end- justify-end from-transparent to-(--item-5)+ group to-elevated fixed top-0 right-0 h-full w-[300px]+ items-end justify-end from-transparenttransition hover:bg-gradient-to-r xl:flex"@click="openFormForCreate()"diff --git a/app/components/trnForm/Main.vue b/app/components/trnForm/Main.vueindex ec966c7e..981f91c3 100644--- a/app/components/trnForm/Main.vue+++ b/app/components/trnForm/Main.vue@@ -84,18 +84,18 @@ const walletId = computed(() =>padding-bottom: calc(env(safe-area-inset-bottom) - 16px);.trnForm__pagination {- @apply absolute left-1/2 z-[2] flex items-center justify-center w-auto p-1.5 rounded-md bg-(--item-1);+ @apply absolute left-1/2 z-[2] flex items-center justify-center w-auto p-1.5 rounded-md bg-default;transform: translateX(-50%);bottom: 1px;}.swiper-pagination-bullet {- @apply block w-1.5 h-1.5 mx-1 rounded-full bg-item-4;+ @apply block w-1.5 h-1.5 mx-1 rounded-full bg-accented;opacity: 1;}.swiper-pagination-bullet-active {- @apply bg-(--ui-primary);+ @apply bg-primary;}}</style>diff --git a/app/components/trnForm/SelectionCategoriesFast.vue b/app/components/trnForm/SelectionCategoriesFast.vueindex b70e3a6f..456ed627 100644--- a/app/components/trnForm/SelectionCategoriesFast.vue+++ b/app/components/trnForm/SelectionCategoriesFast.vue@@ -21,10 +21,7 @@ const isShowAllCategoriesFallback = computed(() =><template><!-- Favorite categories -->- <div- v-if="categoriesStore.favoriteCategoriesIds.length > 0"- class="pt-2"- >+ <div v-if="categoriesStore.favoriteCategoriesIds.length > 0"><UiTitleModal>{{ t('categories.favoriteCategories') }}</UiTitleModal>diff --git a/app/components/trnForm/SelectorCategory.vue b/app/components/trnForm/SelectorCategory.vueindex 4c640f1b..98055c1c 100644--- a/app/components/trnForm/SelectorCategory.vue+++ b/app/components/trnForm/SelectorCategory.vue@@ -31,7 +31,7 @@ const isShow = ref(false):categoryId="props.categoryId"stackedisShowParent- insideClasses="bg-item-3 min-h-[42px] py-2"+ insideClasses="bg-elevated/30 hover:bg-elevated/50 min-h-[42px] py-2"/></template>diff --git a/app/components/trnForm/SelectorWallet.vue b/app/components/trnForm/SelectorWallet.vueindex cdd16ab5..d1842b93 100644--- a/app/components/trnForm/SelectorWallet.vue+++ b/app/components/trnForm/SelectorWallet.vue@@ -17,6 +17,10 @@ const emit = defineEmits<{const walletsStore = useWalletsStore()const isShow = ref(false)++const { width } = useWindowSize()+const { pointerType } = usePointer()+const isLaptop = computed(() => width.value >= 766 && pointerType.value === 'mouse')</script><template>@@ -45,6 +49,7 @@ const isShow = ref(false):hide="close":activeItemId="props.walletId":disabledIds="props.disabledWalletIds"+ :filterAtTop="isLaptop"class="min-w-80 px-3"@selected="(id: WalletId) => emit('selected', id)"/>diff --git a/app/components/trnForm/Sidebar.vue b/app/components/trnForm/Sidebar.vueindex 64742e47..a48e900d 100644--- a/app/components/trnForm/Sidebar.vue+++ b/app/components/trnForm/Sidebar.vue@@ -50,15 +50,15 @@ watch(isShow, async (v) => {v-if="isShow"class="trnForm @container/trnForm fixed inset-y-0 right-0 z-50 h-dvh w-[360px] py-4">- <div class="border-left border-item-6 border-item-4 bg-item-2 relative h-full overflow-hidden rounded-l-xl border border-r-0 shadow-2xl">+ <div class="relative h-full overflow-hidden rounded-l-xl shadow-2xl"><div class="absolute top-2 right-2"><BottomSheetClose @click="trnsFormStore.onClose()" /></div>- <div ref="sliderRef" class="swiper-container h-full">+ <div ref="sliderRef" class="swiper-container bg-default h-full"><div class="swiper-wrapper"><!-- Main -->- <div class="swiper-slide bg-default h-full">+ <div class="swiper-slide h-full"><div class="scrollerBlock grid h-full grid-rows-[auto_1fr] items-start gap-4 overflow-y-auto overscroll-contain"><TrnFormMainmaxHeight="100vh"@@ -66,7 +66,7 @@ watch(isShow, async (v) => {/><divv-if="trnsFormStore.values.trnType !== TrnType.Transfer"- class="-mt-8 grid gap-2 pb-6"+ class="grid gap-2 pb-6"><TrnFormSelectionCategoriesFast@selectCategory="id => trnsFormStore.values.categoryId = id"@@ -77,7 +77,7 @@ watch(isShow, async (v) => {<!-- Quick selector --><div- class="swiper-slide bg-(--bg-)"+ class="swiper-slide":style="{ height: '100%' }"><div class="scrollerBlock h-full overflow-y-auto overscroll-contain">diff --git a/app/components/trnForm/main/ActionSide.vue b/app/components/trnForm/main/ActionSide.vueindex 13985aba..ed94ecf0 100644--- a/app/components/trnForm/main/ActionSide.vue+++ b/app/components/trnForm/main/ActionSide.vue@@ -37,10 +37,10 @@ async function onClickSubmit() {<template><div:class="cn(- 'flex w-12 @xs/trnForm:w-14 @sm/trnForm:w-16 size-full items-center justify-center rounded-(--ui-radius) p-1 py-4 text-center transition hover:scale-[1.02]',+ 'flex w-12 @xs/trnForm:w-14 @sm/trnForm:w-16 size-full items-center justify-center rounded-sm p-1 py-4 text-center transition hover:scale-[1.02]',!isMath && isSubmittable- ? 'bg-(--ui-primary)/60 hover:bg-(--ui-primary) text-icon-primary'- : 'bg-item-4 text-1 hover:bg-(--item-5)',+ ? 'bg-primary/50 hover:bg-primary/80 text-icon-primary'+ : '!bg-elevated text-highlighted hover:bg-elevated/30',(!isSubmittable || isMath) && 'text-muted',)"@click="onClickSubmit"diff --git a/app/components/trnForm/main/AmountTransfer.vue b/app/components/trnForm/main/AmountTransfer.vueindex e2eca275..ce91f354 100644--- a/app/components/trnForm/main/AmountTransfer.vue+++ b/app/components/trnForm/main/AmountTransfer.vue@@ -95,16 +95,16 @@ watch(<div:class="cn('-m-1 grid gap-2 overflow-hidden rounded-sm border border-transparent p-2',- trnsFormStore.values.transferType === item.transferType && 'border-(--ui-primary)/50',+ trnsFormStore.values.transferType === item.transferType && 'border-primary/50',)"@click="trnsFormStore.onChangeTransferType(item.transferType)"><div class="flex items-center gap-2 whitespace-nowrap"><div:class="[{- 'bg-(--item-5)': trnsFormStore.values.transferType === item.transferType,+ 'bg-elevated': trnsFormStore.values.transferType === item.transferType,}]"- class="text-1/70 bg-item-3 interactive flex min-h-[44px] w-1/2 grow items-center rounded-sm px-3 py-2 text-sm lg:min-h-[42px]"+ class="text-highlighted/70 interactive flex min-h-[44px] w-1/2 grow items-center rounded-sm px-3 py-2 text-sm lg:min-h-[42px]">{{ t(`trnForm.transfer.${slug}Label`) }}</div>diff --git a/app/components/trnForm/main/Calculator.vue b/app/components/trnForm/main/Calculator.vueindex 3c86d14f..dc9199d5 100644--- a/app/components/trnForm/main/Calculator.vue+++ b/app/components/trnForm/main/Calculator.vue@@ -29,7 +29,7 @@ onLongPress(</script><template>- <div class="grid grid-cols-[auto_1fr_auto] justify-between gap-0">+ <div class="grid grid-cols-[auto_1fr_auto] justify-between gap-1"><div class="flex flex-col gap-1"><TrnFormMainCalculatorButton @click="trnsFormStore.onClickCalculator('*')"><Icon@@ -48,7 +48,7 @@ onLongPress(</TrnFormMainCalculatorButton></div>- <div class="flex flex-col gap-1 px-3">+ <div class="flex flex-col gap-1"><divv-for="(row, rowIdx) in buttons":key="rowIdx"diff --git a/app/components/trnForm/main/CalculatorButton.vue b/app/components/trnForm/main/CalculatorButton.vueindex 9c4419ce..9954ea4c 100644--- a/app/components/trnForm/main/CalculatorButton.vue+++ b/app/components/trnForm/main/CalculatorButton.vue@@ -7,16 +7,16 @@ const emit = defineEmits<{<template><divclass="- bg-item-3 font-secondary- text-2 hover:border-item-6 flex+ bg-elevated/50 font-secondary+ hover:border-default hover:bg-elevated+ text-muted+ flexaspect-square- w-12- items-center- justify-center rounded-full p-1- text-2xl- font-normal- transition hover:scale-[1.02]- hover:bg-(--item-5)+ w-12 items-center justify-center+ rounded-full+ p-1 text-2xl+ font-normal transition+ hover:scale-[1.02]@xs/trnForm:w-14@sm/trnForm:w-16"diff --git a/app/components/trnForm/main/Description.vue b/app/components/trnForm/main/Description.vueindex b6dd6126..1191bfe1 100644--- a/app/components/trnForm/main/Description.vue+++ b/app/components/trnForm/main/Description.vue@@ -34,7 +34,7 @@ function onSave(close: () => void) {<Icon name="lucide:message-square" size="20" /><divv-if="trnsFormStore.values.desc"- class="absolute top-0 right-0 aspect-square w-2.5 rounded-full bg-(--ui-primary)"+ class="bg-primary absolute top-0 right-0 aspect-square w-2.5 rounded-full"/></UiActionButton></template>diff --git a/app/components/trnForm/main/Input.vue b/app/components/trnForm/main/Input.vueindex 3b81ee22..00d5c183 100644--- a/app/components/trnForm/main/Input.vue+++ b/app/components/trnForm/main/Input.vue@@ -22,7 +22,7 @@ const { t } = useI18n()'left-3': isTransfer,'left-1/2 -translate-x-1/2': !isTransfer,}]"- class="text-1/60 pointer-events-none absolute top-2 text-center text-sm"+ class="text-highlighted/60 pointer-events-none absolute top-2 text-center text-sm"tabindex="0">{{ amount }}@@ -36,7 +36,7 @@ const { t } = useI18n()}":placeholder="t('trnForm.enterAmount')":modelValue="amountRaw"- class="swiper-no-swiping bg-item-2 font-secondary border-transparent pt-6 pb-2 text-center !text-3xl placeholder:text-3xl"+ class="swiper-no-swiping font-secondary border-transparent bg-transparent pt-6 pb-2 text-center !text-3xl placeholder:text-3xl"inputmode="tel"@update:modelValue="(value: string) => emit('change', value || '')"/>diff --git a/app/components/trns/Item.vue b/app/components/trns/Item.vueindex 349c516f..12c969c1 100644--- a/app/components/trns/Item.vue+++ b/app/components/trns/Item.vue@@ -42,14 +42,13 @@ const emit = defineEmits<{<divv-if="trnItem.type === TrnType.Transfer"- class="flex items-center gap-2"+ class="text-muted flex items-center gap-2"><Icon:name="props.trnItem.category?.icon"- :color="props.trnItem.category?.color"size="16"/>- <div class="text-2 flex items-center gap-2 text-xs leading-none">+ <div class="flex items-center gap-2 text-xs leading-none">{{ trnItem.category.name }}</div></div>@@ -72,7 +71,7 @@ const emit = defineEmits<{v-if="trnItem.wallet"class="flex items-center gap-2">- <div class="text-2xs text-4 leading-none">+ <div class="text-2xs text-muted leading-none">{{ trnItem.wallet.name }}</div></div>@@ -96,7 +95,7 @@ const emit = defineEmits<{v-if="trnItem.type === TrnType.Transfer"class="grid gap-1">- <div class="text-3 flex items-center gap-1 text-sm leading-none">+ <div class="text-toned flex items-center gap-1 text-sm leading-none"><span class="font-semibold">{{ trnItem.expenseWallet.name }}</span><Icon name="lucide:move-right" size="16" /><span class="font-semibold">{{ trnItem.incomeWallet.name }}</span>diff --git a/app/components/trns/List.vue b/app/components/trns/List.vueindex eb598314..1834ad64 100644--- a/app/components/trns/List.vue+++ b/app/components/trns/List.vue@@ -233,7 +233,7 @@ function onOpenTrnForm(date: number) {<!-- Group Sum --><divv-if="isShowGroupSum && paginatedTrnsIds.length > 1"- class="border-item-4 border-b pr-3 pb-2 opacity-60"+ class="border-accented border-b pr-3 pb-2 opacity-60"><Amountv-if="paginatedTotal.income !== 0"@@ -277,10 +277,10 @@ function onOpenTrnForm(date: number) {<divv-for="(groupTrnsIds, date) in groupedTrns":key="date"- class="_rounded-lg _border-b border-item-4 overflow-hidden pb-2 last:border-b-0 last:pb-px"+ class="_rounded-lg _border-b border-accented overflow-hidden pb-2 last:border-b-0 last:pb-px"><div- :class="{ 'border-item-4': isShowGroupSum && groupTrnsIds.length > 1 }"+ :class="{ 'border-accented': isShowGroupSum && groupTrnsIds.length > 1 }"class="flex items-center gap-2 px-3 py-1"><DateTrns@@ -338,7 +338,7 @@ function onOpenTrnForm(date: number) {class="px-2 pt-1"><div- class="flex-center text-muted hover:bg-item-6 rounded-(--ui-radius) bg-(--item-5) px-5 py-2 text-sm"+ class="flex-center text-muted hover:bg-accented bg-elevated rounded-sm px-5 py-2 text-sm"@click="pageNumber = ++pageNumber">{{ t('trns.more') }} {{ paginatedTrnsIds.length }} /diff --git a/app/components/trns/pages/History.vue b/app/components/trns/pages/History.vueindex 8eb59928..e0af8591 100644--- a/app/components/trns/pages/History.vue+++ b/app/components/trns/pages/History.vue@@ -65,7 +65,7 @@ watch([filter.categoriesIds, filter.walletsIds], () => {</template></UiHeader>- <div class="pageWrapper bg-default mb-4 rounded-xl pt-1 pb-4">+ <div class="pageWrapper mb-4 rounded-xl pt-1 pb-4"><div class="grid min-w-0 gap-3 @3xl/main:max-w-md"><TrnsList:trnsIdsdiff --git a/app/components/trns/useTrnsStore.ts b/app/components/trns/useTrnsStore.tsindex 12375f57..e74ab57e 100644--- a/app/components/trns/useTrnsStore.ts+++ b/app/components/trns/useTrnsStore.ts@@ -388,8 +388,8 @@ export const useTrnsStore = defineStore('trns', () => {if (!category) {if (trn.categoryId === 'transfer' || trn.categoryId === 'adjustment') {category = trn.categoryId === 'transfer'- ? { color: 'var(--text-2)', icon: 'lucide:arrow-left-right', name: 'Transfer', parentId: 0, showInLastUsed: false, showInQuickSelector: false }- : { color: 'var(--text-2)', icon: 'lucide:scale', name: 'Adjustment', parentId: 0, showInLastUsed: false, showInQuickSelector: false }+ ? { color: '', icon: 'lucide:arrow-left-right', name: 'Transfer', parentId: 0, showInLastUsed: false, showInQuickSelector: false }+ : { color: '', icon: 'lucide:scale', name: 'Adjustment', parentId: 0, showInLastUsed: false, showInQuickSelector: false }}else {return nulldiff --git a/app/components/ui/ActionButton.vue b/app/components/ui/ActionButton.vueindex 645e549d..2346e1f3 100644--- a/app/components/ui/ActionButton.vue+++ b/app/components/ui/ActionButton.vue@@ -16,11 +16,11 @@ const emit = defineEmits<{type="button":aria-label="ariaLabel":class="cn(- 'interactive data-[state=open]:!bg-item-4 flex min-w-[42px] cursor-default items-center justify-center rounded-sm',+ 'interactive data-[state=open]:!bg-accented flex min-w-[42px] cursor-default items-center justify-center rounded-sm',size === 'md' ? 'min-h-[42px]' : 'min-h-[32px]',variant === 'icon' && 'text-muted text-xl',- variant === 'text' && 'text-1 px-3 text-sm',- isActive && 'bg-item-3',+ variant === 'text' && 'text-highlighted px-3 text-sm',+ isActive && 'bg-elevated/30',)"@click="(e: Event) => emit('click', e)">diff --git a/app/components/ui/ButtonWithRight.vue b/app/components/ui/ButtonWithRight.vueindex fce874a0..a96219ab 100644--- a/app/components/ui/ButtonWithRight.vue+++ b/app/components/ui/ButtonWithRight.vue@@ -8,7 +8,7 @@ const emit = defineEmits<{<div><UiElementclass="@container/element"- insideClasses="max-w-lg w-full !min-h-[42px] bg-item-3 px-2 @xs/element:pl-4 @xs/element:pr-3 block @xs/element:flex @xs/element:flex-wrap gap-0 gap-x-2"+ insideClasses="max-w-lg w-full !min-h-[42px] bg-elevated/30 hover:bg-elevated/50 rounded-md px-4 @xs/element:pr-3 block @xs/element:flex @xs/element:flex-wrap gap-0 gap-x-2"@click="(e: Event) => emit('click', e)"><div class="text-muted text-sm">@@ -19,7 +19,7 @@ const emit = defineEmits<{<slot name="value" /><Iconname="lucide:chevron-down"- class="text-4"+ class="text-muted"/></div></UiElement>diff --git a/app/components/ui/ChipButton.vue b/app/components/ui/ChipButton.vueindex 62381b83..3175286b 100644--- a/app/components/ui/ChipButton.vue+++ b/app/components/ui/ChipButton.vue@@ -12,7 +12,7 @@ const emit = defineEmits<{<buttontype="button":aria-label="ariaLabel"- class="interactive bg-item-3 flex min-h-[38px] min-w-[42px] grow cursor-default items-center justify-center rounded-sm px-2 py-1.5 text-sm"+ class="interactive bg-elevated flex min-h-[38px] min-w-[42px] grow cursor-default items-center justify-center rounded-sm px-2 py-1.5 text-sm"@click="(e: Event) => emit('click', e)"><slot />diff --git a/app/components/ui/Element.vue b/app/components/ui/Element.vueindex 76147111..f5e2d3f8 100644--- a/app/components/ui/Element.vue+++ b/app/components/ui/Element.vue@@ -14,9 +14,9 @@ const NuxtLink = resolveComponent('NuxtLink')const slots = useSlots()const elementClasses = computed(() => cn(- 'interactive uiElement flex grow items-center gap-3 overflow-hidden rounded-sm px-2 py-1.5 min-h-[42px] -my-[1px] border border-transparent',+ 'interactive uiElement flex grow items-center gap-3 overflow-hidden rounded-sm px-2 py-1.5 min-h-[42px] -my-[1px]',props.insideClasses,- { 'relative border-(--ui-primary)/60 z-10': props.isActive },+ { 'relative z-10': props.isActive },))</script>@@ -48,7 +48,7 @@ const elementClasses = computed(() => cn('ml-[48px] group-last/item:hidden': lineWidth === 4,'group-last:hidden': lineWidth !== 3 && lineWidth !== 4,}"- class="mx-2 h-px bg-(--item-5)"+ class="bg-elevated/50 mx-2 h-px"/></component></template>@@ -61,6 +61,6 @@ a.uiElementLink {}[data-state='open'] > .uiElement {- @apply !bg-item-4;+ @apply !bg-accented;}</style>diff --git a/app/components/ui/Header.vue b/app/components/ui/Header.vueindex 2150a22a..0f25e4dd 100644--- a/app/components/ui/Header.vue+++ b/app/components/ui/Header.vue@@ -2,8 +2,9 @@import { useSearch } from '~/components/search/useSearch'import { canGoBack } from '~/composables/useNavigationHistory'-const { backTo } = defineProps<{+const { backTo, hideSearch } = defineProps<{backTo?: string+ hideSearch?: boolean}>()const { isSearchOpen } = useSearch()@@ -19,7 +20,7 @@ function onBack() {<template><div class="bg-default/90 sticky top-0 z-20 mb-2 backdrop-blur">- <div class="border-item-4 grid min-h-12 max-w-7xl items-center border-b px-2 py-2 lg:px-4 lg:py-4">+ <div class="border-accented grid min-h-12 max-w-7xl items-center border-b px-2 py-2 lg:px-4 lg:py-4"><div class="flex grow items-center"><buttonv-if="backTo"@@ -37,6 +38,7 @@ function onBack() {<div class="ml-auto flex shrink-0 flex-nowrap items-center gap-1 pl-2"><UTooltip+ v-if="!hideSearch":text="$t('search.title')":kbds="['meta', 'K']"class="hidden sm:flex"diff --git a/app/components/ui/HeaderTitle.vue b/app/components/ui/HeaderTitle.vueindex 21f42efa..37030ab0 100644--- a/app/components/ui/HeaderTitle.vue+++ b/app/components/ui/HeaderTitle.vue@@ -1,8 +1,8 @@<template><divclass="- font-tertiary flex grow items-center gap-2 overflow-x-auto overflow-y-hidden px-1 text-lg leading-none- font-semibold tracking-wide text-(--ui-text-highlighted) @lg:text-xl+ font-tertiary text-highlighted flex grow items-center gap-2 overflow-x-auto overflow-y-hidden px-1 text-lg+ leading-none font-semibold tracking-wide @lg:text-xl"><slot />diff --git a/app/components/ui/IconBase.vue b/app/components/ui/IconBase.vueindex a4815c58..90845990 100644--- a/app/components/ui/IconBase.vue+++ b/app/components/ui/IconBase.vue@@ -14,10 +14,11 @@ const props = defineProps<{color: props.invert ? '' : props.color,backgroundColor: props.invert ? props.color : 'transparent',}"- :class="{- [cn('rounded-full w-7 p-1.5', props.class)]: props.invert,- }"- class="flex-center text-icon-primary aspect-square overflow-hidden"+ :class="cn(+ 'flex-center text-icon-primary aspect-square overflow-hidden',+ props.invert && cn('rounded-full w-7 p-1.5', props.class),+ props.invert && !props.color && 'bg-muted !text-muted',+ )"><Icon:name="props.name"diff --git a/app/components/ui/SettingsCard.vue b/app/components/ui/SettingsCard.vueindex b90b3f20..a22c6074 100644--- a/app/components/ui/SettingsCard.vue+++ b/app/components/ui/SettingsCard.vue@@ -7,11 +7,9 @@ defineProps<{</script><template>- <div- :class="cn('overflow-hidden rounded-lg border', danger ? 'border-alert-1/30' : 'border-item-6')"- >- <div :class="cn('px-4 pt-4', $slots.default || $slots.content || $slots.footer ? 'pb-2' : 'pb-4')">- <div class="text-lg font-semibold">+ <div>+ <div :class="cn($slots.default || $slots.footer ? 'pb-2' : 'pb-4')">+ <div class="border-default mb-2 border-b pb-2 text-lg font-semibold">{{ title }}</div>@@ -25,21 +23,14 @@ defineProps<{<divv-if="$slots.default"- class="px-4 pb-4"+ class="pb-4"><slot /></div>- <div- v-if="$slots.content"- class="px-4 pb-4"- >- <slot name="content" />- </div>-<divv-if="$slots.footer"- :class="cn('flex items-center border-t px-4 py-3', danger ? 'border-alert-1/30' : 'border-item-6')"+ class="flex items-center pb-3"><slot name="footer" /></div>diff --git a/app/components/ui/SwitchItem.vue b/app/components/ui/SwitchItem.vueindex 577f8d8f..e92706a1 100644--- a/app/components/ui/SwitchItem.vue+++ b/app/components/ui/SwitchItem.vue@@ -15,7 +15,7 @@ function handleClick() {<template><div- class="flex grow items-center gap-3 rounded-sm p-2 text-sm hover:bg-(--item-5)"+ class="hover:bg-elevated/50 flex grow items-center gap-3 rounded-sm p-2 text-sm"@click="handleClick"><FormSwitch :value="checkboxValue" />diff --git a/app/components/ui/TabsBar.global.vue b/app/components/ui/TabsBar.global.vueindex 257d3799..59001083 100644--- a/app/components/ui/TabsBar.global.vue+++ b/app/components/ui/TabsBar.global.vue@@ -1,5 +1,5 @@<template>- <div class="flex grow items-center overflow-hidden overflow-x-auto rounded bg-(--item-3)">+ <div class="bg-elevated/30 flex grow items-center overflow-hidden overflow-x-auto rounded-full"><slot /></div></template>diff --git a/app/components/ui/TabsItemFill.vue b/app/components/ui/TabsItemFill.vueindex 028e5bf0..8c2ebada 100644--- a/app/components/ui/TabsItemFill.vue+++ b/app/components/ui/TabsItemFill.vue@@ -10,7 +10,7 @@ const emit = defineEmits<{ click: [] }>()<div:class="cn('flex flex-1 min-h-[32px] select-none items-center justify-center gap-1 text-nowrap rounded-xl px-2 text-sm',- props.isActive ? 'bg-item-4 text-primary' : 'interactive text-muted',+ props.isActive ? 'bg-accented text-primary' : 'interactive text-muted',)"@click="emit('click')">diff --git a/app/components/ui/TabsItemPill.vue b/app/components/ui/TabsItemPill.vueindex 477aedc8..ef82a533 100644--- a/app/components/ui/TabsItemPill.vue+++ b/app/components/ui/TabsItemPill.vue@@ -11,10 +11,10 @@ const emit = defineEmits<{ click: [] }>()<div:class="cn('flex items-center justify-center gap-1 text-sm leading-none',- variant === 'default' && 'min-h-[38px] grow select-none px-2 hover:bg-(--item-5)',- variant === 'outline' && 'interactive min-h-[32px] min-w-[60px] shrink-0 rounded-sm border-1 px-3',+ variant === 'default' && 'min-h-[38px] grow select-none px-2 hover:bg-elevated/50',+ variant === 'outline' && 'interactive min-h-[32px] min-w-[60px] shrink-0 rounded-sm px-3',isActive- ? variant === 'default' ? 'bg-item-4 text-primary' : 'bg-item-4 text-1'+ ? variant === 'default' ? '!bg-elevated/30' : '!bg-elevated/30': 'text-muted',)"@click="emit('click')"diff --git a/app/components/ui/TextSubtitle.vue b/app/components/ui/TextSubtitle.vueindex 061743c8..bf3331fc 100644--- a/app/components/ui/TextSubtitle.vue+++ b/app/components/ui/TextSubtitle.vue@@ -1,5 +1,5 @@<template>- <div class="text-2xs text-2 leading-none lg:text-sm">+ <div class="text-2xs text-muted leading-none lg:text-sm"><slot /></div></template>diff --git a/app/components/ui/TitleCollapse.vue b/app/components/ui/TitleCollapse.vueindex bb06b5a7..021a27ab 100644--- a/app/components/ui/TitleCollapse.vue+++ b/app/components/ui/TitleCollapse.vue@@ -12,7 +12,7 @@ const emit = defineEmits<{<template><div:class="cn(- 'flex grow items-center gap-2 rounded-sm min-h-[38px] min-w-[42px] pb-0 !font-tertiary !text-base font-semibold leading-none tracking-wide',+ 'flex grow items-center gap-2 rounded-sm min-h-[42px] min-w-[42px] pb-0 !font-tertiary !text-base font-semibold leading-none tracking-wide',props.arrow === 'right' ? 'justify-between px-4' : 'px-3',!props.isHideArrow && 'interactive',)"@@ -23,7 +23,7 @@ const emit = defineEmits<{v-if="!props.isHideArrow && !props.isShown":name="props.arrow === 'right' ? 'lucide:chevron-right' : 'lucide:chevron-left'"size="22"- :class="cn('-ml-1', props.arrow === 'right' && 'text-2 group-hover:text-1')"+ :class="cn('-ml-1', props.arrow === 'right' && 'text-muted group-hover:text-highlighted')"/></div></template>diff --git a/app/components/ui/TitleDropRight.vue b/app/components/ui/TitleDropRight.vueindex 0bbd78a6..cd112cba 100644--- a/app/components/ui/TitleDropRight.vue+++ b/app/components/ui/TitleDropRight.vue@@ -15,7 +15,7 @@ const emit = defineEmits<{<Icon:name="props.isShown ? 'lucide:chevron-down' : 'lucide:chevron-right'"size="22"- class="!text-4 -ml-1"+ class="!text-muted -ml-1"/><slot /></div>diff --git a/app/components/ui/ToggleWithStorage.vue b/app/components/ui/ToggleWithStorage.vueindex ebc997a6..52178d8c 100644--- a/app/components/ui/ToggleWithStorage.vue+++ b/app/components/ui/ToggleWithStorage.vue@@ -35,7 +35,7 @@ const isShown = useStorage(`ui-toggle-${props.storageKey}`, props.initStatus)<divv-if="lineWidth && !isShown"- :class="cn('mx-2 h-px bg-(--item-5) group-last:hidden',+ :class="cn('mx-2 h-px bg-elevated group-last:hidden',lineWidth === 3 && 'ml-12',lineWidth === 2 && 'ml-11',)"diff --git a/app/components/wallets/ItemBody.vue b/app/components/wallets/ItemBody.vueindex e0f42851..0010a079 100644--- a/app/components/wallets/ItemBody.vue+++ b/app/components/wallets/ItemBody.vue@@ -31,7 +31,7 @@ const currenciesStore = useCurrenciesStore()const classes = computed(() => (['relative',{- 'bg-item-3 rounded-sm': props.compact,+ 'bg-elevated/30 rounded-sm': props.compact,},{group: props.isSort,@@ -163,7 +163,7 @@ if (!props.isSort) {<!-- Alternative --><template v-if="props.compact"><div class="grid grow gap-0.5 overflow-hidden">- <div class="text-2 truncate text-xs leading-none">+ <div class="text-muted truncate text-xs leading-none">{{ wallet.name }}</div>@@ -191,7 +191,7 @@ if (!props.isSort) {<divv-if="isSort"- class="sortHandle flex-center absolute right-0 h-full rounded-md px-3 group-hover:bg-(--item-6)"+ class="sortHandle flex-center group-hover:bg-accented absolute right-0 h-full rounded-md px-3"><Icon name="lucide:grip-vertical" size="20" /></div>diff --git a/app/components/wallets/Statistics.vue b/app/components/wallets/Statistics.vueindex 0a4ab929..35652a80 100644--- a/app/components/wallets/Statistics.vue+++ b/app/components/wallets/Statistics.vue@@ -35,7 +35,7 @@ const itemsGrouped = computed(() => [:initStatus="true":lineWidth="0":storageKey="props.storageKey"- class="bg-item-2 mb-2 rounded-xl md:max-w-lg"+ class="bg-elevated/30 mb-2 rounded-xl md:max-w-lg"><template #header="{ toggle, isShown }"><UiTitleCollapse :isShown @click="toggle">diff --git a/app/components/wallets/page/GroupHeader.vue b/app/components/wallets/page/GroupHeader.vueindex bb7155b3..fe6a5e6c 100644--- a/app/components/wallets/page/GroupHeader.vue+++ b/app/components/wallets/page/GroupHeader.vue@@ -15,7 +15,7 @@ const currenciesStore = useCurrenciesStore()</script><template>- <div class="font-tertiary text-base leading-none font-semibold" :class="[props.isPrimary && '!text-3']">+ <div class="font-tertiary text-base leading-none font-semibold" :class="[props.isPrimary && '!text-toned']">{{ props.label }}</div>diff --git a/app/components/wallets/page/List.vue b/app/components/wallets/page/List.vueindex 93079680..a38402b9 100644--- a/app/components/wallets/page/List.vue+++ b/app/components/wallets/page/List.vue@@ -5,9 +5,8 @@ import { useStorage } from '@vueuse/core'import type { WalletsGroupedBy, WalletType } from '~/components/wallets/types'-import { tabsNavUi } from '~/components/menu/Tabs'-import { useCurrenciesStore } from '~/components/currencies/useCurrenciesStore'+import { tabsNavUi } from '~/components/menu/Tabs'import { WALLET_STORAGE_KEYS } from '~/components/wallets/constants'import { useWalletDelete } from '~/components/wallets/useWalletDelete'import { useWalletsCounts } from '~/components/wallets/useWalletsCounts'@@ -221,10 +220,10 @@ const groupNavItems = computed<NavigationMenuItem[]>(() =></div></div>- <div class="md:max-w-lg @xl/page:max-w-lg">+ <div class="pb-6 md:max-w-lg @xl/page:max-w-lg"><divv-if="groupedBy === 'none'"- class="border-item-4 bg-item-2 rounded-xl md:max-w-lg"+ class="md:max-w-lg"><WalletsPageListItemv-for="walletId in selectedWalletsIds"@@ -242,7 +241,7 @@ const groupNavItems = computed<NavigationMenuItem[]>(() =>v-for="(content, groupPrimary) in groupedWalletsWithIds":key="groupPrimary":class="{- 'bg-item-2 rounded-sm': !hasGroups(content.groups),+ 'bg-elevated/30 rounded-sm': !hasGroups(content.groups),}":isShown="walletsToggledMap[groupedBy]?.[groupPrimary]?.show ?? true@@ -253,7 +252,7 @@ const groupNavItems = computed<NavigationMenuItem[]>(() =>:isShown@click="toggleMap(groupPrimary)">- <div class="font-tertiary !text-3 text-base leading-none font-semibold">+ <div class="font-tertiary !text-toned text-base leading-none font-semibold">{{ groupedBy === 'type' ? t(`money.types.${groupPrimary}`) : groupPrimary }}</div>@@ -285,7 +284,7 @@ const groupNavItems = computed<NavigationMenuItem[]>(() =>:isShown="walletsToggledMap[groupedBy]?.[groupPrimary]?.groups?.[groupSecondary] ?? true"- class="_border border-item-4 bg-item-2 group grid gap-1 rounded-xl"+ class="bg-elevated/30 group grid gap-1 rounded-xl"><template #header="{ isShown }"><UiTitleDropRightdiff --git a/app/components/wallets/page/New.vue b/app/components/wallets/page/New.vueindex 406701d8..51d73e57 100644--- a/app/components/wallets/page/New.vue+++ b/app/components/wallets/page/New.vue@@ -28,7 +28,7 @@ useHead({{{ t('wallets.createNewTitle') }}</h1>- <UiHeader v-else>+ <UiHeader v-else hideSearch><UiHeaderTitle>{{ t('wallets.createNewTitle') }}</UiHeaderTitle>diff --git a/app/composables/useNavigationHistory.ts b/app/composables/useNavigationHistory.tsindex c164e100..850d6c06 100644--- a/app/composables/useNavigationHistory.ts+++ b/app/composables/useNavigationHistory.ts@@ -27,7 +27,9 @@ function getEntryPathname(entry: NavigationApiEntry): string {const _canGoBack = ref(false)if (navigation) {- const sync = () => { _canGoBack.value = navigation.canGoBack }+ const sync = () => {+ _canGoBack.value = navigation.canGoBack+ }sync()navigation.addEventListener('currententrychange', sync)}diff --git a/app/layouts/default.vue b/app/layouts/default.vueindex aafac53e..e8a07d10 100644--- a/app/layouts/default.vue+++ b/app/layouts/default.vue@@ -98,7 +98,7 @@ defineShortcuts({</template><div :class="isOnboarded ? 'flex min-h-dvh flex-col md:py-4 md:pr-4' : 'flex flex-1 items-center justify-center'">- <div :class="isOnboarded ? 'bg-default md:border-item-4 relative z-10 flex max-w-5xl flex-1 flex-col contain-paint md:rounded-md md:border lg:rounded-2xl' : 'w-full max-w-lg px-4'">+ <div :class="isOnboarded ? 'bg-default md:border-accented relative z-10 flex max-w-5xl flex-1 flex-col contain-paint md:rounded-md md:border lg:rounded-2xl' : 'w-full max-w-lg px-4'"><mainid="pageScroll":style="isOnboarded ? 'padding-bottom: calc(64px + env(safe-area-inset-bottom))' : ''"diff --git a/app/pages/dev.vue b/app/pages/dev.vueindex 93838997..53214cd0 100644--- a/app/pages/dev.vue+++ b/app/pages/dev.vue@@ -4,7 +4,7 @@<div class="grid gap-12"><div><!-- Colors -->- <h1 class="border-item-6 mb-2 border-b pb-1">+ <h1 class="border-default mb-2 border-b pb-1">Colors</h1>@@ -14,26 +14,20 @@Backgrounds</div><div class="flex flex-wrap gap-0">- <div class="flex-center size-20 bg-(--item-1)">- 1+ <div class="flex-center bg-default size-20">+ default</div>- <div class="flex-center bg-item-2 size-20">- 2+ <div class="flex-center bg-muted size-20">+ muted</div>- <div class="flex-center bg-item-3 size-20">- 3+ <div class="flex-center bg-elevated size-20">+ elevated</div>- <div class="flex-center bg-item-4 size-20">- 4+ <div class="flex-center bg-accented size-20">+ accented</div>- <div class="flex-center size-20 bg-(--item-5)">- 5- </div>- <div class="flex-center bg-item-6 size-20">- 6- </div>- <div class="flex-center bg-item-7 size-20">- 7+ <div class="flex-center bg-inverted text-inverted size-20">+ inverted</div></div></div>@@ -42,75 +36,21 @@<div class="text-muted text-sm">Texts</div>- <div class="flex flex-wrap gap-0">- <div class="flex-center bg-1 text-icon-primary size-20">- 1- </div>- <div class="flex-center bg-3 size-20">- 3- </div>- <div class="flex-center bg-2 size-20">- 2- </div>- <div class="flex-center bg-4 size-20">- 4- </div>+ <div class="bg-default flex flex-col gap-1 p-4">+ <span class="text-highlighted">text-highlighted</span>+ <span class="text-toned">text-toned</span>+ <span class="text-default">text-default</span>+ <span class="text-muted">text-muted</span>+ <span class="text-dimmed">text-dimmed</span></div></div>- <div class="flex flex-wrap gap-4">- <div class="grid gap-2">- <div class="text-muted text-sm">- Accent- </div>- <div class="flex flex-wrap gap-0">- <div class="size-20 bg-(--ui-primary)" />- </div>- </div>-- <div class="grid gap-2">- <div class="text-muted text-sm">- Icon primary- </div>- <div class="flex flex-wrap gap-0">- <div class="flex-center bg-icon-primary size-20">- 1- </div>- </div>- </div>-- <div class="grid gap-2">- <div class="text-muted text-sm">- Alert- </div>- <div class="flex flex-wrap gap-0">- <div class="bg-alert-1 size-20" />- </div>- </div>-- <div class="grid gap-2">- <div class="text-muted text-sm">- Money- </div>- <div class="flex flex-wrap gap-0">- <div class="bg-income-1 size-20" />- <div class="bg-income-2 size-20" />- <div class="bg-expense-1 size-20" />- <div class="bg-expense-2 size-20" />- </div>+ <div class="grid gap-2">+ <div class="text-muted text-sm">+ Primary</div>- </div>-- <div>- <h1 class="border-item-6 mb-2 border-b pb-1">- Chart- </h1>-- <div class="flex flex-wrap">- <div class="size-20 bg-(--chart-line)" />- <div class="size-20 bg-(--chart-splitLine)" />- <div class="size-20 bg-(--chart-label)" />- <div class="size-20 bg-(--chart-tooltip)" />+ <div class="flex flex-wrap gap-0">+ <div class="bg-primary size-20" /></div></div></div>@@ -118,7 +58,7 @@<!-- UiTitle --><div>- <h1 class="border-item-6 mb-2 border-b pb-1">+ <h1 class="border-default mb-2 border-b pb-1">UiTitle</h1>@@ -150,7 +90,7 @@</div><div>- <h1 class="border-item-6 mb-2 border-b pb-1">+ <h1 class="border-default mb-2 border-b pb-1">UiText</h1>@@ -166,7 +106,7 @@</div><div>- <h1 class="border-item-6 mb-2 border-b pb-1">+ <h1 class="border-default mb-2 border-b pb-1">UiToggle</h1>@@ -186,7 +126,7 @@</div><div>- <h1 class="border-item-6 mb-2 border-b pb-1">+ <h1 class="border-default mb-2 border-b pb-1">UiItem</h1>@@ -206,7 +146,7 @@</div><div>- <h1 class="border-item-6 mb-2 border-b pb-1">+ <h1 class="border-default mb-2 border-b pb-1">UiTabs</h1>@@ -222,7 +162,7 @@</div><div>- <h1 class="border-item-6 mb-2 border-b pb-1">+ <h1 class="border-default mb-2 border-b pb-1">UiTabsItem</h1>@@ -264,7 +204,7 @@<div><!-- Calendar --><div>- <h1 class="border-item-6 mb-2 border-b pb-1">+ <h1 class="border-default mb-2 border-b pb-1">Calendar</h1>diff --git a/app/pages/settings.vue b/app/pages/settings.vueindex 1ac478a8..3c95936a 100644--- a/app/pages/settings.vue+++ b/app/pages/settings.vue@@ -45,7 +45,7 @@ function onGenerateDemoData() {</UiHeader><div class="pageWrapper">- <div class="grid gap-4 pt-2 pb-12 @3xl/main:max-w-lg">+ <div class="grid gap-4 px-2 pt-2 pb-12 @3xl/main:max-w-lg"><!-- Theme --><ThemePicker inline />@@ -63,23 +63,23 @@ function onGenerateDemoData() {<!-- Menu labels --><UiSettingsCard :title="t('settings.mobileMenu')" class="md:hidden">- <template #content>- <UiSwitchItem- :checkboxValue="isShowMenuLabels"- :title="t('settings.menuLabels')"- @click="isShowMenuLabels = !isShowMenuLabels"- />- </template>+ <UiSwitchItem+ :checkboxValue="isShowMenuLabels"+ :title="t('settings.menuLabels')"+ @click="isShowMenuLabels = !isShowMenuLabels"+ /></UiSettingsCard><!-- Currency --><UiSettingsCard :title="t('currencies.base')"><button- class="bg-item-3 block min-h-[42px] w-full cursor-pointer items-center overflow-hidden rounded-md border border-transparent px-4 py-2 pr-10 text-left outline-none hover:bg-(--item-5) focus:border-(--ui-primary)"- style="appearance: none; background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM4MDgwODAiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZXZyb25zLXVwLWRvd24iPjxwYXRoIGQ9Im03IDE1IDUgNSA1LTUiLz48cGF0aCBkPSJtNyA5IDUtNSA1IDUiLz48L3N2Zz4='); background-position: right 0.7rem center; background-repeat: no-repeat; background-size: 1.25em 1.25em;"+ class="text-highlighted bg-elevated/30 ring-accented hover:!bg-elevated/50 focus-visible:ring-primary group relative inline-flex min-h-[42px] min-w-[160px] cursor-pointer items-center gap-2 rounded-md px-4 py-2 pe-10 text-sm ring transition-colors ring-inset focus:outline-none focus-visible:ring-2 focus-visible:ring-inset"@click="isShowBaseCurrencyModal = true">- {{ currenciesStore.base }}+ <span class="truncate">{{ currenciesStore.base }}</span>+ <span class="absolute inset-y-0 end-0 flex items-center pe-3">+ <UIcon name="i-lucide-chevrons-up-down" class="text-dimmed size-5 shrink-0" />+ </span></button></UiSettingsCard>@@ -88,16 +88,14 @@ function onGenerateDemoData() {v-if="isDemo":title="t('demo.update')">- <template #content>- <UButton- variant="outline"- color="secondary"- size="md"- @click="onGenerateDemoData"- >- {{ t('demo.update') }}- </UButton>- </template>+ <UButton+ variant="outline"+ color="secondary"+ size="md"+ @click="onGenerateDemoData"+ >+ {{ t('demo.update') }}+ </UButton></UiSettingsCard><!-- Delete -->@@ -119,9 +117,12 @@ function onGenerateDemoData() {</UiSettingsCard><!-- User -->- <div class="py-4">+ <UiSettingsCard+ danger+ :title="t('user.title')"+ ><UserViewLogout isShowSignOut />- </div>+ </UiSettingsCard><!-- About --><div class="text-muted pt-4 text-xs">