This repository was archived by the owner on Sep 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +37
-5
lines changed Expand file tree Collapse file tree 2 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2+ import { ref } from ' vue'
23
4+ import { useDark , useToggle } from ' @vueuse/core'
5+
6+ const isDark = useDark ()
7+
8+ const toggleTheme = useToggle (isDark )
9+
10+ const searchTerm = ref (' ' )
311 </script >
412
513<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 >
739</template >
Original file line number Diff line number Diff line change @@ -630,10 +630,10 @@ export default {
630630 } ,
631631 color : {
632632 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 ' ,
634634 } ,
635635 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 ' ,
637637 } ,
638638 } ,
639639 intent : {
@@ -694,10 +694,10 @@ export default {
694694 } ,
695695 color : {
696696 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 ' ,
698698 } ,
699699 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 ' ,
701701 } ,
702702 } ,
703703 intent : {
You can’t perform that action at this time.
0 commit comments