Skip to content

Commit bc63dd1

Browse files
authored
spread canvas.typography (#171)
1 parent a2fa161 commit bc63dd1

File tree

4 files changed

+32
-29
lines changed

4 files changed

+32
-29
lines changed

apps/roadmap/package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"dependencies": {
3-
"@instructure/ui": "^11.2.0",
4-
"@instructure/ui-color-utils": "^10.2.0",
5-
"react": "^19.2.0",
6-
"react-dom": "^19.2.0"
7-
},
8-
"devDependencies": {
9-
"@instructure.ai/shared-configs": "workspace:^"
10-
},
11-
"name": "@instructure.ai/roadmap",
12-
"private": true,
13-
"repository": {
14-
"directory": "apps/roadmap",
15-
"type": "git",
16-
"url": "https://github.com/instructure/instructure.ai"
17-
},
18-
"scripts": {
19-
"build": "vite build",
20-
"dev": "vite",
21-
"lint": "pnpm biome check",
22-
"preview": "vite preview",
23-
"test": "pnpm vitest run",
24-
"typecheck": "tsgo --noEmit"
25-
},
26-
"type": "module",
27-
"version": "1.0.2"
2+
"dependencies": {
3+
"@instructure/ui": "^11.2.0",
4+
"@instructure/ui-color-utils": "^10.2.0",
5+
"react": "^19.2.0",
6+
"react-dom": "^19.2.0"
7+
},
8+
"devDependencies": {
9+
"@instructure.ai/shared-configs": "workspace:^"
10+
},
11+
"name": "@instructure.ai/roadmap",
12+
"private": true,
13+
"repository": {
14+
"directory": "apps/roadmap",
15+
"type": "git",
16+
"url": "https://github.com/instructure/instructure.ai"
17+
},
18+
"scripts": {
19+
"build": "vite build",
20+
"dev": "vite",
21+
"lint": "pnpm biome check",
22+
"preview": "vite preview",
23+
"test": "pnpm vitest run",
24+
"typecheck": "tsgo --noEmit"
25+
},
26+
"type": "module",
27+
"version": "1.0.2"
2828
}

apps/roadmap/src/App.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
sendHeight,
1111
} from "./utils";
1212
import "./App.css";
13-
import "./assets/fonts/AtkinsonHyperlegibleNext.css";
1413

1514
const App: FC = () => {
1615
const [overlayOpen, setOverlayOpen] = useState(false);
@@ -87,7 +86,10 @@ const App: FC = () => {
8786
theme={{
8887
...canvas,
8988
...(brandConfig as object),
90-
typography: { fontFamily: "Atkinson Hyperlegible Next, sans-serif" },
89+
typography: {
90+
...canvas.typography,
91+
fontFamily: "Atkinson Hyperlegible Next, sans-serif",
92+
},
9193
}}
9294
>
9395
{Entries.length ? (

apps/roadmap/src/Main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { StrictMode } from "react";
22
import { createRoot, type Root } from "react-dom/client";
33
import App from "./App.tsx";
44
import "./Main.css";
5+
import "./assets/fonts/AtkinsonHyperlegibleNext.css";
56

67
const root: HTMLElement =
78
document.getElementById("root") ||

apps/roadmap/src/assets/fonts/AtkinsonHyperlegibleNext.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@
123123
font-weight: 800;
124124
font-style: italic;
125125
font-display: swap;
126-
}
126+
}

0 commit comments

Comments
 (0)