Lander only requires the non-extended version of Hugo to build. Every color in the theme can be customized without a Sass rebuild, thanks to CSS custom properties.
Lander is built around two types of sections: light and dark. Color customization is built around enabling independent coloring of each type. This means you can theme Lander with both section types dark, light or reversed.
Note all examples in this guide are in TOML.
The options can be used in other configuration formats.
Options
If an invalid option is supplied a warning will be emmited.
Primary
Primary color used mostly for buttons over light sections.
[params]
[params.colors]
primary-600 = "hsl(216, 40%, 32%)"
primary-500 = "hsl(216, 45%, 35%)"
primary-400 = "hsl(216, 55%, 40%)"
Accent
Accent color used for buttons and links.
100,200and300are used for link card accents in dark sections.400,500and600are used for buttons, links and active items in light sections.
[params]
[params.colors]
accent-600 = "hsl(27, 95%, 38%)"
accent-500 = "hsl(27, 90%, 42%)"
accent-400 = "hsl(27, 80%, 50%)"
accent-300 = "hsl(216, 27%, 65%)"
accent-200 = "hsl(216, 25%, 67%)"
accent-100 = "hsl(216, 20%, 70%)"
Background
Used as the background for both light and dark sections.
100is the light background.200,300and400are used on cards and link cards in dark background.900is the dark background.
[params]
[params.colors]
background-900 = "hsl(216, 40%, 20%)"
background-400 = "hsl(216, 10%, 90%)"
background-300 = "hsl(216, 10%, 92%)"
background-200 = "hsl(216, 10%, 95%)"
background-100 = "hsl(216, 10%, 97%)"
Text
Used for text. Note the three dark colors 900, 800 and 700 and the five
light colors 500, 400, 300, 200 and 100.
100is used in dark secctions.200is used in buttons in light sections.300,400and500are used in the footer navigation (dark).700,800and900are used in light sections.
[params]
[params.colors]
text-900 = "hsla(0, 0%, 0%, 0.75)"
text-800 = "hsla(0, 0%, 0%, 0.7)"
text-700 = "hsla(0, 0%, 0%, 0.55)"
text-500 = "hsl(216, 56%, 78%)"
text-400 = "hsl(216, 48%, 83%)"
text-300 = "hsl(216, 40%, 90%)"
text-200 = "hsla(0, 0%, 100%, 0.85)"
text-100 = "hsla(0, 0%, 100%, 0.9)"
Highlight
Used on the highlight blocks.
highlight-inlineis used for inlinecodeelements.highlight-textis used for names, strings and namespaces.highlight-backgroundis used for the background of highlight blocks.highlight-commentis used for comments.highlight-specialis used for types and exceptions.highlight-operatoris used for operators and parenthesis.highlight-literalis used for literals and keywords.
[params]
[params.colors]
highlight-inline = "hsl(27, 80%, 50%)"
highlight-text = "hsl(240, 35%, 99%)"
highlight-background = "hsl(240, 13%, 14%)"
highlight-comment = "hsl(250, 25%, 55%)"
highlight-special = "hsl(180, 75%, 55%)"
highlight-operator = "hsl(330, 95%, 75%)"
highlight-literal = "hsl(250, 80%, 70%)"
Example
This example configuration sets all the valid color options.
[params]
[params.colors]
primary-600 = "hsl(216, 40%, 32%)"
primary-500 = "hsl(216, 45%, 35%)"
primary-400 = "hsl(216, 55%, 40%)"
accent-600 = "hsl(27, 95%, 38%)"
accent-500 = "hsl(27, 90%, 42%)"
accent-400 = "hsl(27, 80%, 50%)"
background-900 = "hsl(216, 40%, 20%)"
background-200 = "hsl(216, 10%, 95%)"
background-100 = "hsl(216, 10%, 97%)"
text-900 = "hsla(0, 0%, 0%, 0.75)"
text-800 = "hsla(0, 0%, 0%, 0.7)"
text-700 = "hsla(0, 0%, 0%, 0.55)"
text-500 = "hsl(216, 56%, 78%)"
text-400 = "hsl(216, 48%, 83%)"
text-300 = "hsl(216, 40%, 90%)"
text-200 = "hsla(0, 0%, 100%, 0.85)"
text-100 = "hsla(0, 0%, 100%, 0.9)"
highlight-text = "hsl(240, 35%, 99%)"
highlight-background = "hsl(240, 13%, 14%)"
highlight-comment = "hsl(250, 25%, 55%)"
highlight-special = "hsl(180, 75%, 55%)"
highlight-operator = "hsl(330, 95%, 75%)"
highlight-literal = "hsl(250, 80%, 70%)"