This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-11
Channels
- # announcements (3)
- # asami (4)
- # babashka (79)
- # babashka-sci-dev (47)
- # beginners (97)
- # biff (12)
- # calva (7)
- # clj-commons (3)
- # clj-kondo (22)
- # clj-on-windows (13)
- # cljdoc (31)
- # cljfx (2)
- # cljs-dev (1)
- # clojure (85)
- # clojure-austin (4)
- # clojure-dev (12)
- # clojure-europe (15)
- # clojure-italy (8)
- # clojure-nl (4)
- # clojure-uk (4)
- # community-development (19)
- # conjure (3)
- # core-typed (40)
- # cursive (9)
- # datahike (21)
- # datomic (1)
- # emacs (7)
- # exercism (2)
- # graalvm (20)
- # graphql (1)
- # honeysql (16)
- # jobs (1)
- # malli (2)
- # off-topic (3)
- # pathom (28)
- # pedestal (3)
- # polylith (7)
- # reitit (14)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (4)
- # shadow-cljs (21)
- # sql (21)
- # testing (8)
- # tools-deps (23)
- # vscode (8)
- # xtdb (38)
has anyone gotten Tailwind CSS IntelliSense to work in a reagent project? I have been trying to figure what pair to put into "TailwindCSS.IncludeLanguages"
but I cant seem to get anything to work
If you: 1. Are not in a hurry to figure this out 2. Create a minimal repro project of your choosing I could take a look!
Are you familiar with https://code.visualstudio.com/api/language-extensions/embedded-languages (and the https://microsoft.github.io/language-server-protocol/)
@U037TPXKBGS Thanks! I might not have time to make a repo today but ill holla at you in this thread when i do. Probably tomorrow. I’ll also check out those docs
Not tryna be annoying or anything. but poking out of curiosity to see where you're at on this, whether it's looking into the suggested resources, or finding a way or reason to come to terms with not getting intellisense at all
not annoying at all. I apologize as my personal life has kept me away from comp this week. Here is the repo you asked for.
https://github.com/FlavaDave/minimal-tailwind
Its pretty bare bones but you should be able to run shadow-cljs watch app
and npm run ui
to get started
Apologies for digging up an old thread, but I’m wondering if you’ve made progress on this? I found https://github.com/tailwindlabs/tailwindcss/issues/7553#issuecomment-984202139 which describes a partial solution and I can successfully get things partially working with these settings
"tailwindCSS.includeLanguages": {
"clojure": "html"
},
"tailwindCSS.experimental.classRegex": [
":class\\s+\"([^\"]*)\""
]
This allows autocompletion and hover CSS translation when you use a map with class
for your components.
e.g.
:class "text-xl bg-blue-500 h-3"
I’m wondering if you’ve figured out how to get the hiccup syntax working so I could use :p.text-slate-500
instead?