{* SPDX-FileCopyrightText: © 2021 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{- block title() -}}Colors{{- end -}} {{- block colorBlock(style, name, class="flex flex-col items-center") -}}
{{ yield content }}
{{ name }}
{{- end -}} {{ block mainContent() }} {{- scale := slice("-50", "-100", "-200", "-300", "-400", "-500", "-600", "-700", "-800", "-900", "-950") -}} {{- colors := slice( slice("app", slice("-bg", "-fg")), slice("primary", slice("-light", "", "-dark")), slice("gray", scale), slice("blue", scale), slice("yellow", scale), slice("red", scale), slice("green", scale), slice("hl", slice("-yellow", "-yellow-dark")) ) -}}

Colors

Backgrounds

{{- range _, color := colors -}}
{{- range color[1] -}} {{- yield colorBlock(style="cookbook-bg-" + color[0] + ., name=color[0] + .) -}} {{- end -}}
{{- end -}}

Borders

{{- range _, color := colors -}}
{{- range color[1] -}} {{- yield colorBlock(style="cookbook-border-" + color[0] + ., name=color[0] + .) -}} {{- end -}}
{{- end -}}

Text

{{- range _, color := colors -}}
{{- range color[1] -}} {{- yield colorBlock( style="cookbook-text-" + color[0] + ., name=color[0] + ., name=color[0] + ., class="flex flex-col items-center justify-center border rounded py-2" ) content -}} Aa {{- end -}} {{- end -}}
{{- end -}} {{ end }}