Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would I enable TailwindCSS Intellisense? #27

Closed
jjaimealeman opened this issue Oct 8, 2022 · 3 comments
Closed

How would I enable TailwindCSS Intellisense? #27

jjaimealeman opened this issue Oct 8, 2022 · 3 comments
Labels
question Further information is requested

Comments

@jjaimealeman
Copy link

I ran npx tailwindcss init and it generates tailwind.config.js.

I put this in there:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ["./content/**/*.md"],
  theme: {
    extend: {},
  },
  plugins: [],
}

and expected TailwindCSS Intellisense to "just work", but it's not 🤔

Anyone have a solution?

@jjaimealeman
Copy link
Author

In file content/1.index.md

If I enter some html like so <a class="bg-emerald-500 text-3xl">test</a> Intellisense works fine,

but it doesn't work with [test]{.text-gray-500.bg-orange-500.text-2xl}

🤔

Copy link
Owner

Atinux commented Oct 8, 2022

Does it work with [test]{class="text-gray-500"} ?

Anyway I won't recommend to use Tailwind classes in the Markdown for better readability but use Component to wrap them.

Example:

Welcome to my :highlight[Website]

@Atinux Atinux added the question Further information is requested label Oct 8, 2022 — with Volta.net
@jjaimealeman
Copy link
Author

Negative, this also does not bring up Intellisense.

[test]{class="text-gray-500"}

I will stick with your recommendation 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants