@codewizard-dt/bootstrap 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build.yml +88 -0
- package/.github/workflows/security.yml +24 -0
- package/.gitleaks.toml +15 -0
- package/README.md +472 -0
- package/bin/cli.js +47 -0
- package/lib/README.md +27 -0
- package/lib/hooks/README.md +316 -0
- package/lib/hooks/env-file-guard.js +45 -0
- package/lib/hooks/git-protected-ops-block.js +77 -0
- package/lib/hooks/lib/serena-languages.js +158 -0
- package/lib/hooks/lib/serena.js +787 -0
- package/lib/hooks/mv-absolute-path-block.js +53 -0
- package/lib/hooks/serena-bash-grep-block.js +501 -0
- package/lib/hooks/serena-edit-guard.js +74 -0
- package/lib/hooks/serena-first-glob-guard.js +94 -0
- package/lib/hooks/serena-first-guard.js +74 -0
- package/lib/hooks/serena-first-read-guard.js +167 -0
- package/lib/hooks/serena-pre-delegation.js +117 -0
- package/lib/hooks/serena-session-reset.js +45 -0
- package/lib/hooks/serena-usage-tracker.js +186 -0
- package/lib/hooks/serena-write-guard.js +58 -0
- package/lib/prompts/README.md +16 -0
- package/lib/prompts/migrate-wiki.md +111 -0
- package/lib/prompts/setup-deployment.md +322 -0
- package/lib/prompts/setup-design-system.md +162 -0
- package/lib/prompts/setup-strict-typechecks.md +139 -0
- package/lib/scripts/README.md +49 -0
- package/lib/scripts/bootstrap-serena.sh +145 -0
- package/lib/scripts/build-mcp-guide.sh +108 -0
- package/lib/scripts/install-global.sh +78 -0
- package/lib/scripts/install-mcps.sh +131 -0
- package/lib/scripts/lib.sh +154 -0
- package/lib/scripts/merge-gitignore.sh +65 -0
- package/lib/scripts/migrate-project.sh +273 -0
- package/lib/scripts/setup-deployment.sh +104 -0
- package/lib/scripts/setup-project.sh +55 -0
- package/lib/scripts/setup-runner.sh +99 -0
- package/lib/scripts/setup-strict-typechecks.sh +29 -0
- package/lib/scripts/startup.sh +42 -0
- package/lib/scripts/sync-wiki-scaffold.sh +104 -0
- package/lib/scripts/templates/CLAUDE-env-safety.md +3 -0
- package/lib/scripts/templates/CLAUDE-wiki.md +60 -0
- package/lib/scripts/templates/gitignore +136 -0
- package/lib/scripts/templates/guides/stubs/00-header.md +15 -0
- package/lib/scripts/templates/guides/stubs/brave-search.md +20 -0
- package/lib/scripts/templates/guides/stubs/context7.md +26 -0
- package/lib/scripts/templates/guides/stubs/playwright.md +26 -0
- package/lib/scripts/templates/guides/stubs/serena.md +219 -0
- package/lib/scripts/templates/wiki/conventions.md +100 -0
- package/lib/scripts/templates/wiki/dashboard.html +1733 -0
- package/lib/scripts/templates/wiki/hot.md +21 -0
- package/lib/scripts/templates/wiki/index.md +46 -0
- package/lib/scripts/templates/wiki/knowledge/concepts/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/knowledge/entities/components/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/knowledge/entities/organisations/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/knowledge/entities/people/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/knowledge/entities/tools/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/knowledge/sources/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/log.md +14 -0
- package/lib/scripts/templates/wiki/work/bugs/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/work/bugs/archive/index.md +6 -0
- package/lib/scripts/templates/wiki/work/bugs/index.md +12 -0
- package/lib/scripts/templates/wiki/work/bugs/lifecycle.md +39 -0
- package/lib/scripts/templates/wiki/work/decisions/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/work/decisions/archive/index.md +6 -0
- package/lib/scripts/templates/wiki/work/decisions/index.md +12 -0
- package/lib/scripts/templates/wiki/work/decisions/lifecycle.md +42 -0
- package/lib/scripts/templates/wiki/work/requirements/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/work/requirements/archive/index.md +6 -0
- package/lib/scripts/templates/wiki/work/requirements/index.md +12 -0
- package/lib/scripts/templates/wiki/work/requirements/lifecycle.md +34 -0
- package/lib/scripts/templates/wiki/work/roadmaps/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/work/roadmaps/archive/index.md +6 -0
- package/lib/scripts/templates/wiki/work/roadmaps/index.md +12 -0
- package/lib/scripts/templates/wiki/work/roadmaps/lifecycle.md +32 -0
- package/lib/scripts/templates/wiki/work/tasks/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/work/tasks/archive/index.md +6 -0
- package/lib/scripts/templates/wiki/work/tasks/index.md +12 -0
- package/lib/scripts/templates/wiki/work/tasks/lifecycle.md +39 -0
- package/lib/scripts/templates/wiki/work/uat/.gitkeep +0 -0
- package/lib/scripts/templates/wiki/work/uat/archive/index.md +6 -0
- package/lib/scripts/templates/wiki/work/uat/index.md +12 -0
- package/lib/scripts/templates/wiki/work/uat/lifecycle.md +48 -0
- package/lib/scripts/templates/wiki/work/uat/screenshots/.gitkeep +0 -0
- package/lib/scripts/update-project.sh +75 -0
- package/lib/scripts/wiki-dashboard-server.js +146 -0
- package/lib/skills/README.md +146 -0
- package/lib/skills/anti-slop/SKILL.md +183 -0
- package/lib/skills/bug-close/SKILL.md +136 -0
- package/lib/skills/bug-file/SKILL.md +114 -0
- package/lib/skills/bug-triage/SKILL.md +140 -0
- package/lib/skills/company-align/SKILL.md +203 -0
- package/lib/skills/debug-logs/SKILL.md +129 -0
- package/lib/skills/decision-create/SKILL.md +220 -0
- package/lib/skills/decision-finalize/SKILL.md +181 -0
- package/lib/skills/decision-next/SKILL.md +129 -0
- package/lib/skills/decision-walkthrough/SKILL.md +169 -0
- package/lib/skills/demo/SKILL.md +183 -0
- package/lib/skills/elevator-pitch/SKILL.md +125 -0
- package/lib/skills/eval-create/SKILL.md +344 -0
- package/lib/skills/eval-gap/SKILL.md +150 -0
- package/lib/skills/eval-run/SKILL.md +214 -0
- package/lib/skills/extract-feature/SKILL.md +344 -0
- package/lib/skills/flashcard/SKILL.md +513 -0
- package/lib/skills/frontend-taste/SKILL.md +184 -0
- package/lib/skills/gap-assess/SKILL.md +97 -0
- package/lib/skills/git-commit/SKILL.md +164 -0
- package/lib/skills/lint/SKILL.md +99 -0
- package/lib/skills/marp-slideshow/SKILL.md +212 -0
- package/lib/skills/mermaid-flowchart/SKILL.md +194 -0
- package/lib/skills/now/SKILL.md +36 -0
- package/lib/skills/port-feature/SKILL.md +315 -0
- package/lib/skills/power-mode/SKILL.md +184 -0
- package/lib/skills/primer/SKILL.md +84 -0
- package/lib/skills/project-readme/SKILL.md +166 -0
- package/lib/skills/req-compile/SKILL.md +131 -0
- package/lib/skills/req-create/SKILL.md +124 -0
- package/lib/skills/req-extract-decisions/SKILL.md +241 -0
- package/lib/skills/req-finalize/SKILL.md +251 -0
- package/lib/skills/req-retire/SKILL.md +185 -0
- package/lib/skills/req-update/SKILL.md +265 -0
- package/lib/skills/research/SKILL.md +250 -0
- package/lib/skills/research-company/SKILL.md +345 -0
- package/lib/skills/roadmap-add/SKILL.md +238 -0
- package/lib/skills/roadmap-create/SKILL.md +223 -0
- package/lib/skills/roadmap-next/SKILL.md +132 -0
- package/lib/skills/security-audit/SKILL.md +246 -0
- package/lib/skills/serena-config/SKILL.md +92 -0
- package/lib/skills/simplify/SKILL.md +227 -0
- package/lib/skills/tackle/SKILL.md +156 -0
- package/lib/skills/task-add/SKILL.md +208 -0
- package/lib/skills/task-audit/SKILL.md +294 -0
- package/lib/skills/task-trash/SKILL.md +115 -0
- package/lib/skills/task-update/SKILL.md +136 -0
- package/lib/skills/uat-auto/SKILL.md +69 -0
- package/lib/skills/uat-auto-plus/SKILL.md +115 -0
- package/lib/skills/uat-generate/SKILL.md +289 -0
- package/lib/skills/uat-skip/SKILL.md +169 -0
- package/lib/skills/uat-walk/SKILL.md +164 -0
- package/lib/skills/uat-walk/UAT-CORE.md +140 -0
- package/lib/skills/update-docs/SKILL.md +75 -0
- package/lib/skills/wiki-archive/SKILL.md +96 -0
- package/lib/skills/wiki-ingest/SKILL.md +139 -0
- package/lib/skills/wiki-lint/SKILL.md +131 -0
- package/lib/skills/wiki-query/SKILL.md +71 -0
- package/lib/skills/wiki-rotate-log/SKILL.md +90 -0
- package/lib/skills/wiki-tidy/SKILL.md +107 -0
- package/package.json +32 -0
- package/raw/.gitkeep +0 -0
- package/raw/design-principles.md +65 -0
- package/raw/guides/command-anti-patterns.md +79 -0
- package/raw/guides/deployment-strategy.md +448 -0
- package/raw/guides/evals-framework.md +452 -0
- package/raw/guides/mcp-tools.md +335 -0
- package/raw/guides/task-spec.md +79 -0
- package/raw/guides/type-checking-templates/README.md +112 -0
- package/raw/guides/type-checking-templates/eslint/eslint.config.ts +105 -0
- package/raw/guides/type-checking-templates/python/mypy.ini +69 -0
- package/raw/guides/type-checking-templates/python/pyproject.toml +164 -0
- package/raw/guides/type-checking-templates/python/pyrightconfig.json +67 -0
- package/raw/guides/type-checking-templates/tsconfig/tsconfig.app.jsonc +45 -0
- package/raw/guides/type-checking-templates/tsconfig/tsconfig.lib.jsonc +44 -0
- package/raw/guides/type-checking-templates/tsconfig/tsconfig.node-esm.jsonc +40 -0
- package/raw/guides/type-checking-templates/tsconfig/tsconfig.node.jsonc +34 -0
- package/raw/guides/type-checking-templates/tsconfig/tsconfig.vite-root.json +8 -0
- package/raw/harness-notes.md +20 -0
- package/raw/house-style/components/Badge.tsx +16 -0
- package/raw/house-style/components/Button.tsx +32 -0
- package/raw/house-style/components/Card.tsx +26 -0
- package/raw/house-style/components/Chip.tsx +57 -0
- package/raw/house-style/components/IconButton.tsx +67 -0
- package/raw/house-style/components/Modal.tsx +18 -0
- package/raw/house-style/components/Stepper.tsx +141 -0
- package/raw/house-style/components/icons.tsx +128 -0
- package/raw/house-style/preview/src/index.css +46 -0
- package/raw/house-style/tokens/tailwind.preset.ts +49 -0
- package/raw/house-style/tokens/tokens.json +62 -0
- package/raw/llm-wiki-2.md +162 -0
- package/raw/llm-wiki.md +75 -0
- package/raw/research/dark-mode-theme/index.md +85 -0
- package/raw/research/dark-mode-theme/sources.md +49 -0
- package/raw/research/serena-mcp-disconnect/index.md +81 -0
- package/raw/research/serena-mcp-disconnect/sources.md +87 -0
- package/raw/research/wiki-tooling-improvements/index.md +126 -0
- package/raw/research/wiki-tooling-improvements/sources.md +73 -0
- package/raw/software-factory-case-study.pdf +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
// Icon + label button with the full state set from the source UI:
|
|
4
|
+
// - primary: ink fill, inset top-highlight, dark focus ring
|
|
5
|
+
// - secondary: hairline-bordered card, hover lifts to surface + accent edge
|
|
6
|
+
// Both press-scale on active and fade when disabled. The leading icon carries a
|
|
7
|
+
// hover micro-motion: "tilt" (flat rotate + grow, e.g. a spark) or "spin3d"
|
|
8
|
+
// (a perspective tumble, e.g. a solid). Pass `loading` to swap in a spinner.
|
|
9
|
+
type Variant = "primary" | "secondary";
|
|
10
|
+
type IconMotion = "tilt" | "spin3d";
|
|
11
|
+
|
|
12
|
+
const VARIANT: Record<Variant, string> = {
|
|
13
|
+
primary:
|
|
14
|
+
"bg-ink text-white shadow-[0_1px_2px_0_rgb(16_17_26/0.06),inset_0_1px_0_0_rgb(255_255_255/0.1)] " +
|
|
15
|
+
"hover:bg-[#1c1c22] focus-visible:ring-ink/25 disabled:opacity-60",
|
|
16
|
+
secondary:
|
|
17
|
+
"border border-line bg-card text-ink-2 hover:border-accent/40 hover:bg-surface hover:text-ink " +
|
|
18
|
+
"focus-visible:ring-accent/40 disabled:text-muted-2 disabled:opacity-60",
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const ICON_MOTION: Record<IconMotion, string> = {
|
|
22
|
+
tilt: "group-hover:rotate-[16deg] group-hover:scale-110",
|
|
23
|
+
spin3d: "group-hover:[transform:rotateX(20deg)_rotateY(-26deg)_scale(1.1)]",
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default function IconButton({
|
|
27
|
+
icon,
|
|
28
|
+
children,
|
|
29
|
+
variant = "primary",
|
|
30
|
+
iconMotion = "tilt",
|
|
31
|
+
loading = false,
|
|
32
|
+
className = "",
|
|
33
|
+
disabled,
|
|
34
|
+
...props
|
|
35
|
+
}: ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
36
|
+
icon: ReactNode;
|
|
37
|
+
variant?: Variant;
|
|
38
|
+
iconMotion?: IconMotion;
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
}) {
|
|
41
|
+
return (
|
|
42
|
+
<button
|
|
43
|
+
disabled={disabled || loading}
|
|
44
|
+
className={
|
|
45
|
+
"group inline-flex h-9 items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-3 " +
|
|
46
|
+
"text-[13px] font-medium outline-none transition active:scale-[0.985] " +
|
|
47
|
+
"focus-visible:ring-2 disabled:cursor-not-allowed disabled:active:scale-100 " +
|
|
48
|
+
VARIANT[variant] +
|
|
49
|
+
" " +
|
|
50
|
+
className
|
|
51
|
+
}
|
|
52
|
+
{...props}
|
|
53
|
+
>
|
|
54
|
+
<span className={"transition-transform duration-300 " + ICON_MOTION[iconMotion]}>
|
|
55
|
+
{loading ? (
|
|
56
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" aria-hidden className="animate-spin">
|
|
57
|
+
<circle cx="12" cy="12" r="9" stroke="currentColor" strokeWidth="2.5" opacity="0.25" />
|
|
58
|
+
<path d="M21 12a9 9 0 0 0-9-9" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" />
|
|
59
|
+
</svg>
|
|
60
|
+
) : (
|
|
61
|
+
icon
|
|
62
|
+
)}
|
|
63
|
+
</span>
|
|
64
|
+
{children}
|
|
65
|
+
</button>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
// Centered overlay: darkened + blurred backdrop, pop-in content with strong depth.
|
|
4
|
+
export default function Modal({ children, onClose }: { children: ReactNode; onClose?: () => void }) {
|
|
5
|
+
return (
|
|
6
|
+
<div
|
|
7
|
+
className="fixed inset-0 z-50 grid animate-fadeIn place-items-center bg-ink/70 p-8 backdrop-blur-sm"
|
|
8
|
+
onClick={onClose}
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
className="flex animate-popIn flex-col gap-3 rounded-card border border-white/10 bg-surface p-5 shadow-pop"
|
|
12
|
+
onClick={(e) => e.stopPropagation()}
|
|
13
|
+
>
|
|
14
|
+
{children}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Fragment, type ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
// Horizontal progress stepper — the full choreography from the source UI:
|
|
4
|
+
// - node states: pending (hairline, muted) → active (scales up, accent ring,
|
|
5
|
+
// an orbiting spinner) → done (filled accent, a checkmark that draws itself in)
|
|
6
|
+
// - connectors: a rail that fills left→right when the step completes, with a
|
|
7
|
+
// bright dot that "travels" across while the next step is in flight
|
|
8
|
+
// - the whole bar floats on a blurred translucent card and rises in on mount
|
|
9
|
+
// Drive it with `current` (index of the in-flight step). Steps already passed
|
|
10
|
+
// render as done; the rest as pending. Purely presentational.
|
|
11
|
+
export interface Step {
|
|
12
|
+
label: string;
|
|
13
|
+
icon: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type NodeState = "pending" | "active" | "done";
|
|
17
|
+
|
|
18
|
+
function nodeState(index: number, current: number): NodeState {
|
|
19
|
+
if (index < current) return "done";
|
|
20
|
+
if (index === current) return "active";
|
|
21
|
+
return "pending";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default function Stepper({
|
|
25
|
+
steps,
|
|
26
|
+
current,
|
|
27
|
+
className = "",
|
|
28
|
+
}: {
|
|
29
|
+
steps: Step[];
|
|
30
|
+
current: number;
|
|
31
|
+
className?: string;
|
|
32
|
+
}) {
|
|
33
|
+
return (
|
|
34
|
+
<div
|
|
35
|
+
className={
|
|
36
|
+
"flex animate-riseIn items-center justify-center gap-2 rounded-card border border-line " +
|
|
37
|
+
"bg-card/70 px-4 py-2 shadow-card backdrop-blur-md " +
|
|
38
|
+
className
|
|
39
|
+
}
|
|
40
|
+
>
|
|
41
|
+
{steps.map((step, i) => (
|
|
42
|
+
<Fragment key={step.label}>
|
|
43
|
+
{i > 0 && <Connector state={connectorState(nodeState(i, current))} />}
|
|
44
|
+
<StepNode icon={step.icon} label={step.label} state={nodeState(i, current)} />
|
|
45
|
+
</Fragment>
|
|
46
|
+
))}
|
|
47
|
+
</div>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// The connector before a node mirrors that node's progress: idle while the node
|
|
52
|
+
// waits, traveling while it's active, fully filled once it's done.
|
|
53
|
+
function connectorState(next: NodeState): "idle" | "active" | "done" {
|
|
54
|
+
return next === "pending" ? "idle" : next;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function StepNode({ icon, label, state }: { icon: ReactNode; label: string; state: NodeState }) {
|
|
58
|
+
const ring =
|
|
59
|
+
state === "done"
|
|
60
|
+
? "border-accent bg-accent text-white"
|
|
61
|
+
: state === "active"
|
|
62
|
+
? "scale-110 border-accent bg-accent/5 text-accent"
|
|
63
|
+
: "border-line bg-card text-muted-2";
|
|
64
|
+
return (
|
|
65
|
+
<div className="flex items-center gap-2">
|
|
66
|
+
<span
|
|
67
|
+
className={
|
|
68
|
+
"relative grid h-6 w-6 place-items-center rounded-full border transition-all duration-300 ease-out " +
|
|
69
|
+
ring
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
{state === "active" && (
|
|
73
|
+
<svg
|
|
74
|
+
className="absolute -inset-1 animate-spin [animation-duration:1.3s]"
|
|
75
|
+
viewBox="0 0 40 40"
|
|
76
|
+
fill="none"
|
|
77
|
+
aria-hidden
|
|
78
|
+
>
|
|
79
|
+
<circle cx="20" cy="20" r="18" stroke="currentColor" strokeWidth="2.5" className="text-accent/15" />
|
|
80
|
+
<circle
|
|
81
|
+
cx="20"
|
|
82
|
+
cy="20"
|
|
83
|
+
r="18"
|
|
84
|
+
stroke="currentColor"
|
|
85
|
+
strokeWidth="2.5"
|
|
86
|
+
strokeLinecap="round"
|
|
87
|
+
strokeDasharray="26 95"
|
|
88
|
+
className="text-accent"
|
|
89
|
+
/>
|
|
90
|
+
</svg>
|
|
91
|
+
)}
|
|
92
|
+
<span className="relative">{state === "done" ? <Check /> : icon}</span>
|
|
93
|
+
</span>
|
|
94
|
+
<span
|
|
95
|
+
className={
|
|
96
|
+
"text-[12px] transition-colors " +
|
|
97
|
+
(state === "active"
|
|
98
|
+
? "font-semibold text-ink"
|
|
99
|
+
: state === "done"
|
|
100
|
+
? "font-medium text-ink"
|
|
101
|
+
: "font-medium text-muted-2")
|
|
102
|
+
}
|
|
103
|
+
>
|
|
104
|
+
{label}
|
|
105
|
+
</span>
|
|
106
|
+
</div>
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function Connector({ state }: { state: "idle" | "active" | "done" }) {
|
|
111
|
+
return (
|
|
112
|
+
<div className="relative mx-1.5 h-[3px] w-10 rounded-full bg-line sm:w-16">
|
|
113
|
+
<div
|
|
114
|
+
className={
|
|
115
|
+
"absolute inset-y-0 left-0 rounded-full bg-accent transition-all duration-700 " +
|
|
116
|
+
(state === "done" ? "w-full" : "w-0")
|
|
117
|
+
}
|
|
118
|
+
/>
|
|
119
|
+
{state === "active" && (
|
|
120
|
+
<div className="absolute top-1/2 h-1.5 w-1.5 -translate-x-1/2 -translate-y-1/2 animate-travel rounded-full bg-accent" />
|
|
121
|
+
)}
|
|
122
|
+
</div>
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function Check() {
|
|
127
|
+
return (
|
|
128
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" aria-hidden>
|
|
129
|
+
<path
|
|
130
|
+
d="M5 12.5l4.5 4.5L19 7"
|
|
131
|
+
stroke="currentColor"
|
|
132
|
+
strokeWidth="2.4"
|
|
133
|
+
strokeLinecap="round"
|
|
134
|
+
strokeLinejoin="round"
|
|
135
|
+
pathLength={1}
|
|
136
|
+
style={{ strokeDasharray: 1 }}
|
|
137
|
+
className="animate-drawIn"
|
|
138
|
+
/>
|
|
139
|
+
</svg>
|
|
140
|
+
);
|
|
141
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// Inline SVG icon set, faithfully ported from the source UI. Pure craft, no
|
|
2
|
+
// dependency. Each takes currentColor so it inherits text color; size via the
|
|
3
|
+
// width/height props. Use anywhere an icon + label pattern needs a crisp mark.
|
|
4
|
+
import { type SVGProps } from "react";
|
|
5
|
+
|
|
6
|
+
type IconProps = SVGProps<SVGSVGElement> & { size?: number };
|
|
7
|
+
|
|
8
|
+
const base = (size: number, p: IconProps) => ({
|
|
9
|
+
width: size,
|
|
10
|
+
height: size,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
"aria-hidden": true,
|
|
13
|
+
...p,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export function Sparkles({ size = 12, ...p }: IconProps) {
|
|
17
|
+
return (
|
|
18
|
+
<svg {...base(size, p)} fill="none">
|
|
19
|
+
<path
|
|
20
|
+
d="M12 3l1.6 4.6L18 9l-4.4 1.4L12 15l-1.6-4.6L6 9l4.4-1.4L12 3zm7 9l.9 2.4L22 15l-2.1.6L19 18l-.9-2.4L16 15l2.1-.6L19 12z"
|
|
21
|
+
fill="currentColor"
|
|
22
|
+
/>
|
|
23
|
+
</svg>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function Spinner({ size = 12, ...p }: IconProps) {
|
|
28
|
+
return (
|
|
29
|
+
<svg {...base(size, p)} fill="none" className={"animate-spin " + (p.className ?? "")}>
|
|
30
|
+
<circle cx="12" cy="12" r="9" stroke="currentColor" strokeWidth="2.5" opacity="0.25" />
|
|
31
|
+
<path d="M21 12a9 9 0 0 0-9-9" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" />
|
|
32
|
+
</svg>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function Image({ size = 11, ...p }: IconProps) {
|
|
37
|
+
return (
|
|
38
|
+
<svg {...base(size, p)} fill="none">
|
|
39
|
+
<rect x="3" y="5" width="18" height="14" rx="3" stroke="currentColor" strokeWidth="2" />
|
|
40
|
+
<circle cx="9" cy="11" r="1.6" fill="currentColor" />
|
|
41
|
+
<path d="M5 17l5-4 4 3 5-5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" />
|
|
42
|
+
</svg>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function Cube({ size = 12, ...p }: IconProps) {
|
|
47
|
+
return (
|
|
48
|
+
<svg {...base(size, p)} fill="none">
|
|
49
|
+
<path
|
|
50
|
+
d="M12 3l8 4.5v9L12 21 4 16.5v-9L12 3zM12 13l-6-3.5M12 13l6-3.5M12 13v8"
|
|
51
|
+
stroke="currentColor"
|
|
52
|
+
strokeWidth="1.7"
|
|
53
|
+
strokeLinejoin="round"
|
|
54
|
+
strokeLinecap="round"
|
|
55
|
+
/>
|
|
56
|
+
</svg>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function Bolt({ size = 11, ...p }: IconProps) {
|
|
61
|
+
return (
|
|
62
|
+
<svg {...base(size, p)} fill="currentColor">
|
|
63
|
+
<path d="M13 2L4 14h6l-1 8 9-12h-6l1-8z" />
|
|
64
|
+
</svg>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function Diamond({ size = 10, ...p }: IconProps) {
|
|
69
|
+
return (
|
|
70
|
+
<svg {...base(size, p)} fill="currentColor">
|
|
71
|
+
<path d="M12 2l10 10-10 10L2 12z" />
|
|
72
|
+
</svg>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function Expand({ size = 10, ...p }: IconProps) {
|
|
77
|
+
return (
|
|
78
|
+
<svg {...base(size, p)} fill="none">
|
|
79
|
+
<path
|
|
80
|
+
d="M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5"
|
|
81
|
+
stroke="currentColor"
|
|
82
|
+
strokeWidth="2.2"
|
|
83
|
+
strokeLinecap="round"
|
|
84
|
+
strokeLinejoin="round"
|
|
85
|
+
/>
|
|
86
|
+
</svg>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ChevronDown({ size = 13, ...p }: IconProps) {
|
|
91
|
+
return (
|
|
92
|
+
<svg {...base(size, p)} fill="none">
|
|
93
|
+
<path
|
|
94
|
+
d="M6 9l6 6 6-6"
|
|
95
|
+
stroke="currentColor"
|
|
96
|
+
strokeWidth="2.2"
|
|
97
|
+
strokeLinecap="round"
|
|
98
|
+
strokeLinejoin="round"
|
|
99
|
+
/>
|
|
100
|
+
</svg>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function X({ size = 11, ...p }: IconProps) {
|
|
105
|
+
return (
|
|
106
|
+
<svg {...base(size, p)} fill="none">
|
|
107
|
+
<path d="M6 6l12 12M18 6L6 18" stroke="currentColor" strokeWidth="2.4" strokeLinecap="round" />
|
|
108
|
+
</svg>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// The draw-in checkmark: stroke "writes itself" via the drawIn keyframe.
|
|
113
|
+
export function Check({ size = 12, ...p }: IconProps) {
|
|
114
|
+
return (
|
|
115
|
+
<svg {...base(size, p)} fill="none">
|
|
116
|
+
<path
|
|
117
|
+
d="M5 12.5l4.5 4.5L19 7"
|
|
118
|
+
stroke="currentColor"
|
|
119
|
+
strokeWidth="2.4"
|
|
120
|
+
strokeLinecap="round"
|
|
121
|
+
strokeLinejoin="round"
|
|
122
|
+
pathLength={1}
|
|
123
|
+
style={{ strokeDasharray: 1 }}
|
|
124
|
+
className="animate-drawIn"
|
|
125
|
+
/>
|
|
126
|
+
</svg>
|
|
127
|
+
);
|
|
128
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
html {
|
|
7
|
+
@apply bg-canvas text-ink antialiased;
|
|
8
|
+
font-feature-settings: "ss01", "cv11", "cv02";
|
|
9
|
+
-webkit-font-smoothing: antialiased;
|
|
10
|
+
-moz-osx-font-smoothing: grayscale;
|
|
11
|
+
}
|
|
12
|
+
body {
|
|
13
|
+
font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
|
|
14
|
+
letter-spacing: -0.011em;
|
|
15
|
+
}
|
|
16
|
+
::selection {
|
|
17
|
+
background: rgba(79, 90, 120, 0.18);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@layer utilities {
|
|
22
|
+
.scrollbar-none {
|
|
23
|
+
scrollbar-width: none;
|
|
24
|
+
}
|
|
25
|
+
.scrollbar-none::-webkit-scrollbar {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
.text-balance {
|
|
29
|
+
text-wrap: balance;
|
|
30
|
+
}
|
|
31
|
+
.dot-grid {
|
|
32
|
+
background-image: radial-gradient(circle, rgba(11, 11, 13, 0.05) 1px, transparent 1.4px);
|
|
33
|
+
background-size: 22px 22px;
|
|
34
|
+
-webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 95%);
|
|
35
|
+
mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 95%);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media (prefers-reduced-motion: reduce) {
|
|
40
|
+
.animate-travel,
|
|
41
|
+
.animate-shimmer,
|
|
42
|
+
.animate-breathe,
|
|
43
|
+
.animate-spinSlow {
|
|
44
|
+
animation: none !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import tokens from "./tokens.json";
|
|
2
|
+
|
|
3
|
+
const split = (s: string) => s.split(",").map((x) => x.trim());
|
|
4
|
+
|
|
5
|
+
// Use as a preset: presets: [houseStyle] in your tailwind.config.
|
|
6
|
+
const houseStyle = {
|
|
7
|
+
theme: {
|
|
8
|
+
extend: {
|
|
9
|
+
colors: {
|
|
10
|
+
canvas: tokens.color.canvas,
|
|
11
|
+
surface: tokens.color.surface,
|
|
12
|
+
paper: tokens.color.paper,
|
|
13
|
+
card: tokens.color.card,
|
|
14
|
+
ink: tokens.color.ink,
|
|
15
|
+
"ink-2": tokens.color["ink-2"],
|
|
16
|
+
muted: tokens.color.muted,
|
|
17
|
+
"muted-2": tokens.color["muted-2"],
|
|
18
|
+
line: tokens.color.line,
|
|
19
|
+
"line-2": tokens.color["line-2"],
|
|
20
|
+
accent: {
|
|
21
|
+
DEFAULT: tokens.color.accent,
|
|
22
|
+
red: tokens.color["accent-red"],
|
|
23
|
+
green: tokens.color["accent-green"],
|
|
24
|
+
blue: tokens.color["accent-blue"],
|
|
25
|
+
amber: tokens.color["accent-amber"],
|
|
26
|
+
violet: tokens.color["accent-violet"],
|
|
27
|
+
rose: tokens.color["accent-rose"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
borderRadius: { card: tokens.radius.card, pill: tokens.radius.pill },
|
|
31
|
+
boxShadow: {
|
|
32
|
+
card: tokens.shadow.card,
|
|
33
|
+
"card-hover": tokens.shadow["card-hover"],
|
|
34
|
+
pop: tokens.shadow.pop,
|
|
35
|
+
ring: tokens.shadow.ring,
|
|
36
|
+
},
|
|
37
|
+
fontFamily: {
|
|
38
|
+
sans: split(tokens.font.sans),
|
|
39
|
+
display: split(tokens.font.sans),
|
|
40
|
+
mono: split(tokens.font.mono),
|
|
41
|
+
},
|
|
42
|
+
letterSpacing: { tight: tokens.font.tracking },
|
|
43
|
+
keyframes: tokens.motion.keyframes,
|
|
44
|
+
animation: tokens.motion.animation,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default houseStyle;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"canvas": "#f6f7f9",
|
|
4
|
+
"surface": "#f1f2f4",
|
|
5
|
+
"paper": "#ffffff",
|
|
6
|
+
"card": "#ffffff",
|
|
7
|
+
"ink": "#0b0b0d",
|
|
8
|
+
"ink-2": "#33353b",
|
|
9
|
+
"muted": "#6b6e76",
|
|
10
|
+
"muted-2": "#9a9da5",
|
|
11
|
+
"line": "#e7e8ea",
|
|
12
|
+
"line-2": "#f0f1f3",
|
|
13
|
+
"accent": "#4f5a78",
|
|
14
|
+
"accent-red": "#e5484d",
|
|
15
|
+
"accent-green": "#30a46c",
|
|
16
|
+
"accent-blue": "#3b6ef6",
|
|
17
|
+
"accent-amber": "#e0901a",
|
|
18
|
+
"accent-violet": "#8b5cf6",
|
|
19
|
+
"accent-rose": "#f43f5e"
|
|
20
|
+
},
|
|
21
|
+
"font": {
|
|
22
|
+
"sans": "Inter Tight, Inter, ui-sans-serif, system-ui, sans-serif",
|
|
23
|
+
"mono": "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
24
|
+
"tracking": "-0.011em",
|
|
25
|
+
"featureSettings": "\"ss01\", \"cv11\", \"cv02\""
|
|
26
|
+
},
|
|
27
|
+
"radius": { "card": "14px", "pill": "999px" },
|
|
28
|
+
"shadow": {
|
|
29
|
+
"card": "0 1px 2px 0 rgb(16 17 26 / 0.04)",
|
|
30
|
+
"card-hover": "0 2px 4px -1px rgb(16 17 26 / 0.06), 0 8px 24px -6px rgb(16 17 26 / 0.08)",
|
|
31
|
+
"pop": "0 18px 44px -14px rgb(10 11 18 / 0.34), 0 4px 12px -4px rgb(10 11 18 / 0.16)",
|
|
32
|
+
"ring": "0 0 0 1px rgb(16 17 26 / 0.04)"
|
|
33
|
+
},
|
|
34
|
+
"space": { "pad": "1.25rem", "gaps": ["0.5rem", "0.625rem", "0.75rem", "1rem"] },
|
|
35
|
+
"motion": {
|
|
36
|
+
"easing": "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
37
|
+
"keyframes": {
|
|
38
|
+
"fadeIn": { "from": { "opacity": "0" }, "to": { "opacity": "1" } },
|
|
39
|
+
"riseIn": { "from": { "opacity": "0", "transform": "translateY(8px)" }, "to": { "opacity": "1", "transform": "translateY(0)" } },
|
|
40
|
+
"popIn": { "from": { "opacity": "0", "transform": "scale(0.96)" }, "to": { "opacity": "1", "transform": "scale(1)" } },
|
|
41
|
+
"revealIn": { "from": { "opacity": "0", "transform": "scale(1.03)" }, "to": { "opacity": "1", "transform": "scale(1)" } },
|
|
42
|
+
"travel": { "0%": { "left": "-10%", "opacity": "0" }, "20%, 80%": { "opacity": "1" }, "100%": { "left": "110%", "opacity": "0" } },
|
|
43
|
+
"shimmer": { "from": { "transform": "translateX(-100%)" }, "to": { "transform": "translateX(100%)" } },
|
|
44
|
+
"breathe": { "0%, 100%": { "opacity": "0.35", "transform": "scale(1)" }, "50%": { "opacity": "0.85", "transform": "scale(1.05)" } },
|
|
45
|
+
"spinSlow": { "from": { "transform": "rotate(0deg)" }, "to": { "transform": "rotate(360deg)" } },
|
|
46
|
+
"drawIn": { "from": { "strokeDashoffset": "1" }, "to": { "strokeDashoffset": "0" } },
|
|
47
|
+
"bounceSoft": { "0%, 100%": { "transform": "translateY(0)" }, "50%": { "transform": "translateY(3px)" } }
|
|
48
|
+
},
|
|
49
|
+
"animation": {
|
|
50
|
+
"fadeIn": "fadeIn 0.35s ease both",
|
|
51
|
+
"riseIn": "riseIn 0.5s cubic-bezier(0.22,1,0.36,1) both",
|
|
52
|
+
"popIn": "popIn 0.22s cubic-bezier(0.22,1,0.36,1) both",
|
|
53
|
+
"revealIn": "revealIn 0.5s cubic-bezier(0.22,1,0.36,1) both",
|
|
54
|
+
"travel": "travel 1.5s ease-in-out infinite",
|
|
55
|
+
"shimmer": "shimmer 1.7s ease-in-out infinite",
|
|
56
|
+
"breathe": "breathe 2.4s ease-in-out infinite",
|
|
57
|
+
"spinSlow": "spinSlow 9s linear infinite",
|
|
58
|
+
"drawIn": "drawIn 0.45s ease-out forwards",
|
|
59
|
+
"bounceSoft": "bounceSoft 1.3s ease-in-out infinite"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|