Skip to content

Commit

Permalink
feat: meteor only darkmode
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Nov 1, 2024
1 parent 98132a5 commit 25b12c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions entrypoints/sidepanel/Sidepanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ const handleCommand = async (cmd: ICommand, components: any, e: MouseEvent) => {

<template>
<div class="inset-x-0 top-0 fixed">
<div class="absolute h-24 top-10 inset-x-0">
<div class="absolute h-24 top-10 inset-x-0 hidden dark:block">
<Meteors :number="20" />
</div>
<GridBg />
Expand Down Expand Up @@ -664,10 +664,4 @@ const handleCommand = async (cmd: ICommand, components: any, e: MouseEvent) => {
::view-transition-new(root) {
z-index: 2147483646;
}
.dark::view-transition-old(root) {
z-index: 2147483646;
}
.dark::view-transition-new(root) {
z-index: 1;
}
</style>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "usewiki2",
"description": "Convert HTML to Markdown, and save to your computer, support nodejs tiddlywiki",
"private": true,
"version": "5.0.0",
"version": "5.0.1",
"type": "module",
"scripts": {
"dev": "wxt --mode development",
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const {

module.exports = withAnimations({
content: ['entrypoints/**/*.{html,ts,vue}', 'components/**/*.{html,ts,vue}'],
darkMode: 'class',
corePlugins: {
preflight: false,
},
Expand Down Expand Up @@ -149,7 +150,6 @@ module.exports = withAnimations({
}),
},
},
darkMode: 'light',
plugins: [addVariablesForColors, 'tailwindcss-animate', typography],
});

Expand Down

0 comments on commit 25b12c7

Please sign in to comment.