📜  在 tailwind css 代码示例中添加新类

📅  最后修改于: 2022-03-11 14:47:53.002000             🧑  作者: Mango

代码示例1
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .btn-blue {
    @apply py-2 px-4 bg-blue-500 text-white font-semibold rounded-lg shadow-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75;
  }
}