Zero One Documentation
Theme demo
  • Overview
  • Terms & Guidelines
  • Guide
    • Installation
      • Local environment
      • Server
      • Default language!
      • Multilanguage website
      • Config options
      • Folder structure
      • htaccess
      • Updating
      • PHP Composer
    • Administration panel
      • Translating panel
    • Site options
      • SEO options
      • Multi-language
    • Theme styling
      • Less/CSS setup
      • Changing Less variables
      • app.less file
      • Customizing elements
      • Helpful classes
    • Page types
      • Page options
    • Blog
      • Comments
      • Article
    • Work (Portfolio)
      • Project page
    • Shop
      • Snipcart
    • Layout Builder
      • Column Options block
      • Subgrid block
      • Card block
      • Text (Writer) block
      • Custom Heading block
      • Custom List block
      • Typed Text block
      • Quote block
      • Button block
      • › 25 more blocks
    • Form Builder (Premium)
    • OLD Page Builder deprecation
    • Tricks
      • Using icons in the content
      • Kirbytext link tag to button
      • Tricks with image classes
      • Adding Google Fonts
      • Custom icons
      • Cookie notice/banner
    • Theme extending
      • Page Transitions (Swup)
      • Contact form extending
      • Self-hosted fonts
      • Adding new templates
      • Adding new Content block (Layout Builder)
    • GDPR
  • More
  • Support
  • Hire us
  • Changelog
  • Credits
  • Affiliate
Powered by GitBook
On this page
  • Variables (variables.less) file
  • Change fonts
  • Colors, backgrounds, margins, etc.
  • Buttons

Was this helpful?

  1. Guide
  2. Theme styling

Changing Less variables

PreviousLess/CSS setupNextapp.less file

Last updated 1 year ago

Was this helpful?

Now, while your terminal is open and yarn watch the command is running let's go to xampp/htdocs/zero-one/assets/app/custom/ folder. That folder contains all Zero One theme files.

To understand how it works:

All files in xampp/htdocs/zero-one/assets/app/custom/ folder override and extend core Uikit files in xampp/htdocs/zero-one/assets/app/src/less/ folder and are compiled as CSS files into xampp/htdocs/zero-one/assets/app/dist/css/ folder.

You can learn more in-depth if you like at .

Variables (variables.less) file

Locate the xampp/htdocs/zero-one/assets/app/custom/elements/variables.less and open it with your favorite code editor or text editor.

Every variable you see there is a global variable, and change many things.

Change fonts

Font variables are very straightforward, just change them as you wish.

If you want to add custom self-hosted fonts and want a clean setup you can do it like this

Colors, backgrounds, margins, etc.

Everything is very straightforward and it will be easy for you to completely change the theme looks.

Remember, every time you save variables.css file new CSS theme file will be generated. It takes 5 - 10 seconds. And you can check changes by refreshing the localhost website in the browser.

Buttons

Well, the buttons are a bit different. But also easy. You will see this:

//
// Buttons
//

@global-button-style:                           creative; // default, creative
@global-button-border-style:                    default; // default, round

Both of those variables have only two options, and those are obvious. Test it and see.

Try this, it is a smooth rounded button

//
// Buttons
//

@global-button-style:                           default; // default, creative
@global-button-border-style:                    round; // default, round
https://getuikit.com/docs/less
https://www.one.thezero.club/guide/theme-extending/self-hosted-fonts