mishig HF Staff commited on
Commit
f829327
·
verified ·
1 Parent(s): a461926

Sync from huggingface/lerobot-dataset-visualizer via hub-sync

Browse files
src/app/globals.css CHANGED
@@ -98,8 +98,12 @@
98
  --color-fill-strong: var(--fill-strong);
99
  --color-accent-fg: var(--accent-fg);
100
  --color-flag-fg: var(--flag-fg);
101
- --font-sans: var(--font-geist-sans);
102
- --font-mono: var(--font-geist-mono);
 
 
 
 
103
  }
104
 
105
  html {
 
98
  --color-fill-strong: var(--fill-strong);
99
  --color-accent-fg: var(--accent-fg);
100
  --color-flag-fg: var(--flag-fg);
101
+ --font-sans:
102
+ var(--font-source-sans), "Source Sans Pro", ui-sans-serif, system-ui,
103
+ sans-serif;
104
+ --font-mono:
105
+ var(--font-plex-mono), "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
106
+ monospace;
107
  }
108
 
109
  html {
src/app/layout.tsx CHANGED
@@ -1,10 +1,20 @@
1
  import type { Metadata } from "next";
2
- import { Inter } from "next/font/google";
3
  import "./globals.css";
4
  import { AuthProvider } from "@/context/auth-context";
5
  import { THEME_INIT_SCRIPT } from "@/utils/theme-init";
6
 
7
- const inter = Inter({ subsets: ["latin"] });
 
 
 
 
 
 
 
 
 
 
8
 
9
  export const metadata: Metadata = {
10
  title: "LeRobot Dataset Tool and Visualizer",
@@ -18,11 +28,15 @@ export default function RootLayout({
18
  }) {
19
  return (
20
  // The init script sets the theme class before hydration, hence the warning suppression.
21
- <html lang="en" suppressHydrationWarning>
 
 
 
 
22
  <head>
23
  <script dangerouslySetInnerHTML={{ __html: THEME_INIT_SCRIPT }} />
24
  </head>
25
- <body className={inter.className}>
26
  <AuthProvider>{children}</AuthProvider>
27
  </body>
28
  </html>
 
1
  import type { Metadata } from "next";
2
+ import { IBM_Plex_Mono, Source_Sans_3 } from "next/font/google";
3
  import "./globals.css";
4
  import { AuthProvider } from "@/context/auth-context";
5
  import { THEME_INIT_SCRIPT } from "@/utils/theme-init";
6
 
7
+ // The Hub's (moon-landing) type: Source Sans Pro, published on Google Fonts as Source Sans 3, and
8
+ // IBM Plex Mono. Exposed as variables on <html> so Tailwind's font-sans / font-mono resolve there.
9
+ const sans = Source_Sans_3({
10
+ subsets: ["latin"],
11
+ variable: "--font-source-sans",
12
+ });
13
+ const mono = IBM_Plex_Mono({
14
+ subsets: ["latin"],
15
+ weight: ["400", "500", "600"],
16
+ variable: "--font-plex-mono",
17
+ });
18
 
19
  export const metadata: Metadata = {
20
  title: "LeRobot Dataset Tool and Visualizer",
 
28
  }) {
29
  return (
30
  // The init script sets the theme class before hydration, hence the warning suppression.
31
+ <html
32
+ lang="en"
33
+ className={`${sans.variable} ${mono.variable}`}
34
+ suppressHydrationWarning
35
+ >
36
  <head>
37
  <script dangerouslySetInnerHTML={{ __html: THEME_INIT_SCRIPT }} />
38
  </head>
39
+ <body className="font-sans">
40
  <AuthProvider>{children}</AuthProvider>
41
  </body>
42
  </html>
src/components/annotations-skin.css CHANGED
@@ -68,7 +68,7 @@
68
  padding: 1px 5px;
69
  font-size: 10.5px;
70
  color: var(--fg-1);
71
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
72
  }
73
 
74
  /* ----- Style pills (per atom style) — bright on dark ----- */
@@ -172,7 +172,7 @@
172
  outline-color: rgba(239, 83, 80, 0.4);
173
  }
174
  .annotations-skin .row-anno .ts {
175
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
176
  font-size: 10.5px;
177
  color: var(--fg-3);
178
  width: 56px;
@@ -350,7 +350,7 @@
350
  margin-bottom: 8px;
351
  }
352
  .annotations-skin .tl-head .ts-display {
353
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
354
  font-size: 12px;
355
  color: var(--fg-1);
356
  text-transform: none;
@@ -480,7 +480,7 @@
480
  top: 0;
481
  bottom: 0;
482
  border-left: 1px solid var(--border-1);
483
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
484
  font-size: 10px;
485
  color: var(--fg-3);
486
  padding-left: 3px;
@@ -519,7 +519,7 @@
519
  .annotations-skin .tl-section-sub,
520
  .annotations-skin .rail-column-sub {
521
  font-size: 10px;
522
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
523
  color: var(--fg-3);
524
  }
525
  .annotations-skin .rail-column {
@@ -617,7 +617,7 @@
617
  justify-content: flex-end;
618
  }
619
  .annotations-skin .ts-pill {
620
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
621
  font-size: 11px;
622
  padding: 3px 8px;
623
  border-radius: 999px;
@@ -728,7 +728,7 @@
728
  .annotations-skin .inspector-title strong {
729
  display: block;
730
  color: var(--fg-1);
731
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
732
  font-size: 12px;
733
  line-height: 1.4;
734
  }
@@ -832,7 +832,7 @@
832
  color: var(--fg-3);
833
  }
834
  .annotations-skin .rail-group-head .count {
835
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
836
  font-size: 10px;
837
  }
838
  .annotations-skin .rail-row {
@@ -854,7 +854,7 @@
854
  border-color: var(--accent);
855
  }
856
  .annotations-skin .rail-row .ts {
857
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
858
  font-size: 10.5px;
859
  color: var(--fg-3);
860
  width: 56px;
@@ -942,7 +942,7 @@
942
  width: 100px;
943
  }
944
  .annotations-skin .editor .ts-row .frame-pill {
945
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
946
  font-size: 11px;
947
  padding: 3px 8px;
948
  border: 0;
@@ -1022,7 +1022,7 @@
1022
  white-space: pre-line;
1023
  }
1024
  .annotations-skin .tl-tooltip .meta {
1025
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1026
  font-size: 10px;
1027
  color: var(--fg-3);
1028
  margin-bottom: 2px;
@@ -1039,7 +1039,7 @@
1039
  color: #e0f2fe;
1040
  font-size: 9.5px;
1041
  font-weight: 700;
1042
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1043
  line-height: 14px;
1044
  }
1045
 
 
68
  padding: 1px 5px;
69
  font-size: 10.5px;
70
  color: var(--fg-1);
71
+ font-family: var(--font-mono);
72
  }
73
 
74
  /* ----- Style pills (per atom style) — bright on dark ----- */
 
172
  outline-color: rgba(239, 83, 80, 0.4);
173
  }
174
  .annotations-skin .row-anno .ts {
175
+ font-family: var(--font-mono);
176
  font-size: 10.5px;
177
  color: var(--fg-3);
178
  width: 56px;
 
350
  margin-bottom: 8px;
351
  }
352
  .annotations-skin .tl-head .ts-display {
353
+ font-family: var(--font-mono);
354
  font-size: 12px;
355
  color: var(--fg-1);
356
  text-transform: none;
 
480
  top: 0;
481
  bottom: 0;
482
  border-left: 1px solid var(--border-1);
483
+ font-family: var(--font-mono);
484
  font-size: 10px;
485
  color: var(--fg-3);
486
  padding-left: 3px;
 
519
  .annotations-skin .tl-section-sub,
520
  .annotations-skin .rail-column-sub {
521
  font-size: 10px;
522
+ font-family: var(--font-mono);
523
  color: var(--fg-3);
524
  }
525
  .annotations-skin .rail-column {
 
617
  justify-content: flex-end;
618
  }
619
  .annotations-skin .ts-pill {
620
+ font-family: var(--font-mono);
621
  font-size: 11px;
622
  padding: 3px 8px;
623
  border-radius: 999px;
 
728
  .annotations-skin .inspector-title strong {
729
  display: block;
730
  color: var(--fg-1);
731
+ font-family: var(--font-mono);
732
  font-size: 12px;
733
  line-height: 1.4;
734
  }
 
832
  color: var(--fg-3);
833
  }
834
  .annotations-skin .rail-group-head .count {
835
+ font-family: var(--font-mono);
836
  font-size: 10px;
837
  }
838
  .annotations-skin .rail-row {
 
854
  border-color: var(--accent);
855
  }
856
  .annotations-skin .rail-row .ts {
857
+ font-family: var(--font-mono);
858
  font-size: 10.5px;
859
  color: var(--fg-3);
860
  width: 56px;
 
942
  width: 100px;
943
  }
944
  .annotations-skin .editor .ts-row .frame-pill {
945
+ font-family: var(--font-mono);
946
  font-size: 11px;
947
  padding: 3px 8px;
948
  border: 0;
 
1022
  white-space: pre-line;
1023
  }
1024
  .annotations-skin .tl-tooltip .meta {
1025
+ font-family: var(--font-mono);
1026
  font-size: 10px;
1027
  color: var(--fg-3);
1028
  margin-bottom: 2px;
 
1039
  color: #e0f2fe;
1040
  font-size: 9.5px;
1041
  font-weight: 700;
1042
+ font-family: var(--font-mono);
1043
  line-height: 14px;
1044
  }
1045