Skip to content

Commit 95afb97

Browse files
authored
feat: remove Ubuntu from the docs (feature-sliced#638)
1 parent 11412f2 commit 95afb97

File tree

6 files changed

+30
-57
lines changed

6 files changed

+30
-57
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"@docusaurus/plugin-content-docs": "^3.0.0-beta.0",
3232
"@docusaurus/plugin-ideal-image": "^3.0.0-beta.0",
3333
"@docusaurus/preset-classic": "^3.0.0-beta.0",
34-
"@fontsource/overpass": "^4.5.4",
35-
"@fontsource/ubuntu": "^4.5.4",
34+
"@fontsource-variable/overpass": "^5.0.16",
3635
"@mdx-js/react": "^2.3.0",
3736
"@svgr/webpack": "^8.1.0",
3837
"@types/lodash-es": "^4.17.9",

pnpm-lock.yaml

Lines changed: 5 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/index.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
@import "./navbar";
1212
@import "./doc-item";
1313

14+
h1,
15+
h2,
16+
h3,
17+
h4,
18+
h5,
19+
h6 {
20+
letter-spacing: -0.5px;
21+
}
22+
1423
@media screen and (width <= 450px) {
1524
.button-group {
1625
display: block;

src/app/theme.scss

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,9 @@
1-
@import "@fontsource/overpass/400.css";
2-
@import "@fontsource/ubuntu/400.css";
3-
@import "@fontsource/ubuntu/700.css";
4-
51
/* https://docusaurus.io/docs/styling-layout */
62

73
:root {
84
// Base styles
95
--ifm-code-font-size: 95%;
10-
--ifm-h2-font-size: 1.75rem;
116
--ifm-button-color: #ffffff;
12-
13-
// Default colors
14-
15-
/* --ifm-color-primary: #25c2a0;
16-
--ifm-color-primary-dark: rgb(33, 175, 144);
17-
--ifm-color-primary-darker: rgb(31, 165, 136);
18-
--ifm-color-primary-darkest: rgb(26, 136, 112);
19-
--ifm-color-primary-light: rgb(70, 203, 174);
20-
--ifm-color-primary-lighter: rgb(102, 212, 189);
21-
--ifm-color-primary-lightest: rgb(146, 224, 208); */
22-
23-
// 2.0.0-beta theme (legacy)
24-
25-
/* --ifm-color-primary: #5c9cb5;
26-
--ifm-color-primary-dark: #4d8fa9;
27-
--ifm-color-primary-darker: #4887a0;
28-
--ifm-color-primary-darkest: #3c6f83;
29-
--ifm-color-primary-light: #6fa7be;
30-
--ifm-color-primary-lighter: #78adc2;
31-
--ifm-color-primary-lightest: #94becf; */
32-
33-
// 2.0.0-stable theme (current)
347
--ifm-color-primary: #2b74d4;
358
--ifm-color-primary-dark: #2768bf;
369
--ifm-color-primary-darker: #2563b4;
@@ -41,11 +14,8 @@
4114
--ifm-color-primary-grad1: #29bedc;
4215
--ifm-color-primary-grad2: #517aed;
4316
--ifm-color-primary-neutral: #4a7ec2c6;
44-
--ifm-font-family-base: "Ubuntu", system-ui, -apple-system, segoe ui, roboto,
45-
ubuntu, cantarell, noto sans, sans-serif, blinkmacsystemfont, "Segoe UI",
46-
helvetica, arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
47-
"Segoe UI Symbol";
48-
--ifm-heading-font-family: "Overpass", var(--ifm-font-family-base);
17+
--ifm-heading-font-family: "Overpass Variable",
18+
var(--ifm-font-family-base, sans-serif);
4919
--ifm-color-violet: #5c21dd;
5020
}
5121

src/pages/examples/_config.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,16 +268,16 @@ export const examples: Example[] = [
268268
"ios",
269269
],
270270
},
271-
{
272-
title: "Сryptolight",
273-
description:
274-
"Cryptocurrency review site based on Feature-Sliced Design (Architectural methodology for frontend projects).",
275-
website: "http://crypto-light.space/",
276-
source: "https://github.com/Yar56/cryptolight",
277-
preview: require("./img/cryptolight.png"),
278-
version: VERSIONS.V2,
279-
updatedAt: "2023-10-18",
280-
tech: ["react", "effector", "nextui", "typescript", "vite"],
281-
},
271+
{
272+
title: "Сryptolight",
273+
description:
274+
"Cryptocurrency review site based on Feature-Sliced Design (Architectural methodology for frontend projects).",
275+
website: "http://crypto-light.space/",
276+
source: "https://github.com/Yar56/cryptolight",
277+
preview: require("./img/cryptolight.png"),
278+
version: VERSIONS.V2,
279+
updatedAt: "2023-10-18",
280+
tech: ["react", "effector", "nextui", "typescript", "vite"],
281+
},
282282
// Reverse the list (last examples should be at the top)
283283
].reverse();

src/pages/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
import "@fontsource-variable/overpass";
2+
13
export { default } from "./_home";

0 commit comments

Comments
 (0)