opencastle 1.5.0 → 1.6.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/dist/cli/adapters/claude-code.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.js +1 -0
- package/dist/cli/adapters/claude-code.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts +8 -0
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +48 -22
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/bootstrap-on-init.test.js +11 -0
- package/dist/cli/bootstrap-on-init.test.js.map +1 -1
- package/dist/cli/command-namespace.test.js +17 -0
- package/dist/cli/command-namespace.test.js.map +1 -1
- package/dist/cli/convoy/engine.d.ts +12 -0
- package/dist/cli/convoy/engine.d.ts.map +1 -1
- package/dist/cli/convoy/engine.git.test.js +55 -0
- package/dist/cli/convoy/engine.git.test.js.map +1 -1
- package/dist/cli/convoy/engine.js +39 -1
- package/dist/cli/convoy/engine.js.map +1 -1
- package/dist/cli/convoy/findings.d.ts +35 -0
- package/dist/cli/convoy/findings.d.ts.map +1 -0
- package/dist/cli/convoy/findings.js +100 -0
- package/dist/cli/convoy/findings.js.map +1 -0
- package/dist/cli/convoy/findings.test.d.ts +2 -0
- package/dist/cli/convoy/findings.test.d.ts.map +1 -0
- package/dist/cli/convoy/findings.test.js +75 -0
- package/dist/cli/convoy/findings.test.js.map +1 -0
- package/dist/cli/convoy/isolation.d.ts.map +1 -1
- package/dist/cli/convoy/isolation.js +2 -1
- package/dist/cli/convoy/isolation.js.map +1 -1
- package/dist/cli/convoy/worktree.d.ts +5 -0
- package/dist/cli/convoy/worktree.d.ts.map +1 -1
- package/dist/cli/convoy/worktree.js +12 -0
- package/dist/cli/convoy/worktree.js.map +1 -1
- package/dist/cli/docs-accuracy.test.js +34 -0
- package/dist/cli/docs-accuracy.test.js.map +1 -1
- package/dist/cli/doctor.d.ts +11 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +70 -6
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/doctor.test.js +82 -1
- package/dist/cli/doctor.test.js.map +1 -1
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +58 -53
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/init.test.js +28 -23
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/layers.d.ts +20 -0
- package/dist/cli/layers.d.ts.map +1 -1
- package/dist/cli/layers.js +53 -1
- package/dist/cli/layers.js.map +1 -1
- package/dist/cli/layers.test.js +67 -1
- package/dist/cli/layers.test.js.map +1 -1
- package/dist/cli/lessons.d.ts +10 -0
- package/dist/cli/lessons.d.ts.map +1 -1
- package/dist/cli/lessons.js +26 -1
- package/dist/cli/lessons.js.map +1 -1
- package/dist/cli/lessons.test.js +38 -1
- package/dist/cli/lessons.test.js.map +1 -1
- package/dist/cli/plan.test.js +10 -8
- package/dist/cli/plan.test.js.map +1 -1
- package/dist/cli/sync-check.test.js +14 -2
- package/dist/cli/sync-check.test.js.map +1 -1
- package/dist/orchestrator/plugins/notion/config.d.ts.map +1 -1
- package/dist/orchestrator/plugins/notion/config.js +21 -17
- package/dist/orchestrator/plugins/notion/config.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/adapters/claude-code.ts +1 -0
- package/src/cli/adapters/single-file-base.ts +63 -31
- package/src/cli/bootstrap-on-init.test.ts +12 -0
- package/src/cli/command-namespace.test.ts +17 -0
- package/src/cli/convoy/engine.git.test.ts +59 -0
- package/src/cli/convoy/engine.ts +44 -0
- package/src/cli/convoy/findings.test.ts +86 -0
- package/src/cli/convoy/findings.ts +129 -0
- package/src/cli/convoy/isolation.ts +2 -1
- package/src/cli/convoy/worktree.ts +12 -0
- package/src/cli/docs-accuracy.test.ts +42 -0
- package/src/cli/doctor.test.ts +101 -1
- package/src/cli/doctor.ts +73 -7
- package/src/cli/init.test.ts +27 -22
- package/src/cli/init.ts +62 -57
- package/src/cli/layers.test.ts +72 -1
- package/src/cli/layers.ts +52 -1
- package/src/cli/lessons.test.ts +48 -0
- package/src/cli/lessons.ts +27 -1
- package/src/cli/plan.test.ts +10 -8
- package/src/cli/sync-check.test.ts +16 -2
- package/src/orchestrator/agent-workflows/feature-implementation.md +1 -1
- package/src/orchestrator/agents/team-lead.agent.md +5 -5
- package/src/orchestrator/agents/testing-expert.agent.md +2 -2
- package/src/orchestrator/customizations/LESSONS-LEARNED.md +1 -1
- package/src/orchestrator/instructions/ai-optimization.instructions.md +6 -23
- package/src/orchestrator/instructions/general.instructions.md +22 -95
- package/src/orchestrator/plugins/astro/skills/astro-framework/SKILL.md +1 -3
- package/src/orchestrator/plugins/chrome-devtools/skills/browser-testing/SKILL.md +3 -5
- package/src/orchestrator/plugins/cloudflare/skills/cloudflare-platform/SKILL.md +2 -2
- package/src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md +1 -1
- package/src/orchestrator/plugins/convex/skills/convex-database/SKILL.md +1 -3
- package/src/orchestrator/plugins/coolify/skills/coolify-deployment/SKILL.md +1 -1
- package/src/orchestrator/plugins/cypress/skills/cypress-testing/SKILL.md +1 -1
- package/src/orchestrator/plugins/drizzle/skills/drizzle-orm/SKILL.md +1 -1
- package/src/orchestrator/plugins/expo/skills/expo-development/SKILL.md +2 -2
- package/src/orchestrator/plugins/figma/skills/figma-design/SKILL.md +1 -3
- package/src/orchestrator/plugins/hetzner/skills/hetzner-cloud/SKILL.md +1 -1
- package/src/orchestrator/plugins/jira/skills/jira-management/SKILL.md +1 -3
- package/src/orchestrator/plugins/linear/skills/linear-task-management/SKILL.md +1 -3
- package/src/orchestrator/plugins/netlify/skills/netlify-deployment/SKILL.md +2 -2
- package/src/orchestrator/plugins/nextjs/skills/nextjs-framework/SKILL.md +13 -6
- package/src/orchestrator/plugins/notion/config.ts +21 -17
- package/src/orchestrator/plugins/notion/skills/notion-knowledge-management/SKILL.md +8 -16
- package/src/orchestrator/plugins/nx/skills/nx-workspace/SKILL.md +2 -4
- package/src/orchestrator/plugins/playwright/skills/playwright-testing/SKILL.md +1 -3
- package/src/orchestrator/plugins/prisma/skills/prisma-database/SKILL.md +1 -3
- package/src/orchestrator/plugins/resend/skills/resend-email/SKILL.md +2 -2
- package/src/orchestrator/plugins/sanity/skills/sanity-cms/SKILL.md +1 -3
- package/src/orchestrator/plugins/sentry/skills/sentry-monitoring/SKILL.md +1 -1
- package/src/orchestrator/plugins/slack/skills/slack-notifications/SKILL.md +1 -3
- package/src/orchestrator/plugins/strapi/skills/strapi-cms/SKILL.md +1 -3
- package/src/orchestrator/plugins/stripe/skills/stripe-payments/SKILL.md +4 -4
- package/src/orchestrator/plugins/supabase/skills/supabase-database/SKILL.md +3 -5
- package/src/orchestrator/plugins/teams/skills/teams-notifications/SKILL.md +1 -3
- package/src/orchestrator/plugins/trello/skills/trello-task-management/SKILL.md +1 -1
- package/src/orchestrator/plugins/turborepo/skills/turborepo-monorepo/SKILL.md +15 -88
- package/src/orchestrator/plugins/vercel/skills/vercel-deployment/SKILL.md +2 -2
- package/src/orchestrator/plugins/vitest/skills/vitest-testing/SKILL.md +17 -150
- package/src/orchestrator/prompts/assess-complexity.prompt.md +1 -0
- package/src/orchestrator/prompts/create-skill.prompt.md +13 -67
- package/src/orchestrator/prompts/fix-convoy.prompt.md +1 -0
- package/src/orchestrator/prompts/fix-prd.prompt.md +1 -0
- package/src/orchestrator/prompts/generate-prd.prompt.md +1 -0
- package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +2 -2
- package/src/orchestrator/prompts/validate-convoy.prompt.md +1 -0
- package/src/orchestrator/prompts/validate-prd.prompt.md +1 -0
- package/src/orchestrator/skills/accessibility-standards/REFERENCE.md +17 -12
- package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
- package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -5
- package/src/orchestrator/skills/agent-hooks/SKILL.md +8 -6
- package/src/orchestrator/skills/api-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
- package/src/orchestrator/skills/context-map/REFERENCE.md +0 -2
- package/src/orchestrator/skills/context-map/SKILL.md +2 -2
- package/src/orchestrator/skills/data-engineering/REFERENCE.md +3 -9
- package/src/orchestrator/skills/data-engineering/SKILL.md +9 -16
- package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
- package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
- package/src/orchestrator/skills/documentation-standards/SKILL.md +4 -2
- package/src/orchestrator/skills/fast-review/REFERENCE.md +0 -2
- package/src/orchestrator/skills/fast-review/SKILL.md +5 -5
- package/src/orchestrator/skills/frontend-design/REFERENCE.md +6 -28
- package/src/orchestrator/skills/frontend-design/SKILL.md +19 -9
- package/src/orchestrator/skills/git-workflow/SKILL.md +1 -1
- package/src/orchestrator/skills/memory-merger/SKILL.md +13 -15
- package/src/orchestrator/skills/observability-logging/SKILL.md +1 -1
- package/src/orchestrator/skills/orchestration-protocols/REFERENCE.md +5 -9
- package/src/orchestrator/skills/orchestration-protocols/SKILL.md +6 -6
- package/src/orchestrator/skills/panel-majority-vote/REFERENCE.md +0 -4
- package/src/orchestrator/skills/panel-majority-vote/SKILL.md +1 -1
- package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +0 -2
- package/src/orchestrator/skills/performance-optimization/SKILL.md +2 -2
- package/src/orchestrator/skills/project-consistency/SKILL.md +2 -2
- package/src/orchestrator/skills/project-consistency/TEMPLATES.md +0 -4
- package/src/orchestrator/skills/react-development/SKILL.md +3 -3
- package/src/orchestrator/skills/security-hardening/SKILL.md +5 -5
- package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +0 -2
- package/src/orchestrator/skills/self-improvement/SKILL.md +1 -1
- package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/session-checkpoints/CHECKPOINT-TEMPLATE.md +0 -2
- package/src/orchestrator/skills/session-checkpoints/SKILL.md +1 -1
- package/src/orchestrator/skills/team-lead-reference/SKILL.md +1 -1
- package/src/orchestrator/skills/technical-writing/SKILL.md +8 -13
- package/src/orchestrator/skills/testing-workflow/SKILL.md +6 -6
- package/src/orchestrator/skills/typescript-best-practices/SKILL.md +1 -1
- package/src/orchestrator/skills/unslop/SKILL.md +1 -1
- package/src/orchestrator/skills/validation-gates/REFERENCE.md +6 -31
- package/src/orchestrator/skills/validation-gates/SKILL.md +12 -26
- package/src/orchestrator/skills/writing-for-agents/SKILL.md +2 -2
- package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +0 -39
- package/src/orchestrator/skills/frontend-design/COMPONENTS.md +0 -113
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: validation-gates
|
|
3
|
-
description: "Defines
|
|
3
|
+
description: "Defines the ten gates delegated work passes, from secret scanning and lint/test/build to blast radius, dependency audit, browser, regression and smoke tests. Use when deciding which checks a change needs, or whether work is ready to merge or deploy."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Validation Gates
|
|
7
7
|
|
|
8
|
+
The project's commands live under Key Commands in `.opencastle/project.instructions.md`; with a task runner (Nx, Turborepo), its skill has them. Every gate below runs those, never a guessed `npm run …`.
|
|
9
|
+
|
|
8
10
|
| Gate | Name | Runs When |
|
|
9
11
|
|------|------|-----------|
|
|
10
12
|
| 1 | Secret Scanning | Every delegation |
|
|
@@ -12,7 +14,7 @@ description: "Defines 10 sequential validation gates: secret scanning, lint/test
|
|
|
12
14
|
| 3 | Blast Radius Check | Every delegation |
|
|
13
15
|
| 4 | Dependency Audit | When `package.json` or lockfiles change |
|
|
14
16
|
| 5 | Fast Review | Every delegation (with auto-PASS exceptions) |
|
|
15
|
-
| 6 | Cache Clearing |
|
|
17
|
+
| 6 | Cache Clearing | Only when a stale cache is suspected |
|
|
16
18
|
| 7 | Browser Testing | UI changes |
|
|
17
19
|
| 8 | Regression Testing | Every delegation |
|
|
18
20
|
| 9 | Panel Review | High-stakes changes only |
|
|
@@ -35,15 +37,11 @@ Not a hit: obviously fake test fixtures (`sk-test-1234567890`), documentation
|
|
|
35
37
|
placeholders (`YOUR_API_KEY_HERE`), and pattern matches inside explanatory
|
|
36
38
|
comments.
|
|
37
39
|
|
|
38
|
-
Scan every diff **before** any other gate: `gitleaks
|
|
40
|
+
Scan every diff **before** any other gate: `gitleaks git --redact --log-opts="main..HEAD"` for the branch's commits, `gitleaks dir <path>` for uncommitted files (or the CI equivalent). Fail on any finding.
|
|
39
41
|
|
|
40
42
|
## Gate 2: Deterministic Checks
|
|
41
43
|
|
|
42
|
-
Run
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
npm run lint && npm test --silent && npm run build
|
|
46
|
-
```
|
|
44
|
+
Run the project's own lint (with auto-fix), test and build commands for every affected project. All must pass with zero errors.
|
|
47
45
|
|
|
48
46
|
## Gate 3: Blast Radius Check
|
|
49
47
|
|
|
@@ -70,40 +68,28 @@ Full checklist (license, duplicates, maintenance, peer deps, type coverage) with
|
|
|
70
68
|
|
|
71
69
|
## Gate 5: Fast Review
|
|
72
70
|
|
|
73
|
-
Spawn reviewer sub-agent (load **fast-review**
|
|
71
|
+
Spawn a reviewer sub-agent (load **fast-review**). Auto-PASS rules, retries and escalation: the **fast-review** Handle Verdict table.
|
|
74
72
|
|
|
75
73
|
## Gate 6: Cache Clearing
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
rm -rf node_modules/.cache .next/cache .astro/ dist/
|
|
79
|
-
```
|
|
75
|
+
Skip unless a stale cache is the suspect: the browser shows old output, or a build reports files that no longer exist. Then clear the framework cache (e.g. `.next/cache`, `node_modules/.cache`) and the project's own build output directory, named in its build config, and rebuild.
|
|
80
76
|
|
|
81
77
|
## Gate 7: Browser Testing
|
|
82
78
|
|
|
83
|
-
UI changes are verified in Chrome. Start dev server → verify ACs →
|
|
84
|
-
|
|
85
|
-
```json
|
|
86
|
-
{ "tool": "browser-testing/take_screenshot", "url": "http://localhost:3000", "viewports": ["mobile", "desktop"] }
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Additional options: see [REFERENCE.md](REFERENCE.md).
|
|
79
|
+
UI changes are verified in Chrome with the **browser-testing** skill (Chrome DevTools MCP: `navigate_page`, `take_snapshot`, `evaluate_script` with a `function`). Start the dev server → verify ACs → every project breakpoint → at most 3 screenshots, as evidence.
|
|
90
80
|
|
|
91
81
|
## Gate 8: Regression Testing
|
|
92
82
|
|
|
93
|
-
1. Full test suite for all affected projects
|
|
83
|
+
1. Full test suite for all affected projects.
|
|
94
84
|
2. Browser-test adjacent pages (navigation, routing, back-button) — find them via `rg "href=\"/changed-path|import .*from '@/components/changed'"`.
|
|
95
85
|
3. Find consuming apps/packages via `rg "from '@/components/PriceRange'|@my-org/ui-package"`; run their tests or smoke builds.
|
|
96
86
|
|
|
97
87
|
## Gate 9: Panel Review
|
|
98
88
|
|
|
99
|
-
Load **panel-majority-vote**
|
|
89
|
+
Load **panel-majority-vote** — 3 isolated reviewers, majority (2/3) wins. Use for: the 3rd fast-review FAIL, security-sensitive changes, DB migrations.
|
|
100
90
|
|
|
101
91
|
## Gate 10: Final Smoke Test
|
|
102
92
|
|
|
103
93
|
> Runs once after ALL tasks are Done.
|
|
104
94
|
|
|
105
|
-
|
|
106
|
-
npm run build && npm test && npx playwright test
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
Full build + test from clean state → E2E browser walkthrough → cross-task integration check → responsive sweep (if UI). On failure: re-delegate specific failing integration only.
|
|
95
|
+
The project's full build and test commands, its E2E suite included, from a clean state → E2E browser walkthrough → cross-task integration check → responsive sweep (if UI). On failure: re-delegate specific failing integration only.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: writing-for-agents
|
|
3
|
-
description: "Levers for writing documents an agent
|
|
3
|
+
description: "Levers for writing documents an agent reads: context pointers, progressive disclosure, completion criteria, leading words and pruning. Use when creating or editing a skill, an agent, an instruction file, AGENTS.md or CLAUDE.md."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Writing for Agents
|
|
@@ -79,6 +79,6 @@ When skills multiply past what a human can remember, that piled-up cognitive loa
|
|
|
79
79
|
|
|
80
80
|
## How this project compiles a skill
|
|
81
81
|
|
|
82
|
-
A skill is one directory holding `SKILL.md` with `name` and `description` frontmatter. The `description` is the skill's top-level context pointer
|
|
82
|
+
A skill is one directory holding `SKILL.md` with `name` and `description` frontmatter. The `description` is the skill's top-level context pointer, always loaded, so it carries the trigger branches. Every target copies the whole directory, so companion files ship beside `SKILL.md` and are reached through the pointers `SKILL.md` gives them: what every branch needs stays in `SKILL.md`, what only some branches need can live in a companion file.
|
|
83
83
|
|
|
84
84
|
Adapted from the `writing-for-agents` skill in [mattpocock/skills](https://github.com/mattpocock/skills), MIT, copyright 2026 Matt Pocock.
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
> Parent: [SKILL.md](./SKILL.md)
|
|
2
|
-
|
|
3
|
-
# Writing & Formatting Guide
|
|
4
|
-
|
|
5
|
-
## Voice & Tone
|
|
6
|
-
|
|
7
|
-
- **Imperative mood** for instructions: "Add the header" not "You should add the header"
|
|
8
|
-
- **Active voice**: "The function returns X" not "X is returned by the function"
|
|
9
|
-
- **Concise**: one idea per sentence; trim filler words (just, simply, basically, very)
|
|
10
|
-
|
|
11
|
-
## Formatting Rules
|
|
12
|
-
|
|
13
|
-
| Element | Convention |
|
|
14
|
-
|---------|-----------|
|
|
15
|
-
| Headings | Sentence case (`## Core principles`, not `## Core Principles`). Exception: proper nouns and acronyms. |
|
|
16
|
-
| Lists | Parallel structure — all items start with same part of speech |
|
|
17
|
-
| Code | Inline backticks for symbols/commands; fenced blocks for multi-line |
|
|
18
|
-
| Links | Descriptive text: `[migration guide](./migrate.md)` not `[click here](./migrate.md)` |
|
|
19
|
-
| Tables | Use for structured comparisons; keep columns ≤5 |
|
|
20
|
-
| Line length | Wrap prose at ~120 characters for diff readability |
|
|
21
|
-
|
|
22
|
-
## Markdown Standards
|
|
23
|
-
|
|
24
|
-
- One blank line before, after headings, code blocks, tables
|
|
25
|
-
- No trailing whitespace
|
|
26
|
-
- Files end with a single newline
|
|
27
|
-
- Use `---` for horizontal rules (sparingly)
|
|
28
|
-
- Prefer `-` for unordered lists
|
|
29
|
-
|
|
30
|
-
## Anti-Patterns
|
|
31
|
-
|
|
32
|
-
| Anti-pattern | Fix |
|
|
33
|
-
|-------------|-----|
|
|
34
|
-
| Walls of prose without structure | Break into headings, bullets, or tables |
|
|
35
|
-
| Duplicate content across docs | Link to canonical source |
|
|
36
|
-
| Stale "Last Updated" dates | Remove or automate; manual dates drift |
|
|
37
|
-
| TODO/FIXME placeholders in published docs | Resolve before merging |
|
|
38
|
-
| Screenshots without alt text | Add descriptive alt text for accessibility |
|
|
39
|
-
| Overly nested headings (h4+) | Flatten; if you need h4, consider splitting the doc |
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
> Parent: [SKILL.md](./SKILL.md)
|
|
2
|
-
|
|
3
|
-
# Frontend Design Components
|
|
4
|
-
|
|
5
|
-
Extended component patterns, card variants, hero animations for **frontend-design** skill.
|
|
6
|
-
|
|
7
|
-
## Design Tokens (starter)
|
|
8
|
-
|
|
9
|
-
```css
|
|
10
|
-
:root {
|
|
11
|
-
--color-bg: #0f1724;
|
|
12
|
-
--color-ink: #e6eef8;
|
|
13
|
-
--color-accent: #ff7a59;
|
|
14
|
-
--space-1: 4px;
|
|
15
|
-
--space-2: 8px;
|
|
16
|
-
--space-3: 16px;
|
|
17
|
-
--radius-1: 6px;
|
|
18
|
-
}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Entrance Animation (starter)
|
|
22
|
-
|
|
23
|
-
```css
|
|
24
|
-
@keyframes fadeUp {
|
|
25
|
-
from { opacity: 0; transform: translateY(8px); }
|
|
26
|
-
to { opacity: 1; transform: translateY(0); }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
30
|
-
.fade-in-up { animation: fadeUp 420ms cubic-bezier(.2,.9,.2,1) both; }
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Card Patterns
|
|
35
|
-
|
|
36
|
-
### Glass Card
|
|
37
|
-
|
|
38
|
-
```css
|
|
39
|
-
.card-glass {
|
|
40
|
-
background: rgba(255, 255, 255, 0.05);
|
|
41
|
-
backdrop-filter: blur(12px);
|
|
42
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
43
|
-
border-radius: var(--radius-1);
|
|
44
|
-
padding: var(--space-3);
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Elevated Card
|
|
49
|
-
|
|
50
|
-
```css
|
|
51
|
-
.card-elevated {
|
|
52
|
-
background: var(--color-bg);
|
|
53
|
-
border-radius: var(--radius-1);
|
|
54
|
-
padding: var(--space-3);
|
|
55
|
-
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
|
|
56
|
-
transition: transform 200ms ease, box-shadow 200ms ease;
|
|
57
|
-
}
|
|
58
|
-
.card-elevated:hover {
|
|
59
|
-
transform: translateY(-2px);
|
|
60
|
-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Hero Animations
|
|
65
|
-
|
|
66
|
-
### Staggered Fade-In
|
|
67
|
-
|
|
68
|
-
```css
|
|
69
|
-
.hero-stagger > * {
|
|
70
|
-
opacity: 0;
|
|
71
|
-
transform: translateY(12px);
|
|
72
|
-
animation: fadeUp 500ms cubic-bezier(.2,.9,.2,1) forwards;
|
|
73
|
-
}
|
|
74
|
-
.hero-stagger > *:nth-child(1) { animation-delay: 0ms; }
|
|
75
|
-
.hero-stagger > *:nth-child(2) { animation-delay: 80ms; }
|
|
76
|
-
.hero-stagger > *:nth-child(3) { animation-delay: 160ms; }
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Gradient Shift
|
|
80
|
-
|
|
81
|
-
```css
|
|
82
|
-
.hero-gradient {
|
|
83
|
-
background: linear-gradient(135deg, var(--color-accent), var(--color-bg));
|
|
84
|
-
background-size: 200% 200%;
|
|
85
|
-
animation: gradientShift 6s ease infinite;
|
|
86
|
-
}
|
|
87
|
-
@keyframes gradientShift {
|
|
88
|
-
0%, 100% { background-position: 0% 50%; }
|
|
89
|
-
50% { background-position: 100% 50%; }
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## Button Variants
|
|
94
|
-
|
|
95
|
-
```css
|
|
96
|
-
.btn-primary {
|
|
97
|
-
background: var(--color-accent);
|
|
98
|
-
color: #fff;
|
|
99
|
-
padding: var(--space-2) var(--space-3);
|
|
100
|
-
border-radius: var(--radius-1);
|
|
101
|
-
font-weight: 600;
|
|
102
|
-
transition: opacity 150ms ease;
|
|
103
|
-
}
|
|
104
|
-
.btn-primary:hover { opacity: 0.9; }
|
|
105
|
-
|
|
106
|
-
.btn-ghost {
|
|
107
|
-
background: transparent;
|
|
108
|
-
color: var(--color-ink);
|
|
109
|
-
border: 1px solid currentColor;
|
|
110
|
-
padding: var(--space-2) var(--space-3);
|
|
111
|
-
border-radius: var(--radius-1);
|
|
112
|
-
}
|
|
113
|
-
```
|