~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
25 lines · 985 B Raw History
<script lang="ts">
	// A label on a pull or an issue, as knotless's pages draw one: its name in
	// the text's colour on a pale tint of its `color` (a `#rrggbb`), edged in
	// a stronger one; without a colour, in the quiet tone. Its `description`
	// is its title. The tree's Label draws it.
	let { name, color, description }: { name: string; color: string | null; description: string | null } = $props();
</script>

<span class="label" style:--label={color} title={description}>{name}</span>

<style>
	.label {
		--label: var(--color-text-tertiary);
		display: inline-block;
		padding: 0 var(--hud-space-2);
		border: var(--border-width-regular) solid color-mix(in srgb, var(--label) 55%, transparent);
		border-radius: var(--border-radius-full);
		background: color-mix(in srgb, var(--label) 18%, transparent);
		color: var(--color-text-primary);
		font-size: var(--font-text-xs-size);
		font-weight: var(--font-weight-medium);
		line-height: 1.6;
		white-space: nowrap;
	}
</style>