chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.5.0 Latest 5 packages
0
0
<script lang="ts">
import { swatch, type Palette } from '../theme';
/** A palette in small: a tile in its background, inside its border, on its canvas, a line of its text and a dot of its accent. Beside its name, so drawn for the eye alone. */
let { palette }: { palette: Palette } = $props();
</script>
<span class="swatch" style={swatch(palette)} aria-hidden="true">
<span class="tile">
<span class="text"></span>
<span class="accent"></span>
</span>
</span>
<style>
.swatch {
display: inline-grid;
flex: none;
place-items: center;
width: var(--swatch);
border: var(--border);
border-color: var(--line-strong);
border-radius: var(--radius-sm);
background: var(--swatch-canvas);
}
.tile {
display: flex;
align-items: center;
gap: var(--space-0-5);
height: var(--space-2-5);
padding: 0 var(--space-0-5);
border-radius: var(--radius-xs);
background: var(--swatch-tile);
border: var(--border);
border-color: var(--swatch-edge);
}
.text {
width: var(--space-2);
height: var(--space-0-5);
background: var(--swatch-text);
}
.accent {
width: var(--space-1);
height: var(--space-1);
border-radius: var(--radius-full);
background: var(--swatch-accent);
}
</style>