Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 1751 articles
Browse latest View live

Tailwind autocomplete in vscode

(being a bit lazy here) How do I configure vscode to have support for tailwind? Can I also tell it I’m using daisy?

View Article


Tailwind autocomplete in vscode

I can get it to work if I add .res to tailwinds file configuration. I believe you can also set this in the tailwind extension’s settings.

View Article


Using a scoped polymorphic type for react-router bindings to loader function

I was working on some bindings for it and used a module function to make a loader: github.com jderochervlk/rescript-remix/blob/main/src/Remix.res#L109 type loaderArgs<'p, 'c> = {context: 'c,...

View Article

Tailwind autocomplete in vscode

Are you using v4? If so, how does your file look like?

View Article

Tailwind autocomplete in vscode

I’m on V3. I’m using Fresh and they haven’t updated yet, or at least it didn’t do it for me when I ran the upgrade command. I looked at switched to V4 but I had to manually compile. Here’s my V3...

View Article


Tailwind autocomplete in vscode

I think this is the v4 equivalent: Detecting classes in source files - Core concepts - Tailwind CSS

View Article

Tailwind autocomplete in vscode

I don’t really think that is related to the intellisense part of Tailwind. That seems more about how Tailwind figures out which classes you use. @fham any thoughts here?

View Article

Image may be NSFW.
Clik here to view.

Tailwind autocomplete in vscode

There’s also a way to maybe set it in the extension settings.

View Article


Tailwind autocomplete in vscode

I just ran create rescript-app and then npx @tailwindcss/upgrade and autocomplete and the color boxes show up for me without any additional config.d Nothing set for vscode to look for classnames and...

View Article


Tailwind autocomplete in vscode

AFAIK tailwind 4 does not use postccs anymore? And ReScript is in fact a built-in language: tailwindcss-intellisense/packages/tailwindcss-language-service/src/util/languages.ts at main ·...

View Article

Tailwind autocomplete in vscode

v4 does support postcss: Installing Tailwind CSS with PostCSS - Tailwind CSS

View Article

Tailwind autocomplete in vscode

Okay, weird, last time I tried that it didn’t work for me. Today, it was just as you said.

View Article

Tailwind autocomplete in vscode

Apologies! It merely does not require to configure postcss-import anymore.

View Article


Image may be NSFW.
Clik here to view.

RFC: Nested record definitions

This has now been merged and will be out as an experimental feature in v12

View Article

I'm looking into using ast-grep fo linting ReScript. What rules should I...

Still looking for ideas? In our codebase we sometimes make use of Obj.magic(x), typically when dealing with JSON or js interop in an area we don’t care that much to do strict decoding Sometimes though...

View Article


JS JSX -> ReScript JSX converter?

I’m interested in reviving this idea. I’m working on a prototype to convert vanilla JSX to ReScript JSX. Would anyone know some edge case where a transformation is required? Like type needs to become...

View Article

JS JSX -> ReScript JSX converter?

Punning comes to mind. As in <SomeComp someProp /> in JS means <SomeComp someProp=true /> in ReScript, and the reverse would mean <SomeComp someProp=someProp /> in JS.

View Article


JS JSX -> ReScript JSX converter?

Alright, I made a thing: https://vanilla-jsx-to-rescript-jsx.web.app/

View Article

JS JSX -> ReScript JSX converter?

That’s awesome! First 2 things that came to my mind: browser extension to transform all JSX examples on websites to ReScript, and a CLI tool to convert files.

View Article

JS JSX -> ReScript JSX converter?

Hmm, it uses web assembly so I’m not quite sure if that would work. Converting entire files would not be that useful as it merely tweaks JSX stuff right now.

View Article
Browsing all 1751 articles
Browse latest View live