[Tailwind] Transitioning Rounded Corners using the JIT Compiler
Tailwind CSS v2.1 introduces a new just-in-time compiler for Tailwind that generates your styles on-demand as you author your templates, instead of generating everything in advance at initial build time. In this lesson, we'll review how to transition rounded courses using the JIT Compiler.
The code for this lesson is divided into two sections, with this you can see the progress on the code.
<div key={i} className="bg-gray-700 hover:bg-brand text-gray-100 hover:text-white rounded-3xl hover:rounded-2xl w-12 h-12 flex justify-center items-center transition-all duration-200" > <DiscordIcon className="h-5 w-7" /> </div>
tailwind.config.js
module.exports = { // These paths are just examples, customize them to match your project structure purge: [ "./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}", "./pages/**/*.{js,ts,jsx,tsx}", ], mode: "jit", }
分类:
CSS3
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
2021-01-18 [Java] Stream Sort
2021-01-18 [Algorithm] Flowerbox: Dynamic programming
2021-01-18 [CSS 3] Overflow & sticky problem
2021-01-18 [Algorithm] Bottom-up Dynamic programming approch
2020-01-18 [XState] Use an Interpreter to Instantiate a Machine
2020-01-18 [XState] Replace Enumerated States with a State Machine
2020-01-18 [Javascript] Eliminate Boolean Explosion by Enumerating States