---
url: /technical/model-styles.md
description: >-
  Styles are a model-wide library of named CSS formats, managed from the Manage
  Model page and applied to Workview cells.
---

# Model Styles

A **Style** is a named, reusable CSS format, defined once and available across every Workview in the model - not scoped to whichever set it was created from.

::: tip Workviews only
Model Styles, as described on this page, are used in Workviews. Cards have their own, separate Style Editor with its own attribute-by-attribute UI - see [Styles](/card-guides/styles) for that workflow.
:::

## Managing styles

Styles are managed from the **Manage Model** page, accessible via the model's **Actions** menu.

![The Actions dropdown open on a model, annotated to show Manage Model and the package actions](/model-actions.png)

The **Custom and Conditional Formatting Styles** panel lists every style defined in the model, its live preview, and its underlying CSS:

![Custom and Conditional Formatting Styles panel on the Manage Model page](/model-options.png)

## Using styles in a Workview

In a Workview, a style is applied to a set via [Style Cells](/set-instructions/insert-cell-style) or [Style Headers](/set-instructions/insert-heading-style), or conditionally per element via [Apply Style Using Formula](/set-instructions/apply-style-using-formula).

::: tip Reserved names: hc and hr (Workviews only)
A style named exactly `hc` is applied automatically to every **column** header across the model by default, and a style named exactly `hr` is applied automatically to every **row** header by default - without needing to add a [Style Headers](/set-instructions/insert-heading-style) instruction to each set. Useful for a baseline header look you want everywhere, with individual sets only needing an override where they should differ from it. This automatic behaviour is specific to Workviews.

![hc and hr defined in the Style Editor, styled with a teal background/white text and a white background/teal text respectively](/styles-hc-hr.png)

![hc applied automatically to the column header (Sales Measures - Set 1) and hr applied automatically to the row header (Account - Set 1), with no Style Headers instruction added to either set](/styles-hc-hr-workview-example.png)
:::
