---
title: background
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/shapestyle/background
---

# background

The background style in the current context.

## Declaration

```swift
static var background: BackgroundStyle { get }
```

## Discussion

Discussion Access this value to get the style SwiftUI uses for the background in the current context. The specific color that SwiftUI renders depends on factors like the platform and whether the user has turned on Dark Mode. For information about how to use shape styles, see ShapeStyle.

## See Also

### Semantic styles

- [foreground](swiftui/shapestyle/foreground.md)
- [selection](swiftui/shapestyle/selection.md)
- [separator](swiftui/shapestyle/separator.md)
- [tint](swiftui/shapestyle/tint.md)
- [placeholder](swiftui/shapestyle/placeholder.md)
- [link](swiftui/shapestyle/link.md)
- [fill](swiftui/shapestyle/fill.md)
- [windowBackground](swiftui/shapestyle/windowbackground.md)
