Variables
Every custom property you can set, and where to set it.
Set them on Clover or anything around it, and they cascade. Where Clover sets one closer
in, set yours on that element: the Canvas’s on
.clover-canvas, Items’ on .clover-items, a template’s on its class, such as
.clover-template-default. Your CSS wins over Clover’s layer
there.
Colors
Try yours in the contrast guide.
The media player
Video and sound play with light-on-dark controls, captions and Captions menu in every theme. The Chapters menu takes Clover’s colors, as the Canvas’s other menus do.
Sizes and spaces
Every size and space follows from your 1rem: try another on
Spacing or Fonts. Set
the spaces on :root, where --clover-inset, --clover-control and --clover-picture
are worked out from them.
Shape and motion
The Body
Set --clover-body-height around a Body you compose,
or on .clover-template-default or the Gallery lightbox’s
.clover-template-lightbox-content. In Document, the Body fills its page: size Document
with --clover-template-document-height. Set the rest on .clover-canvas itself: the
Canvas declares their defaults, which win over any it would inherit. Where the system asks for reduced motion, Clover sets
the controls’ durations to 0s, so set yours inside
@media (prefers-reduced-motion: no-preference).
Set --clover-canvas-background for each
data-media:
.clover-canvas[data-media="image"] {
--clover-canvas-background: #fff;
}
.clover-canvas[data-media="video"] {
--clover-canvas-background: #000;
}A sound recording plays on a ground of its artwork’s colors, over this background.
Items, Summary, Logo, Map and Search
Set Items’ on .clover-items.