Skip to content

Zensical Gradient Theme Banner Zensical Gradient Theme Banner

Zensical Gradient Theme

Gradient Theme is an installable Zensical theme that adds animated rainbow gradients to your docs. Links, the site title, the rule under each page title and every admonition shimmer over purple light and dark color schemes. Install it from PyPI and set name = "gradient"; no extra CSS or JavaScript is needed.

Links like this one and the active nav item shimmer with an animated rainbow. Inline code inside a link, like zensical build, turns rainbow on hover.

Admonitions

Every admonition gets an animated gradient border, a tinted title and a gradient-filled icon. Each type has its own gradient around its usual color, so you can tell them apart at a glance. Notes use the full rainbow and the gradient-bars icon.

Note

The full rainbow, with the gradient-bars icon.

Abstract

Sky blue to aqua.

Info

Cyan to blue.

Tip

Teal to mint.

Success

Green to lime.

Question

Lime to chartreuse.

Warning

Amber to orange.

Failure

Coral to pink.

Danger

Crimson to ember.

Bug

Magenta to violet.

Example

Violet to lavender.

Quote

Silver.

A collapsible block

Collapsible blocks use their type's gradient too. Custom types without their own colors get the rainbow.

Code and tables

from rich_gradient import Text

print(Text("Hello, gradient!", colors=["#f00", "#00f"]))
Option Default
variant classic
palette gradient-dark / gradient-light

Press Ctrl+K or ⌘ K to search.

Copy the install command