module.exports = {
  purge: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {
      mkder: "'Caviar Dreams'",
    },
  },
  variants: {
    extend: {},
  },
  plugins: [],
}
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base{
    @font-face {
        font-family: 'Caviar Dreams';
        font-weight: bold;
        font-style: normal;
        src: url("/public/fonts/CaviarDreams-Bold.woff2") format("woff2"),
        url("/public/fonts/CaviarDreams-Bold.woff") format("woff");
    }
}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/build/styles.css">
    <title>Document</title>
</head>
<body>
    <p class="font-mkder bg-green-400">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod, nisi incidunt? A sunt fugiat repellendus est molestiae, adipisci similique? Nam.</p>
</body>
</html>
How can use (WOFF) & ( woff2) font file in the tailwind project? If anyone worked with custom font please help. I already declared @font-face in my styles.css also extended the new font name. But it's not working. Screenshots are given below.
