Use primary color for title

This commit is contained in:
2023-10-29 18:32:20 +01:00
parent cbe422957b
commit a3daf648a4
3 changed files with 16 additions and 7 deletions

View File

@@ -3,15 +3,20 @@ defineProps<{
icon: string
title: string
}>()
const appConfig = useAppConfig()
function getColor() {
return `text-${appConfig.ui.primary}-500`
}
</script>
<template>
<div class="p-4 border border-zinc-100 dark:border-zinc-300/10 rounded-xl flex flex-col justify-between">
<div class="flex items-center gap-2">
<UIcon :name="icon" class="text-subtitle text-lg" />
<div :class="getColor()" class="flex items-center gap-2">
<UIcon :name="icon" class="text-2xl" />
<h1>{{ title }}</h1>
</div>
<div class="text-subtitle mt-2 mb-4">
<div class="text-subtitle mt-2 mb-4 text-sm">
<slot />
</div>
<slot name="footer" />