zola upgrade/TEMPLATE: build shortcodes component library - using tailwind compatibility #27
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tfgrid/circle_product_management#188
we wanna go back to using zola / shortcodes + markdown to make website instead of react or astro etc, because its easy to do for everyone but i want to make sure its fully responsive, and the layout is done well.
build shortcodes component library - using tailwind compatibility
check : https://tailwindui.com/components
steps:
@ehab / @timur teach sasha how to configure shortcodes + markdown
a zola shortcode + markdown tutorial / guide would be nice to have cc: @mik-tf so i myself can create new components / edit the shortcodes configurations.
make zola shortcode component template the same way as https://tailwindui.com/components so people can just copy paste the shortcodes when they create new website
zola upgrade: build shortcodes component library - using tailwind compatibilityto zola upgrade/TEMPLATE: build shortcodes component library - using tailwind compatibilityOurWorld Web Template: Component-Based Zola with TailwindCSS
📌 Overview
The OurWorld Web team is developing a Zola-based static site template with a component-driven approach and TailwindCSS for styling.
Instead of writing full-page Markdown (
index.md
), marketing teams can call prebuilt HTML components inside Markdown files, allowing for modular, reusable, and scalable page creation.🎯 User Stories
Marketing Team
As a content editor or marketing team member,
I want to use prebuilt components in Markdown,
So that I can create and update web pages easily without writing complex code.
Front-End Developer
As a developer,
I want a structured Zola template with TailwindCSS and modular components,
So that I can efficiently build and maintain a scalable, consistent, and performant website.
✅ Core Features
build.sh
andstart.sh
.🏗 Technical Implementation
📂 Shortcodes System
Instead of writing long Markdown pages, marketing teams can use prebuilt components:
Shortcodes Folder (
shortcodes/
)Content Folder (content/)
Instead of writing full-page layouts, marketing teams can reference components like this:
TailwindCSS Integration
📂 CSS & Static Assets (static/css/)
TailwindCSS setup for utility-based styling.
tailwind.config.js → Configuration for customizing Tailwind styles.
output.css → Compiled Tailwind styles.
global.css → Additional global styles if needed.
📂 Tailwind Workflow
Tailwind scans shortcodes/ and content/ for used classes to generate a minimal CSS file.
build.sh ensures Tailwind compiles styles before building the site.
⚡ Automation Scripts
📂 Scripts Folder (scripts/)
📦 Expected Deliverables
✅ A working Zola template with TailwindCSS and component-based rendering.
✅ A structured shortcodes/ folder with modular, reusable HTML blocks.
✅ A marketing-friendly Markdown structure where content editors simply call components.
✅ A TailwindCSS setup with prebuilt styles for shortcodes.
✅ A fully automated build system (build.sh + start.sh).
✅ Documentation on how to use and modify the components.
✅ Demo deployment for review & testing.
looking good
Work done for now
Any update on this? @sashaastiadi Lmk if there's something to be done now. Thanks.
@mik-tf @sashaastiadi This is related to this issue tfgrid/circle_product_management#188
Zola template repo https://git.ourworld.tf/ourworld_web/www_zola_template
OK thanks for the info. The project looks well on its way.
Can you then update the story: tfgrid/circle_product_management#188 with all the specs so far, and mention if a spec is blocking?
It'll help to keep track of progress and deliverables.
Thanks!
Working in progress
Adding more components to the template
Working in progress
All components support dark and light modes
What needs to be done
Done
https://zola-template.staging.grid.tf/
Repo
https://git.ourworld.tf/ourworld_web/www_zola_template/src/branch/main