@codecademy/styleguide 79.1.2 → 79.1.3-alpha.10e0c5.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.
- package/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/src/lib/Meta/Installation.mdx +30 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
### [79.1.3-alpha.10e0c5.0](https://github.com/Codecademy/gamut/compare/@codecademy/styleguide@79.1.2...@codecademy/styleguide@79.1.3-alpha.10e0c5.0) (2026-02-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @codecademy/styleguide
|
|
9
|
+
|
|
6
10
|
### [79.1.2](https://github.com/Codecademy/gamut/compare/@codecademy/styleguide@79.1.1...@codecademy/styleguide@79.1.2) (2026-02-12)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @codecademy/styleguide
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/styleguide",
|
|
3
3
|
"description": "Styleguide & Component library for codecademy.com",
|
|
4
|
-
"version": "79.1.
|
|
4
|
+
"version": "79.1.3-alpha.10e0c5.0",
|
|
5
5
|
"author": "Codecademy Engineering",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"repository": "git@github.com:Codecademy/gamut.git",
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "31ed676d2de31ecd20ce48e21e37085435028764"
|
|
12
12
|
}
|
|
@@ -39,21 +39,44 @@ yarn add @codecademy/gamut-kit @emotion/react @emotion/styled
|
|
|
39
39
|
|
|
40
40
|
3. Wrap your application root with `GamutProvider` and give it the theme you would like to use for your app.
|
|
41
41
|
|
|
42
|
+
**React 19:**
|
|
43
|
+
|
|
42
44
|
```tsx
|
|
43
45
|
import React from 'react';
|
|
44
|
-
import {
|
|
46
|
+
import { createRoot } from 'react-dom/client';
|
|
45
47
|
import { GamutProvider, theme } from '@codecademy/gamut-styles';
|
|
46
48
|
|
|
47
49
|
import { App } from './App';
|
|
48
50
|
|
|
49
51
|
const rootElement = document.getElementById('root');
|
|
52
|
+
if (rootElement) {
|
|
53
|
+
const root = createRoot(rootElement);
|
|
54
|
+
root.render(
|
|
55
|
+
<GamutProvider>
|
|
56
|
+
<App />
|
|
57
|
+
</GamutProvider>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
```
|
|
50
61
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
62
|
+
**React 18:**
|
|
63
|
+
|
|
64
|
+
```tsx
|
|
65
|
+
import React from 'react';
|
|
66
|
+
import { render } from 'react-dom';
|
|
67
|
+
import { GamutProvider, theme } from '@codecademy/gamut-styles';
|
|
68
|
+
|
|
69
|
+
import { App } from './App';
|
|
70
|
+
|
|
71
|
+
const rootElement = document.getElementById('root');
|
|
72
|
+
if (rootElement) {
|
|
73
|
+
render(
|
|
74
|
+
<GamutProvider>
|
|
75
|
+
<App />
|
|
76
|
+
</GamutProvider>,
|
|
77
|
+
rootElement
|
|
78
|
+
);
|
|
79
|
+
}
|
|
57
80
|
```
|
|
58
81
|
|
|
59
82
|
GamutProvider handles a few critical tasks that need to happen in order for components to work.
|