Update button.ftl

Made template dark mode ready
This commit is contained in:
CN 2024-01-04 10:43:27 +01:00 committed by GitHub
parent 28e4913451
commit af9d0cf302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>