Add some predefined templates #2940
Replies: 1 comment 1 reply
-
Honestly I don't want to provide a big chunk of HTML code for different layouts. It's something you can find anywhere else and even if I put these examples on daisyUI website, it's not daisyUI. It's mostly grid and spacing utility class names (with some daisyUI components in them) I've been thinking about an idea of providing short class names for common grid layouts that a website may need. For example using a class name like The idea has many challenges to get into production. For example the class names could be so abstract and weird if it has to be descriptive. Like
Or
I also thought about simple put numbers for each layout and not make the class name descriptive (like |
Beta Was this translation helpful? Give feedback.
-
Hi,
First, a big thanks for this great project!
For me the most important thing is missing, which is an example of "templates" which are created by combining some components.
Yes, there is a store where you sell some templates, but it is for a complete website templates, as a developer we always need same structure on 80% of websites. I mean, a navbar with footer and some content, a sidebar optionally etc.
On Mantine for example, we have this: https://mantine.dev/app-shell/?e=BasicAppShell
Where the developer added some possibilities.
Is it possible to do the same thing, guys?
To just don't ask and do something, I created this example: https://play.tailwindcss.com/8baSdLqPFP
Is it OK to add this (or improved version or other ones) on the official documentation? Maybe a new section named "Showcase"?
Big screen:
Medium:
Mobile:
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions