Standard Colors

The SwiftUI standard colors

Standard Colors - iOS Light Mode Preview

Platform Compatibility

iOS 13.0+ iPadOS 13.0+ macOS 10.15+ watchOS 6.0+ tvOS 13.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
VStack {
  HStack {
    smallRect
      .foregroundStyle(.black)
    smallRect
      .foregroundStyle(.blue)
    smallRect
      .foregroundStyle(.brown)
    smallRect
      .foregroundStyle(.clear)
  }
  HStack {
    smallRect
      .foregroundStyle(.cyan)
    smallRect
      .foregroundStyle(.gray)
    smallRect
      .foregroundStyle(.green)
    smallRect
      .foregroundStyle(.indigo)
  }
  HStack {
    smallRect
      .foregroundStyle(.mint)
    smallRect
      .foregroundStyle(.orange)
    smallRect
      .foregroundStyle(.pink)
    smallRect
      .foregroundStyle(.purple)
  }
  HStack {
    smallRect
      .foregroundStyle(.red)
    smallRect
      .foregroundStyle(.teal)
    smallRect
      .foregroundStyle(.white)
    smallRect
      .foregroundStyle(.yellow)
  }
}

Found an issue or have a suggestion?

Created: May 29, 2025Updated: May 31, 2025