[Tailwind] Control What Variations are Generated for Each Utility Class Module in Tailwind
for in Class module Control are What each
2023-09-14 08:59:17 时间
In this lesson, we learn how to control what utility classes are generated for each utility class module. We look at how we can “opt-in” for responsive variations, as well as different states like hover and focus.
In tailwind.js: you need to add:
modules: {
...
borderColors: ['responsive', 'hover', 'focus'],
}
Then you able use focus: class
<section> <input type="text" class="p-2 mb-2 rounded-sm border-2 border-grey focus:border-red-dark" placeholder="Your name..."> <input type="text" class="p-2 mb-2 rounded-sm border-2 border-grey focus:border-purple-dark" placeholder="Your name..."> <input type="text" class="p-2 mb-2 rounded-sm border-2 border-grey focus:border-purple-dark" placeholder="Your name..."> </section>
相关文章
- 解决MyBatis的报错 There is no getter for property named ‘*‘ in ‘class java.lang.String‘
- 【阅读笔记】低照度图像增强-《Fast efficient algorithm for enhancement of low lighting video》
- Hype 4 Pro for Mac(HTML5动画制作软件) v4.1.12中文版
- Linux操作系统shell脚本for循环示例
- Super PhotoCut Pro for Mac(超级抠图专业版)v2.8.8激活版
- 统计机器学习方法 for NLP:基于CRF的词性标注
- Trapcode Particular for Mac(AE 3D粒子系统插件)
- ORA-25254: time-out in LISTEN while waiting for a message ORACLE 报错 故障修复 远程处理
- ORA-27432: step string does not exist for chain string.string ORACLE 报错 故障修复 远程处理
- ORA-28387: Could not acquire an enqueue for wallet operation in Oracle RAC ORACLE 报错 故障修复 远程处理
- ORA-03131: an invalid buffer was provided for the next piece ORACLE 报错 故障修复 远程处理
- ORA-13400: duplicate entry for string in USER_SDO_GEOR_SYSDATA view ORACLE 报错 故障修复 远程处理
- ORA-14221: Dictionary managed tablespace cannot be used for this operation ORACLE 报错 故障修复 远程处理
- ORA-15299: FINE striping not allowed for the Staleness Registry ORACLE 报错 故障修复 远程处理
- ORA-15702: duplicate values for plan line ID in input collection ORACLE 报错 故障修复 远程处理
- Oracle 参数 APPROX_FOR_PERCENTILE 官方解释,作用,如何配置最优化建议
- MySQL查询优化:从IN中获取更高性能(mysql查询优化in)
- MSSQL条件查询IN机制优化技巧(mssql条件查询in)
- MySQL中IN语句的限制详解(mysql中in的限制)
- 深入分析MySQL中IN语句的性能问题(mysql中in性能分析)
- MySQL实现不在某个范围内的查询当字段不在给定值列表中时,使用NOT IN语法(mysql 不in)
- 查询Oracle中使用IN关键字查询多个值的方法(oracle中in多个值)
- Oracle中IN与OR运算实现多条件查询的最佳选择(oracle中in与or)
- 利用Oracle中的If In语句减少数据处理时间(oracle中if in)