源代码:
下载代码
AI 编程工具
点击运行
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://cdn.tailwindcss.com"></script> <script> tailwind.config = { theme: { extend: { colors: { brand: { light: '#93C5FD', DEFAULT: '#3B82F6', dark: '#1E40AF', }, }, }, }, }; </script> </head> <body> <div class="bg-brand text-brand-light">Custom Colors Example</div> </body> </html>
运行结果: