WebFont Size - Tailwind CSS Typography Font Size Utilities for controlling the font size of an element. Basic usage Setting the font size Control the font size of an element using the text- {size} utilities. text-sm The quick brown fox jumps over the lazy dog. text-base The quick brown fox jumps over the lazy dog. text-lg WebMany utilities in Tailwind share a common namespace but map to different CSS properties. For example text-lg and text-black both share the text-namespace, but one is for font-size …
Font Family - Tailwind CSS
Web28 Feb 2024 · Open the tailwind.config.js file and extend the theme's fontFamily option. module.exports = { theme: { extend: { fontFamily: { 'press-start': ['"Press Start 2P"', 'cursive'], }, }, }, }; If your font, like this example, uses spaces, it's best to use the double escape '" it will make sure it's used in the right way. Web13 Jan 2024 · When you install Tailwind CSS following the official guide, the default font-family that applies to the HTML element of your project corresponds to the font-sans … hostelworld sofia
Custom fonts in Next.js + Tailwindcss - DEV Community
WebAdding Fonts To Tailwind CSS. Looking to add webfonts to your Tailwind CSS project? This guide will help you add your own fonts to your project - by giving you three options to … WebFont Families By default, Tailwind provides three font family utilities: a cross-browser sans-serif stack, a cross-browser serif stack, and a cross-browser monospaced stack. You can change, add, or remove these by editing the theme.fontFamily section of … WebBy default, Tailwind provides three font family utilities: a cross-browser sans-serif stack, a cross-browser serif stack, and a cross-browser monospaced stack. You can change, add, … psychology of gacha games