All CSS variables should be applied to :root so they can be easily overrided in CSS without requiring to create a custom theme in JS.
Currently:
<script setup lang="ts">
import { Notification, NotificationProgress, Notivue, NotivueSwipe, lightTheme } from 'notivue';
const theme: NotivueTheme = {
...lightTheme,
'--nv-radius': '2rem',
};
</script>
But it would be better like this:
:root {
--nv-radius: '2rem',
}
All CSS variables should be applied to
:rootso they can be easily overrided in CSS without requiring to create a custom theme in JS.Currently:
But it would be better like this: