Step 1: Install bricks builder and winden.
To get started, head over to your plugins tab from you WordPress dashboard, click on add new and upload winden. Once winden is installed and activated, now head over to the appearance tab from you WordPress dashboard, themes, add new and upload the bricks builder theme. With the bricks theme installed and activated, go into settings and enable both “code execution” for admins and “svg uploads”.
Step 2: Setting up style essentials for bricks.
Next up we want to add some essential CSS to bricks for a better overall experience. Here’s what we’re going to be adding:
- Bricks body styles: We’re going to be adding a few lines of CSS to improve the overall experience when building responsive content on bricks, we’re essentially going to tell the browser to never display content that is falling outside of the screen width, this will prevent that buggy horizontal scrolling on mobile when elements are slightly bigger than the viewport.
- Scrollbar styling: More of a nice to have, but let’s customize our website scrollbar to match our brand instead of having the default grey one. There are 5 parts to this: width, handle, track, handle on hover and track on hover.
- HTML font size: By default bricks sets the html font size to 64.5% which messes with the rest of our sizing. We want to simply set it to 100% so that everything we size actually gets output at the same size we specify.
- Fluid typography and spacing:Fluid essentially scales your typography and space sizes depending on the screen size. This is a simple way to give your users a great experience and cut down on development time. It eliminates the need to specify how big or small different text and space should be on different browser screens. We’re going to tell winden/tailwind that we want to use fluid settings for all typography and spacing.
Here is all the CSS you need for your essential styles. Head over to the winden tab from your dashboard and paste in this code into the “Global CSS *” field. You can clear anything that was there by default.
Step 3: Generating your brand colors for nintu bricks builder templates.
Winden/Tailwind has a great color system and design methodology for colors and their shades, in this example we will be using one core brand color and one core neutral color, which will then be split out into 10 shades each.
Your brand shades:
Don’t worry if you don’t have a complete shade palette for your brand, there are lots of tools online to help you do so and I’m going to walk you through my favorite one:
- TailwindCSS brand color generation: Head over to this site and put your primary color into the primary swatch, and a neutral (grey) color into the neutral swatch. A good trick to make sure you have a good set of shades is to make sure your primary 500 color is the main, bright, catchy color you want to attract peoples attention and the neutral 50 color is really close to white. You can adjust the hue, saturation and lightness on the color tool as can be seen in the images below.
- Understanding your colors: Now that you’ve generated your primary and neutral colors, scroll down the page a little and you will see a breakdown of what this looks like from a code perspective. When designing with tailwind we often use all 10 shades on a site especially when added light/dark mode and subtle design elements. Your output should look something like this the image below. Keep it open in a separate tab for now as we’ll come back to this in the next step.
Bringing it all together for a complete experience with nintu, winden and bricks builder templates.
This is the final step. We’re now going to tell winden where to use everything we’ve just completed. We’ll be giving the “Tailwind Config *” the following settings:
- Dark mode: Enable dark mode to be used on our website when required.
- Brand colors: Telling tailwind what our brand colors are which automates color settings when importing nintu templates for bricks.
- Fluid type: Match tailwind typography to the fluid setting we defined in step 3.
- Fluid spacing: Match tailwind’s spacing settings to the fluid ones we defined in step 3.
Lets start by importing or copy-pasting all the content and then we will jump in and update the colors to the ones we created in the previous step. Copy and paste the this config code into your “Tailwind Config *” field under the winden settings tab:
Update your colors.
Finally we want to update the colors from the default nintu ones to your brand colors. Jump back to your tailwind color generator and copy the colors that sit under “Primary” and replace the colors that sit under “P”, then copy the colors that sit under “Neutral” and replace the colors that sit under “N”.
Saving changes and other settings. That’s pretty much it. You can now import templates from nintu at the click of a button and they will automatically scale fluidly and match your brand colors. Before you leave the page make sure to save your settings as we most likely won’t be touching them again for a while. You don’t need to Deque any assets, and I would not recommend turning on Autocomplete for the bricks integration as you’re adding a lot of extra classes to bricks and it slows down the builder. Once you’re ready to publish your site toggle on production mode, save and re-generate the cache. This will enable super fast page loading for your visitors. Here’s a last little screenshot of what my settings look like:
Before you go.
Make sure to keep the utility class cheatsheet handy when getting started with tailwind. This sheet cover all of the base tailwind classes.