A file lock waits out Windows removing the previous holder's lock; the site's header fits one row on a phone, the tools page draws its claims, and the README opens on the wordmark
- On Windows a lock directory being removed answers access denied, not already exists, so a second writer, such as two MCP servers signing in at once, failed instead of waiting. - The header is Docs, Tools and the GitHub mark, one row down to 320px; /themes folds into the homepage's gallery and redirects there. - The tools page has a terminal of measured rows beside its intro and a chart of whole-task cost against Luxe's 1x beside its table; Pi leaves the comparison. - The README opens on a generated wordmark banner that carries its own colors.
This commit is contained in:
@@ -26,8 +26,6 @@
|
||||
palette: Record<string, Record<string, string>>;
|
||||
/** The variable the preview paints its canvas with, so the frame around it matches. */
|
||||
canvas: string;
|
||||
/** List every token with its value under the preview. */
|
||||
swatches?: boolean;
|
||||
/** Take turns through the themes on a timer. */
|
||||
cycle?: boolean;
|
||||
/** Put the theme chips under the picture rather than over it. */
|
||||
@@ -39,7 +37,6 @@
|
||||
themes,
|
||||
palette,
|
||||
canvas,
|
||||
swatches = false,
|
||||
cycle = false,
|
||||
chipsBelow = false,
|
||||
children,
|
||||
@@ -93,7 +90,6 @@
|
||||
});
|
||||
|
||||
const showing = $derived(pointed ?? pinned);
|
||||
const tokens = $derived(themes[showing] ?? {});
|
||||
|
||||
/** The preview's palette, as inline custom properties on its frame. */
|
||||
const style = $derived(
|
||||
@@ -154,17 +150,6 @@
|
||||
{@render chips()}
|
||||
{/if}
|
||||
|
||||
{#if swatches}
|
||||
<dl class="swatches">
|
||||
{#each Object.entries(tokens) as [name, hex] (name)}
|
||||
<div class="swatch">
|
||||
<span class="swatch__chip" style={`background: ${hex}`}></span>
|
||||
<dt>{name}</dt>
|
||||
<dd>{hex}</dd>
|
||||
</div>
|
||||
{/each}
|
||||
</dl>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
@@ -241,38 +226,6 @@
|
||||
stroke 180ms ease;
|
||||
}
|
||||
|
||||
.swatches {
|
||||
display: grid;
|
||||
padding-bottom: var(--space-2);
|
||||
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
||||
gap: var(--space-1) var(--space-3);
|
||||
margin: 0;
|
||||
font-size: var(--step--2);
|
||||
}
|
||||
|
||||
.swatch {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6em;
|
||||
}
|
||||
|
||||
.swatch__chip {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
border: 1px solid var(--luxe-border);
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.swatch dt {
|
||||
color: var(--luxe-text);
|
||||
}
|
||||
|
||||
.swatch dd {
|
||||
margin: 0;
|
||||
color: var(--luxe-muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.chip,
|
||||
.preview__frame,
|
||||
|
||||
@@ -12,14 +12,12 @@ import palette from "../assets/generated/theme-preview.json";
|
||||
import catalog from "../assets/generated/themes.json";
|
||||
|
||||
interface Props {
|
||||
/** List every token of the theme on show, for the page that is about the palettes. */
|
||||
swatches?: boolean;
|
||||
/** Take turns through the themes on their own. */
|
||||
cycle?: boolean;
|
||||
/** Put the theme chips under the picture, where they read better on a narrow screen. */
|
||||
chipsBelow?: boolean;
|
||||
}
|
||||
const { swatches = false, cycle = false, chipsBelow = false } = Astro.props;
|
||||
const { cycle = false, chipsBelow = false } = Astro.props;
|
||||
|
||||
// The frame around the picture wears the picture's own canvas, which is its first rectangle
|
||||
const canvas = svg.match(/^<svg[^>]*>\s*<rect [^>]*fill="var\(--(p\d+),/)?.[1];
|
||||
@@ -31,7 +29,6 @@ if (!canvas) throw new Error("theme-preview.svg has no canvas variable — run s
|
||||
themes={catalog as Record<string, Record<string, string>>}
|
||||
{palette}
|
||||
{canvas}
|
||||
{swatches}
|
||||
{cycle}
|
||||
{chipsBelow}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user