Skip to main content

component

TuxCommandPalette

Command Palette 2.0 (⌘K). High-productivity search input with instant design token inspector, quick system actions, live color swatches, filter tabs, and fuzzy component census jump. Built on the native <dialog> element for zero-JS browser focus traps and accessibility.

Live Component Playground

TuxCommandPalette Workbench

(press CtrlK anywhere for global shell palette)
Esc
  • Toggle dark modeTheme
    Flip between light + dark palettes
    ⌘ ⇧ D
  • Copy current URLShare
    Share a deep link to this page
    Copy
  • --brand-primarybrand
    #5C0025 · Primary brand action fill
    Copy
  • --brand-accentsemantic
    #DDAC37 · Signature ochre gold accent
    Copy
  • --status-okops
    #258818 · Normal operational telemetry state
    Copy
  • TuxButtonactions
    Primary interactive buttons
  • TuxCardpublishing
    Branded content slabs and interactive links
  • TuxAlertfeedback
    Docusaurus-style admonitions and callouts
  • Tokens CatalogDoc
    Every color, shadow, and radius token
  • ADR-0012: Cross-Framework DistributionADR
    Web components and framework packaging
Properties Inspector4 configurable knobs
Input Placeholderplaceholder
Default Filter TabdefaultTab
Show Filter TabsshowTabs
true
Trigger Hotkeyhotkey
Dynamic Component Syntax
<tux-command-palette placeholder="Type a command, token (--), component (@), or search…" defaultTab="all" showTabs hotkey="k" />

productivity

Instant Filter Prefixes

Users can jump straight into specific subsystems simply by typing a single lead character:

>Quick Actions

Type > to filter to system commands, theme toggles, and framework switches.

--Design Tokens

Type -- or token: to inspect color swatches, roles, and copy CSS variables.

@Component Lab

Type @ or comp: to search across all 150+ catalogued TUX components.

#Documentation

Type # or doc: to search design doctrines, ADR records, and guides.

architecture

Why native <dialog>

The browser natively provides modal focus trapping, ESC-to-close behavior, inert backdrop rendering, and proper accessibility roles when using showModal(). The TUX command palette builds upon this native standard, adding reactive keyboard list traversal, token swatch previewing, and non-intrusive toast integration.

<script setup>
import { ref } from "vue";

const paletteRef = ref(null);
const groups = [
  {
    heading: "⚡ Actions",
    category: "actions",
    items: [
      { id: "act-theme", label: "Toggle Dark Mode", action: () => toggleTheme() }
    ]
  },
  {
    heading: "🎨 Design Tokens",
    category: "tokens",
    items: [
      { id: "tok-primary", label: "--brand-primary", tokenValue: "#5C0025", isColor: true, copyText: "var(--brand-primary)" }
    ]
  }
];
</script>

<template>
  <TuxCommandPalette ref="paletteRef" :groups="groups" />
  <TuxButton @click="paletteRef.open()">Quick Search</TuxButton>
</template>