Complete the code to import the custom font in Tailwind CSS.
@font-face { font-family: 'MyFont'; src: url('[1]'); }The src property needs the correct relative path to the font file. Using ./fonts/MyFont.woff2 correctly points to the font file in the fonts folder.
Complete the Tailwind config to add the custom font family.
module.exports = { theme: { extend: { fontFamily: { custom: ['[1]', 'sans-serif'] } } } }The font family name should match exactly the name used in @font-face. Here, 'MyFont' is correct without quotes inside the array.
Fix the error in the Tailwind class to apply the custom font.
<p class="font-[1]">Hello World</p>
The Tailwind class uses the key defined in fontFamily in the config. Since the key is custom, the class is font-custom.
Fill both blanks to complete the Tailwind config for custom font and enable JIT mode.
module.exports = { mode: '[1]', theme: { extend: { fontFamily: { custom: ['[2]', 'sans-serif'] } } } }JIT mode is enabled by setting mode to 'jit'. The font family name must match the font-face name exactly, which is 'MyFont'.
Fill all three blanks to complete the CSS @font-face rule with font-family, font-weight, and src.
@font-face { font-family: '[1]'; font-weight: [2]; src: url('[3]'); }The font-family must match the custom font name. The font-weight is numeric for normal weight, and the src is the relative path to the font file.