Replies: 2 comments 9 replies
-
You should be able to link the tailwind stylesheet into your app. Then you'll be able to use all the normal tailwind classes. from idom import run, component, html
@component
def MyComponent():
return html._(
html.link(
{
"href": "https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css",
"rel": "stylesheet",
}
),
html.h1(
{"className": "text-3xl font-bold underline text-clifford"}, "my heading"
),
)
run(MyComponent) |
Beta Was this translation helpful? Give feedback.
9 replies
-
Is there a way to use tailwindcss without a link? To install via npm install and use it? Because i want to deploy it in an offline on prem servers |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello IDOM family. I'm interested to see if there is an example of how to use tailwind to style the application created by IDOM.
Beta Was this translation helpful? Give feedback.
All reactions