-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: automatic integration with
@nuxtjs/tailwindcss
(#237)
- Loading branch information
Showing
10 changed files
with
764 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,5 @@ | ||
<template> | ||
<div class="container"> | ||
<Meta | ||
name="description" | ||
content="Demo of using @nuxtjs/color-mode for Nuxt, supporting dark mode and custom colors" | ||
/> | ||
<p> | ||
<NuxtLogo /> | ||
</p> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
<p class="note"> | ||
Demo based on <a href="https://color-mode.nuxtjs.org">@nuxtjs/color-mode</a> module. | ||
</p> | ||
</div> | ||
</NuxtLayout> | ||
</template> | ||
|
||
<style> | ||
p { | ||
padding: 20px 0; | ||
margin: 0; | ||
} | ||
.container { | ||
text-align: center; | ||
padding: 50px; | ||
} | ||
.note { | ||
transition: all .3s; | ||
display: inline-block; | ||
padding: 15px 15px; | ||
border-radius: 5px; | ||
background-color: var(--bg-secondary); | ||
color: var(--color-secondary); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<div class="container"> | ||
<Meta | ||
name="description" | ||
content="Demo of using @nuxtjs/color-mode for Nuxt, supporting dark mode and custom colors" | ||
/> | ||
<p> | ||
<NuxtLogo /> | ||
</p> | ||
<slot /> | ||
<p class="note"> | ||
Demo based on <a href="https://color-mode.nuxtjs.org">@nuxtjs/color-mode</a> module. | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
p { | ||
padding: 20px 0; | ||
margin: 0; | ||
} | ||
.container { | ||
text-align: center; | ||
padding: 50px; | ||
} | ||
.note { | ||
transition: all .3s; | ||
display: inline-block; | ||
padding: 15px 15px; | ||
border-radius: 5px; | ||
background-color: var(--bg-secondary); | ||
color: var(--color-secondary); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default defineNuxtConfig({ | ||
components: { global: true, dirs: ['~/components'] }, | ||
css: ['~/assets/main.css'], | ||
modules: ['../src/module'], | ||
modules: ['../src/module', '@nuxtjs/tailwindcss'], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script setup> | ||
definePageMeta({ | ||
layout: false, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="bg-white py-4"> | ||
<div class="dark:bg-black"> | ||
<p class="dark:text-white"> | ||
hello tailwind! | ||
</p> | ||
<p> | ||
<NuxtLink to="/"> | ||
Home | ||
</NuxtLink> | ||
</p> | ||
<ColorModePicker /> | ||
</div> | ||
</div> | ||
</template> |
Oops, something went wrong.