| 1 |
--- |
| 2 |
title: "Contextual theming" |
| 3 |
pull_requests: [24969] |
| 4 |
--- |
| 5 |
|
| 6 |
The Feathers `ThemeProps` structure has significantly changed; if you have created a custom theme, |
| 7 |
you will need to reorganize it based on semantic tokens. |
| 8 |
|
| 9 |
For a quick and easy port to start off from, you can create SemanticToken’s for every ThemeToken |
| 10 |
you have used in your custom theme. Then, create a map from these ThemeTokens to your |
| 11 |
SemanticTokens, and map these SemanticTokens to your desired colors. |
| 12 |
|
| 13 |
From there, you can start combining any identical colors used to the same SemanticToken where |
| 14 |
it makes sense in your application. |