@instructure/canvas-theme 10.22.1-snapshot-1 → 10.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +21 -45
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [10.22.1-snapshot-1](https://github.com/instructure/instructure-ui/compare/v10.22.0...v10.22.1-snapshot-1) (2025-07-09)
6
+ # [10.23.0](https://github.com/instructure/instructure-ui/compare/v10.22.0...v10.23.0) (2025-07-09)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/canvas-theme
9
9
 
package/README.md CHANGED
@@ -1,16 +1,12 @@
1
- ---
2
- category: packages
3
- ---
4
-
5
1
  ## canvas-theme
6
2
 
7
3
  [![npm][npm]][npm-url]
8
4
  [![MIT License][license-badge]][license]
9
5
  [![Code of Conduct][coc-badge]][coc]
10
6
 
11
- A UI component theme for Canvas LMS made by Instructure Inc.
7
+ A UI component theme made by Instructure Inc.
12
8
 
13
- This theme has a 3:1 minimum contrast requirement.
9
+ This theme has WCAG 2.1 Level AA minimum contrast requirement.
14
10
 
15
11
  ### Installation
16
12
 
@@ -22,50 +18,30 @@ npm install @instructure/canvas-theme
22
18
 
23
19
  Before mounting (rendering) your React application:
24
20
 
25
- - global theming:
26
-
27
- ```js
28
- import { theme } from '@instructure/canvas-theme'
29
-
30
- theme.use()
31
- ```
21
+ ```jsx
22
+ import { theme } from '@instructure/canvas-theme'
32
23
 
33
- - application level theming:
34
-
35
- ```jsx
36
- import { theme } from '@instructure/canvas-theme'
37
-
38
- ReactDOM.render(
39
- <InstUISettingsProvider theme={theme}>
40
- <App />
41
- </InstUISettingsProvider>,
42
- element
43
- )
44
- ```
24
+ ReactDOM.render(
25
+ <InstUISettingsProvider theme={theme}>
26
+ <App />
27
+ </InstUISettingsProvider>,
28
+ element
29
+ )
30
+ ```
45
31
 
46
32
  To override the variables:
47
33
 
48
- - globally:
34
+ ```jsx
35
+ import { theme } from '@instructure/canvas-theme'
36
+ const themeOverrides = { spacing: { xxxSmall: '0.3rem' } }
49
37
 
50
- ```js
51
- import { theme } from '@instructure/canvas-theme'
52
-
53
- theme.use({ overrides: { spacing: { xxxSmall: '0.3rem' } } })
54
- ```
55
-
56
- - application level:
57
-
58
- ```jsx
59
- import { theme } from '@instructure/canvas-theme'
60
- const themeOverrides = { spacing: { xxxSmall: '0.3rem' } }
61
-
62
- ReactDOM.render(
63
- <InstUISettingsProvider theme={{ ...theme, ...themeOverrides }}>
64
- <App />
65
- </InstUISettingsProvider>,
66
- element
67
- )
68
- ```
38
+ ReactDOM.render(
39
+ <InstUISettingsProvider theme={{ ...theme, ...themeOverrides }}>
40
+ <App />
41
+ </InstUISettingsProvider>,
42
+ element
43
+ )
44
+ ```
69
45
 
70
46
  [npm]: https://img.shields.io/npm/v/@instructure/canvas-theme.svg
71
47
  [npm-url]: https://npmjs.com/package/@instructure/canvas-theme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/canvas-theme",
3
- "version": "10.22.1-snapshot-1",
3
+ "version": "10.23.0",
4
4
  "description": "A theme for Canvas LMS made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@instructure/ui-babel-preset": "10.22.1-snapshot-1"
25
+ "@instructure/ui-babel-preset": "10.23.0"
26
26
  },
27
27
  "dependencies": {
28
28
  "@babel/runtime": "^7.27.6",
29
- "@instructure/shared-types": "10.22.1-snapshot-1",
30
- "@instructure/theme-registry": "10.22.1-snapshot-1",
31
- "@instructure/ui-themes": "10.22.1-snapshot-1"
29
+ "@instructure/shared-types": "10.23.0",
30
+ "@instructure/theme-registry": "10.23.0",
31
+ "@instructure/ui-themes": "10.23.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"