Update link.ftl

Made template dark mode ready
This commit is contained in:
CN 2024-01-04 10:48:40 +01:00 committed by GitHub
parent 8bc9dc708d
commit 128003d3bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,19 @@
<#macro kw color="" component="a" size="" rest...>
<#switch color>
<#case "primary">
<#assign colorClass="text-primary-600 hover:text-primary-500">
<#assign colorClass="text-primary-600 dark:text-primary-400 hover:text-primary-500">
<#break>
<#case "secondary">
<#assign colorClass="text-secondary-600 hover:text-secondary-900">
<#assign colorClass="text-secondary-600 dark:text-secondary-400 hover:text-secondary-900">
<#break>
<#case "secondary-2">
<#assign colorClass="text-secondary-600 dark:text-secondary-400 hover:text-secondary-900 dark:hover:text-secondary-600">
<#break>
<#case "secondary-3">
<#assign colorClass="text-secondary-600 dark:text-secondary-400 hover:text-secondary-900 dark:hover:text-secondary-200">
<#break>
<#default>
<#assign colorClass="text-primary-600 hover:text-primary-500">
<#assign colorClass="text-primary-600 dark:text-primary-400 hover:text-primary-500">
</#switch>
<#switch size>