<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/style-dictionary-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Style dictionary keys"
}
-->

# Style dictionary keys

A dictionary that contains properties that define text style characteristics.

## Discussion

The style <doc://com.apple.documentation/documentation/Foundation/NSDictionary> object is used for providing styling information for marked text ([`markedTextStyle`](/documentation/UIKit/UITextInput/markedTextStyle) property) and for providing text-styling information at a certain position ([`textStyling(at:in:)`](/documentation/UIKit/UITextInput/textStyling(at:in:)) method).

## Topics

### Constants

[`let UITextInputTextBackgroundColorKey: String`](/documentation/UIKit/UITextInputTextBackgroundColorKey)

The background color of the text.

[`let UITextInputTextColorKey: String`](/documentation/UIKit/UITextInputTextColorKey)

The color of the text.

[`let UITextInputTextFontKey: String`](/documentation/UIKit/UITextInputTextFontKey)

The font of the text.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)