---
url: /api/formats/css/src/interfaces/ToCssOptions.md
---
[pantoken-root](../../../../index.md) / [formats/css/src](../index.md) / ToCssOptions

# Interface: ToCssOptions

Beta

Options for [toCss](../functions/toCss.md).

## Properties

### scope?

> `optional` **scope?**: `string`

Beta

The selector scoped declarations are emitted under (default `":root"`).

***

### layer?

> `optional` **layer?**: `string`

Beta

Plain cascade layer name wrapping the declarations (no `@` prefix). Omit to skip the wrapper.

***

### emit?

> `optional` **emit?**: [`CssEmitTarget`](../type-aliases/CssEmitTarget.md)

Beta

Which half of the sheet to emit (default `"all"`).

***

### declareAll?

> `optional` **declareAll?**: `boolean`

Beta

Emit every token as a declaration rather than routing concrete tokens to `@property`. Required
for a theme block that can nest inside another theme's subtree: an incomplete block would
inherit the enclosing theme's values for the tokens it omits.

***

### plugins?

> `optional` **plugins?**: readonly [`PantokenPlugin`](../../../../packages/core/src/interfaces/PantokenPlugin.md)\[]

Beta

Plugins whose `css` hooks run after the base CSS is built (default: none).
