mirror of
https://github.com/avinal/box-box.git
synced 2026-01-11 14:08:32 +05:30
feat: add automatic dark mode tailwind classes
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{{- $color := (index (shuffle (slice "cyan" "teal" "pink" "rose" "fuchsia" "purple" "violet" "indigo" "emerald" "yellow" "amber" "red")) 0) }}
|
||||
<div class="py-4">
|
||||
<div class="py-4" onclick="toggleTheme()">
|
||||
<h1
|
||||
class="text-xl font-bold font-mono bg-gradient-to-r to-black hover:to-{{ $color }}-400 from-white"
|
||||
class="text-2xl font-bold font-mono bg-gradient-to-r to-black hover:to-{{ $color }}-400 from-white dark:text-white dark:to-white dark:from-neutral-900 cursor-default"
|
||||
>
|
||||
{{ site.Title }}
|
||||
</h1>
|
||||
|
||||
Reference in New Issue
Block a user