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

# foreground

The foreground style in the current context.

## Declaration

```swift
static var foreground: ForegroundStyle { get }
```

## Discussion

Discussion Access this value to get the style SwiftUI uses for foreground elements, like text, symbols, and shapes, in the current context. Use the foregroundStyle(_:) modifier to set a new foreground style for a given view and its child views. For information about how to use shape styles, see ShapeStyle.

## See Also

### Semantic styles

- [background](swiftui/shapestyle/background.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)
