Replies: 1 comment
-
Hi @gykung, You should move ui.add_head_html('<script src="https://cdn.tailwindcss.com"></script>', shared=True)
ui.add_head_html('<link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css" rel="stylesheet" />', shared=True) |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Example Code
MULTIPAGE APP: I am UNABLE to display in the selected color scheme.
Description
I am trying to find a way to use DaisyUI themes in my app. After struggling for some days, I realised it works in a single page app, but not in multipage app.
I can't put my own code here as it is hard to anonymize some of the variables, so here're chatgpt generated code to illustrate the issue.
It would be great it DaisyUI (or any other Tailwind themes) can be used with NiceGUI :) Unfortunately, I am not familiar enough Tailwind enough to troubleshoot this any further. Would anyone have any insights? Thanks in advance.
NiceGUI Version
2.22.2
Python Version
3.11.3
Browser
Edge
Operating System
Windows
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions