Skip to content

Commit 28b7488

Browse files
update
1 parent aaafd1d commit 28b7488

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

ui/react-example/index.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
<title>React Git Diff Component</title>
88
<!-- <link rel="stylesheet" href="https://fonts.cdnfonts.com/css/google-sans" /> -->
99
<script src="https://unpkg.com/@ungap/[email protected]/min.js"></script>
10-
<link rel="preconnect" href="https://fonts.googleapis.com" />
11-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
12-
<link
13-
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap"
14-
rel="stylesheet"
15-
/>
1610
<meta
1711
name="description"
1812
content="github like, diff component, git diff, file diff, react diff component, vue diff component, solid diff component, svelte diff component"

ui/react-example/src/index.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
/* open-sans-latin-wght-normal */
6+
@font-face {
7+
font-family: "Open Sans Variable";
8+
font-style: normal;
9+
font-display: swap;
10+
font-weight: 300 800;
11+
src: url(https://cdn.jsdelivr.net/fontsource/fonts/open-sans:vf@latest/latin-wght-normal.woff2)
12+
format("woff2-variations");
13+
unicode-range:
14+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
15+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
16+
}
17+
518
.widget button * {
619
color: inherit;
720
}

ui/react-example/src/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createTheme } from "@mantine/core";
22

33
export const theme = createTheme({
4-
fontFamily: "Josefin Sans, consolas, monospace",
4+
fontFamily: "Open Sans Variable, consolas, monospace",
55
});

0 commit comments

Comments
 (0)