Skip to content

Commit f4d7a11

Browse files
committed
KBD dark theme settings
1 parent a41f86a commit f4d7a11

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ npm i cmd-dialog
2828
### From CDN
2929

3030
```html
31+
3132
<script type="module" src="https://esm.run/cmd-dialog"></script>
3233
```
3334

3435
or inside module script
3536

3637
```html
38+
3739
<script type="module">
38-
import cmdDialog from 'https://esm.run/cmd-dialog';
40+
import cmdDialog from 'https://esm.run/cmd-dialog';
3941
</script>
4042
```
4143

@@ -47,10 +49,10 @@ import cmdDialog from 'https://esm.run/cmd-dialog';
4749

4850
## Credits
4951

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.
5253

54+
This project is inspired by [Ninja Keys](https://github.com/ssleptsov/ninja-keys).
5355

5456
## License
5557

56-
[MIT]()
58+
[MIT](./LICENSE)

src/style.css

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "tailwindcss";
2+
@custom-variant dark (&:where(.dark, .dark *));
23

34
@layer base {
45

@@ -16,13 +17,11 @@
1617
@apply bg-neutral-50;
1718
@apply absolute mx-auto mt-[20vh];
1819

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;
2625

2726
form {
2827
@apply flex flex-row justify-between items-center;
@@ -79,13 +78,8 @@
7978
}
8079

8180
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;
8983
@apply inline-flex items-center justify-center;
9084
}
9185
}

0 commit comments

Comments
 (0)