I made significant progress documenting my preset and I will try to make it work for other presets in the future #2191
Replies: 5 comments 11 replies
-
This looks good! Light theme and mobile seem to not yet have been optimized, but your screenshot looks nice. Well done! |
Beta Was this translation helpful? Give feedback.
-
I changed the documentation API to use markdown instead of my own half-baked rendering functions and added links and inline code snippets to Windblade docs. I don't have too many things left to implement and want to try documenting @unocss/preset-mini with this soon (only 1-2 rules, just to try). |
Beta Was this translation helpful? Give feedback.
-
Implemented mobile support, mostly because @UltraCakeBakery pointed out the need for it 😅. I was going to go for container queries at first but ended up doing everything with ResizeObservers instead. No idea what implications this has on the performance but it makes the UI extremely robust. Unlike container queries, with this approach I can use exact proportions (e.g. navigation is flattened when container is 4x the size) and be certain about any content width (e.g headerbar menu is flattened when container is 1.4 times the size, no matter how many items I might add in the future). Wanted to share this because I think it might be very interesting to look into. |
Beta Was this translation helpful? Give feedback.
-
Looks great. Awesome work! I'd be happy to include it in the readme as a community preset, would you like to draft a PR? |
Beta Was this translation helpful? Give feedback.
-
I am building a Tailwind-inspired preset with a couple of improvements. I want it to be easy for Tailwind or preset-wind users to switch to it so I am building a visual and interactive documentation. I also want to add other presets to this documentation when it is done so UnoCSS ecosystem can be more explorable.
You can find the page from the screenshot here.
I absolutely love UnoCSS for making something like this not only possible, but easy! The UnoCSS team has done an absolutely outstading job building the library.
Beta Was this translation helpful? Give feedback.
All reactions