- {{ label }}
+ {{ label }}
- {{ value }}
+ {{ value }}
{{ change }} vs last month
@@ -36,5 +36,5 @@ const props = defineProps({
icon: String,
})
-const trendClass = computed(() => (props.trend === 'down' ? 'text-red-600' : 'text-green-600'))
+const trendClass = computed(() => (props.trend === 'down' ? 'text-red-600 dark:text-red-400' : 'text-green-600 dark:text-green-400'))
diff --git a/assets/vue/components/dashboard/PerformanceChartCard.vue b/assets/vue/components/dashboard/PerformanceChartCard.vue
index 4dd02a2..010be74 100644
--- a/assets/vue/components/dashboard/PerformanceChartCard.vue
+++ b/assets/vue/components/dashboard/PerformanceChartCard.vue
@@ -2,10 +2,10 @@
@@ -25,6 +25,7 @@
import { computed } from 'vue'
import BaseCard from '../../components/base/BaseCard.vue'
import VueApexCharts from 'vue3-apexcharts'
+import { useDarkMode } from '../../composables/useDarkMode'
defineOptions({
components: {
@@ -43,6 +44,8 @@ const props = defineProps({
},
})
+const { isDark } = useDarkMode()
+
const series = computed(() => props.chart?.series ?? [])
const chartOptions = computed(() => ({
@@ -71,7 +74,7 @@ const chartOptions = computed(() => ({
enabled: false,
},
grid: {
- borderColor: '#e5e7eb',
+ borderColor: isDark.value ? '#334155' : '#e5e7eb',
strokeDashArray: 4,
padding: {
left: 8,
@@ -85,6 +88,9 @@ const chartOptions = computed(() => ({
position: 'top',
horizontalAlign: 'right',
fontSize: '12px',
+ labels: {
+ colors: isDark.value ? '#cbd5e1' : '#374151',
+ },
markers: {
width: 8,
height: 8,
@@ -97,7 +103,7 @@ const chartOptions = computed(() => ({
axisTicks: { show: false },
labels: {
style: {
- colors: '#9ca3af',
+ colors: isDark.value ? '#64748b' : '#9ca3af',
fontSize: '12px',
},
},
@@ -105,7 +111,7 @@ const chartOptions = computed(() => ({
yaxis: {
labels: {
style: {
- colors: '#9ca3af',
+ colors: isDark.value ? '#64748b' : '#9ca3af',
fontSize: '12px',
},
formatter: (value) => Math.round(value).toLocaleString(),
@@ -114,6 +120,7 @@ const chartOptions = computed(() => ({
tooltip: {
shared: true,
intersect: false,
+ theme: isDark.value ? 'dark' : 'light',
y: {
formatter: (value) => value.toLocaleString(),
},
diff --git a/assets/vue/components/dashboard/QuickActionsCard.vue b/assets/vue/components/dashboard/QuickActionsCard.vue
index ba403f4..2d3c442 100644
--- a/assets/vue/components/dashboard/QuickActionsCard.vue
+++ b/assets/vue/components/dashboard/QuickActionsCard.vue
@@ -1,7 +1,7 @@
@@ -11,14 +11,14 @@
v-for="action in quickActions"
:key="action.id"
:href="action.href"
- class="rounded-xl border border-gray-200 bg-gray-100/70 px-4 py-4 text-center transition-colors hover:bg-gray-100"
+ class="rounded-xl border border-gray-200 bg-gray-100/70 px-4 py-4 text-center transition-colors hover:bg-gray-100 dark:border-slate-700 dark:bg-slate-800/70 dark:hover:bg-slate-700"
>
-
+
{{ action.label }}
diff --git a/assets/vue/components/dashboard/RecentCampaignsCard.vue b/assets/vue/components/dashboard/RecentCampaignsCard.vue
index 0f6f010..2a83ce4 100644
--- a/assets/vue/components/dashboard/RecentCampaignsCard.vue
+++ b/assets/vue/components/dashboard/RecentCampaignsCard.vue
@@ -2,7 +2,7 @@
diff --git a/assets/vue/components/lists/AddSubscribersModal.vue b/assets/vue/components/lists/AddSubscribersModal.vue
index 421e261..2cf7d0b 100644
--- a/assets/vue/components/lists/AddSubscribersModal.vue
+++ b/assets/vue/components/lists/AddSubscribersModal.vue
@@ -8,21 +8,21 @@
>
-