This repository was archived by the owner on Sep 24, 2024. It is now read-only.
File tree 2 files changed +37
-5
lines changed
2 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { ref } from ' vue'
2
3
4
+ import { useDark , useToggle } from ' @vueuse/core'
5
+
6
+ const isDark = useDark ()
7
+
8
+ const toggleTheme = useToggle (isDark )
9
+
10
+ const searchTerm = ref (' ' )
3
11
</script >
4
12
5
13
<template >
6
- <div />
14
+ <div >
15
+ <button @click =" toggleTheme()" >
16
+ Theme
17
+ </button >
18
+ </div >
19
+ <div class =" dark:bg-black grid place-items-center min-h-screen w-full" >
20
+ <UInput
21
+ v-model =" searchTerm" color =" white" :variants =" {
22
+ 'my-variant': {
23
+ placeholder: 'dark:bg-transparent',
24
+ },
25
+ }" :variant =" ['my-variant']" name =" searchTerm" placeholder =" Search..." icon =" heroicons:magnifying-glass-20-solid"
26
+ >
27
+ <template #trailing >
28
+ <UButton
29
+ v-show =" searchTerm !== ''"
30
+ color =" gray"
31
+ intent =" link"
32
+ icon =" heroicons:x-mark-20-solid"
33
+ :padded =" false"
34
+ @click =" searchTerm = ''"
35
+ />
36
+ </template >
37
+ </UInput >
38
+ </div >
7
39
</template >
Original file line number Diff line number Diff line change @@ -630,10 +630,10 @@ export default {
630
630
} ,
631
631
color : {
632
632
white : {
633
- outline : 'shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-green-500 dark:focus:ring-green-400 ' ,
633
+ outline : 'shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-gray-300 dark:focus:ring-gray-800 ' ,
634
634
} ,
635
635
gray : {
636
- outline : 'shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-green-500 dark:focus:ring-green-400 ' ,
636
+ outline : 'shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-gray-300 dark:focus:ring-gray-800 ' ,
637
637
} ,
638
638
} ,
639
639
intent : {
@@ -694,10 +694,10 @@ export default {
694
694
} ,
695
695
color : {
696
696
white : {
697
- outline : 'shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-green-500 dark:focus:ring-green-400 ' ,
697
+ outline : 'shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-gray-300 dark:focus:ring-gray-800 ' ,
698
698
} ,
699
699
gray : {
700
- outline : 'shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-green-500 dark:focus:ring-green-400 ' ,
700
+ outline : 'shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-gray-300 dark:focus:ring-gray-800 ' ,
701
701
} ,
702
702
} ,
703
703
intent : {
You can’t perform that action at this time.
0 commit comments