Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom fonts to be accessed via tailwind class #291

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion template/app/src/client/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@
}
}


/* Here is an example of how to add a custom font.
* Fonts are stored in the public/fonts folder.
* They can then be used with tailwind as with the font-satoshi class,
* as specified in the tailwind.config.js file.
*/
@font-face {
font-family: 'Satoshi';
src: url('/fonts/Satoshi-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}

/* third-party libraries CSS */

Expand Down
2 changes: 1 addition & 1 deletion template/app/src/landing-page/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ export default function Hero() {
</div>
</div>
</div>
)
);
}