> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Styles

> Styles

# Styles

可在整个布局中引用以用于样式设置目的的可重用样式集合。请注意，`styles` 属性也可以在包的[上下文文件](https://devdocs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-bundle.md#context)中定义。如果在上下文文件中定义了等效的 `styles` 属性，则各自的内容将被合并。如果发现重复定义，布局中的定义优先，会覆盖上下文文件中的定义。

## 属性

`colors` - *object*，*可选*。定义一组[颜色调色板](https://devdocs.xbox.com/zh-CN/reference/system/touchadaptationkit/layout/game-streaming-touch-color-palette)，其中包含可在整个布局中重用的颜色。

## 另请参阅

[Touch Adaptation Kit 参考](https://devdocs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)\
[示例布局入门](https://devdocs.xbox.com/zh-CN/build/core-features/common/game-streaming/building-touch-layouts/samples/game-streaming-touch-getting-started-with-sample-layouts.md)


## Related topics

- [XClosedCaptionFontStyle](https://devdocs.xbox.com/reference/system/xaccessibility/enums/xclosedcaptionfontstyle.md)
- [Référence du Touch Adaptation Kit (TAK)](https://devdocs.xbox.com/fr/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
