mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-06-25 00:01:00 +02:00
Allow custom fonts to be accessed via tailwind class (#291)
* move fonts and access * move fonts to public folder * Update Main.css
This commit is contained in:
parent
9d4138e1cf
commit
685e02536c
@ -21,7 +21,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Here is an example of how to add a custom font.
|
||||
* Fonts are stored in the public/fonts folder.
|
||||
* They are defined first here, then need to be referenced in the tailwind.config.js file
|
||||
* under `theme.extend.fontFamily`, and then can be used as a tailwind class, e.g. className='font-satoshi'.
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'Satoshi';
|
||||
src: url('/fonts/Satoshi-Regular.woff2') format('woff2');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* third-party libraries CSS */
|
||||
|
||||
|
@ -58,5 +58,5 @@ export default function Hero() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user