Navigation
  • Share
  • Breadcrumb

    Configure Logo and Accent Color

    Published on , modified on .

    The Hugo Brewm theme allows you to easily configure your site’s logo and accent color taylored to your brand. Follow these steps to set up your logo:

    Change Color Accent

    To make the color accent align with your brand identity, you can add following code to your site configuration (hugo.toml):

        // Adjust color
        [params.style]
            // light mode
            [params.style.light]
                // accent color on default contrast 
                ac = '#800'
                // background color on default contrast
                bg = '#eee'
                // foreground color on default contrast
                fg = '#111'
                // midtone color
                // mid = 'gray'
                [params.style.light.more]
                    // accent color on hight contrast 
                    ac = 'red'
                [params.style.light.less]
            // dark mode
            [params.style.dark]
                ac = '#f80'
                bg = '#000'
                fg = '#fff'
                mid= 'gray'
                [params.style.light.less]
                [params.style.light.more]
    

    Adding Logo Image / Logomark Icon

    Prepare your logo image

    • Create or prepare your logo image file (recommended formats: PNG or SVG)
    • For best results, use an image with a transparent background
    • Recommended dimensions: height of 50px to 70px
    • You can also add dark mode version of your logo

    Configure the logo in your site configuration:

    [params]
        logoMark = 'https://example.com/logoMark.svg'
        logoMarkDark = 'https://example.com/logoMarkDark.svg' #optional
    

    Using Logo Type Preset

    If you prefer not to use an image logo, you can enable the built-in text-based logo by adding this setting:

    [params]
        logoType = true
    

    After making these changes, rebuild your site to see the updated logo. The logo will automatically appear in the site’s header and will be responsive across different device sizes.