Comments (6)
Could you share a screenshot of your Nuxt config and directory tree please?
from tailwindcss.
Sure!
Nuxt Config
import { pwa } from "./config/pwa";
import { appDescription } from "./constants/index";
export default defineNuxtConfig({
modules: [
"@nuxtjs/tailwindcss",
"@vueuse/nuxt",
"@pinia/nuxt",
"@nuxtjs/color-mode",
"@vite-pwa/nuxt",
"nuxt-module-eslint-config",
"shadcn-nuxt",
"nuxt-tiptap-editor",
],
shadcn: {
/**
* Prefix for all the imported component
*/
prefix: "",
/**
* Directory that the component lives in.
* @default "./components/ui"
*/
componentDir: "./components/ui",
},
tiptap: {
prefix: "Tiptap", //prefix for Tiptap imports, composables not included
},
experimental: {
// when using generate, payload js assets included in sw precache manifest
// but missing on offline, disabling extraction it until fixed
payloadExtraction: false,
renderJsonPayloads: true,
typedPages: true,
},
colorMode: {
// classSuffix: "light",
preference: "light",
},
nitro: {
esbuild: {
options: {
target: "esnext",
},
},
prerender: {
crawlLinks: false,
routes: ["/"],
ignore: ["/hi"],
},
},
app: {
head: {
viewport: "width=device-width,initial-scale=1",
link: [
{ rel: "icon", href: "/favicon.ico", sizes: "any" },
{ rel: "icon", type: "image/svg+xml", href: "/nuxt.svg" },
{ rel: "apple-touch-icon", href: "/apple-touch-icon.png" },
],
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ name: "description", content: appDescription },
{
name: "apple-mobile-web-app-status-bar-style",
content: "black-translucent",
},
{
name: "theme-color",
content: "#ffffff",
},
{
name: "color-scheme",
content: "light dark",
},
// {
// name: "theme-color",
// media: "(prefers-color-scheme: dark)",
// content: "#222222",
// },
],
},
},
// pwa,
devtools: {
enabled: true,
},
eslintConfig: {
setup: false,
},
});
from tailwindcss.
Hmm.. do you have an assets/css/tailwind.css you could share contents of?
from tailwindcss.
weird right.. oh it's actually just for testing purpose; I can safely delete it and it still wont read my nuxt config
the content is just this
@tailwind base;
@tailwind components;
@tailwind utilities;
from tailwindcss.
Sorry - I'll triage this ASAP. Meanwhile, if you can help me help you faster, a web reproduction would be amazing!
https://stackblitz.com/github/nuxt-modules/tailwindcss/tree/docs-examples/examples/basic-usage
from tailwindcss.
sorry its working now! found the issues in nuxt config, importing module that's somehow problematic. Will close this. Thank you!
from tailwindcss.
Related Issues (20)
- Add "file:" style support HOT 4
- npm install --omit=dev FAILS HOT 2
- Tailwind V4.0 HOT 6
- Use webstorm without any code prompt HOT 3
- How to override default tailwind.css? HOT 4
- Attributify mode HOT 1
- `tw` autocomplete utility regex improvements HOT 1
- call `tailwindcss:config` hook after all modules are initialised HOT 1
- How to encrypt tailwind classes? HOT 1
- Tailwind Config must be restarted HOT 1
- npx tailwindcss init reports an error when running, the error message is: sh: tailwind: command not found
- Remove polyfill for Custom Properties
- Safelist causing build failures HOT 15
- [Docs] Move examples to the repository HOT 1
- [DX] Expose `defineConfig` utility
- Cannot find module "tailwindcss" when installing with pnpm HOT 2
- Does this module work when SSR is set to false? HOT 1
- Adding content to tailwind in a nuxt module HOT 1
- Tailwind utility order in class attribute not overriding prior conflicts HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss.