Skip to content

Commit

Permalink
playing around with fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondwang committed Apr 5, 2024
1 parent be0d282 commit 63b8f11
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Protest+Riot&family=Tilt+Warp&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;
5 changes: 3 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<main class="container px-8 sm:mx-auto">
<h1 class="mt-40 text-4xl sm:mt-60 sm:text-6xl md:text-8xl">Raymond Wang</h1>
<h2 class="mt-4 text-2xl">
<p class="mt-40 sm:mt-60">hey, I'm</p>
<h1 class="font-display text-4xl sm:text-6xl md:text-8xl">Raymond</h1>
<h2 class="mt-8 text-2xl">
Software Engineer at
<a
class="hover:underline hover:underline-offset-4"
Expand Down
8 changes: 0 additions & 8 deletions tailwind.config.js

This file was deleted.

19 changes: 19 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Config } from 'tailwindcss';
import defaultTheme from 'tailwindcss/defaultTheme';

const config: Config = {
content: ['./src/**/*.{html,js,svelte,ts}'],
plugins: [],
theme: {
fontFamily: {
sans: ['"Tilt Warp"', ...defaultTheme.fontFamily.sans],
},
extend: {
fontFamily: {
display: ['"Protest Riot"', ...defaultTheme.fontFamily.sans],
},
},
},
};

export default config;

0 comments on commit 63b8f11

Please sign in to comment.