Files
zeekay 1b367e2b62 chore: rebase the tree onto upstream master
The tree was a debranded snapshot of upstream taken around 2026-02-20, and
upstream has moved about five months since. This replaces it with upstream
master, mechanically re-derived: bin/debrand does the rename, and the
pipeline and squashed migrations are restored from the shipped tree.

Not a merge. The previous import replaced the tree wholesale in a single
commit, so there is no shared content history to merge against. Reproducing
the rename on the new tree is what actually converges.

What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints,
compose files, LLM.md, and insights/migrations. The squashed initial
migration is load-bearing — the live database records it by name, so
upstream's ~918 individual migrations cannot come back.

Nine products are dropped as unreferenced. Twenty-one more that we do not run
are kept anyway because the core app still imports them; unpicking those is a
refactor and does not belong in a rebase.

This base does not build yet, and the reasons are not in the rename:
upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against
our 4.2, and the dependency manifests still name upstream packages that we
republish under our own names. Those are decisions, not renames.
2026-08-01 15:44:40 -07:00

62 lines
2.2 KiB
TypeScript

import type { Meta, StoryObj } from '@storybook/react'
import { shadow } from '@hanzo/quill-tokens'
const meta = {
title: 'Tokens/Shadows',
tags: ['autodocs'],
} satisfies Meta
export default meta
type Story = StoryObj<typeof meta>
type ShadowKey = keyof typeof shadow
// Static map so Tailwind's class scanner sees each utility as a literal
// string — template-string concatenation (`shadow-${name}`) is not picked
// up by the JIT compiler and would render with no shadow.
const shadowClass: Record<ShadowKey, string> = {
sm: 'shadow-sm',
md: 'shadow-md',
lg: 'shadow-lg',
}
const shadowOrder: ShadowKey[] = ['sm', 'md', 'lg']
function ShadowSwatch({ name }: { name: ShadowKey }): React.ReactElement {
const value = shadow[name]
return (
<div className="flex gap-4 items-center">
<div
className={`size-24 rounded-md bg-card border border-border ${shadowClass[name]} flex items-center justify-center`}
>
<span className="text-xs text-muted-foreground font-mono">shadow-{name}</span>
</div>
<div className="flex flex-col">
<span className="font-medium">{name}</span>
<span className="text-xs text-muted-foreground font-mono">.shadow-{name}</span>
<span className="text-xs text-muted-foreground font-mono break-all max-w-md">{value}</span>
</div>
</div>
)
}
export const AllShadows: Story = {
render: () => (
<div className="space-y-8 p-8">
<div>
<p className="text-sm text-muted-foreground">
Shadow tokens from <code className="text-xs">@hanzo/quill-tokens</code>. Toggle the theme in the
toolbar to check that every shadow resolves correctly in both light and dark mode — no dangling{' '}
<code className="text-xs">var(--*)</code> references should fall back to transparent.
</p>
</div>
<div className="flex flex-col gap-8">
{shadowOrder.map((name) => (
<ShadowSwatch key={name} name={name} />
))}
</div>
</div>
),
}