Skip to content

Commit dd166b8

Browse files
committed
docs(many): rework documentation
1 parent 282fab3 commit dd166b8

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

docs/theming/legacy-theme-overrides.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ relevantForAI: true
77

88
## Using theme overrides
99

10+
```js
11+
---
12+
type: embed
13+
---
14+
<Alert variant="warning" margin="0 0 medium">
15+
The examples on this page use the <strong>legacy theming system</strong> and are designed for <strong>v11.6</strong> components. If you are viewing the v11.7 version, <Link href={window.location.pathname.match(/v\d+_\d+/) ? window.location.pathname.replace(/v\d+_\d+/, 'v11_6') : `/v11_6${window.location.pathname}`}>switch to v11.6</Link> to see the examples working correctly.
16+
</Alert>
17+
```
18+
1019
This document gives an overview on how you can customize Instructure UI components by tweaking their theme variables.
1120
While this gives you a level of flexibility on the look and feel of the components you should be aware of 2 things:
1221

docs/theming/new-theme-overrides.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ relevantForAI: true
77

88
## New Theme Override Patterns
99

10+
```js
11+
---
12+
type: embed
13+
---
14+
<Alert variant="warning" margin="0 0 medium">
15+
The examples on this page use the <strong>new theming system</strong> and require <strong>v11.7+</strong> components. If you are viewing the v11.6 version, <Link href={window.location.pathname.match(/v\d+_\d+/) ? window.location.pathname.replace(/v\d+_\d+/, 'v11_7') : `/v11_7${window.location.pathname}`}>switch to v11.7</Link> to see the examples working correctly.
16+
</Alert>
17+
```
18+
1019
This guide covers all the override patterns available in the new theming system (v11.7+). The new system uses a layered token architecture: **primitives** (raw values) -> **semantics** (meaning) -> **components** (per-component tokens).
1120

1221
Overrides are applied via the `themeOverride` prop on `InstUISettingsProvider`, which is separate from the `theme` prop. The `theme` prop replaces the active theme entirely; `themeOverride` layers modifications on top.

0 commit comments

Comments
 (0)