Skip to content

Commit 1e8b045

Browse files
committed
add theme
1 parent a1d5235 commit 1e8b045

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

resources/views/components/button/loader.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<span {!! $attributes->class([
66
'absolute left-0 top-0 flex gap-2 h-full w-full items-center justify-center rounded-[inherit] bg-inherit',
77
]) !!} @if (!$loading) wire:loading.flex @endif>
8-
<span class="size-4 animate-spin-fast rounded-full border-2 border-r-transparent border-t-transparent"></span>
8+
<span class="animate-spin-loader size-4 rounded-full border-2 border-r-transparent border-t-transparent"></span>
99

1010
{{ $slot }}
1111
</span>

theme.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@theme {
2+
--animate-spin-loader: spin 0.5s linear infinite;
3+
4+
--background-image-select: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
5+
--background-image-checkbox: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
6+
}

0 commit comments

Comments
 (0)