Simple Tweetcard using my Design System (CatDesign) #535
Replies: 6 comments 6 replies
-
Also: |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing this, @ofenbach! We appreciate your efforts to enrich the NiceGUI ecosystem with your design system. I can see that you quickly got the hang of the library :-)
In general your styling looks really great. If you release it as a standalone library you could offer your own functions. In the style of this example which assumes your library is called CatDesign: import cat_design as cat
# low level
with cat.row():
cat.label('Profile Name')
cat.avatar('images/cat0.png')
# high level (same outcome as "low level" above)
ui.profile('Profile Name', 'images/cat0.png') |
Beta Was this translation helpful? Give feedback.
-
It seems that nesting is the preferred way to have different colors for border and text in Quasar. This also allows you to place the icon to the right: with ui.button().props('outline rounded class="full-width" color="secondary" ripple="{ center: true }"'):
ui.label('show all').classes('text-white')
ui.icon('expand_more').classes('text-white') |
Beta Was this translation helpful? Give feedback.
-
Card, Status, Notification done |
Beta Was this translation helpful? Give feedback.
-
The first version is online in this repository: It's very basic so far but a good starting point. This is how the code looks like if its used with nicegui: |
Beta Was this translation helpful? Give feedback.
-
Nice nice nice. Just one additional information I forgot until now: you do not need to pass the |
Beta Was this translation helpful? Give feedback.
-
Hello,
i just made this in about 30min. Its a port of my design system which so far only exists on figma.
This is my first attempt in nicegui, i know the code is not very clean.
Please give me feedback, i dont know much about nicegui so far. I sure did some mistakes i am not aware of.
Also: how do i change the default html body background color? I use a dark night color for my design system which
I wasn't able to apply so far.
Thank you!
Here is my code and an image of the working tweet card using nice gui:
Beta Was this translation helpful? Give feedback.
All reactions