File tree Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,16 @@ npm i cmd-dialog
28
28
### From CDN
29
29
30
30
``` html
31
+
31
32
<script type =" module" src =" https://esm.run/cmd-dialog" ></script >
32
33
```
33
34
34
35
or inside module script
35
36
36
37
``` html
38
+
37
39
<script type =" module" >
38
- import cmdDialog from ' https://esm.run/cmd-dialog' ;
40
+ import cmdDialog from ' https://esm.run/cmd-dialog' ;
39
41
</script >
40
42
```
41
43
@@ -47,10 +49,10 @@ import cmdDialog from 'https://esm.run/cmd-dialog';
47
49
48
50
## Credits
49
51
50
- - [ Ninja Keys] ( https://github.com/ssleptsov/ninja-keys ) - Keyboard shortcuts for any web application.
51
- -
52
+ - [ Lucide] ( https://lucide.dev/ ) - A collection of open-source icons, used for the dialog actions.
52
53
54
+ This project is inspired by [ Ninja Keys] ( https://github.com/ssleptsov/ninja-keys ) .
53
55
54
56
## License
55
57
56
- [ MIT] ( )
58
+ [ MIT] ( ./LICENSE )
Original file line number Diff line number Diff line change 1
1
@import "tailwindcss" ;
2
+ @custom-variant dark (& : where (.dark , .dark * ));
2
3
3
4
@layer base {
4
5
16
17
@apply bg-neutral-50;
17
18
@apply absolute mx-auto mt-[20vh ];
18
19
19
- & .dark {
20
- @apply bg-neutral-900;
21
- @apply text-neutral-300;
22
- @apply border-neutral-800;
23
- @apply divide-neutral-800;
24
- @apply shadow-neutral-500/10;
25
- }
20
+ @apply dark:bg-neutral-900;
21
+ @apply dark:text-neutral-300;
22
+ @apply dark:border-neutral-800;
23
+ @apply dark:divide-neutral-800;
24
+ @apply dark:shadow-neutral-500/10;
26
25
27
26
form {
28
27
@apply flex flex-row justify-between items-center;
79
78
}
80
79
81
80
kbd {
82
- /*
83
- @apply font-mono font-semibold whitespace-nowrap text-center tracking-wider;
84
- @apply rounded-sm bg-neutral-700/20 dark:bg-neutral-800;
85
- @apply inline-flex items-center px-1 py-0.5;
86
- */
87
-
88
- @apply px-1.5 py-1 text-xs font-semibold text-gray-800 bg-gray-300 border border-gray-200 rounded-md dark:bg-gray-600 dark:text-gray-100 dark:border-gray-500;
81
+ @apply px-1.5 py-1 text-xs font-semibold text-gray-800 bg-gray-300 border border-gray-200 rounded-md;
82
+ @apply dark:bg-neutral-600 dark:text-neutral-100 dark:border-neutral-500;
89
83
@apply inline-flex items-center justify-center;
90
84
}
91
85
}
You can’t perform that action at this time.
0 commit comments