---
title: "StyleScopeMarker"
description: "A [DslMarker] used to ensure that properties excluded by a [CustomStyleScope] do not resolve to the outer scope."
type: "class"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Common

```kotlin
public annotation class StyleScopeMarker
```

A `DslMarker` used to ensure that properties excluded by a [CustomStyleScope](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/CustomStyleScope/api) do not resolve to
the outer scope. For example, nested styles are declared within the parent style. If a nested
style doesn't expose a property, it shouldn't incorrectly capture the parent property.
