mirror of
https://github.com/avinal/box-box.git
synced 2026-01-11 22:18:33 +05:30
update theme colors
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{{- $color := (index (shuffle (slice "cyan" "teal" "pink" "rose" "fuchsia" "purple" "violet" "indigo" "emerald" "yellow" "amber" "red")) 0) }}
|
||||
<div
|
||||
class="relative overflow-auto px-4 ring-1 ring-gray-800 mt-5 text-center text-light text-gray-500 hover:text-black hover:bg-{{ $color }}-400 dark:text-gray-200 dark:ring-white dark:hover:ring-black"
|
||||
class="relative overflow-auto px-4 ring-1 ring-gray-800 mt-5 text-center text-light text-gray-500 hover:text-black hover:bg-{{ $color }}-400 dark:text-gray-200 dark:ring-white dark:hover:ring-black dark:hover:bg-{{ $color }}"
|
||||
>
|
||||
<span
|
||||
><a href="https://github.com/avinal/box-box">Box Box</a> | A
|
||||
|
||||
@@ -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" onclick="toggleTheme()">
|
||||
<div class="py-4 ring-white">
|
||||
<h1
|
||||
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"
|
||||
class="text-2xl font-bold font-mono text-white cursor-default"
|
||||
>
|
||||
{{ site.Title }}
|
||||
</h1>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
{{- $classes = (printf "%s %s" $classes "bg-black text-white active dark:text-black dark:bg-white") }}
|
||||
{{- $attrs = merge $attrs (dict "aria-current" "page") }}
|
||||
{{- else }}
|
||||
{{- $classes = (printf "%s %s hover:bg-%s-400" $classes "bg-white text-black dark:text-white dark:hover:text-black dark:hover:border-black dark:bg-neutral-900 ancestor" $color) }}
|
||||
{{- $classes = (printf "%s %s hover:bg-%s-400" $classes "bg-black text-white ancestor hover:text-black" $color) }}
|
||||
{{- $attrs = merge $attrs (dict "aria-current" "true") }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user