Customisation
Kundol Tailwind is styled with Tailwind utility classes in the HTML, plus a few values in tailwind.config.js and src/input.css. After changing any of them, rebuild the CSS (see Installation). Tailwind's customisation docs cover every option.
Storefront colours#
The storefront has two main colours:
Primary
#131313(text and dark backgrounds), set intailwind.config.js:colors: { primary: "#131313", secondary: "var(--color-secondary)", // … }Secondary
#fe4536(buttons, prices, highlights), set as a CSS variable at the top ofsrc/input.css::root { --color-secondary: #fe4536; --color-secondaryDark: #9e4b47; /* … */ }
Change the variable in input.css to recolour the storefront without touching the HTML. To add a colour of your own, add it to colors in tailwind.config.js and use it as a class, for example bg-brand or text-brand:
module.exports = {
theme: {
extend: {
colors: {
brand: '#243c5a',
},
},
},
};
Colour themes#
input.css also defines 20 ready-made colour themes, each a class that overrides the secondary colours:
theme-yellow, theme-blue, theme-green, theme-navyblue, theme-red, theme-pink, theme-sugar, theme-nailblue, theme-ashgray, theme-whiterock, theme-apple, theme-lavender, theme-brown, theme-greennish, theme-diamondblue, theme-citrus, theme-gray, theme-darkgray, theme-teal, theme-wood.
On the storefront the theme class goes on the <main id="theme"> element:
<main id="theme" class="theme-blue …">
The colour switcher on the demo only changes the class while you browse. To fix a theme for your site, add the class in your pages' HTML.
Admin and vendor colours#
The dashboards use --color-primary and --color-secondary, set at the top of their own src/input.css (default #ae69f5 and #f49d2a). The admin dashboard also has five colour themes in its input.css: theme-blue, theme-red, theme-green, theme-yellow and theme-navy-blue. They go on the <div id="theme"> wrapper at the top of each page.
Fonts#
The template uses Poppins, loaded from Google Fonts by a <link> in each page's <head> and set in tailwind.config.js:
fontFamily: {
Poppins: "'Poppins', sans-serif",
},
The font-Poppins class on <body> applies it. To change the font, swap the Google Fonts link and this value.
The shipped config spells the fallback as sans-seri. It only matters if Poppins fails to load; correct it to sans-serif when you edit the line.
Icons#
The template uses Font Awesome icons:
<i class="fa-solid fa-cart-shopping"></i>
The storefront loads Font Awesome 6 from cdnjs. The dashboards load it through a Font Awesome Kit script (kit.fontawesome.com/…); replace that with your own kit or the same cdnjs stylesheet the storefront uses. The dashboards also use inline SVG icons, which stay sharp at any size.