Custom color, fonts
Custom color, fonts
1- Custom colors
We use CSS variables for 3 main theme colors: Primary color, Secondary color, and Neutrals color, following the Tailwindcss style.
You can find them in the
ncmaz-faust/src/styles/__theme_colors.scss
file
Primary, Secondary color:
These are the splashes of color that should appear the most in your UI, and are the ones that determine the overall "look" of the site. Use these for things like primary actions, links, navigation items, icons, accent borders, or text you want to emphasize.
Neutrals color:
These are the colors you will use the most and will make up the majority of your UI. Use them for most of your text, backgrounds, and borders, as well as for things like secondary buttons and links.
How to custom color?
You just need to change the color values in those CSS variables.
When defining your colors this way, make sure that the format of your CSS variables is correct for the color function you are using. You’ll want to use spaces if using the modern space-separated syntax, and commas if using legacy functions like rgba
or hsla
:
2- Custom fonts
The template uses Nextjs Google-fonts, so please read this tutorial will help you to customize the font - https://nextjs.org/docs/app/building-your-application/optimizing/fonts
You can then go to the src/pages/_app.tsx
file to customize your font.
Open/edit the
Ncmaz-faust/src/pages/_app.tsx
fileChose/change the Google font as you like (https://fonts.google.com/)
Change the font name as you like
Save then Redeploy to hosting/production
Last updated