Merge remote-tracking branch 'origin/v3' into feat/detect-theme-hash

This commit is contained in:
HugoRCD
2025-02-15 19:03:30 +01:00
17 changed files with 574 additions and 138 deletions

View File

@@ -10,6 +10,7 @@ const props = withDefaults(defineProps<{
function getEmojiFlag(locale: string): string {
const languageToCountry: Record<string, string> = {
ar: 'sa',
bn: 'bd',
cs: 'cz',
da: 'dk',
el: 'gr',

View File

@@ -140,7 +140,7 @@ function setBlackAsPrimary(value: boolean) {
Theme
</legend>
<div class="flex gap-1 -mx-2">
<div class="grid grid-cols-3 gap-1 -mx-2">
<ThemePickerButton
v-for="m in modes"
:key="m.label"

View File

@@ -11,15 +11,16 @@ defineProps<{
<UButton
size="sm"
color="neutral"
variant="outline"
:icon="icon"
:label="label"
:variant="selected ? 'soft' : 'outline'"
class="capitalize ring-(--ui-border) rounded-(--ui-radius) text-[11px]"
class="capitalize ring-(--ui-border) rounded-[calc(var(--ui-radius))] text-[11px]"
:class="[selected ? 'bg-(--ui-bg-elevated)' : 'hover:bg-(--ui-bg-elevated)/50']"
>
<template v-if="chip" #leading>
<slot name="leading">
<span
class="inline-block w-2 h-2 rounded-full"
class="inline-block size-2 rounded-full"
:class="`bg-(--color-light) dark:bg-(--color-dark)`"
:style="{
'--color-light': `var(--color-${chip}-500)`,