Skip to content

Commit 342adb3

Browse files
committed
add font
1 parent dcd7089 commit 342adb3

4 files changed

Lines changed: 18 additions & 8 deletions

File tree

bun.lock

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"wrangler": "^4.76.0"
6262
},
6363
"dependencies": {
64+
"@fontsource/courier-prime": "^5.2.8",
6465
"fast-xml-parser": "^5.5.8",
6566
"isomorphic-dompurify": "^3.4.0",
6667
"js-yaml": "^4.1.1",

src/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
@import 'tailwindcss';
33
@plugin '@tailwindcss/typography';
44

5+
.ascii {
6+
font-family: 'Courier Prime', monospace;
7+
}
8+
59
/*----------------------------------------------------------------------*/
610
/* daisyui themes */
711
/*----------------------------------------------------------------------*/

src/lib/components/brand.svelte

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import { cn } from '$lib/utils/cn';
66
77
export let brandVariants = {
8-
base: 'leading-none whitespace-pre text-primary',
8+
base: 'ascii whitespace-pre text-primary leading-none',
99
size: {
10-
lg: 'text-[6px] sm:text-xs md:text-sm',
10+
lg: 'text-[6px] sm:text-xs md:text-sm ',
1111
default: 'text-xs',
12-
xs: 'text-[4px]'
12+
xs: 'text-[4px] '
1313
}
1414
} as const;
1515
@@ -22,8 +22,10 @@
2222
let { class: className, size = 'default', ...props }: BrandProps = $props();
2323
</script>
2424

25-
<pre
26-
class={cn(brandVariants.base, brandVariants.size[size], className)}
27-
aria-disabled="true"
28-
{...props}>{brand}
29-
</pre>
25+
<div>
26+
<pre
27+
class={cn(brandVariants.base, brandVariants.size[size], className)}
28+
aria-disabled="true"
29+
{...props}>{brand}</pre>
30+
<span class="sr-only">10xPrivacy</span>
31+
</div>

0 commit comments

Comments
 (0)