{"id":47,"date":"2025-09-26T08:50:54","date_gmt":"2025-09-26T08:50:54","guid":{"rendered":"https:\/\/ska-blocks.com\/docs\/2025\/09\/26\/configuring-tailwind\/"},"modified":"2025-09-30T17:08:57","modified_gmt":"2025-09-30T17:08:57","slug":"configuring-tailwind","status":"publish","type":"post","link":"https:\/\/ska-blocks.com\/docs\/configuring-tailwind\/","title":{"rendered":"Configuring Tailwind"},"content":{"rendered":"\n<p class=\"lead\">ska-blocks plugin comes with controls for editing Tailwind configuration.<\/p>\n\n\n\n<p>The controls can be accessed from <strong>ska-blocks<\/strong> Block Editor plugin item in the top right corner of the Block Editor screen, in the <strong>Tailwind<\/strong> tab:<\/p>\n\n\n\n<img loading=\"lazy\" decoding=\"sync\" class=\"ring-1 ring-site-border ring-offset-1 wp-block-ska-image image\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2024\/03\/image-118.png\" alt=\"Options for configuring Tailwind theme in ska-blocks plugin\" width=\"280\" height=\"434\"\/>\n\n\n\n<p>When you change Tailwind configuration, all blocks and presets will automatically re-compile to ensure they are using the latest Tailwind configuration. For that reason, when you update the Tailwind configuration you may need to <strong>save changes twice<\/strong> in a row &#8211; once to apply the new configuration, second time to save all the re-compiled CSS.<br>When you go to change another post or a template then the blocks will also automatically re-compile if the configuration has changed in the meantime &#8211; this is indicated by a little badge on the &#8220;ska&#8221; logo:<\/p>\n\n\n\n<img decoding=\"async\" aria-hidden=\"true\" class=\"ring ring-site wp-block-ska-image image\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/03\/image-7.png\" loading=\"lazy\"\/>\n\n\n\n<p>It simply means you should save the current post, even if you didn&#8217;t make any changes manually, changes were made to the styles of the page.<\/p>\n\n\n\n<p>The default custom Tailwind theme is very simple. If you make changes a checkbox appears, asking whether you wish to re-compile everything or not:<\/p>\n\n\n\n<a aria-label=\"View image in full screen\" data-pswp-height=\"397\" data-pswp-width=\"668\" data-ska-pswp=\"ska-pswp-1\" href=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-30.png\" class=\"place-self-start ring ring-site wp-block-ska-image image\"><img decoding=\"async\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-30.png\" alt=\"ska-blocks plugin default custom Tailwind theme\" width=\"668\" height=\"397\" loading=\"lazy\" srcset=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-30.png 668w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-30-300x178.png 300w\" sizes=\"(max-width: 668px) 100vw, 668px\" \/><\/a>\n\n\n\n<p>If you were to change <code>--radius<\/code> from <code>var(--radius-sm)<\/code> to some other value, you don&#8217;t need to re-compile content, because only the <code>--radius<\/code> variable is changed and all content already refer to it as such, so you should uncheck the &#8220;Re-compile content&#8221; checkbox. If you add a new variable, then same thing &#8211; it&#8217;s not present in any content so there&#8217;s nothing needed recompile.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tailwind theme<\/h2>\n\n\n\n<p>For extending the CSS-based Tailwind 4 theme you can add overrides to the <strong>Custom theme<\/strong> option. For reference you can toggle the &#8220;Show advanced options&#8221; checkbox and take a look at the <strong>Default theme<\/strong> option to see how the full configuration looks like. <\/p>\n\n\n\n<div class=\"wp-block-ska-element ska-preset--info-notice not-prose\">\n<svg aria-hidden=\"true\" class=\"wp-block-ska-image image\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M11.25 11.25L11.2915 11.2293C11.8646 10.9427 12.5099 11.4603 12.3545 12.082L11.6455 14.918C11.4901 15.5397 12.1354 16.0573 12.7085 15.7707L12.75 15.75M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 8.25H12.0075V8.2575H12V8.25Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><\/path><\/svg>\n\n\n\n<p>It is generally best to <strong>avoid editing advanced options<\/strong>. When left at their default values, any updates, corrections, or fixes included in a plugin update can be applied automatically. However, if you modify these settings, then your changes will not be overwritten by future updates.<\/p>\n<\/div>\n\n\n\n<p><strong>Typography<\/strong> and <strong>Theme colors<\/strong> options have a separate UI for easier editing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tailwind colors<\/h2>\n\n\n\n<p>Along with <strong>ska-blocks -&gt; Tailwind -&gt; Theme colors<\/strong> (which provide a UI for editing various common theme-related colors), there is an advanced setting <strong>Tailwind colors<\/strong> which contains all the default Tailwind colors.<\/p>\n\n\n\n<p>The colors themselves are included in the Tailwind <strong>Default theme<\/strong> (which you can see if you check the &#8220;Show advanced options&#8221; checkbox under Tailwind settings):<\/p>\n\n\n\n<div class=\"wp-block-ska-code not-prose ska-preset--ska-theme--code\"><header><span class=\"title\">ska-blocks -&gt; Tailwind -&gt; Default theme<\/span><\/header><div class=\"content\"><pre class=\"code css language-css\"><code class=\"language-css\">@theme default static {\n\t@ska-blocks-tailwind-colors;\n}<\/code><\/pre><button :class=\"{error: state === &apos;error&apos;, success: state === &apos;success&apos;}\" x-data=\"{state:&apos;&apos;}\" x-on:click=\"navigator.clipboard ? (navigator.clipboard.writeText($el.previousElementSibling.innerText), $el.innerText = `Copied!`, state = &apos;success&apos;) : ($el.innerText = `Can&amp;#039;t copy`, state = &apos;error&apos;)\" class=\"copy\" type=\"button\">Copy<\/button><\/div><\/div>\n\n\n\n<p>you may choose to omit them, replace them or move them to a separate <code>@theme default inline reference { ... }<\/code> block if you wish for all the colors to <em>not<\/em> have a CSS variable defined on the front end (slight reduction in CSS bundle size).<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>ska-blocks plugin comes with controls for editing Tailwind configuration. The controls can be accessed from ska-blocks Block Editor plugin item in the top right corner of the Block Editor screen, in the Tailwind tab: When you change Tailwind configuration, all blocks and presets will automatically re-compile to ensure they are using the latest Tailwind configuration.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-ska-blocks"],"_links":{"self":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":2,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":415,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/47\/revisions\/415"}],"wp:attachment":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}