LinkStack/resources/views/linkstack/modules/dynamic-contrast.blade.php
Julian Prieber 9990143bc1 Added support for dynamic contrast
Text always stays readable no matter the background color
2023-12-06 17:42:02 +01:00

24 lines
350 B
PHP

@push('linkstack-body-end')
<script>
BackgroundCheck.init({
targets: '.dynamic-contrast',
images: 'body'
});
</script>
@endpush
@push('linkstack-head-end')
<style>
.background--light {
color: black !important;
}
.background--dark {
color: white !important;
}
.background--complex {
color: gray !important;
}
</style>
@endpush