customize.mdx 780 B

123456789101112131415161718192021222324
  1. ---
  2. title: Customize Tabler
  3. description: Tabler has been designed so that it can be adjusted to your needs and requirements as much as possible. You can customize your own fonts, colors, font sizes, etc in it.
  4. ---
  5. ## Custom Google Font
  6. To use a custom Google Fonts font in Tabler you must import the font in the `<head>` section of the page. In this example we will use the _Inter_ font:
  7. ```html
  8. <link rel="preconnect" href="https://fonts.googleapis.com">
  9. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  10. <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
  11. ```
  12. Now you just need to tell Tabler to use your favorite font:
  13. ```html
  14. <style>
  15. :root {
  16. --tblr-font-sans-serif: 'Inter';
  17. }
  18. </style>
  19. ```