@@ -19,10 +19,10 @@ function reset() {
1919const color = computed (() => {
2020 return {
2121 ' --vp-c-brand-1' : state .value === 1
22- ? ' #66ba1c '
22+ ? ' var(--color-brand) '
2323 : state .value === 2
24- ? ' rgba(248, 113, 113 )'
25- : ' rgba(250, 204, 21 )' ,
24+ ? ' var(--vp-c-red-1 )'
25+ : ' var(--vp-c-yellow-1 )' ,
2626 } as any
2727})
2828
@@ -42,7 +42,9 @@ onMounted(async () => {
4242 <li :style =" color" >
4343 <div ref =" el" class =" icon-container" >
4444 <div class =" icon-wrapper" :class =" state ? 'flip' : ''" >
45- <Icon icon =" carbon:circle-dash" class =" icon-spinner" width =" 1.2em" height =" 1.2em" />
45+ <svg xmlns =" http://www.w3.org/2000/svg" width =" 1.2em" height =" 1.2em" viewBox =" 0 0 32 32" class =" icon-spinner" >
46+ <circle cx =" 16" cy =" 16" r =" 13" fill =" none" stroke =" currentColor" stroke-width =" 2" stroke-dasharray =" 8 4" />
47+ </svg >
4648 </div >
4749 <div class =" icon-wrapper" :class =" state === 2 ? '' : 'flip'" >
4850 <Icon icon =" carbon:close-outline" class =" icon-error" width =" 1.2em" height =" 1.2em" />
@@ -79,15 +81,15 @@ onMounted(async () => {
7981
8082.icon-spinner {
8183 animation : spin 1s linear infinite ;
82- color : rgb ( 250 , 204 , 21 );
84+ color : var ( --vp-c-yellow-1 );
8385}
8486
8587.icon-error {
86- color : rgb ( 248 , 113 , 113 );
88+ color : var ( --vp-c-red-1 );
8789}
8890
8991.icon-success {
90- color : var (--vp-c- brand-1 );
92+ color : var (--color- brand );
9193}
9294
9395@keyframes spin {
0 commit comments