A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
The Brand kit in Acquia Source CMS is a central repository for the design values of your brand. Brand kit colors enable you to define a color palette a single time and reuse it across every component on your site. After you update a color in the Brand kit, every component that references it updates. This process eliminates the need to edit colors page by page.
This document provides instructions to add, organize, apply, and manage Brand kit colors in Drupal Canvas.
The Brand kit stores the color palette of your brand as a set of named colors. Each Brand kit color consists of three parts:
--brand-primary, that components use to reference the color. Because components point to the variable rather than a fixed value, a change to the color in the Brand kit updates it everywhere.To keep a growing palette easy to manage, organize colors into folders, such as Primary, Neutrals, or Accents. Colors that are not placed in a folder display under Uncategorised.
A color prop is a color-type setting that a component exposes. After a component has a color prop, select a Brand kit color for it instead of entering a HEX code manually.
Set the Variable for the color, for example, --brand-primary.
The color displays in your palette. Point to a saved color swatch to access its HEX value for quick reference.
To keep a large palette manageable and easy to scan, organize colors into folders.
Every component that references the variable of the color reflects the change immediately.
Components that expose a color prop enable you to select a Brand kit color directly from the palette.
The component uses the selected Brand kit color through its variable. If you update that color in the Brand kit later, the component updates.
Before you edit or remove a color, verify which components and pages depend on the color.
Drupal Canvas displays a list of the content and configuration that reference the color, including pages, templates, and components.
Drupal Canvas protects colors that are in use to prevent broken references.
If any current version of your content or configuration uses the color, Drupal Canvas prevents deletion. Use Find instances to locate and remove the references first.
If the color is referenced only by older revisions and no current content uses it, Drupal Canvas enables deletion, but displays a warning that past revisions can no longer render correctly.
Because components reference the variable of a color rather than a fixed HEX value, an update to your brand colors across the entire site is a single-step process.
Every page and component that references the variable of the color updates.
Repeat this procedure for each color that you want to change. An update to the shared color value simplifies site-wide rebrands and seasonal palette changes by applying the update across every component.
Each Brand kit color is stored as Drupal Canvas configuration and exposed as a CSS custom property (variable), such as --brand-primary. Components, including Code Components, reference the variable with standard CSS:
color: var(--brand-primary);
Because components reference the variable, an update to the color value in the Brand kit updates every use. Each variable name for a color is unique across the palette. Colors and their folder structure are managed through Drupal Canvas configuration APIs.
Brand kit values can also be managed through a code workflow using the Drupal Canvas Command Line Interface (CLI). Use canvas pull --include-brand-kit to download the Brand kit configuration to your local codebase and canvas push --include-brand-kit to synchronize local changes back to the site. This workflow keeps your local and deployed environments in synchronization and enables you to store Brand kit values in source control alongside your Code Components.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.