# ThemeStylesheetOptions

Where a theme override applies.

This is an interface exported by `@mapcairn/theme`, checked against version 0.2.0.

## Signature

```ts
import type { ThemeStylesheetOptions } from "@mapcairn/theme";
 
interface ThemeStylesheetOptions
```

## Properties

### scope

```ts
scope: string;
```

The selector of the element that wraps the SDK's interface, written as
`:root`, `#id` or `.class` with an ASCII name. It must be an element the
host owns and puts around the map: the SDK adds no markup or attribute of
its own for this. The page's theme is read from `data-theme` on the root
element, which is where the SDK sets it, so a theme change reaches the
scope without any script.

A `#id` or `.class` scope is matched as a descendant of `:root`, so a class
on `<html>` itself does nothing: use `:root` to theme the whole page.

Two maps on one page take two scopes and two calls.

Source: [packages/theme/src/createThemeStylesheet.ts:24](https://github.com/MapCairn/mapcairn/blob/main/packages/theme/src/createThemeStylesheet.ts#L24)
