Skip to content

How to use custom tailwind css while building a template? #2339

Answered by pournasserian
GeorgeZard asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding the template development for editable areas, consider defining Block to reuse in website instead of copy/paste the same HTML with different contents.

There is no need to integrate Tailwind compilation process for your own Tailwind classes: we have a custom component for Tailwind which you may insert into your head section in layout file. Here is the usage:
<TailwindStyles fluentcms />
https://github.com/fluentcms/FluentCMS/blob/dev/src/FluentCMS/Templates/Default/AdminLayout.head.html

The component checks if the css is not compiled, it uses client's browser and tailwind.js (interactive mode) to compile the whole page's css and saves {guid}.css file and render the style in page's…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GeorgeZard
Comment options

Answer selected by GeorgeZard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants