Files
InvoiceShelf/resources/scripts/components/base/BaseCard.vue
Darko Gjorgjijoski 9c8e4ae558 Add glass UI with backdrop blur and fix primary button colors
Apply glassmorphism to sidebar, cards, tables, modals, dropdowns,
and dialogs with semi-transparent backgrounds, backdrop-blur, and
white/15 borders. Add subtle gradient body background for the blur
to work against. Add dedicated btn-primary color tokens so primary
buttons stay bold in dark mode instead of using the brightened text
palette. Use shadow-sm to avoid heavy halos in light mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:30:00 +02:00

40 lines
839 B
Vue

<template>
<div class="bg-surface/70 backdrop-blur-lg rounded-xl shadow-sm border border-white/15">
<div
v-if="hasHeaderSlot"
class="px-5 py-4 text-heading border-b border-line-light border-solid"
>
<slot name="header" />
</div>
<div :class="containerClass">
<slot />
</div>
<div
v-if="hasFooterSlot"
class="px-5 py-4 border-t border-line-light border-solid sm:px-6"
>
<slot name="footer" />
</div>
</div>
</template>
<script setup>
import { computed, useSlots } from 'vue'
const props = defineProps({
containerClass: {
type: String,
default: 'px-4 py-5 sm:px-8 sm:py-8',
},
})
const slots = useSlots()
const hasHeaderSlot = computed(() => {
return !!slots.header
})
const hasFooterSlot = computed(() => {
return !!slots.footer
})
</script>