refactor: restyle command palette via tokens

This commit is contained in:
Shantur Rathore
2025-10-28 20:06:38 +00:00
parent a01b9b79ac
commit 176a227103
5 changed files with 114 additions and 59 deletions

View File

@@ -36,13 +36,11 @@ const Kbd: Component<KbdProps> = (props) => {
}
return (
<kbd
class={`font-mono bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-xs inline-flex items-center gap-0.5 ${props.class || ""}`}
>
<kbd class={`kbd ${props.class || ""}`}>
<For each={parts()}>
{(part, index) => (
<>
{index() > 0 && <span class="opacity-50">+</span>}
{index() > 0 && <span class="kbd-separator">+</span>}
<span>{part.text}</span>
</>
)}