Skip to content

Commit

Permalink
docs: improve styles in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 16, 2023
1 parent e1f40af commit 90d9dd2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/components/DropdownMobileDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {

<div v-if="isMobile">
<button
class="bg-gray-300 rounded px-4 py-2 w-full"
class="bg-gray-300/25 rounded px-4 py-2 w-full"
@click="hide()"
>
Cancel
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/components/DropdownPlacement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<select
v-model="placement"
class="bg-gray-300 rounded px-4 py-2"
class="bg-gray-300/25 rounded px-4 py-2"
>
<option
v-for="p of placements"
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/components/TooltipPlacement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<select
v-model="placement"
class="bg-gray-300 rounded px-4 py-2"
class="bg-gray-300/25 rounded px-4 py-2"
>
<option
v-for="p of placements"
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/components/theme-editor/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
hover: 'hover:bg-red-200 hover:text-red-900',
},
gray: {
normal: 'bg-gray-300 text-gray-900',
normal: 'bg-gray-300/25 text-gray-900',
hover: 'hover:bg-gray-200 hover:text-gray-900',
},
}
Expand Down
3 changes: 2 additions & 1 deletion docs/.vitepress/theme/style.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
@tailwind utilities;

.example {
@apply border-gray-300 border rounded-lg bg-gray-100 p-6 text-center;
@apply border-gray-500/25 border rounded-lg p-6 text-center;
background-color: var(--vp-c-mute);
}

.v-popper__popper {
Expand Down

0 comments on commit 90d9dd2

Please sign in to comment.