Tailwind #317
Replies: 8 comments 15 replies
-
Yes, but Tailwind requires a build step, which I don't like. But you can have Tailwind generate a CSS file into I am working on some features that will make the |
Beta Was this translation helpful? Give feedback.
-
I understand. It is great that Fresh does not have any build step.
I was looking at "shim" in docs, but it felt like it will degrade UX in a
significant way (FOUC, extra library to load). Adding tw function call is
only half of the problem. I miss colored shadows, shadow and border
transparency and some other things. I'll probably do what you suggest for
now, in early phase of the project it is okay to recompile css from time to
time. Thanks for answer and more importantly, thanks for building this
great framework.
…On Fri, Jul 1, 2022, 1:49 AM Luca Casonato ***@***.***> wrote:
Yes, but Tailwind requires a build step, which I don't like. But you can
have Tailwind generate a CSS file into static/ and then reference that
from your component like you would in any old Tailwind project.
I am working on some features that will make the twind integration feel a
lot more like native Tailwind (ie no need for the tw boilerplate).
—
Reply to this email directly, view it on GitHub
<#317 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLZODD3N5W7K7ZAFRTIITVRYXAVANCNFSM52GP67JA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, I do. You can import the shim I mentioned and keep the syntax as it is
in tailwind. See twind docs.
Sorry, this is a reply to @mattgi
…On Fri, Jul 1, 2022, 9:11 AM Matt Ginty ***@***.***> wrote:
Are you working in VSCode and, if so, do you have
intellisense/autocompletion working for twind? the recomended class={tw``}
doesn't appear to work for me. Any help would be appreciated (vscode
settings.json example?)
—
Reply to this email directly, view it on GitHub
<#317 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLZOCTW7NKEIHLIHWYU3TVR2KYVANCNFSM52GP67JA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This is what I do:
Now you can use your tailwind classes in And to be honest, I am ok with a little build step once in a while — don't really see much point in recomputing all these styles if my app doesn't need any dynamism. |
Beta Was this translation helpful? Give feedback.
-
@nonissue @lucacasonato Please talk to the twind author cause the next version https://esm.sh/twind@1.0.0-next.38/ with tailwind 3 is basically stable and also brings up other improvements over tailwind3, e.g I am using it in fresh here and it is nice. import { defaultConfig, setup, tw } from "@twind";
setup(defaultConfig);
function render(ctx: RenderContext, render: InnerRenderFunction) {
tw.clear();
render();
ctx.styles.splice(0, ctx.styles.length, ...tw.target);
// ...
} |
Beta Was this translation helpful? Give feedback.
-
At a minimum the install step should be changed so that it is clear Twind is being used, the current prompt is misleading: |
Beta Was this translation helpful? Give feedback.
-
Hi folks. Adding to this discussion, I created an analogous to Also, linking here my Thoughts on CSS and what I think the ideal CSS stack should bring. |
Beta Was this translation helpful? Give feedback.
-
FYI: Starting with Fresh 1.6 we'll ship with a first class Tailwind CSS plugin in favor of twind. |
Beta Was this translation helpful? Give feedback.
-
I got a basic landing page working with twind, but it is behind the tailwind itself and using twind instead really harms the productivity. Is it technically possible to use the tailwind instead?
Beta Was this translation helpful? Give feedback.
All reactions