Skip to content

Commit bff4720

Browse files
committed
redesign some things
1 parent f518915 commit bff4720

29 files changed

+474
-7
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,10 @@
6969
]
7070
},
7171
"type": "module",
72-
"packageManager": "[email protected]"
72+
"packageManager": "[email protected]",
73+
"dependencies": {
74+
"@fontsource-variable/inter-tight": "^5.1.1",
75+
"@fontsource-variable/playfair-display": "^5.1.1",
76+
"@fontsource/iosevka": "^5.1.0"
77+
}
7378
}

pnpm-lock.yaml

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

src/app.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
--breakpoint-xs: 475px;
99
--breakpoint-2xl: 1400px;
1010

11+
--font-display: "GT Super Display", serif;
12+
--font-sans: "Inter Tight Variable", sans-serif;
13+
--font-mono: "Iosevka", monospace;
14+
1115
--color-background: hsl(var(--background));
1216
--color-foreground: hsl(var(--foreground));
1317

@@ -119,7 +123,7 @@
119123
--radius: 0.5rem;
120124
}
121125
.dark {
122-
--background: 20 14.3% 4.1%;
126+
--background: 276 10.64% 9.22%;
123127
--foreground: 60 9.1% 97.8%;
124128
--card: 20 14.3% 4.1%;
125129
--card-foreground: 60 9.1% 97.8%;

src/app.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
rel="icon"
77
href="https://raw.githubusercontent.com/sveltejs/branding/master/svelte-logo.svg"
88
/>
9+
10+
<link rel="stylesheet" href="/fonts/gt-super.css" />
911
<meta name="viewport" content="width=device-width, initial-scale=1" />
1012
%sveltekit.head%
1113
</head>

src/lib/components/MarkdownRenderer.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
<svelte:element
3232
this={inline ? "span" : "div"}
3333
class={cn(
34-
"prose dark:prose-invert prose-a:[overflow-wrap:_anywhere] prose-a:text-primary prose-a:no-underline prose-a:underline-offset-4 prose-a:hover:underline prose-code:[overflow-wrap:_anywhere] prose-li:my-1",
34+
"prose-code:[overflow-wrap:_anywhere]p prose dark:prose-invert prose-a:[overflow-wrap:_anywhere] prose-a:text-primary prose-a:no-underline prose-a:underline-offset-4 prose-a:hover:underline",
35+
"prose-code:rounded-md prose-code:bg-neutral-800 prose-code:px-[4px] prose-code:py-[3px] prose-li:my-1",
3536
"prose-pre:text-wrap", // remove with TODO
3637
inline && "*:inline",
3738
className

src/lib/components/ui/tabs/tabs-list.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<TabsPrimitive.List
1313
bind:ref
1414
class={cn(
15-
"bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1",
15+
"bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-xl p-1",
1616
className
1717
)}
1818
{...restProps}

src/lib/components/ui/tabs/tabs-trigger.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<TabsPrimitive.Trigger
1313
bind:ref
1414
class={cn(
15-
"ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",
15+
"ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",
1616
className
1717
)}
1818
{...restProps}

src/routes/+layout.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<script lang="ts">
22
import "../app.css";
3+
import "@fontsource-variable/playfair-display";
4+
import "@fontsource-variable/inter-tight";
5+
import "@fontsource/iosevka/400.css";
6+
import "@fontsource/iosevka/500.css";
7+
import "@fontsource/iosevka/600.css";
8+
39
import { onMount, type SvelteComponent } from "svelte";
410
import type { SvelteHTMLElements } from "svelte/elements";
511
import { fade } from "svelte/transition";
@@ -134,7 +140,7 @@
134140
<ModeWatcher />
135141
<Toaster />
136142
<header
137-
class="sticky top-0 z-40 w-full bg-background/95 shadow-sm backdrop-blur supports-[backdrop-filter]:bg-background/60"
143+
class="top-0 z-40 hidden w-full bg-background/95 shadow-sm backdrop-blur supports-[backdrop-filter]:bg-background/60"
138144
>
139145
<div
140146
class={[

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
/>
266266

267267
<div class="container py-8">
268-
<h2 class="text-3xl font-bold">
268+
<h2 class="font-display text-[52px] font-medium">
269269
<span class="text-primary">{data.repos[currentTab].name}</span>
270270
Releases
271271
</h2>

0 commit comments

Comments
 (0)