Files
zeekay 4620297b84 chore(layout): rename code/ → pkgs/ + apps/ + templates/ for cross-repo consistency
Match the layout convention used elsewhere in the Hanzo / Liquidity stack
(pkgs/* for libraries, apps/* for consumer apps, templates/* for starters).

Layout changes:
  pkgs/    ← code/{compiler,core,packages,ui,ui-admin}/
  apps/    ← code/{admin-base,admin-tasks,demos,gui.hanzo.ai,
              kitchen-sink*,sandbox,tests}/
  templates/  ← code/starters/* (flattened — no more starters/ subdir)

Updated:
- package.json workspaces glob.
- All scripts/* path references (postinstall, format, repair, release,
  sync-gui-versions, ci-serve, check-references, etc).
- ../../tasks/scripts/sync-admin-ui.sh — DEFAULT_SRC now points at
  ../gui/apps/admin-tasks (and scrubbed Tamagui mentions in comments).
- ~/work/hanzo/HANZO_BINARY.md doctrine doc.
- ~/work/hanzo/ui/pkg/ui/BASES.md framework-bases doc.
- gui CLAUDE.md, CONTRIBUTING.md.
- Memory entries.

Side-effect fix: ui-admin/src/primitives/index.ts now re-exports
PageShell from ../shell/PageShell. Several IAM identity pages
(GroupEdit, OrgEdit, GroupTree, UserEdit, RoleEdit) imported PageShell
from ./primitives — pre-existing barrel mismatch the test suite missed
because the smoke tests don't full-render. The rename surfaced it via
production build; back-compat re-export keeps both barrels working.

Verification:
- bun install: clean.
- ui-admin tests: 127/127 green.
- admin-tasks vite build: 721 KB JS / 213 KB gzip + 10 KB CSS, clean.
2026-04-27 14:33:21 -07:00

75 lines
2.0 KiB
TypeScript

import type { BuildPalette } from '@hanzogui/theme-builder'
const defaultBasePaletteAnchors: BuildPalette['anchors'] = [
{
index: 0,
hue: { sync: true, light: 100, dark: 100 },
sat: { sync: true, light: 0, dark: 0 },
lum: { light: 0.985, dark: 0.1 },
alpha: { light: 1, dark: 1 },
},
{
index: 9,
hue: { syncLeft: true, sync: true, light: 100, dark: 100 },
sat: { syncLeft: true, sync: true, light: 0, dark: 0 },
lum: { light: 0.5, dark: 0.5 },
alpha: { light: 1, dark: 1 },
},
{
index: 10,
hue: { sync: true, light: 100, dark: 100 },
sat: { sync: true, light: 0, dark: 0 },
lum: { light: 0.15, dark: 0.925 },
alpha: { light: 1, dark: 1 },
},
{
index: 11,
hue: { syncLeft: true, sync: true, light: 100, dark: 100 },
sat: { syncLeft: true, sync: true, light: 0, dark: 0 },
lum: { light: 0.1, dark: 0.95 },
alpha: { light: 1, dark: 1 },
},
]
const defaultAccentPaletteAnchors: BuildPalette['anchors'] = [
{
index: 0,
hue: { sync: true, light: 200, dark: 200 },
sat: { sync: true, light: 0.75, dark: 0.75 },
lum: { light: 0.4, dark: 0.35 },
alpha: { light: 1, dark: 1 },
},
{
index: 9,
hue: { syncLeft: true, sync: true, light: 200, dark: 200 },
sat: { syncLeft: true, sync: true, light: 0.75, dark: 0.75 },
lum: { light: 0.55, dark: 0.5 },
alpha: { light: 1, dark: 1 },
},
{
index: 10,
hue: { sync: true, light: 200, dark: 200 },
sat: { sync: true, light: 0.75, dark: 0.75 },
lum: { light: 0.95, dark: 0.9 },
alpha: { light: 1, dark: 1 },
},
{
index: 11,
hue: { syncLeft: true, sync: true, light: 200, dark: 200 },
sat: { syncLeft: true, sync: true, light: 0.75, dark: 0.75 },
lum: { light: 0.95, dark: 0.95 },
alpha: { light: 1, dark: 1 },
},
]
export const defaultPalettes = {
base: {
name: 'base',
anchors: defaultBasePaletteAnchors,
},
accent: {
name: 'accent',
anchors: defaultAccentPaletteAnchors,
},
}