Replies: 2 comments 10 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) |
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 |
1 reply
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.
All reactions