tailwindcss之样式自定义:
@tailwind base;
@tailwind components;
@tailwind utilities;
主要两种方法:
①在css下定义
②在plugins下定义(tailwind.config.js里)
以上三层的使用场景详细文档:
https://tailwindcss.com/docs/adding-custom-styles#using-css-and-layer
https://tailwindcss.com/docs/functions-and-directives
补充一个,关于tailwindcss的事件触发效果: https://tailwindcss.com/docs/hover-focus-and-other-states
