# GlimmerTheme

Artifact: [androidx.xr.glimmer:glimmer](https://developer.android.com/jetpack/androidx/releases/xr-glimmer) [View Source](https://cs.android.com/search?q=file:androidx/xr/glimmer/GlimmerTheme.kt+class:androidx.xr.glimmer.GlimmerTheme) Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)


```
class GlimmerTheme
```

<br />

*** ** * ** ***

Jetpack Compose Glimmer contains different theme subsystems to allow visual customization across an application.

Components use properties provided here when retrieving default values.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionLocal<https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme>` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#LocalGlimmerTheme()` `https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionLocal` providing `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme` throughout the hierarchy. |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Colors` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#colors()` Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Colors` at the call site's position in the hierarchy. |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/ComponentSpacingValues` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#componentSpacingValues()` Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/ComponentSpacingValues` at the call site's position in the hierarchy. |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/DepthEffectLevels` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#depthEffectLevels()` Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/DepthEffectLevels` at the call site's position in the hierarchy. |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconSizes` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#iconSizes()` Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconSizes` at the call site's position in the hierarchy. |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Shapes` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#shapes()` Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Shapes` at the call site's position in the hierarchy. |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Typography` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#typography()` Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Typography` at the call site's position in the hierarchy. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#GlimmerTheme(androidx.xr.glimmer.Colors,androidx.xr.glimmer.Typography,androidx.xr.glimmer.ComponentSpacingValues)( colors: https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Colors, typography: https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Typography, componentSpacingValues: https://developer.android.com/reference/kotlin/androidx/xr/glimmer/ComponentSpacingValues )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Colors` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#colors()` `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Colors` used by Jetpack Compose Glimmer components |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/ComponentSpacingValues` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#componentSpacingValues()` `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/ComponentSpacingValues` used by Jetpack Compose Glimmer components |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/DepthEffectLevels` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#depthEffectLevels()` `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/DepthEffectLevels` used by Jetpack Compose Glimmer components |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconSizes` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#iconSizes()` `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconSizes` used by icons |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Shapes` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#shapes()` `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Shapes` used by Jetpack Compose Glimmer components |
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Typography` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#typography()` `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Typography` used by Jetpack Compose Glimmer components. |

## Public companion properties

### LocalGlimmerTheme

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
val LocalGlimmerTheme: CompositionLocal<GlimmerTheme>
```

`https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionLocal` providing `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme` throughout the hierarchy. You can use properties in the companion object to access specific subsystems, for example `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#colors()`. To provide a new value for this, use `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme`. This API is exposed to allow retrieving values from inside CompositionLocalConsumerModifierNode implementations - in most cases you should use `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/GlimmerTheme#colors()` and other properties directly.

### colors

```
val colors: Colors
```

Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Colors` at the call site's position in the hierarchy.

### componentSpacingValues

```
val componentSpacingValues: ComponentSpacingValues
```

Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/ComponentSpacingValues` at the call site's position in the hierarchy.

### depthEffectLevels

```
val depthEffectLevels: DepthEffectLevels
```

Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/DepthEffectLevels` at the call site's position in the hierarchy.

### iconSizes

```
val iconSizes: IconSizes
```

Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconSizes` at the call site's position in the hierarchy.

### shapes

```
val shapes: Shapes
```

Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Shapes` at the call site's position in the hierarchy.

### typography

```
val typography: Typography
```

Retrieves the current `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Typography` at the call site's position in the hierarchy.

## Public constructors

### GlimmerTheme

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
GlimmerTheme(
    colors: Colors = Colors(),
    typography: Typography = Typography(),
    componentSpacingValues: ComponentSpacingValues = ComponentSpacingValues()
)
```

## Public properties

### colors

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
val colors: Colors
```

`https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Colors` used by Jetpack Compose Glimmer components

### componentSpacingValues

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
val componentSpacingValues: ComponentSpacingValues
```

`https://developer.android.com/reference/kotlin/androidx/xr/glimmer/ComponentSpacingValues` used by Jetpack Compose Glimmer components

### depthEffectLevels

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
val depthEffectLevels: DepthEffectLevels
```

`https://developer.android.com/reference/kotlin/androidx/xr/glimmer/DepthEffectLevels` used by Jetpack Compose Glimmer components

### iconSizes

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
val iconSizes: IconSizes
```

`https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconSizes` used by icons

### shapes

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
val shapes: Shapes
```

`https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Shapes` used by Jetpack Compose Glimmer components

### typography

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
val typography: Typography
```

`https://developer.android.com/reference/kotlin/androidx/xr/glimmer/Typography` used by Jetpack Compose Glimmer components. It is recommended to use `createGoogleSansFlexTypography()` from `androidx.xr.glimmer:glimmer-google-fonts` to create this.