You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/using-theme-overrides.md
+67-5Lines changed: 67 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ type: example
105
105
</InstUISettingsProvider>
106
106
```
107
107
108
-
### Overriding theme for a specific component in a subtree
108
+
### Overriding theme for all components in a subtree
109
109
110
110
You can override the theme variables of specific components too with the `componentOverrides` key. You can do this for every theme or for just a given theme.
111
111
@@ -180,7 +180,7 @@ type: code
180
180
</InstUISettingsProvider>
181
181
```
182
182
183
-
#### Override function
183
+
#### Override function for all instances
184
184
185
185
The `InstUISettingsProvider` accepts a `function`. The override function's first parameter is the currently applied theme object. It should return a valid theme or override object.
The available theme variables are always displayed at the bottom of the component's page (e.g.: [Button component theme variables](/#Button/#ButtonTheme)).
216
216
217
-
#### Override object
217
+
#### Override object for a single component
218
218
219
219
```js
220
220
---
@@ -256,7 +256,7 @@ type: example
256
256
</div>
257
257
```
258
258
259
-
#### Override function
259
+
#### Override function for a single component
260
260
261
261
The override function's first parameter is the component's own theme object, the second is the main theme object.
The `canvas` theme has specific theme variables that are meant as a basis to provide end users a customizability of this theme, e.g. a university can use their own colors throughout the UI. This is used by [Canvas's theme editor](https://community.canvaslms.com/t5/Admin-Guide/How-do-I-create-a-theme-for-an-account-using-the-Theme-Editor/ta-p/242).
0 commit comments