# Css

> Publishes the debugger's shared CSS class vocabulary.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Theme](/docs/extensions/debug-core/reference/theme/index.md) › Css

| final class | `PHPForge\Debug\Theme\Css` |
| --- | --- |
| Source | [`src/Theme/Css.php`](https://github.com/php-forge/debug-core/blob/main/src/Theme/Css.php#L17) |

Publishes the debugger's shared CSS class vocabulary.

The stylesheet ships in this package while framework adapters render into it, so every class name spelled at a call
site is a cross-repository contract that the language cannot check. Names used by more than one renderer, or by an
adapter, belong here; names private to a single renderer stay at their call site and are covered by
`npm run check:css-vocabulary`, which compares every emitted name against the stylesheet sources.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`badge()`](#method-badge) static | Returns the class list of a status chip rendered in the requested tone. | `Css` |
| [`callout()`](#method-callout) static | Returns the class list of a callout paragraph rendered in the requested tone. | `Css` |
| [`fileType()`](#method-fileType) static | Returns the class list of a file-kind pill rendered in the requested tone. | `Css` |
| [`hero()`](#method-hero) static | Returns the class list of a hero whose accent takes the requested tone. | `Css` |
| [`row()`](#method-row) static | Returns the tinted row class for a status variant. | `Css` |
| [`stat()`](#method-stat) static | Returns the class list of a stat tile rendered in the requested tone. | `Css` |
| [`status()`](#method-status) static | Returns the status-pill class for an HTTP status class. | `Css` |
| [`summaryStat()`](#method-summaryStat) static | Returns the tinted class of a summary-strip statistic. | `Css` |
| [`verb()`](#method-verb) static | Returns the method-chip class for an HTTP verb. | `Css` |

## Constants

| Constant | Value | Description | Defined by |
| --- | --- | --- | --- |
| <span id="const-BADGE"></span>`BADGE` | `'yii-debug-badge'` | Status chip carrying a semantic tone. | `Css` |
| <span id="const-CALLOUT"></span>`CALLOUT` | `'yii-debug-callout'` | Paragraph promoted to a semantic callout. | `Css` |
| <span id="const-CARD_GRID"></span>`CARD_GRID` | `'yii-debug-card-grid'` | Grid laying out a set of entity cards. | `Css` |
| <span id="const-CELL_MONO"></span>`CELL_MONO` | `'yii-debug-cell-mono'` | Grid cell rendered in the monospace face. | `Css` |
| <span id="const-CELL_MORE"></span>`CELL_MORE` | `'yii-debug-cell-more'` | Collapsible clamp wrapping an overlong grid cell. | `Css` |
| <span id="const-CELL_MORE_BODY"></span>`CELL_MORE_BODY` | `'yii-debug-cell-more-body'` | Clamped body revealed by the cell expand toggle. | `Css` |
| <span id="const-CELL_MORE_TOGGLE"></span>`CELL_MORE_TOGGLE` | `'yii-debug-cell-more-toggle'` | Expand and collapse control of a clamped cell. | `Css` |
| <span id="const-CELL_NOWRAP"></span>`CELL_NOWRAP` | `'yii-debug-cell-nowrap'` | Grid cell kept on a single line. | `Css` |
| <span id="const-CELL_NUMERIC"></span>`CELL_NUMERIC` | `'yii-debug-cell-numeric'` | Grid cell aligning digits across rows. | `Css` |
| <span id="const-CELL_PAYLOAD"></span>`CELL_PAYLOAD` | `'yii-debug-cell-payload'` | Grid cell holding serialized payload text. | `Css` |
| <span id="const-CELL_PILL"></span>`CELL_PILL` | `'yii-debug-cell-pill'` | Grid cell presenting its content as a compact pill. | `Css` |
| <span id="const-DISCLOSURE"></span>`DISCLOSURE` | `'yii-debug-disclosure'` | Collapsible section built on `<details>`. | `Css` |
| <span id="const-DISCLOSURE_BODY"></span>`DISCLOSURE_BODY` | `'yii-debug-disclosure-body'` | Body revealed when a collapsible section expands. | `Css` |
| <span id="const-DISCLOSURE_HINT"></span>`DISCLOSURE_HINT` | `'yii-debug-disclosure-hint'` | Expand and collapse affordance shown in a disclosure summary. | `Css` |
| <span id="const-DISCLOSURE_SUMMARY"></span>`DISCLOSURE_SUMMARY` | `'yii-debug-disclosure-summary'` | Summary row of a collapsible section. | `Css` |
| <span id="const-DISCLOSURE_TITLE"></span>`DISCLOSURE_TITLE` | `'yii-debug-disclosure-title'` | Heading text inside a disclosure summary. | `Css` |
| <span id="const-EMPTY_STATE"></span>`EMPTY_STATE` | `'yii-debug-empty-state'` | Card shown when a panel captured nothing for the request. | `Css` |
| <span id="const-ENTITY"></span>`ENTITY` | `'yii-debug-entity'` | Card presenting one entity of a panel's inventory. | `Css` |
| <span id="const-ENTITY_BODY"></span>`ENTITY_BODY` | `'yii-debug-entity-body'` | Body laying out the titled columns of an entity card. | `Css` |
| <span id="const-ENTITY_COLUMN"></span>`ENTITY_COLUMN` | `'yii-debug-entity-column'` | Titled column of an entity card body. | `Css` |
| <span id="const-ENTITY_COLUMN_TITLE"></span>`ENTITY_COLUMN_TITLE` | `'yii-debug-entity-column-title'` | Title of an entity card column. | `Css` |
| <span id="const-ENTITY_HEAD"></span>`ENTITY_HEAD` | `'yii-debug-entity-head'` | Header row of an entity card. | `Css` |
| <span id="const-ENTITY_ICON"></span>`ENTITY_ICON` | `'yii-debug-entity-icon'` | Glyph identifying an entity card. | `Css` |
| <span id="const-ENTITY_META"></span>`ENTITY_META` | `'yii-debug-entity-meta'` | Chip row summarizing an entity at the end of its header. | `Css` |
| <span id="const-ENTITY_NAME"></span>`ENTITY_NAME` | `'yii-debug-entity-name'` | Headline name of an entity. | `Css` |
| <span id="const-ENTITY_SUBTITLE"></span>`ENTITY_SUBTITLE` | `'yii-debug-entity-subtitle'` | Qualifier shown under the name of an entity. | `Css` |
| <span id="const-ENTITY_TITLE"></span>`ENTITY_TITLE` | `'yii-debug-entity-title'` | Name and subtitle pair of an entity header. | `Css` |
| <span id="const-EXT_PILL"></span>`EXT_PILL` | `'yii-debug-ext-pill'` | Chip reporting an extension name and its state. | `Css` |
| <span id="const-EXT_PILL_DOT"></span>`EXT_PILL_DOT` | `'yii-debug-ext-pill-dot'` | Status LED of an extension pill. | `Css` |
| <span id="const-EXT_PILL_LABEL"></span>`EXT_PILL_LABEL` | `'yii-debug-ext-pill-label'` | Extension name inside an extension pill. | `Css` |
| <span id="const-EXT_PILL_STATE"></span>`EXT_PILL_STATE` | `'yii-debug-ext-pill-state'` | State text inside an extension pill. | `Css` |
| <span id="const-EXT_STRIP"></span>`EXT_STRIP` | `'yii-debug-ext-strip'` | Strip laying out a row of status pills. | `Css` |
| <span id="const-FACT"></span>`FACT` | `'yii-debug-fact'` | One label and value pair of a fact strip. | `Css` |
| <span id="const-FACT_LABEL"></span>`FACT_LABEL` | `'yii-debug-fact-label'` | Name of a fact. | `Css` |
| <span id="const-FACT_STRIP"></span>`FACT_STRIP` | `'yii-debug-fact-strip'` | Compact strip laying out label and value pairs. | `Css` |
| <span id="const-FACT_VALUE"></span>`FACT_VALUE` | `'yii-debug-fact-value'` | Recorded value of a fact. | `Css` |
| <span id="const-FILE"></span>`FILE` | `'yii-debug-file'` | One entry of a file list. | `Css` |
| <span id="const-FILE_LIST"></span>`FILE_LIST` | `'yii-debug-file-list'` | List of the files an entity contributes. | `Css` |
| <span id="const-FILE_NAME"></span>`FILE_NAME` | `'yii-debug-file-name'` | Path or URL of a file entry. | `Css` |
| <span id="const-FILE_TYPE"></span>`FILE_TYPE` | `'yii-debug-file-type'` | Kind pill of a file entry. | `Css` |
| <span id="const-FILTER_INPUT"></span>`FILTER_INPUT` | `'yii-debug-filter-input'` | Search input narrowing the rows of its filter scope. | `Css` |
| <span id="const-GAUGE"></span>`GAUGE` | `'yii-debug-gauge'` | Micro-gauge rail drawn behind a numeric readout. | `Css` |
| <span id="const-GAUGE_BAR"></span>`GAUGE_BAR` | `'yii-debug-gauge-bar'` | Filled portion of a micro-gauge. | `Css` |
| <span id="const-GAUGE_VALUE"></span>`GAUGE_VALUE` | `'yii-debug-gauge-value'` | Readout text of a micro-gauge. | `Css` |
| <span id="const-GRID_SUMMARY"></span>`GRID_SUMMARY` | `'yii-debug-grid-summary'` | Summary strip above a panel's content blocks. | `Css` |
| <span id="const-GRID_SUMMARY_SEP"></span>`GRID_SUMMARY_SEP` | `'yii-debug-grid-summary-sep'` | Separator between two summary-strip metrics. | `Css` |
| <span id="const-HERO_HEADER"></span>`HERO_HEADER` | `'yii-debug-hero-header'` | Header row of a hero, holding its identity and its status. | `Css` |
| <span id="const-HERO_IDENTITY"></span>`HERO_IDENTITY` | `'yii-debug-hero-identity'` | Mark and title group of a hero header. | `Css` |
| <span id="const-HERO_MARK"></span>`HERO_MARK` | `'yii-debug-hero-mark'` | Avatar tile carrying the short mark before the hero title. | `Css` |
| <span id="const-HERO_METRIC"></span>`HERO_METRIC` | `'yii-debug-hero-metric'` | One label and value pair of the hero metric row. | `Css` |
| <span id="const-HERO_METRICS"></span>`HERO_METRICS` | `'yii-debug-hero-metrics'` | Metric row under the hero header. | `Css` |
| <span id="const-HERO_STATUS"></span>`HERO_STATUS` | `'yii-debug-hero-status'` | Status slot opposite the hero title. | `Css` |
| <span id="const-HERO_SUBTITLE"></span>`HERO_SUBTITLE` | `'yii-debug-hero-subtitle'` | Qualifier shown under the hero title. | `Css` |
| <span id="const-HERO_TEXT"></span>`HERO_TEXT` | `'yii-debug-hero-text'` | Title and subtitle stack of a hero. | `Css` |
| <span id="const-HERO_TITLE"></span>`HERO_TITLE` | `'yii-debug-hero-title'` | Subject name of a hero. | `Css` |
| <span id="const-LINK_PILL"></span>`LINK_PILL` | `'yii-debug-link-pill'` | Pill-shaped cross-reference of a link strip. | `Css` |
| <span id="const-LINK_STRIP"></span>`LINK_STRIP` | `'yii-debug-link-strip'` | Labeled strip of cross-references. | `Css` |
| <span id="const-LINK_STRIP_LABEL"></span>`LINK_STRIP_LABEL` | `'yii-debug-link-strip-label'` | Name of a link strip. | `Css` |
| <span id="const-LINK_STRIP_LIST"></span>`LINK_STRIP_LIST` | `'yii-debug-link-strip-list'` | Wrapper laying out the pills of a link strip. | `Css` |
| <span id="const-MANIFEST"></span>`MANIFEST` | `'yii-debug-manifest'` | Vendor-grouped package roster card. | `Css` |
| <span id="const-MANIFEST_COUNT"></span>`MANIFEST_COUNT` | `'yii-debug-manifest-count'` | Package tally shown at the end of a manifest header. | `Css` |
| <span id="const-MANIFEST_GRID"></span>`MANIFEST_GRID` | `'yii-debug-manifest-grid'` | Dense multi-column grid holding the manifest entries. | `Css` |
| <span id="const-MANIFEST_HEAD"></span>`MANIFEST_HEAD` | `'yii-debug-manifest-head'` | Header naming the vendor a manifest groups. | `Css` |
| <span id="const-MANIFEST_ITEM"></span>`MANIFEST_ITEM` | `'yii-debug-manifest-item'` | One package entry of a manifest. | `Css` |
| <span id="const-MANIFEST_NAME"></span>`MANIFEST_NAME` | `'yii-debug-manifest-name'` | Package name inside a manifest entry. | `Css` |
| <span id="const-MANIFEST_VERSION"></span>`MANIFEST_VERSION` | `'yii-debug-manifest-version'` | Resolved version inside a manifest entry. | `Css` |
| <span id="const-MUTED"></span>`MUTED` | `'yii-debug-muted'` | De-emphasized text the reader can usually skip. | `Css` |
| <span id="const-NOT_SET"></span>`NOT_SET` | `'yii-debug-not-set'` | Placeholder standing in for a value the capture did not record. | `Css` |
| <span id="const-PANEL_GROUP"></span>`PANEL_GROUP` | `'yii-debug-panel-group'` | Labeled section grouping a panel's content blocks. | `Css` |
| <span id="const-READOUT_CARD"></span>`READOUT_CARD` | `'yii-debug-readout-card'` | Headline card carrying one metric of a readout row. | `Css` |
| <span id="const-READOUT_GRID"></span>`READOUT_GRID` | `'yii-debug-readout-grid'` | Row of headline readout cards. | `Css` |
| <span id="const-READOUT_LABEL"></span>`READOUT_LABEL` | `'yii-debug-readout-label'` | Metric name of a readout card. | `Css` |
| <span id="const-READOUT_META"></span>`READOUT_META` | `'yii-debug-readout-meta'` | Qualifier shown under the value of a readout card. | `Css` |
| <span id="const-READOUT_VALUE"></span>`READOUT_VALUE` | `'yii-debug-readout-value'` | Headline value of a readout card. | `Css` |
| <span id="const-SECTION"></span>`SECTION` | `'yii-debug-section'` | Titled content section of a panel. | `Css` |
| <span id="const-SECTION_COUNT"></span>`SECTION_COUNT` | `'yii-debug-section-count'` | Tally shown at the end of a section title. | `Css` |
| <span id="const-SECTION_HEADER"></span>`SECTION_HEADER` | `'yii-debug-section-header'` | Header strip introducing a content section. | `Css` |
| <span id="const-SECTION_MARK"></span>`SECTION_MARK` | `'yii-debug-section-mark'` | Glyph shown before a section title. | `Css` |
| <span id="const-SECTION_TITLE"></span>`SECTION_TITLE` | `'yii-debug-section-title'` | Title of a content section. | `Css` |
| <span id="const-SR_ONLY"></span>`SR_ONLY` | `'yii-debug-sr-only'` | Content exposed to assistive technology only. | `Css` |
| <span id="const-STAT"></span>`STAT` | `'yii-debug-stat'` | Tile carrying one headline metric of a stat strip. | `Css` |
| <span id="const-STAT_ICON"></span>`STAT_ICON` | `'yii-debug-stat-icon'` | Glyph of a stat tile. | `Css` |
| <span id="const-STAT_LABEL"></span>`STAT_LABEL` | `'yii-debug-stat-label'` | Metric name of a stat tile. | `Css` |
| <span id="const-STAT_STRIP"></span>`STAT_STRIP` | `'yii-debug-stat-strip'` | Row of stat tiles. | `Css` |
| <span id="const-STAT_VALUE"></span>`STAT_VALUE` | `'yii-debug-stat-value'` | Headline value of a stat tile. | `Css` |
| <span id="const-TAB"></span>`TAB` | `'yii-debug-tab'` | Single entry of a tab list. | `Css` |
| <span id="const-TAB_CONTENT"></span>`TAB_CONTENT` | `'yii-debug-tab-content'` | Container holding every tab panel. | `Css` |
| <span id="const-TAB_LINK"></span>`TAB_LINK` | `'yii-debug-tab-link'` | Control selecting a tab. | `Css` |
| <span id="const-TAB_PANEL"></span>`TAB_PANEL` | `'yii-debug-tab-panel'` | Content region a tab reveals. | `Css` |
| <span id="const-TABLE"></span>`TABLE` | `'yii-debug-table'` | Data grid shell. | `Css` |
| <span id="const-TABLE_MONO"></span>`TABLE_MONO` | `'yii-debug-table-mono'` | Data grid rendered in the monospace face. | `Css` |
| <span id="const-TABLE_OVERVIEW"></span>`TABLE_OVERVIEW` | `'yii-debug-table-overview'` | Data grid laid out as a label and value overview. | `Css` |
| <span id="const-TABLE_WRAP"></span>`TABLE_WRAP` | `'yii-debug-table-wrap'` | Horizontal scroll wrapper around a data grid. | `Css` |
| <span id="const-TABS"></span>`TABS` | `'yii-debug-tabs'` | Tab list. | `Css` |
| <span id="const-TRACE"></span>`TRACE` | `'yii-debug-trace'` | List of captured source frames. | `Css` |

## Method details

### badge() <span id="method-badge"></span>

```php
public static function badge(PHPForge\Debug\Tone $tone): string
```

Returns the class list of a status chip rendered in the requested tone.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$tone` | `PHPForge\Debug\Tone` | Semantic tone of the chip. |

**Returns**

`string`: Base and variant classes of the chip.

### callout() <span id="method-callout"></span>

```php
public static function callout(PHPForge\Debug\Tone $tone): string
```

Returns the class list of a callout paragraph rendered in the requested tone.

Only the accent border varies by tone, so the muted variant deliberately carries no rule of its own and reads
as the neutral base.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$tone` | `PHPForge\Debug\Tone` | Semantic tone of the callout. |

**Returns**

`string`: Base and variant classes of the callout.

### fileType() <span id="method-fileType"></span>

```php
public static function fileType(PHPForge\Debug\Tone $tone): string
```

Returns the class list of a file-kind pill rendered in the requested tone.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$tone` | `PHPForge\Debug\Tone` | Semantic tone of the pill. |

**Returns**

`string`: Base and variant classes of the pill.

### hero() <span id="method-hero"></span>

```php
public static function hero(PHPForge\Debug\Tone $tone): string
```

Returns the class list of a hero whose accent takes the requested tone.

The tone sets the hue the accent rail, the mark, and the status chip share, so the muted variant deliberately
carries no rule of its own and reads as the neutral base.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$tone` | `PHPForge\Debug\Tone` | Semantic tone of the hero status. |

**Returns**

`string`: Base and variant classes of the hero.

### row() <span id="method-row"></span>

```php
public static function row(string $variant): string
```

Returns the tinted row class for a status variant.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$variant` | `string` | Row variant: `danger`, `info`, `success`, or `warning`. |

**Returns**

`string`: Row class carrying the variant tint.

### stat() <span id="method-stat"></span>

```php
public static function stat(PHPForge\Debug\Tone $tone): string
```

Returns the class list of a stat tile rendered in the requested tone.

Only the glyph takes the tone, so the muted variant keeps the panel accent and reads as the neutral base.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$tone` | `PHPForge\Debug\Tone` | Semantic tone of the tile. |

**Returns**

`string`: Base and variant classes of the tile.

### status() <span id="method-status"></span>

```php
public static function status(string $variant): string
```

Returns the status-pill class for an HTTP status class.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$variant` | `string` | Status class produced by [`Vocabulary::statusClass()`](/docs/extensions/debug-core/reference/helper/vocabulary/index.md#method-statusClass): `2xx`, `3xx`, `4xx`, `5xx`, or `none`. |

**Returns**

`string`: Status-pill class carrying the variant hue.

### summaryStat() <span id="method-summaryStat"></span>

```php
public static function summaryStat(string $variant): string
```

Returns the tinted class of a summary-strip statistic.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$variant` | `string` | Statistic variant: an HTTP status class (`2xx` to `5xx`) or a severity (`danger`, `info`, `trace`, `warn`). |

**Returns**

`string`: Summary-statistic class carrying the variant hue.

### verb() <span id="method-verb"></span>

```php
public static function verb(string $verb): string
```

Returns the method-chip class for an HTTP verb.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$verb` | `string` | Verb suffix produced by [`Vocabulary::verb()`](/docs/extensions/debug-core/reference/helper/vocabulary/index.md#method-verb): `delete`, `get`, `other`, `post`, or `put`. |

**Returns**

`string`: Method-chip class carrying the verb hue.