Skip to content

Commit 0cbe33f

Browse files
committed
chore: for :is(.dark .tw-*)
1 parent 2d5b63a commit 0cbe33f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

apps/webpack5-vue3/src/components/HelloWorld.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div class="text-[#dc3b3b]">
3-
hello world red
2+
<div class="text-[#dc3b3b] dark:text-slate-400 bg-white dark:bg-slate-900 px-4 sm:px-3 md:px-5">
3+
HelloWorld
44
</div>
55
</template>
66

@@ -20,15 +20,17 @@ export default defineComponent({
2020
h3 {
2121
margin: 40px 0 0;
2222
}
23+
2324
ul {
2425
list-style-type: none;
2526
padding: 0;
2627
}
28+
2729
li {
2830
display: inline-block;
2931
margin: 0 10px;
3032
}
33+
3134
a {
3235
color: #42b983;
33-
}
34-
</style>
36+
}</style>

apps/webpack5-vue3/tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/** @type {import('tailwindcss').Config} */
22
export default {
33
content: ['./src/**/*.{js,ts,jsx,tsx,vue}'],
4+
darkMode: 'class',
45
theme: {
56
extend: {}
67
},

0 commit comments

Comments
 (0)