add dark mode in dashboard stats & chart

This commit is contained in:
yashkanakiya
2023-03-21 15:52:29 +05:30
parent 15f3f566e3
commit 3710ba74e5
10 changed files with 93 additions and 76 deletions

View File

@ -2,19 +2,12 @@
<div>
<div
v-if="dashboardStore.isDashboardDataLoaded"
class="grid grid-cols-10 mt-8 bg-white rounded shadow"
class="grid grid-cols-10 mt-8 bg-white rounded shadow dark:text-white dark:backdrop-blur-xl dark:shadow-glass dark:border dark:bg-opacity-70 dark:border-white/10 dark:bg-gray-800 relative"
>
<BaseDarkHighlight />
<!-- Chart -->
<div
class="
grid grid-cols-1
col-span-10
px-4
py-5
lg:col-span-7
xl:col-span-8
sm:p-6
"
class="grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-6"
>
<div class="flex justify-between mt-1 mb-4 flex-col md:flex-row">
<h6 class="flex items-center sw-section-title h-10">
@ -46,15 +39,7 @@
<!-- Chart Labels -->
<div
class="
grid grid-cols-3
col-span-10
text-center
border-t border-l border-gray-200 border-solid
lg:border-t-0 lg:text-right lg:col-span-3
xl:col-span-2
lg:grid-cols-1
"
class="grid grid-cols-3 col-span-10 text-center border-t border-l border-gray-200 border-solid lg:border-t-0 lg:text-right lg:col-span-3 xl:col-span-2 lg:grid-cols-1 dark:border-white/10"
>
<div class="p-6">
<span class="text-xs leading-5 lg:text-sm">
@ -74,15 +59,7 @@
</span>
<br />
<span
class="
block
mt-1
text-xl
font-semibold
leading-8
lg:text-2xl
text-green-400
"
class="block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-green-400"
>
<BaseFormatMoney
:amount="dashboardStore.totalReceipts"
@ -96,15 +73,7 @@
</span>
<br />
<span
class="
block
mt-1
text-xl
font-semibold
leading-8
lg:text-2xl
text-red-400
"
class="block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-red-400"
>
<BaseFormatMoney
:amount="dashboardStore.totalExpenses"
@ -113,27 +82,14 @@
</span>
</div>
<div
class="
col-span-3
p-6
border-t border-gray-200 border-solid
lg:col-span-1
"
class="col-span-3 p-6 border-t border-gray-200 border-solid lg:col-span-1 dark:border-white/10"
>
<span class="text-xs leading-5 lg:text-sm">
{{ $t('dashboard.chart_info.net_income') }}
</span>
<br />
<span
class="
block
mt-1
text-xl
font-semibold
leading-8
lg:text-2xl
text-primary-500
"
class="block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-primary-500 dark:text-primary-400"
>
<BaseFormatMoney
:amount="dashboardStore.totalNetIncome"