Simpledocs Boilerplate

Color Blocks

Color blocks enable users to view a color palette, typically associated with a brand's visual identity. Each color is labeled with a semantic name for easy reference. This helps maintain consistency across designs and ensures accurate color usage. Additionally, color blocks display the corresponding values, providing a precise representation of each color.

Example

A color block is added as an object inside the contents array. It requires a type set to color-blocks and an items array containing all the colors in the palette. Each item includes a label for the color's semantic name, a blockColor for the color value, and a textColor to define the displayed text color.

Soda Pop #74b5ec
Lime Fizz #98ca5e
Lemon Drop #ffda66
Cherry Pop #ee7c84
Simpledocs by Mfc © 2025
This web page is licensed under MIT