A second chrome, chosen by odf-editor-chrome and switchable from either side so the two can be compared. The shell only — tab strip, File menu, quick-access save/undo/redo; the tab bodies follow. The classic island stays untouched. Word's palette lives in --w-* outside the theme blocks, and .ribbon remaps the app's own tokens onto it, so a reused picker adopts the ribbon's look without an edit of its own.
24 lines
679 B
Svelte
24 lines
679 B
Svelte
<script lang="ts">
|
|
import { STROKED, FILLED, pinnedStroke, type IconName } from './icons';
|
|
|
|
let { name, size = 20 }: { name: IconName; size?: number } = $props();
|
|
|
|
let stroked = $derived((STROKED as Record<string, readonly string[]>)[name] ?? []);
|
|
let filled = $derived((FILLED as Record<string, readonly string[]>)[name] ?? []);
|
|
</script>
|
|
|
|
<svg
|
|
width={size}
|
|
height={size}
|
|
viewBox="0 0 16 16"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
stroke-width={pinnedStroke(size)}
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
aria-hidden="true"
|
|
>
|
|
{#each stroked as d}<path {d} />{/each}
|
|
{#each filled as d}<path {d} fill="currentColor" stroke="none" />{/each}
|
|
</svg>
|