Choose a Gradient Theme
Great Docs ships with eight gradient presets that you can apply to the navbar, the announcement banner, and the content area. Each preset includes matched light-mode and dark-mode palettes, so the gradients look good regardless of the visitor’s theme preference.
Available Presets
| Preset | Description |
|---|---|
sky |
Soft sky blues |
peach |
Peach and blush |
prism |
Mint, sky, and lavender |
lilac |
Lilac and pink |
slate |
Cool grays |
honey |
Warm cream and apricot |
dusk |
Soft lavender-blue |
mint |
Pale aqua |
The navbar and banner use an animated version of the gradient that shifts slowly across the element. The content area uses a soft, static radial glow at the top of the page.
Apply a Gradient to the Content Area
The content_style key adds a subtle glow at the top of the main content area:
great-docs.yml
content_style: lilacBy default the glow appears on every page. To restrict it to just the homepage, use the dictionary form:
great-docs.yml
content_style:
preset: lilac
pages: homepageCombine Multiple Gradients
You can use the same preset everywhere for a unified look, or mix presets for variety. Here is an example that pairs a blue navbar with a lilac content glow:
great-docs.yml
navbar_style: sky
content_style:
preset: lilac
pages: homepage
announcement:
content: "New release!"
style: sky