Generating pages with an LLM using a specific theme #6156
Replies: 1 comment
|
Yes, that's certainly possible — but note that NiceGUI doesn't have a theme system like Sphinx, where you install a theme package and all pages automatically look alike. Styling is done with Quasar components, Tailwind classes and custom CSS. So "generating pages with a specific theme" boils down to giving the LLM the right building blocks and conventions. I'd recommend a two-step approach:
Reproducing a specific design like Shibuya pixel-perfectly will still require some custom CSS iterations, since NiceGUI is based on Quasar/Tailwind rather than Sphinx's HTML structure. But for a "same spirit" look — dark sidebar, clean typography, accent color — the approach above works well. And honestly, the simplest starting point: just give your AI the link to https://nicegui.io/llms.txt and ask it how to best approach your task — it will figure out most of this on its own. |
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
Description
I've seen the LLM Reference: https://nicegui.io/llms.txt. I have a set of content pages and want to use an agent/llm to generate nicegui pages using a specific theme (for example, https://sphinx-themes.org/sample-sites/shibuya/). Is this possible?
NiceGUI Version
3.14
Python Version
3.14
Browser
Chrome
Operating System
Windows
Additional Context
No response
All reactions