# StyleColor

> Style value that can be either a Color or a StyleKeyword.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IStyleValue\<Color>](/engine/6000.6/script-reference/unityengine/uielements/istylevalue1.md), [IEquatable\<StyleColor>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct StyleColor : IStyleValue<Color>, IEquatable<StyleColor>
```

## Constructors

| Constructor                                                                                                                                             | Description                                                                                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [StyleColor(UnityEngine.Color)](/engine/6000.6/script-reference/unityengine/uielements/stylecolor/ctor.md#stylecolor\(color\))                          | Creates from either a [Color](/engine/6000.6/script-reference/unityengine/color.md) or [StyleKeyword](/engine/6000.6/script-reference/unityengine/uielements/stylekeyword.md). |
| [StyleColor(UnityEngine.UIElements.StyleKeyword)](/engine/6000.6/script-reference/unityengine/uielements/stylecolor/ctor.md#stylecolor\(stylekeyword\)) | Creates from either a [Color](/engine/6000.6/script-reference/unityengine/color.md) or [StyleKeyword](/engine/6000.6/script-reference/unityengine/uielements/stylekeyword.md). |

## Properties

| Property                                                                                | Description                                                              |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [keyword](/engine/6000.6/script-reference/unityengine/uielements/stylecolor/keyword.md) | The style keyword.                                                       |
| [value](/engine/6000.6/script-reference/unityengine/uielements/stylecolor/value.md)     | The [Color](/engine/6000.6/script-reference/unityengine/color.md) value. |
