mirror of
https://github.com/lukin/keywind.git
synced 2025-01-10 18:06:23 +00:00
Update button.ftl
Made template dark mode ready
This commit is contained in:
parent
28e4913451
commit
af9d0cf302
1 changed files with 3 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
<#macro kw color="" component="button" size="" rest...>
|
||||
<#switch color>
|
||||
<#case "primary">
|
||||
<#assign colorClass="bg-primary-600 text-white focus:ring-primary-600 hover:bg-primary-700">
|
||||
<#assign colorClass="bg-primary-600 text-white dark:text-secondary-100 focus:ring-primary-600 hover:bg-primary-700">
|
||||
<#break>
|
||||
<#case "secondary">
|
||||
<#assign colorClass="bg-secondary-100 text-secondary-600 focus:ring-secondary-600 hover:bg-secondary-200 hover:text-secondary-900">
|
||||
<#assign colorClass="bg-secondary-100 dark:bg-secondary-800 text-secondary-600 dark:text-secondary-100 focus:ring-secondary-600 hover:bg-secondary-200 dark:hover:bg-secondary-900 hover:text-secondary-900 dark:hover:text-secondary-100">
|
||||
<#break>
|
||||
<#default>
|
||||
<#assign colorClass="bg-primary-600 text-white focus:ring-primary-600 hover:bg-primary-700">
|
||||
<#assign colorClass="bg-primary-600 text-white dark:text-secondary-100 focus:ring-primary-600 hover:bg-primary-700">
|
||||
</#switch>
|
||||
|
||||
<#switch size>
|
||||
|
|
Loading…
Reference in a new issue