@etus/bhono-app 0.1.1
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.d.ts +13 -0
- package/dist/cli.js +46 -0
- package/dist/cli.js.map +1 -0
- package/dist/cli.test.d.ts +1 -0
- package/dist/cli.test.js +26 -0
- package/dist/cli.test.js.map +1 -0
- package/dist/generator.d.ts +14 -0
- package/dist/generator.js +142 -0
- package/dist/generator.js.map +1 -0
- package/dist/generator.test.d.ts +1 -0
- package/dist/generator.test.js +127 -0
- package/dist/generator.test.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +97 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts.d.ts +25 -0
- package/dist/prompts.js +83 -0
- package/dist/prompts.js.map +1 -0
- package/dist/prompts.test.d.ts +1 -0
- package/dist/prompts.test.js +24 -0
- package/dist/prompts.test.js.map +1 -0
- package/dist/providers/cloudflare.d.ts +37 -0
- package/dist/providers/cloudflare.js +61 -0
- package/dist/providers/cloudflare.js.map +1 -0
- package/dist/providers/cloudflare.test.d.ts +1 -0
- package/dist/providers/cloudflare.test.js +29 -0
- package/dist/providers/cloudflare.test.js.map +1 -0
- package/dist/providers/github.d.ts +16 -0
- package/dist/providers/github.js +57 -0
- package/dist/providers/github.js.map +1 -0
- package/dist/providers/github.test.d.ts +1 -0
- package/dist/providers/github.test.js +16 -0
- package/dist/providers/github.test.js.map +1 -0
- package/dist/templates.d.ts +8 -0
- package/dist/templates.js +88 -0
- package/dist/templates.js.map +1 -0
- package/dist/templates.test.d.ts +1 -0
- package/dist/templates.test.js +26 -0
- package/dist/templates.test.js.map +1 -0
- package/package.json +36 -0
- package/templates/base/.claude/agents/architect-review.md +160 -0
- package/templates/base/.claude/agents/backend-architect.md +308 -0
- package/templates/base/.claude/agents/code-reviewer.md +170 -0
- package/templates/base/.claude/agents/performance-engineer.md +166 -0
- package/templates/base/.claude/agents/test-automator.md +219 -0
- package/templates/base/.claude/commands/check-skill-rules.md +53 -0
- package/templates/base/.claude/commands/claude-md.md +250 -0
- package/templates/base/.claude/commands/code-prompt.md +212 -0
- package/templates/base/.claude/commands/explain-code.md +194 -0
- package/templates/base/.claude/commands/init-projec.md +89 -0
- package/templates/base/.claude/commands/linear/README.md +297 -0
- package/templates/base/.claude/commands/linear/create-issue.md +190 -0
- package/templates/base/.claude/commands/linear/implement-issue.md +248 -0
- package/templates/base/.claude/commands/linear/process-triage.md +399 -0
- package/templates/base/.claude/commands/linear/setup.md +180 -0
- package/templates/base/.claude/commands/prime.md +9 -0
- package/templates/base/.claude/commands/review-gap.md +10 -0
- package/templates/base/.claude/commands/setup-aa.md +311 -0
- package/templates/base/.claude/commands/ship.md +262 -0
- package/templates/base/.claude/commands/tools.md +3 -0
- package/templates/base/.claude/docs/claude-progress.txt +107 -0
- package/templates/base/.claude/hooks/package-lock.json +556 -0
- package/templates/base/.claude/hooks/package.json +16 -0
- package/templates/base/.claude/hooks/skill-activation-prompt.sh +7 -0
- package/templates/base/.claude/hooks/skill-activation-prompt.ts +142 -0
- package/templates/base/.claude/hooks/tsconfig.json +19 -0
- package/templates/base/.claude/scripts/check-updates.sh +85 -0
- package/templates/base/.claude/scripts/install_pkgs.sh +66 -0
- package/templates/base/.claude/scripts/setup-project.sh +177 -0
- package/templates/base/.claude/scripts/validate-skill-rules.sh +94 -0
- package/templates/base/.claude/settings.json +113 -0
- package/templates/base/.claude/settings.local.json +11 -0
- package/templates/base/.claude/skills/architecture-analyzer/SKILL.md +531 -0
- package/templates/base/.claude/skills/architecture-analyzer/assets/report-template.md +215 -0
- package/templates/base/.claude/skills/architecture-analyzer/references/c4-templates.md +234 -0
- package/templates/base/.claude/skills/architecture-analyzer/references/confidence-levels.md +203 -0
- package/templates/base/.claude/skills/architecture-analyzer/scripts/analyze_structure.py +266 -0
- package/templates/base/.claude/skills/architecture-analyzer/scripts/analyze_tech_debt.py +776 -0
- package/templates/base/.claude/skills/architecture-analyzer/scripts/extract_apis.py +338 -0
- package/templates/base/.claude/skills/architecture-analyzer/scripts/generate_c4.py +283 -0
- package/templates/base/.claude/skills/architecture-analyzer/scripts/generate_erd.py +935 -0
- package/templates/base/.claude/skills/architecture-analyzer/scripts/map_dependencies.py +555 -0
- package/templates/base/.claude/skills/dev-browser/SKILL.md +318 -0
- package/templates/base/.claude/skills/dev-browser/bun.lock +443 -0
- package/templates/base/.claude/skills/dev-browser/package-lock.json +2927 -0
- package/templates/base/.claude/skills/dev-browser/package.json +27 -0
- package/templates/base/.claude/skills/dev-browser/scripts/start-server.ts +117 -0
- package/templates/base/.claude/skills/dev-browser/server.sh +24 -0
- package/templates/base/.claude/skills/dev-browser/src/client.ts +403 -0
- package/templates/base/.claude/skills/dev-browser/src/index.ts +281 -0
- package/templates/base/.claude/skills/dev-browser/src/snapshot/__tests__/snapshot.test.ts +223 -0
- package/templates/base/.claude/skills/dev-browser/src/snapshot/browser-script.ts +877 -0
- package/templates/base/.claude/skills/dev-browser/src/snapshot/index.ts +14 -0
- package/templates/base/.claude/skills/dev-browser/src/snapshot/inject.ts +13 -0
- package/templates/base/.claude/skills/dev-browser/src/types.ts +27 -0
- package/templates/base/.claude/skills/dev-browser/tsconfig.json +36 -0
- package/templates/base/.claude/skills/dev-browser/vitest.config.ts +12 -0
- package/templates/base/.claude/skills/linear/SKILL.md +440 -0
- package/templates/base/.claude/skills/linear/examples.md +262 -0
- package/templates/base/.claude/skills/linear/lib/client.ts +51 -0
- package/templates/base/.claude/skills/linear/lib/config.ts +106 -0
- package/templates/base/.claude/skills/linear/lib/output.ts +34 -0
- package/templates/base/.claude/skills/linear/package-lock.json +698 -0
- package/templates/base/.claude/skills/linear/package.json +27 -0
- package/templates/base/.claude/skills/linear/reference.md +263 -0
- package/templates/base/.claude/skills/linear/scripts/comments/create.ts +47 -0
- package/templates/base/.claude/skills/linear/scripts/comments/list.ts +47 -0
- package/templates/base/.claude/skills/linear/scripts/issues/archive.ts +30 -0
- package/templates/base/.claude/skills/linear/scripts/issues/create.ts +279 -0
- package/templates/base/.claude/skills/linear/scripts/issues/get.ts +68 -0
- package/templates/base/.claude/skills/linear/scripts/issues/list.ts +67 -0
- package/templates/base/.claude/skills/linear/scripts/issues/update.ts +281 -0
- package/templates/base/.claude/skills/linear/scripts/labels/add-to-issue.ts +63 -0
- package/templates/base/.claude/skills/linear/scripts/labels/create.ts +45 -0
- package/templates/base/.claude/skills/linear/scripts/labels/list.ts +30 -0
- package/templates/base/.claude/skills/linear/scripts/list-teams.ts +52 -0
- package/templates/base/.claude/skills/linear/scripts/setup/setup-credentials.ts +96 -0
- package/templates/base/.claude/skills/linear/scripts/status/list.ts +31 -0
- package/templates/base/.claude/skills/linear/scripts/status/set-by-name.ts +78 -0
- package/templates/base/.claude/skills/linear/scripts/status/update.ts +44 -0
- package/templates/base/.claude/skills/linear/scripts/users/list.ts +59 -0
- package/templates/base/.claude/skills/linear/scripts/users/me.ts +20 -0
- package/templates/base/.claude/skills/linear/templates/README.md +203 -0
- package/templates/base/.claude/skills/linear/templates/api-reference.md +258 -0
- package/templates/base/.claude/skills/linear/templates/bug-report.md +99 -0
- package/templates/base/.claude/skills/linear/templates/feature-request.md +118 -0
- package/templates/base/.claude/skills/linear/templates/security-issue.md +162 -0
- package/templates/base/.claude/skills/linear/templates/sprint-task.md +175 -0
- package/templates/base/.claude/skills/linear/templates/tech-debt.md +137 -0
- package/templates/base/.claude/skills/linear/tsconfig.json +17 -0
- package/templates/base/.claude/skills/linear/workflows/issue-lifecycle.md +317 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/SKILL.md +113 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/assets/global-setup.template.js +97 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/assets/playwright.config.template.js +171 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/assets/test-template.spec.js +163 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/examples/README.md +26 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/examples/ads.email-deeplink.spec.ts +12 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/examples/mobile.realism.spec.ts +16 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/examples/smoke.home.spec.ts +6 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/architecture.md +578 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/best-practices.md +260 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/ci-reporting.md +86 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/debugging.md +629 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/mobile-realism.md +50 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/optimization.md +488 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/patterns.md +513 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/resources.md +44 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/references/visual-a11y.md +66 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/scripts/auth-setup.js +202 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/scripts/performance-analyzer.js +240 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/scripts/trace-url.js +132 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/ci/github-actions.playwright.yml +78 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/fixtures.ts +44 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/global-setup.template.js +97 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/global.setup.ts +35 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/helpers/ad-gpt-observer.ts +80 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/helpers/chromium-mobile-profile.ts +93 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/playwright.config.template.js +171 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/playwright.config.ts +126 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/test-template.spec.js +163 -0
- package/templates/base/.claude/skills/playwright-e2e-testing/templates/tests/email-deeplink.ads.spec.ts +44 -0
- package/templates/base/.claude/skills/skill-rules.json +184 -0
- package/templates/base/.claude/skills/wrangler/SKILL.md +209 -0
- package/templates/base/.claude/skills/wrangler/resources/api.md +494 -0
- package/templates/base/.claude/skills/wrangler/resources/bundling.md +83 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/cert.md +64 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/check.md +66 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/containers.md +157 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/d1.md +843 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/delete.md +27 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/deploy.md +139 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/deployments.md +56 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/dev.md +157 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/dispatch-namespace.md +69 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/docs.md +61 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/how-to-run.md +62 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/hyperdrive.md +425 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/init.md +31 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/kv-bulk.md +265 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/kv-key.md +353 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/kv-namespace.md +265 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/login.md +23 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/logout.md +19 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/mtls-certificate.md +69 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/pages.md +175 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/pipelines.md +76 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/queues.md +132 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/r2-bucket.md +342 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/r2-object.md +267 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/r2-sql.md +65 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/rollback.md +40 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/secret.md +308 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/secrets-store-secret.md +100 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/secrets-store-store.md +60 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/setup.md +67 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/tail.md +37 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/telemetry.md +64 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/triggers.md +39 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/types.md +73 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/vectorize.md +941 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/versions.md +95 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/whoami.md +49 -0
- package/templates/base/.claude/skills/wrangler/resources/commands/workflows.md +117 -0
- package/templates/base/.claude/skills/wrangler/resources/commands.md +138 -0
- package/templates/base/.claude/skills/wrangler/resources/configuration.md +2176 -0
- package/templates/base/.claude/skills/wrangler/resources/custom-builds.md +55 -0
- package/templates/base/.claude/skills/wrangler/resources/deprecations.md +279 -0
- package/templates/base/.claude/skills/wrangler/resources/enviroments.md +416 -0
- package/templates/base/.claude/skills/wrangler/resources/extract_sections.py +119 -0
- package/templates/base/.claude/skills/wrangler/resources/process_content.py +94 -0
- package/templates/base/.claude/skills/wrangler/resources/system-enviroments-variables.md +120 -0
- package/templates/base/.dev.vars.example +15 -0
- package/templates/base/.env.example +29 -0
- package/templates/base/.github/workflows/test.yml +127 -0
- package/templates/base/.nycrc.json +16 -0
- package/templates/base/CLAUDE.md +218 -0
- package/templates/base/README.md +670 -0
- package/templates/base/auth-setup-error.png +0 -0
- package/templates/base/config/drizzle.config.ts +10 -0
- package/templates/base/config/eslint.config.js +364 -0
- package/templates/base/config/wrangler.json +76 -0
- package/templates/base/docs/app_spec.txt +879 -0
- package/templates/base/docs/app_spec_template.md +681 -0
- package/templates/base/docs/architecture/README.md +8 -0
- package/templates/base/docs/architecture/data-requirements.md +109 -0
- package/templates/base/docs/architecture/erd.md +91 -0
- package/templates/base/docs/features/feature_list.json +3128 -0
- package/templates/base/docs/hono-boilerplate-plan.md +1774 -0
- package/templates/base/docs/test-coverage-gap-analysis.md +242 -0
- package/templates/base/docs/testing.md +188 -0
- package/templates/base/index.html +16 -0
- package/templates/base/package.json +115 -0
- package/templates/base/playwright.config.ts +158 -0
- package/templates/base/pnpm-lock.yaml +8175 -0
- package/templates/base/scripts/capture-prod-session.ts +250 -0
- package/templates/base/scripts/generate-openapi.ts +23 -0
- package/templates/base/scripts/init.sh +121 -0
- package/templates/base/src/client/__tests__/button.test.tsx +30 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/dashboard.test.tsx/Dashboard-Page-when-authenticated-should-display-dashboard-stats-cards-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/dashboard.test.tsx/Dashboard-Page-when-authenticated-should-display-quick-action-cards-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/dashboard.test.tsx/Dashboard-Page-when-authenticated-should-display-recent-activity-section-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/dashboard.test.tsx/Dashboard-Page-when-authenticated-should-display-user-first-name-in-welcome-message-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/dashboard.test.tsx/Dashboard-Page-when-authenticated-should-display-user-information-in-sidebar-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/dashboard.test.tsx/Dashboard-Page-when-authenticated-should-render-dashboard-when-authenticated-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/dashboard.test.tsx/Dashboard-Page-when-authenticated-should-show-navigation-sidebar-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/dashboard.test.tsx/Dashboard-Page-when-unauthenticated-should-redirect-to-login-when-not-authenticated-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/login.test.tsx/Login-Page-should-display-Google-OAuth-login-button-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/login.test.tsx/Login-Page-should-have-a-link-back-to-home-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/login.test.tsx/Login-Page-should-render-login-content-without-waiting-for-authentication-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/login.test.tsx/Login-Page-should-render-login-page-at--login-route-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/login.test.tsx/Login-Page-should-show-Terms-of-Service-and-Privacy-Policy-links-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/login.test.tsx/Login-Page-should-trigger-OAuth-flow-when-clicking-login-button-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-404-handling-should-display-404-text-on-not-found-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-404-handling-should-have-navigation-options-on-404-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-404-handling-should-render-404-page-for-unknown-routes-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-authenticated-navigation-should-navigate-from-dashboard-to-account-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-authenticated-navigation-should-navigate-from-dashboard-to-integrations-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-authenticated-navigation-should-navigate-from-dashboard-to-settings-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-authenticated-navigation-should-navigate-from-dashboard-to-team-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-home-page-navigation-should-display-navigation-links-on-home-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-home-page-navigation-should-have-correct-link-destinations-on-home-page-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-unauthenticated-navigation-should-allow-access-to-home-page-without-authentication-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-unauthenticated-navigation-should-allow-access-to-login-page-without-authentication-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-unauthenticated-navigation-should-redirect-unauthenticated-users-from-dashboard-to-login-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-unauthenticated-navigation-should-redirect-unauthenticated-users-from-settings-to-login-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/__screenshots__/navigation.test.tsx/Navigation-unauthenticated-navigation-should-redirect-unauthenticated-users-from-team-to-login-1.png +0 -0
- package/templates/base/src/client/__tests__/routes/authenticated-layout.test.tsx +252 -0
- package/templates/base/src/client/__tests__/routes/dashboard.test.tsx +136 -0
- package/templates/base/src/client/__tests__/routes/error-components.test.tsx +186 -0
- package/templates/base/src/client/__tests__/routes/login.test.tsx +112 -0
- package/templates/base/src/client/__tests__/routes/navigation.test.tsx +272 -0
- package/templates/base/src/client/__tests__/routes/root-layout.test.tsx +65 -0
- package/templates/base/src/client/__tests__/setup-browser.ts +15 -0
- package/templates/base/src/client/__tests__/setup.ts +32 -0
- package/templates/base/src/client/__tests__/test-utils.tsx +135 -0
- package/templates/base/src/client/api/.gitkeep +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-can-be-collapsed-by-default-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-expands-when-collapsed-and-expand-button-is-clicked-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-handles-logout-button-click-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-handles-navigation-clicks-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-hides-navigation-labels-when-collapsed-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-highlights-active-route-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-renders-sidebar-navigation-items-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-shows-keyboard-shortcut-hint-when-expanded-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-shows-user-info-when-authenticated-1.png +0 -0
- package/templates/base/src/client/components/__tests__/__screenshots__/sidebar.test.tsx/Sidebar-shows-user-initials-in-avatar-fallback-1.png +0 -0
- package/templates/base/src/client/components/__tests__/error-boundary.test.tsx +97 -0
- package/templates/base/src/client/components/__tests__/sidebar.test.tsx +281 -0
- package/templates/base/src/client/components/error-boundary.tsx +68 -0
- package/templates/base/src/client/components/icons.tsx +106 -0
- package/templates/base/src/client/components/layout/.gitkeep +0 -0
- package/templates/base/src/client/components/sidebar.tsx +267 -0
- package/templates/base/src/client/components/ui/.gitkeep +0 -0
- package/templates/base/src/client/components/ui/__tests__/avatar.test.tsx +308 -0
- package/templates/base/src/client/components/ui/__tests__/card.test.tsx +214 -0
- package/templates/base/src/client/components/ui/__tests__/dialog.test.tsx +297 -0
- package/templates/base/src/client/components/ui/__tests__/error-fallback.test.tsx +145 -0
- package/templates/base/src/client/components/ui/__tests__/input.test.tsx +98 -0
- package/templates/base/src/client/components/ui/__tests__/loading-skeleton.test.tsx +139 -0
- package/templates/base/src/client/components/ui/__tests__/skeleton.test.tsx +44 -0
- package/templates/base/src/client/components/ui/__tests__/sonner.test.tsx +28 -0
- package/templates/base/src/client/components/ui/__tests__/tabs.test.tsx +233 -0
- package/templates/base/src/client/components/ui/avatar.tsx +101 -0
- package/templates/base/src/client/components/ui/badge.tsx +46 -0
- package/templates/base/src/client/components/ui/button.tsx +72 -0
- package/templates/base/src/client/components/ui/card.tsx +86 -0
- package/templates/base/src/client/components/ui/dialog.tsx +140 -0
- package/templates/base/src/client/components/ui/error-fallback.tsx +179 -0
- package/templates/base/src/client/components/ui/form.tsx +172 -0
- package/templates/base/src/client/components/ui/input.tsx +24 -0
- package/templates/base/src/client/components/ui/label.tsx +22 -0
- package/templates/base/src/client/components/ui/loading-skeleton.tsx +154 -0
- package/templates/base/src/client/components/ui/separator.tsx +33 -0
- package/templates/base/src/client/components/ui/skeleton.tsx +16 -0
- package/templates/base/src/client/components/ui/sonner.tsx +29 -0
- package/templates/base/src/client/components/ui/tabs.tsx +121 -0
- package/templates/base/src/client/hooks/.gitkeep +0 -0
- package/templates/base/src/client/hooks/__tests__/use-auth.test.tsx +306 -0
- package/templates/base/src/client/hooks/__tests__/use-theme.test.tsx +172 -0
- package/templates/base/src/client/hooks/use-auth.ts +53 -0
- package/templates/base/src/client/hooks/use-theme.tsx +78 -0
- package/templates/base/src/client/index.css +881 -0
- package/templates/base/src/client/lib/query-client.ts +11 -0
- package/templates/base/src/client/lib/utils.ts +7 -0
- package/templates/base/src/client/main.tsx +26 -0
- package/templates/base/src/client/routeTree.gen.ts +258 -0
- package/templates/base/src/client/router.ts +15 -0
- package/templates/base/src/client/routes/$.tsx +77 -0
- package/templates/base/src/client/routes/.gitkeep +0 -0
- package/templates/base/src/client/routes/__root.tsx +34 -0
- package/templates/base/src/client/routes/__tests__/__screenshots__/invite.test.tsx/Invite-Token-Page-pending-invitation-state-should-display-accept-invitation-button-1.png +0 -0
- package/templates/base/src/client/routes/__tests__/__screenshots__/invite.test.tsx/Invite-Token-Page-pending-invitation-state-should-display-decline-button-linking-to-homepage-1.png +0 -0
- package/templates/base/src/client/routes/__tests__/__screenshots__/invite.test.tsx/Invite-Token-Page-pending-invitation-state-should-display-invitation-details--email--workspace--role--1.png +0 -0
- package/templates/base/src/client/routes/__tests__/__screenshots__/invite.test.tsx/Invite-Token-Page-pending-invitation-state-should-have-a-logo-link-to-homepage-1.png +0 -0
- package/templates/base/src/client/routes/__tests__/__screenshots__/invite.test.tsx/Invite-Token-Page-pending-invitation-state-should-render-invitation-page-with-inviter-name-and-workspace-1.png +0 -0
- package/templates/base/src/client/routes/__tests__/__screenshots__/invite.test.tsx/Invite-Token-Page-pending-invitation-state-should-show-terms-of-service-and-privacy-policy-links-1.png +0 -0
- package/templates/base/src/client/routes/__tests__/invite.test.tsx +138 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/account.test.tsx/Account-Page-should-render-Active-Sessions-section-with-session-cards-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/account.test.tsx/Account-Page-should-render-page-with-correct-title--Account--1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/account.test.tsx/Account-Page-should-show-API-Access-section-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/account.test.tsx/Account-Page-should-show-Connected-Accounts-section-with-Google-connected-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/account.test.tsx/Account-Page-should-show-Danger-Zone-section-with-delete-button-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/account.test.tsx/Account-Page-should-show-Security-section-with-Two-Factor-Authentication-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-API-documentation-section-should-display-API-documentation-link-section-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-Create-Webhook-Dialog-should-have-Add-Webhook-trigger-button-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-category-filters-should-display-all-category-buttons-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-integration-cards-should-display-all-integration-cards-with-names-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-integration-cards-should-display-category-badges-on-cards-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-integration-cards-should-show-Configure-button-for-connected-integrations-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-integration-cards-should-show-Connect-button-for-not-connected-integrations-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-integration-cards-should-show-Connected-badge-for-connected-integrations-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-page-rendering-should-display-Available-Integrations-section-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-page-rendering-should-display-Webhooks-section-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-page-rendering-should-display-connected-count-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-page-rendering-should-display-page-description-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-page-rendering-should-display-search-input-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-page-rendering-should-render-with-correct-title--Integrations--1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-search-functionality-should-filter-integrations-based-on-search-query-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-search-functionality-should-search-by-description-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-search-functionality-should-show-no-results-message-when-search-has-no-matches-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-webhooks-section-should-display-existing-webhook-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-webhooks-section-should-display-webhook-events-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-webhooks-section-should-display-webhook-last-delivery-info-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-webhooks-section-should-display-webhook-success-status-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/integrations.test.tsx/Integrations-Page-webhooks-section-should-have-Add-Webhook-button-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Account-tab-should-display-connected-accounts-section-with-Google-provider-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Account-tab-should-display-sessions-and-danger-zone-sections-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Notifications-tab-should-display-all-notification-toggle-options-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Notifications-tab-should-display-email-notifications-section-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Notifications-tab-should-display-toggle-switches-for-notification-options-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Notifications-tab-should-have-toggles-checked-by-default-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Profile-tab-should-display--Save-Changes--button-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Profile-tab-should-display-personal-information-form-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Profile-tab-should-display-profile-picture-section-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Profile-tab-should-display-user-email-in-disabled-email-input-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Profile-tab-should-display-user-initials-in-avatar-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-Profile-tab-should-display-user-name-in-the-name-input-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-page-rendering-should-display-all-three-tabs-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-page-rendering-should-display-page-description-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-page-rendering-should-render-with-correct-title--Settings--1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-tab-navigation-should-show-Profile-tab-as-default-active-tab-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-tab-navigation-should-switch-to-Account-tab-when-clicked-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/settings.test.tsx/Settings-Page-tab-navigation-should-switch-to-Notifications-tab-when-clicked-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/team.test.tsx/Team-Page-should-display-Active-Members-section-with-member-count-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/team.test.tsx/Team-Page-should-display-Pending-Invitations-section-with-invitation-details-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/team.test.tsx/Team-Page-should-have-invite-member-button-that-can-be-clicked-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/team.test.tsx/Team-Page-should-render-page-with-correct-title-and-description-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/team.test.tsx/Team-Page-should-render-search-input-that-filters-team-members-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/__screenshots__/team.test.tsx/Team-Page-should-show-current-user-with---you---indicator-and-role-badge-1.png +0 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/account.test.tsx +324 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/integrations.test.tsx +520 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/settings.test.tsx +414 -0
- package/templates/base/src/client/routes/_authenticated/__tests__/team.test.tsx +374 -0
- package/templates/base/src/client/routes/_authenticated/account.tsx +416 -0
- package/templates/base/src/client/routes/_authenticated/dashboard.tsx +151 -0
- package/templates/base/src/client/routes/_authenticated/integrations.tsx +553 -0
- package/templates/base/src/client/routes/_authenticated/settings.tsx +310 -0
- package/templates/base/src/client/routes/_authenticated/team.tsx +395 -0
- package/templates/base/src/client/routes/_authenticated.tsx +69 -0
- package/templates/base/src/client/routes/index.tsx +155 -0
- package/templates/base/src/client/routes/invite.$token.tsx +191 -0
- package/templates/base/src/client/routes/login.tsx +92 -0
- package/templates/base/src/server/__tests__/fixtures.ts +461 -0
- package/templates/base/src/server/__tests__/mocks/__tests__/db.test.ts +239 -0
- package/templates/base/src/server/__tests__/mocks/__tests__/kv.test.ts +293 -0
- package/templates/base/src/server/__tests__/mocks/__tests__/r2.test.ts +363 -0
- package/templates/base/src/server/__tests__/mocks/db.ts +186 -0
- package/templates/base/src/server/__tests__/mocks/index.ts +33 -0
- package/templates/base/src/server/__tests__/mocks/kv.ts +286 -0
- package/templates/base/src/server/__tests__/mocks/r2.ts +397 -0
- package/templates/base/src/server/__tests__/setup.ts +281 -0
- package/templates/base/src/server/auth/__tests__/guards.test.ts +162 -0
- package/templates/base/src/server/auth/guards.ts +92 -0
- package/templates/base/src/server/auth/permissions.test.ts +45 -0
- package/templates/base/src/server/auth/permissions.ts +139 -0
- package/templates/base/src/server/auth/roles.test.ts +169 -0
- package/templates/base/src/server/auth/roles.ts +141 -0
- package/templates/base/src/server/db/client.ts +12 -0
- package/templates/base/src/server/db/schema/accounts.ts +20 -0
- package/templates/base/src/server/db/schema/audit-logs.ts +26 -0
- package/templates/base/src/server/db/schema/index.ts +7 -0
- package/templates/base/src/server/db/schema/invitations.ts +30 -0
- package/templates/base/src/server/db/schema/refresh-tokens.ts +22 -0
- package/templates/base/src/server/db/schema/user-accounts.ts +25 -0
- package/templates/base/src/server/db/schema/users.ts +33 -0
- package/templates/base/src/server/db/seed.ts +267 -0
- package/templates/base/src/server/env.test.ts +84 -0
- package/templates/base/src/server/env.ts +78 -0
- package/templates/base/src/server/index.ts +82 -0
- package/templates/base/src/server/lib/audit.ts +73 -0
- package/templates/base/src/server/lib/audited-db.test.ts +107 -0
- package/templates/base/src/server/lib/audited-db.ts +154 -0
- package/templates/base/src/server/lib/email.test.ts +116 -0
- package/templates/base/src/server/lib/email.ts +82 -0
- package/templates/base/src/server/lib/errors.test.ts +49 -0
- package/templates/base/src/server/lib/errors.ts +64 -0
- package/templates/base/src/server/lib/oauth.test.ts +238 -0
- package/templates/base/src/server/lib/oauth.ts +113 -0
- package/templates/base/src/server/lib/pagination.test.ts +52 -0
- package/templates/base/src/server/lib/pagination.ts +32 -0
- package/templates/base/src/server/lib/password.test.ts +151 -0
- package/templates/base/src/server/lib/password.ts +151 -0
- package/templates/base/src/server/lib/providers.test.ts +105 -0
- package/templates/base/src/server/lib/providers.ts +62 -0
- package/templates/base/src/server/lib/r2-storage.test.ts +202 -0
- package/templates/base/src/server/lib/r2-storage.ts +107 -0
- package/templates/base/src/server/lib/schema-helpers.ts +16 -0
- package/templates/base/src/server/lib/session.test.ts +758 -0
- package/templates/base/src/server/lib/session.ts +267 -0
- package/templates/base/src/server/lib/tokens.test.ts +208 -0
- package/templates/base/src/server/lib/tokens.ts +65 -0
- package/templates/base/src/server/lib/transaction.test.ts +45 -0
- package/templates/base/src/server/lib/transaction.ts +24 -0
- package/templates/base/src/server/middleware/account.test.ts +201 -0
- package/templates/base/src/server/middleware/account.ts +66 -0
- package/templates/base/src/server/middleware/auth.test.ts +345 -0
- package/templates/base/src/server/middleware/auth.ts +146 -0
- package/templates/base/src/server/middleware/cors.test.ts +88 -0
- package/templates/base/src/server/middleware/cors.ts +26 -0
- package/templates/base/src/server/middleware/error-handler.test.ts +69 -0
- package/templates/base/src/server/middleware/error-handler.ts +43 -0
- package/templates/base/src/server/middleware/index.ts +8 -0
- package/templates/base/src/server/middleware/rate-limit.test.ts +472 -0
- package/templates/base/src/server/middleware/rate-limit.ts +294 -0
- package/templates/base/src/server/middleware/request-context.test.ts +175 -0
- package/templates/base/src/server/middleware/request-context.ts +28 -0
- package/templates/base/src/server/middleware/request-logger.test.ts +92 -0
- package/templates/base/src/server/middleware/request-logger.ts +50 -0
- package/templates/base/src/server/routes/accounts/__tests__/handlers.test.ts +460 -0
- package/templates/base/src/server/routes/accounts/handlers.ts +179 -0
- package/templates/base/src/server/routes/accounts/index.ts +55 -0
- package/templates/base/src/server/routes/accounts/routes.ts +205 -0
- package/templates/base/src/server/routes/accounts/schemas.ts +31 -0
- package/templates/base/src/server/routes/api.ts +37 -0
- package/templates/base/src/server/routes/audits/__tests__/handlers.test.ts +349 -0
- package/templates/base/src/server/routes/audits/handlers.ts +37 -0
- package/templates/base/src/server/routes/audits/index.ts +14 -0
- package/templates/base/src/server/routes/audits/routes.ts +29 -0
- package/templates/base/src/server/routes/audits/schemas.ts +43 -0
- package/templates/base/src/server/routes/auth/__tests__/handlers.test.ts +381 -0
- package/templates/base/src/server/routes/auth/handlers.ts +222 -0
- package/templates/base/src/server/routes/auth/index.ts +37 -0
- package/templates/base/src/server/routes/auth/routes.ts +136 -0
- package/templates/base/src/server/routes/auth/schemas.ts +48 -0
- package/templates/base/src/server/routes/auth/test-login.ts +156 -0
- package/templates/base/src/server/routes/health/__tests__/handlers.test.ts +237 -0
- package/templates/base/src/server/routes/health/handlers.ts +83 -0
- package/templates/base/src/server/routes/health/index.ts +13 -0
- package/templates/base/src/server/routes/health/routes.ts +90 -0
- package/templates/base/src/server/routes/index.ts +53 -0
- package/templates/base/src/server/routes/invitations/__tests__/handlers.test.ts +473 -0
- package/templates/base/src/server/routes/invitations/handlers.ts +71 -0
- package/templates/base/src/server/routes/invitations/index.ts +25 -0
- package/templates/base/src/server/routes/invitations/routes.ts +69 -0
- package/templates/base/src/server/routes/invitations/schemas.ts +39 -0
- package/templates/base/src/server/routes/openapi.ts +14 -0
- package/templates/base/src/server/routes/schemas.ts +53 -0
- package/templates/base/src/server/routes/storage/__tests__/handlers.test.ts +408 -0
- package/templates/base/src/server/routes/storage/handlers.ts +100 -0
- package/templates/base/src/server/routes/storage/index.ts +42 -0
- package/templates/base/src/server/routes/storage/routes.ts +91 -0
- package/templates/base/src/server/routes/storage/schemas.ts +56 -0
- package/templates/base/src/server/routes/users/__tests__/handlers.test.ts +526 -0
- package/templates/base/src/server/routes/users/handlers.ts +228 -0
- package/templates/base/src/server/routes/users/index.ts +67 -0
- package/templates/base/src/server/routes/users/routes.ts +265 -0
- package/templates/base/src/server/routes/users/schemas.ts +67 -0
- package/templates/base/src/server/services/__tests__/accounts.test.ts +764 -0
- package/templates/base/src/server/services/__tests__/audits.test.ts +235 -0
- package/templates/base/src/server/services/__tests__/auth.test.ts +765 -0
- package/templates/base/src/server/services/__tests__/invitations.test.ts +704 -0
- package/templates/base/src/server/services/__tests__/users.test.ts +755 -0
- package/templates/base/src/server/services/accounts.ts +269 -0
- package/templates/base/src/server/services/audits.ts +82 -0
- package/templates/base/src/server/services/auth.ts +225 -0
- package/templates/base/src/server/services/index.ts +6 -0
- package/templates/base/src/server/services/invitations.ts +306 -0
- package/templates/base/src/server/services/users.ts +350 -0
- package/templates/base/src/server/types/auth.ts +36 -0
- package/templates/base/src/server/types/index.ts +117 -0
- package/templates/base/src/shared/schemas/.gitkeep +0 -0
- package/templates/base/src/shared/schemas/__tests__/schemas.test.ts +547 -0
- package/templates/base/src/shared/schemas/account.ts +15 -0
- package/templates/base/src/shared/schemas/index.ts +6 -0
- package/templates/base/src/shared/schemas/invitation.ts +9 -0
- package/templates/base/src/shared/schemas/profile.ts +10 -0
- package/templates/base/src/shared/schemas/user.ts +16 -0
- package/templates/base/src/shared/schemas/webhook.ts +12 -0
- package/templates/base/src/shared/types/.gitkeep +0 -0
- package/templates/base/src/shared/types/account.ts +12 -0
- package/templates/base/src/shared/types/api.ts +1399 -0
- package/templates/base/src/shared/types/auth.ts +24 -0
- package/templates/base/src/shared/types/index.ts +5 -0
- package/templates/base/src/shared/types/user.ts +31 -0
- package/templates/base/src/test/vitest-zod-matcher.ts +37 -0
- package/templates/base/src/test/vitest.d.ts +19 -0
- package/templates/base/tests/e2e/README.md +141 -0
- package/templates/base/tests/e2e/a11y/accessibility.spec.ts +925 -0
- package/templates/base/tests/e2e/a11y/keyboard-navigation.spec.ts +610 -0
- package/templates/base/tests/e2e/api/accounts.spec.ts +148 -0
- package/templates/base/tests/e2e/api/audit-logs.spec.ts +130 -0
- package/templates/base/tests/e2e/api/authenticated-api.spec.ts +311 -0
- package/templates/base/tests/e2e/api/storage.spec.ts +109 -0
- package/templates/base/tests/e2e/auth-flows.unauth.spec.ts +117 -0
- package/templates/base/tests/e2e/auth-logout.unauth.spec.ts +103 -0
- package/templates/base/tests/e2e/auth.setup.ts +115 -0
- package/templates/base/tests/e2e/auth.spec.ts +146 -0
- package/templates/base/tests/e2e/compatibility/cross-browser.spec.ts +152 -0
- package/templates/base/tests/e2e/compatibility/cross-browser.spec.ts-snapshots/login-chromium-chromium-darwin.png +0 -0
- package/templates/base/tests/e2e/crud/account.spec.ts +356 -0
- package/templates/base/tests/e2e/crud/integrations.spec.ts +419 -0
- package/templates/base/tests/e2e/crud/team.spec.ts +287 -0
- package/templates/base/tests/e2e/crud/users.spec.ts +239 -0
- package/templates/base/tests/e2e/errors/error-boundary.spec.ts +428 -0
- package/templates/base/tests/e2e/errors/error-handling.spec.ts +47 -0
- package/templates/base/tests/e2e/errors/error-handling.unauth.spec.ts +205 -0
- package/templates/base/tests/e2e/fixtures.ts +266 -0
- package/templates/base/tests/e2e/forms/validation.spec.ts +569 -0
- package/templates/base/tests/e2e/invitations/invite-flow.unauth.spec.ts +204 -0
- package/templates/base/tests/e2e/journeys/account-lifecycle.spec.ts +314 -0
- package/templates/base/tests/e2e/journeys/audit-investigation.spec.ts +299 -0
- package/templates/base/tests/e2e/journeys/auth-onboarding.spec.ts +232 -0
- package/templates/base/tests/e2e/journeys/critical-flows.spec.ts +281 -0
- package/templates/base/tests/e2e/journeys/error-recovery.spec.ts +354 -0
- package/templates/base/tests/e2e/journeys/file-management.spec.ts +307 -0
- package/templates/base/tests/e2e/journeys/integrations.spec.ts +372 -0
- package/templates/base/tests/e2e/journeys/multi-account.spec.ts +317 -0
- package/templates/base/tests/e2e/journeys/rbac-enforcement.spec.ts +389 -0
- package/templates/base/tests/e2e/journeys/settings-profile.spec.ts +400 -0
- package/templates/base/tests/e2e/journeys/team-collaboration.spec.ts +410 -0
- package/templates/base/tests/e2e/mobile/responsive.spec.ts +178 -0
- package/templates/base/tests/e2e/navigation/routing.spec.ts +371 -0
- package/templates/base/tests/e2e/navigation/sidebar.spec.ts +425 -0
- package/templates/base/tests/e2e/pages/ui-features.spec.ts +393 -0
- package/templates/base/tests/e2e/performance/baselines.spec.ts +162 -0
- package/templates/base/tests/e2e/performance/benchmarks.spec.ts +371 -0
- package/templates/base/tests/e2e/smoke.unauth.spec.ts +196 -0
- package/templates/base/tests/e2e/visual/components.spec.ts +650 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/confirmation-dialog-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/dark-mode-background-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/dark-mode-card-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/dark-mode-sidebar-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/dashboard-card-single-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/dialog-content-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/dialog-with-backdrop-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/empty-search-results-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/input-default-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/input-focus-ring-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/primary-button-focus-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/primary-button-hover-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/primary-button-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/sidebar-active-nav-item-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/sidebar-collapsed-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/components.spec.ts-snapshots/sidebar-navigation-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts +192 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/account-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/create-webhook-dialog-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/dashboard-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/delete-account-dialog-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/integrations-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/invite-member-dialog-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/login-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/settings-account-tab-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/settings-profile-tab-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/sidebar-navigation-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/core-components.spec.ts-snapshots/team-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts +230 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/404-page-chromium-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/404-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/account-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/login-page-chromium-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/login-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/settings-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/team-invite-dialog-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/team-page-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/screenshots.spec.ts-snapshots/webhook-create-dialog-visual-darwin.png +0 -0
- package/templates/base/tests/e2e/visual/theme-colors.spec.ts +293 -0
- package/templates/base/tests/e2e/visual/ui-components.spec.ts +502 -0
- package/templates/base/tests/integration/accounts/crud.test.ts +1402 -0
- package/templates/base/tests/integration/audits/list.test.ts +1133 -0
- package/templates/base/tests/integration/auth/auth-service.test.ts +415 -0
- package/templates/base/tests/integration/auth/invitation-token.test.ts +529 -0
- package/templates/base/tests/integration/auth/logout.test.ts +524 -0
- package/templates/base/tests/integration/auth/oauth.test.ts +768 -0
- package/templates/base/tests/integration/auth/refresh-token.test.ts +364 -0
- package/templates/base/tests/integration/auth/session-expiry.test.ts +569 -0
- package/templates/base/tests/integration/auth/session.test.ts +520 -0
- package/templates/base/tests/integration/auth/super-admin.test.ts +451 -0
- package/templates/base/tests/integration/authorization/analytics-role.test.ts +1026 -0
- package/templates/base/tests/integration/authorization/billing-role.test.ts +776 -0
- package/templates/base/tests/integration/authorization/guards-roles.test.ts +539 -0
- package/templates/base/tests/integration/authorization/multi-tenancy.test.ts +1112 -0
- package/templates/base/tests/integration/authorization/role-hierarchy.test.ts +931 -0
- package/templates/base/tests/integration/authorization/roles.test.ts +1347 -0
- package/templates/base/tests/integration/config/production-behavior.test.ts +536 -0
- package/templates/base/tests/integration/db/constraints.test.ts +695 -0
- package/templates/base/tests/integration/fixtures/accounts.ts +136 -0
- package/templates/base/tests/integration/fixtures/index.ts +232 -0
- package/templates/base/tests/integration/fixtures/invitations.ts +195 -0
- package/templates/base/tests/integration/fixtures/users.ts +144 -0
- package/templates/base/tests/integration/health/health.test.ts +351 -0
- package/templates/base/tests/integration/invitations/crud.test.ts +1457 -0
- package/templates/base/tests/integration/invitations/email.test.ts +506 -0
- package/templates/base/tests/integration/lib/email.test.ts +174 -0
- package/templates/base/tests/integration/lib/oauth.test.ts +368 -0
- package/templates/base/tests/integration/lib/password.test.ts +192 -0
- package/templates/base/tests/integration/lib/schema-helpers.test.ts +129 -0
- package/templates/base/tests/integration/lib/tokens.test.ts +304 -0
- package/templates/base/tests/integration/middleware/auth.test.ts +499 -0
- package/templates/base/tests/integration/middleware/cors.test.ts +334 -0
- package/templates/base/tests/integration/middleware/request-context.test.ts +156 -0
- package/templates/base/tests/integration/middleware/request-logger.test.ts +313 -0
- package/templates/base/tests/integration/performance/response-times.test.ts +509 -0
- package/templates/base/tests/integration/security/cookie-security.test.ts +567 -0
- package/templates/base/tests/integration/security/csrf-protection.test.ts +542 -0
- package/templates/base/tests/integration/security/jwt-validation.test.ts +209 -0
- package/templates/base/tests/integration/security/log-sanitization.test.ts +658 -0
- package/templates/base/tests/integration/security/rate-limiting.test.ts +1251 -0
- package/templates/base/tests/integration/security/sql-injection.test.ts +663 -0
- package/templates/base/tests/integration/security/token-hashing.test.ts +371 -0
- package/templates/base/tests/integration/security/xss-prevention.test.ts +541 -0
- package/templates/base/tests/integration/setup.ts +834 -0
- package/templates/base/tests/integration/smoke.test.ts +288 -0
- package/templates/base/tests/integration/storage/upload.test.ts +1162 -0
- package/templates/base/tests/integration/storage/validation.test.ts +746 -0
- package/templates/base/tests/integration/users/crud.test.ts +1297 -0
- package/templates/base/tests/integration/users/list.test.ts +698 -0
- package/templates/base/tests/integration/vitest.config.ts +80 -0
- package/templates/base/tsconfig.app.json +18 -0
- package/templates/base/tsconfig.json +39 -0
- package/templates/base/tsconfig.node.json +16 -0
- package/templates/base/tsconfig.server.json +26 -0
- package/templates/base/tsconfig.tsbuildinfo +1 -0
- package/templates/base/vite.config.ts +46 -0
- package/templates/base/vitest.config.browser.ts +47 -0
- package/templates/base/vitest.config.frontend.ts +47 -0
- package/templates/base/vitest.config.ts +82 -0
- package/templates/base/vitest.workspace.ts +22 -0
- package/templates/modules/audit-logs/.gitkeep +0 -0
- package/templates/modules/billing/.gitkeep +0 -0
- package/templates/modules/invitations/.gitkeep +0 -0
- package/templates/modules/storage/.gitkeep +0 -0
- package/templates/modules/webhooks/.gitkeep +0 -0
- package/templates/providers/auth-email/.gitkeep +0 -0
- package/templates/providers/auth-github/.gitkeep +0 -0
- package/templates/providers/auth-google/.gitkeep +0 -0
- package/templates/providers/email-resend/.gitkeep +0 -0
- package/templates/providers/email-sendgrid/.gitkeep +0 -0
|
@@ -0,0 +1,881 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
/* ========================================
|
|
4
|
+
Seven Design System - Light Theme
|
|
5
|
+
======================================== */
|
|
6
|
+
|
|
7
|
+
@theme {
|
|
8
|
+
/* --- Semantic Colors (Light) --- */
|
|
9
|
+
--color-background: oklch(100% 0 0);
|
|
10
|
+
--color-foreground: oklch(20.79% 0.0424 265.75);
|
|
11
|
+
|
|
12
|
+
--color-card: oklch(100% 0 0);
|
|
13
|
+
--color-card-foreground: oklch(20.79% 0.0424 265.75);
|
|
14
|
+
|
|
15
|
+
--color-popover: oklch(100% 0 0);
|
|
16
|
+
--color-popover-foreground: oklch(20.79% 0.0424 265.75);
|
|
17
|
+
|
|
18
|
+
/* Primary - Vibrant Green */
|
|
19
|
+
--color-primary: oklch(81.06% 0.2032 150.12);
|
|
20
|
+
--color-primary-foreground: oklch(20.79% 0.0424 265.75);
|
|
21
|
+
|
|
22
|
+
--color-secondary: oklch(96.83% 0 0);
|
|
23
|
+
--color-secondary-foreground: oklch(20.79% 0.0424 265.75);
|
|
24
|
+
|
|
25
|
+
--color-muted: oklch(96.83% 0 0);
|
|
26
|
+
--color-muted-foreground: oklch(55.55% 0.0234 264.36);
|
|
27
|
+
|
|
28
|
+
--color-accent: oklch(96.83% 0 0);
|
|
29
|
+
--color-accent-foreground: oklch(20.79% 0.0424 265.75);
|
|
30
|
+
|
|
31
|
+
--color-destructive: oklch(62.8% 0.2577 29.23);
|
|
32
|
+
--color-destructive-foreground: oklch(100% 0 0);
|
|
33
|
+
|
|
34
|
+
--color-border: oklch(92.2% 0 0);
|
|
35
|
+
--color-input: oklch(92.2% 0 0);
|
|
36
|
+
--color-ring: oklch(81.06% 0.2032 150.12);
|
|
37
|
+
|
|
38
|
+
/* Sidebar */
|
|
39
|
+
--color-sidebar: oklch(98.51% 0 0);
|
|
40
|
+
--color-sidebar-foreground: oklch(20.79% 0.0424 265.75);
|
|
41
|
+
--color-sidebar-border: oklch(92.2% 0 0);
|
|
42
|
+
--color-sidebar-accent: oklch(96.83% 0 0);
|
|
43
|
+
--color-sidebar-accent-foreground: oklch(20.79% 0.0424 265.75);
|
|
44
|
+
|
|
45
|
+
/* --- Status Colors --- */
|
|
46
|
+
--color-success: oklch(81.06% 0.2032 150.12);
|
|
47
|
+
--color-success-foreground: oklch(20.79% 0.0424 265.75);
|
|
48
|
+
--color-success-solid: oklch(81.06% 0.2032 150.12);
|
|
49
|
+
--color-success-solid-foreground: oklch(100% 0 0);
|
|
50
|
+
|
|
51
|
+
--color-error: oklch(62.8% 0.2577 29.23);
|
|
52
|
+
--color-error-foreground: oklch(100% 0 0);
|
|
53
|
+
--color-error-solid: oklch(62.8% 0.2577 29.23);
|
|
54
|
+
--color-error-solid-foreground: oklch(100% 0 0);
|
|
55
|
+
|
|
56
|
+
--color-warning: oklch(79.88% 0.1702 70.08);
|
|
57
|
+
--color-warning-foreground: oklch(20.79% 0.0424 265.75);
|
|
58
|
+
--color-warning-solid: oklch(79.88% 0.1702 70.08);
|
|
59
|
+
--color-warning-solid-foreground: oklch(20.79% 0.0424 265.75);
|
|
60
|
+
|
|
61
|
+
--color-info: oklch(61.19% 0.1963 255.1);
|
|
62
|
+
--color-info-foreground: oklch(100% 0 0);
|
|
63
|
+
--color-info-solid: oklch(61.19% 0.1963 255.1);
|
|
64
|
+
--color-info-solid-foreground: oklch(100% 0 0);
|
|
65
|
+
|
|
66
|
+
/* --- Green Palette (Primary) --- */
|
|
67
|
+
--color-green-50: oklch(97.78% 0.0219 153.08);
|
|
68
|
+
--color-green-100: oklch(94.42% 0.0639 151.07);
|
|
69
|
+
--color-green-200: oklch(89.76% 0.1134 150.7);
|
|
70
|
+
--color-green-300: oklch(83.6% 0.1697 150.26);
|
|
71
|
+
--color-green-400: oklch(81.06% 0.2032 150.12);
|
|
72
|
+
--color-green-500: oklch(72.27% 0.1939 149.58);
|
|
73
|
+
--color-green-600: oklch(59.49% 0.1623 148.36);
|
|
74
|
+
--color-green-700: oklch(48.24% 0.1293 148.23);
|
|
75
|
+
--color-green-800: oklch(40.42% 0.1025 149.21);
|
|
76
|
+
--color-green-900: oklch(35.66% 0.0827 151.04);
|
|
77
|
+
--color-green-950: oklch(22.73% 0.0553 152.1);
|
|
78
|
+
|
|
79
|
+
/* --- Blue Palette --- */
|
|
80
|
+
--color-blue-50: oklch(97.05% 0.0139 236.62);
|
|
81
|
+
--color-blue-100: oklch(93.22% 0.032 254.6);
|
|
82
|
+
--color-blue-200: oklch(88.25% 0.0599 252.3);
|
|
83
|
+
--color-blue-300: oklch(80.93% 0.1054 251.81);
|
|
84
|
+
--color-blue-400: oklch(71.4% 0.1527 248.66);
|
|
85
|
+
--color-blue-500: oklch(61.19% 0.1963 255.1);
|
|
86
|
+
--color-blue-600: oklch(54.62% 0.2148 262.88);
|
|
87
|
+
--color-blue-700: oklch(48.82% 0.2171 264.38);
|
|
88
|
+
--color-blue-800: oklch(42.44% 0.1776 265.64);
|
|
89
|
+
--color-blue-900: oklch(37.91% 0.1383 265.52);
|
|
90
|
+
--color-blue-950: oklch(28.24% 0.0913 267.94);
|
|
91
|
+
|
|
92
|
+
/* --- Gray Palette --- */
|
|
93
|
+
--color-gray-50: oklch(98.51% 0 0);
|
|
94
|
+
--color-gray-100: oklch(96.83% 0 0);
|
|
95
|
+
--color-gray-200: oklch(92.2% 0 0);
|
|
96
|
+
--color-gray-300: oklch(87.17% 0 0);
|
|
97
|
+
--color-gray-400: oklch(70.7% 0 0);
|
|
98
|
+
--color-gray-500: oklch(55.55% 0.0234 264.36);
|
|
99
|
+
--color-gray-600: oklch(44.62% 0.0303 265.75);
|
|
100
|
+
--color-gray-700: oklch(37.18% 0.0275 265.75);
|
|
101
|
+
--color-gray-800: oklch(27.81% 0.0275 265.75);
|
|
102
|
+
--color-gray-900: oklch(20.79% 0.0424 265.75);
|
|
103
|
+
--color-gray-950: oklch(12.94% 0.0219 264.7);
|
|
104
|
+
|
|
105
|
+
/* --- Red Palette --- */
|
|
106
|
+
--color-red-50: oklch(97.05% 0.013 17.38);
|
|
107
|
+
--color-red-100: oklch(93.58% 0.0294 17.72);
|
|
108
|
+
--color-red-200: oklch(88.61% 0.0605 18.33);
|
|
109
|
+
--color-red-300: oklch(80.79% 0.1108 19.57);
|
|
110
|
+
--color-red-400: oklch(70.44% 0.1912 22.21);
|
|
111
|
+
--color-red-500: oklch(62.8% 0.2577 29.23);
|
|
112
|
+
--color-red-600: oklch(57.71% 0.2449 27.33);
|
|
113
|
+
--color-red-700: oklch(50.54% 0.2059 27.52);
|
|
114
|
+
--color-red-800: oklch(44.38% 0.1715 26.9);
|
|
115
|
+
--color-red-900: oklch(39.59% 0.1407 25.72);
|
|
116
|
+
--color-red-950: oklch(25.82% 0.0913 26.04);
|
|
117
|
+
|
|
118
|
+
/* --- Yellow Palette --- */
|
|
119
|
+
--color-yellow-50: oklch(98.69% 0.0294 102.85);
|
|
120
|
+
--color-yellow-100: oklch(97.35% 0.0769 103.19);
|
|
121
|
+
--color-yellow-200: oklch(94.49% 0.1297 99.39);
|
|
122
|
+
--color-yellow-300: oklch(90.54% 0.1638 91.39);
|
|
123
|
+
--color-yellow-400: oklch(85.2% 0.1702 84.43);
|
|
124
|
+
--color-yellow-500: oklch(79.88% 0.1702 70.08);
|
|
125
|
+
--color-yellow-600: oklch(66.59% 0.1587 52.25);
|
|
126
|
+
--color-yellow-700: oklch(55.47% 0.1424 47.09);
|
|
127
|
+
--color-yellow-800: oklch(47.64% 0.1211 46.2);
|
|
128
|
+
--color-yellow-900: oklch(42.16% 0.1036 47.45);
|
|
129
|
+
--color-yellow-950: oklch(28.6% 0.0719 48.72);
|
|
130
|
+
|
|
131
|
+
/* --- Pink Palette --- */
|
|
132
|
+
--color-pink-50: oklch(97.05% 0.0155 343.23);
|
|
133
|
+
--color-pink-100: oklch(94.05% 0.0326 343.23);
|
|
134
|
+
--color-pink-200: oklch(89.76% 0.0613 343.23);
|
|
135
|
+
--color-pink-300: oklch(82.33% 0.1108 343.23);
|
|
136
|
+
--color-pink-400: oklch(71.4% 0.1912 343.23);
|
|
137
|
+
--color-pink-500: oklch(65.64% 0.2196 354.31);
|
|
138
|
+
--color-pink-600: oklch(59.13% 0.2268 0.19);
|
|
139
|
+
--color-pink-700: oklch(52.55% 0.2059 1.26);
|
|
140
|
+
--color-pink-800: oklch(45.47% 0.1697 359.77);
|
|
141
|
+
--color-pink-900: oklch(40.42% 0.1407 358.28);
|
|
142
|
+
--color-pink-950: oklch(27.09% 0.0981 356.03);
|
|
143
|
+
|
|
144
|
+
/* --- Main-1 Palette --- */
|
|
145
|
+
--color-main1-50: oklch(96.68% 0.0164 237.45);
|
|
146
|
+
--color-main1-100: oklch(93.95% 0.0314 238.02);
|
|
147
|
+
--color-main1-200: oklch(89.4% 0.0555 236.93);
|
|
148
|
+
--color-main1-300: oklch(82.7% 0.0913 239.23);
|
|
149
|
+
--color-main1-400: oklch(74.7% 0.1211 236.02);
|
|
150
|
+
--color-main1-500: oklch(63.87% 0.1424 239.23);
|
|
151
|
+
--color-main1-600: oklch(54.26% 0.137 241.31);
|
|
152
|
+
--color-main1-700: oklch(47.27% 0.1163 240.99);
|
|
153
|
+
--color-main1-800: oklch(40.42% 0.0949 241.31);
|
|
154
|
+
--color-main1-900: oklch(35.66% 0.0769 243.07);
|
|
155
|
+
--color-main1-950: oklch(26.36% 0.0555 246.77);
|
|
156
|
+
|
|
157
|
+
/* --- Main-2 Palette --- */
|
|
158
|
+
--color-main2-50: oklch(96.68% 0.0196 246.77);
|
|
159
|
+
--color-main2-100: oklch(93.58% 0.0408 248.66);
|
|
160
|
+
--color-main2-200: oklch(88.61% 0.0739 247.97);
|
|
161
|
+
--color-main2-300: oklch(80.93% 0.1211 249.74);
|
|
162
|
+
--color-main2-400: oklch(71.4% 0.1638 251.81);
|
|
163
|
+
--color-main2-500: oklch(59.85% 0.1912 256.27);
|
|
164
|
+
--color-main2-600: oklch(50.17% 0.1912 260.73);
|
|
165
|
+
--color-main2-700: oklch(43.52% 0.1702 262.04);
|
|
166
|
+
--color-main2-800: oklch(37.91% 0.1407 263.36);
|
|
167
|
+
--color-main2-900: oklch(33.43% 0.1163 265.04);
|
|
168
|
+
--color-main2-950: oklch(25.1% 0.0827 267.35);
|
|
169
|
+
|
|
170
|
+
/* --- Border Radius --- */
|
|
171
|
+
--radius-xs: 0.0625rem;
|
|
172
|
+
--radius-sm: 0.125rem;
|
|
173
|
+
--radius-md: 0.25rem;
|
|
174
|
+
--radius-lg: 0.5rem;
|
|
175
|
+
--radius-xl: 0.75rem;
|
|
176
|
+
--radius-2xl: 0.875rem;
|
|
177
|
+
--radius-full: 9999px;
|
|
178
|
+
|
|
179
|
+
/* --- Typography --- */
|
|
180
|
+
--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
181
|
+
--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
182
|
+
--font-serif: "Georgia", Cambria, "Times New Roman", Times, serif;
|
|
183
|
+
|
|
184
|
+
/* --- Container --- */
|
|
185
|
+
--container-xs: 20rem;
|
|
186
|
+
--container-sm: 24rem;
|
|
187
|
+
--container-md: 28rem;
|
|
188
|
+
--container-lg: 32rem;
|
|
189
|
+
--container-xl: 36rem;
|
|
190
|
+
--container-2xl: 42rem;
|
|
191
|
+
--container-3xl: 48rem;
|
|
192
|
+
--container-4xl: 56rem;
|
|
193
|
+
--container-5xl: 64rem;
|
|
194
|
+
--container-6xl: 72rem;
|
|
195
|
+
--container-7xl: 80rem;
|
|
196
|
+
|
|
197
|
+
/* --- Shadows --- */
|
|
198
|
+
--shadow-xs: 0px 1px 2px 0px oklch(0% 0 0 / 0.05);
|
|
199
|
+
--shadow-sm: 0px 1px 3px 0px oklch(0% 0 0 / 0.1), 0px 1px 2px -1px oklch(0% 0 0 / 0.1);
|
|
200
|
+
--shadow-md: 0px 4px 6px -1px oklch(0% 0 0 / 0.1), 0px 2px 4px -2px oklch(0% 0 0 / 0.1);
|
|
201
|
+
--shadow-lg: 0px 10px 15px -3px oklch(0% 0 0 / 0.1), 0px 4px 6px -4px oklch(0% 0 0 / 0.1);
|
|
202
|
+
--shadow-xl: 0px 20px 25px -5px oklch(0% 0 0 / 0.1), 0px 8px 10px -6px oklch(0% 0 0 / 0.1);
|
|
203
|
+
--shadow-2xl: 0px 25px 50px -12px oklch(0% 0 0 / 0.25);
|
|
204
|
+
--shadow-inner: inset 0px 2px 4px 0px oklch(0% 0 0 / 0.05);
|
|
205
|
+
|
|
206
|
+
/* --- Blur --- */
|
|
207
|
+
--blur-xs: 4px;
|
|
208
|
+
--blur-sm: 8px;
|
|
209
|
+
--blur-md: 12px;
|
|
210
|
+
--blur-lg: 16px;
|
|
211
|
+
--blur-xl: 24px;
|
|
212
|
+
--blur-2xl: 40px;
|
|
213
|
+
--blur-3xl: 64px;
|
|
214
|
+
|
|
215
|
+
/* --- Animations --- */
|
|
216
|
+
--animate-duration-fast: 150ms;
|
|
217
|
+
--animate-duration-normal: 300ms;
|
|
218
|
+
--animate-duration-slow: 500ms;
|
|
219
|
+
--animate-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
220
|
+
--animate-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
221
|
+
--animate-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
222
|
+
|
|
223
|
+
/* --- Spacing System (4px base) --- */
|
|
224
|
+
--spacing-page: 2rem; /* 32px - page container vertical rhythm */
|
|
225
|
+
--spacing-section: 1.5rem; /* 24px - between sections */
|
|
226
|
+
--spacing-group: 1rem; /* 16px - between related elements */
|
|
227
|
+
--spacing-element: 0.75rem; /* 12px - tight element spacing */
|
|
228
|
+
--spacing-tight: 0.5rem; /* 8px - micro spacing */
|
|
229
|
+
--spacing-xs: 0.25rem; /* 4px - minimal spacing */
|
|
230
|
+
|
|
231
|
+
/* --- Layout Spacing --- */
|
|
232
|
+
--layout-padding: 2rem; /* 32px - main content padding */
|
|
233
|
+
--layout-gap: 1.5rem; /* 24px - layout grid gaps */
|
|
234
|
+
--card-padding: 1.5rem; /* 24px - card internal padding */
|
|
235
|
+
--card-padding-compact: 1rem; /* 16px - compact card padding */
|
|
236
|
+
|
|
237
|
+
/* --- Breakpoints --- */
|
|
238
|
+
--breakpoint-sm: 40rem; /* 640px - mobile landscape */
|
|
239
|
+
--breakpoint-md: 48rem; /* 768px - tablets */
|
|
240
|
+
--breakpoint-lg: 64rem; /* 1024px - desktop */
|
|
241
|
+
--breakpoint-xl: 80rem; /* 1280px - large desktop */
|
|
242
|
+
--breakpoint-2xl: 96rem; /* 1536px - wide screens */
|
|
243
|
+
|
|
244
|
+
/* --- Typography Scale (Major Third - 1.25) --- */
|
|
245
|
+
--text-xs: 0.75rem; /* 12px */
|
|
246
|
+
--text-sm: 0.875rem; /* 14px */
|
|
247
|
+
--text-base: 1rem; /* 16px */
|
|
248
|
+
--text-lg: 1.125rem; /* 18px */
|
|
249
|
+
--text-xl: 1.25rem; /* 20px */
|
|
250
|
+
--text-2xl: 1.5rem; /* 24px */
|
|
251
|
+
--text-3xl: 1.875rem; /* 30px */
|
|
252
|
+
--text-4xl: 2.25rem; /* 36px */
|
|
253
|
+
--text-5xl: 3rem; /* 48px */
|
|
254
|
+
|
|
255
|
+
/* --- Line Heights --- */
|
|
256
|
+
--leading-none: 1;
|
|
257
|
+
--leading-tight: 1.25;
|
|
258
|
+
--leading-snug: 1.375;
|
|
259
|
+
--leading-normal: 1.5;
|
|
260
|
+
--leading-relaxed: 1.625;
|
|
261
|
+
--leading-loose: 2;
|
|
262
|
+
|
|
263
|
+
/* --- Font Weights --- */
|
|
264
|
+
--font-thin: 100;
|
|
265
|
+
--font-light: 300;
|
|
266
|
+
--font-normal: 400;
|
|
267
|
+
--font-medium: 500;
|
|
268
|
+
--font-semibold: 600;
|
|
269
|
+
--font-bold: 700;
|
|
270
|
+
--font-extrabold: 800;
|
|
271
|
+
|
|
272
|
+
/* --- Grid System --- */
|
|
273
|
+
--grid-gap-xs: 0.5rem; /* 8px - tight grid */
|
|
274
|
+
--grid-gap-sm: 0.75rem; /* 12px - compact grid */
|
|
275
|
+
--grid-gap-md: 1rem; /* 16px - default grid (gap-4) */
|
|
276
|
+
--grid-gap-lg: 1.5rem; /* 24px - spacious grid (gap-6) */
|
|
277
|
+
--grid-gap-xl: 2rem; /* 32px - loose grid (gap-8) */
|
|
278
|
+
|
|
279
|
+
/* --- Content Width --- */
|
|
280
|
+
--content-width: 80rem; /* 1280px - main content max-width */
|
|
281
|
+
--content-narrow: 42rem; /* 672px - narrow content (prose) */
|
|
282
|
+
--content-wide: 96rem; /* 1536px - wide content */
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* ========================================
|
|
286
|
+
Color Scheme for Native Elements
|
|
287
|
+
======================================== */
|
|
288
|
+
|
|
289
|
+
:root {
|
|
290
|
+
color-scheme: light;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.dark {
|
|
294
|
+
color-scheme: dark;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* ========================================
|
|
298
|
+
Dark Mode Theme
|
|
299
|
+
======================================== */
|
|
300
|
+
|
|
301
|
+
.dark {
|
|
302
|
+
/* --- Semantic Colors (Dark) --- */
|
|
303
|
+
--color-background: oklch(12.94% 0.0219 264.7);
|
|
304
|
+
--color-foreground: oklch(98.51% 0 0);
|
|
305
|
+
|
|
306
|
+
--color-card: oklch(16.93% 0.0275 265.75);
|
|
307
|
+
--color-card-foreground: oklch(98.51% 0 0);
|
|
308
|
+
|
|
309
|
+
--color-popover: oklch(16.93% 0.0275 265.75);
|
|
310
|
+
--color-popover-foreground: oklch(98.51% 0 0);
|
|
311
|
+
|
|
312
|
+
/* Primary - Vibrant Green */
|
|
313
|
+
--color-primary: oklch(81.06% 0.2032 150.12);
|
|
314
|
+
--color-primary-foreground: oklch(12.94% 0.0219 264.7);
|
|
315
|
+
|
|
316
|
+
--color-secondary: oklch(27.81% 0.0275 265.75);
|
|
317
|
+
--color-secondary-foreground: oklch(98.51% 0 0);
|
|
318
|
+
|
|
319
|
+
--color-muted: oklch(27.81% 0.0275 265.75);
|
|
320
|
+
--color-muted-foreground: oklch(70.7% 0 0);
|
|
321
|
+
|
|
322
|
+
--color-accent: oklch(27.81% 0.0275 265.75);
|
|
323
|
+
--color-accent-foreground: oklch(98.51% 0 0);
|
|
324
|
+
|
|
325
|
+
--color-destructive: oklch(62.8% 0.2577 29.23);
|
|
326
|
+
--color-destructive-foreground: oklch(100% 0 0);
|
|
327
|
+
|
|
328
|
+
--color-border: oklch(27.81% 0.0275 265.75);
|
|
329
|
+
--color-input: oklch(27.81% 0.0275 265.75);
|
|
330
|
+
--color-ring: oklch(81.06% 0.2032 150.12);
|
|
331
|
+
|
|
332
|
+
/* Sidebar */
|
|
333
|
+
--color-sidebar: oklch(10.94% 0.0175 264.7);
|
|
334
|
+
--color-sidebar-foreground: oklch(98.51% 0 0);
|
|
335
|
+
--color-sidebar-border: oklch(20.79% 0.0424 265.75);
|
|
336
|
+
--color-sidebar-accent: oklch(20.79% 0.0424 265.75);
|
|
337
|
+
--color-sidebar-accent-foreground: oklch(98.51% 0 0);
|
|
338
|
+
|
|
339
|
+
/* --- Status Colors (Dark) --- */
|
|
340
|
+
--color-success: oklch(72.27% 0.1939 149.58);
|
|
341
|
+
--color-success-foreground: oklch(12.94% 0.0219 264.7);
|
|
342
|
+
--color-success-solid: oklch(72.27% 0.1939 149.58);
|
|
343
|
+
--color-success-solid-foreground: oklch(12.94% 0.0219 264.7);
|
|
344
|
+
|
|
345
|
+
--color-error: oklch(70.44% 0.1912 22.21);
|
|
346
|
+
--color-error-foreground: oklch(12.94% 0.0219 264.7);
|
|
347
|
+
--color-error-solid: oklch(70.44% 0.1912 22.21);
|
|
348
|
+
--color-error-solid-foreground: oklch(12.94% 0.0219 264.7);
|
|
349
|
+
|
|
350
|
+
--color-warning: oklch(85.2% 0.1702 84.43);
|
|
351
|
+
--color-warning-foreground: oklch(12.94% 0.0219 264.7);
|
|
352
|
+
--color-warning-solid: oklch(85.2% 0.1702 84.43);
|
|
353
|
+
--color-warning-solid-foreground: oklch(12.94% 0.0219 264.7);
|
|
354
|
+
|
|
355
|
+
--color-info: oklch(71.4% 0.1527 248.66);
|
|
356
|
+
--color-info-foreground: oklch(12.94% 0.0219 264.7);
|
|
357
|
+
--color-info-solid: oklch(71.4% 0.1527 248.66);
|
|
358
|
+
--color-info-solid-foreground: oklch(12.94% 0.0219 264.7);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* ========================================
|
|
362
|
+
Base Styles
|
|
363
|
+
======================================== */
|
|
364
|
+
|
|
365
|
+
* {
|
|
366
|
+
border-color: var(--color-border);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
body {
|
|
370
|
+
font-family: var(--font-sans);
|
|
371
|
+
background-color: var(--color-background);
|
|
372
|
+
color: var(--color-foreground);
|
|
373
|
+
font-feature-settings: "rlig" 1, "calt" 1;
|
|
374
|
+
-webkit-font-smoothing: antialiased;
|
|
375
|
+
-moz-osx-font-smoothing: grayscale;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* ========================================
|
|
379
|
+
Animations & Keyframes
|
|
380
|
+
======================================== */
|
|
381
|
+
|
|
382
|
+
@keyframes fade-in {
|
|
383
|
+
from { opacity: 0; }
|
|
384
|
+
to { opacity: 1; }
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
@keyframes fade-out {
|
|
388
|
+
from { opacity: 1; }
|
|
389
|
+
to { opacity: 0; }
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
@keyframes slide-in-from-top {
|
|
393
|
+
from { transform: translateY(-100%); }
|
|
394
|
+
to { transform: translateY(0); }
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@keyframes slide-in-from-bottom {
|
|
398
|
+
from { transform: translateY(100%); }
|
|
399
|
+
to { transform: translateY(0); }
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@keyframes slide-in-from-left {
|
|
403
|
+
from { transform: translateX(-100%); }
|
|
404
|
+
to { transform: translateX(0); }
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
@keyframes slide-in-from-right {
|
|
408
|
+
from { transform: translateX(100%); }
|
|
409
|
+
to { transform: translateX(0); }
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
@keyframes scale-in {
|
|
413
|
+
from { transform: scale(0.95); opacity: 0; }
|
|
414
|
+
to { transform: scale(1); opacity: 1; }
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
@keyframes scale-out {
|
|
418
|
+
from { transform: scale(1); opacity: 1; }
|
|
419
|
+
to { transform: scale(0.95); opacity: 0; }
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@keyframes bounce-in {
|
|
423
|
+
0% { transform: scale(0.3); opacity: 0; }
|
|
424
|
+
50% { transform: scale(1.05); }
|
|
425
|
+
70% { transform: scale(0.9); }
|
|
426
|
+
100% { transform: scale(1); opacity: 1; }
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
@keyframes pulse-soft {
|
|
430
|
+
0%, 100% { opacity: 1; }
|
|
431
|
+
50% { opacity: 0.7; }
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
@keyframes shimmer {
|
|
435
|
+
0% { background-position: -200% 0; }
|
|
436
|
+
100% { background-position: 200% 0; }
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
@keyframes spin {
|
|
440
|
+
from { transform: rotate(0deg); }
|
|
441
|
+
to { transform: rotate(360deg); }
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
@keyframes accordion-down {
|
|
445
|
+
from { height: 0; }
|
|
446
|
+
to { height: var(--radix-accordion-content-height); }
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
@keyframes accordion-up {
|
|
450
|
+
from { height: var(--radix-accordion-content-height); }
|
|
451
|
+
to { height: 0; }
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* Animation utility classes */
|
|
455
|
+
@utility animate-fade-in {
|
|
456
|
+
animation: fade-in var(--animate-duration-normal) var(--animate-ease-out);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
@utility animate-fade-out {
|
|
460
|
+
animation: fade-out var(--animate-duration-normal) var(--animate-ease-out);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
@utility animate-scale-in {
|
|
464
|
+
animation: scale-in var(--animate-duration-normal) var(--animate-ease-out);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
@utility animate-scale-out {
|
|
468
|
+
animation: scale-out var(--animate-duration-normal) var(--animate-ease-out);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
@utility animate-bounce-in {
|
|
472
|
+
animation: bounce-in var(--animate-duration-slow) var(--animate-spring);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
@utility animate-pulse-soft {
|
|
476
|
+
animation: pulse-soft 2s ease-in-out infinite;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
@utility animate-shimmer {
|
|
480
|
+
background: linear-gradient(
|
|
481
|
+
90deg in oklch,
|
|
482
|
+
var(--color-muted) 25%,
|
|
483
|
+
var(--color-accent) 50%,
|
|
484
|
+
var(--color-muted) 75%
|
|
485
|
+
);
|
|
486
|
+
background-size: 200% 100%;
|
|
487
|
+
animation: shimmer 1.5s infinite;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
@utility animate-spin {
|
|
491
|
+
animation: spin 1s linear infinite;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
@utility animate-accordion-down {
|
|
495
|
+
animation: accordion-down var(--animate-duration-normal) var(--animate-ease-out);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
@utility animate-accordion-up {
|
|
499
|
+
animation: accordion-up var(--animate-duration-normal) var(--animate-ease-out);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/* ========================================
|
|
503
|
+
Transition Utilities
|
|
504
|
+
======================================== */
|
|
505
|
+
|
|
506
|
+
@utility transition-fast {
|
|
507
|
+
transition-duration: var(--animate-duration-fast);
|
|
508
|
+
transition-timing-function: var(--animate-ease-out);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@utility transition-normal {
|
|
512
|
+
transition-duration: var(--animate-duration-normal);
|
|
513
|
+
transition-timing-function: var(--animate-ease-out);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@utility transition-slow {
|
|
517
|
+
transition-duration: var(--animate-duration-slow);
|
|
518
|
+
transition-timing-function: var(--animate-ease-out);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
@utility transition-spring {
|
|
522
|
+
transition-duration: var(--animate-duration-normal);
|
|
523
|
+
transition-timing-function: var(--animate-spring);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* ========================================
|
|
527
|
+
Interactive States
|
|
528
|
+
======================================== */
|
|
529
|
+
|
|
530
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
531
|
+
html {
|
|
532
|
+
scroll-behavior: smooth;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* Default smooth transitions for interactive elements */
|
|
536
|
+
button,
|
|
537
|
+
a,
|
|
538
|
+
input,
|
|
539
|
+
textarea,
|
|
540
|
+
select,
|
|
541
|
+
[role="button"] {
|
|
542
|
+
transition: all var(--animate-duration-fast) var(--animate-ease-out);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/* Focus styles with primary color */
|
|
547
|
+
:focus-visible {
|
|
548
|
+
outline: 2px solid var(--color-ring);
|
|
549
|
+
outline-offset: 2px;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* Selection with primary color */
|
|
553
|
+
::selection {
|
|
554
|
+
background-color: var(--color-primary);
|
|
555
|
+
color: var(--color-primary-foreground);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/* ========================================
|
|
559
|
+
Scrollbar Styling
|
|
560
|
+
======================================== */
|
|
561
|
+
|
|
562
|
+
::-webkit-scrollbar {
|
|
563
|
+
width: 8px;
|
|
564
|
+
height: 8px;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
::-webkit-scrollbar-track {
|
|
568
|
+
background: var(--color-muted);
|
|
569
|
+
border-radius: var(--radius-full);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
::-webkit-scrollbar-thumb {
|
|
573
|
+
background: var(--color-gray-400);
|
|
574
|
+
border-radius: var(--radius-full);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
::-webkit-scrollbar-thumb:hover {
|
|
578
|
+
background: var(--color-gray-500);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.dark ::-webkit-scrollbar-thumb {
|
|
582
|
+
background: var(--color-gray-600);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.dark ::-webkit-scrollbar-thumb:hover {
|
|
586
|
+
background: var(--color-gray-500);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* ========================================
|
|
590
|
+
Loading & Skeleton States
|
|
591
|
+
======================================== */
|
|
592
|
+
|
|
593
|
+
@utility skeleton {
|
|
594
|
+
background: linear-gradient(
|
|
595
|
+
90deg in oklch,
|
|
596
|
+
var(--color-muted) 25%,
|
|
597
|
+
var(--color-gray-200) 50%,
|
|
598
|
+
var(--color-muted) 75%
|
|
599
|
+
);
|
|
600
|
+
background-size: 200% 100%;
|
|
601
|
+
animation: shimmer 1.5s infinite;
|
|
602
|
+
border-radius: var(--radius-md);
|
|
603
|
+
|
|
604
|
+
@variant dark {
|
|
605
|
+
background: linear-gradient(
|
|
606
|
+
90deg in oklch,
|
|
607
|
+
var(--color-muted) 25%,
|
|
608
|
+
var(--color-gray-700) 50%,
|
|
609
|
+
var(--color-muted) 75%
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* ========================================
|
|
615
|
+
Glass Effect
|
|
616
|
+
======================================== */
|
|
617
|
+
|
|
618
|
+
@utility glass {
|
|
619
|
+
background: oklch(100% 0 0 / 0.7);
|
|
620
|
+
backdrop-filter: blur(var(--blur-lg));
|
|
621
|
+
border: 1px solid oklch(100% 0 0 / 0.2);
|
|
622
|
+
|
|
623
|
+
@variant dark {
|
|
624
|
+
background: oklch(12.94% 0.0219 264.7 / 0.7);
|
|
625
|
+
border: 1px solid oklch(100% 0 0 / 0.1);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/* ========================================
|
|
630
|
+
Gradient Utilities
|
|
631
|
+
======================================== */
|
|
632
|
+
|
|
633
|
+
@utility gradient-primary {
|
|
634
|
+
background: linear-gradient(
|
|
635
|
+
135deg in oklch,
|
|
636
|
+
var(--color-green-400) 0%,
|
|
637
|
+
var(--color-green-500) 50%,
|
|
638
|
+
var(--color-green-600) 100%
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
@utility gradient-accent {
|
|
643
|
+
background: linear-gradient(
|
|
644
|
+
135deg in oklch,
|
|
645
|
+
var(--color-blue-400) 0%,
|
|
646
|
+
var(--color-main2-500) 50%,
|
|
647
|
+
var(--color-pink-500) 100%
|
|
648
|
+
);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
@utility gradient-warm {
|
|
652
|
+
background: linear-gradient(
|
|
653
|
+
135deg in oklch,
|
|
654
|
+
var(--color-yellow-400) 0%,
|
|
655
|
+
var(--color-red-400) 100%
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/* Text gradient */
|
|
660
|
+
@utility text-gradient-primary {
|
|
661
|
+
background: linear-gradient(
|
|
662
|
+
135deg in oklch,
|
|
663
|
+
var(--color-green-400) 0%,
|
|
664
|
+
var(--color-green-600) 100%
|
|
665
|
+
);
|
|
666
|
+
-webkit-background-clip: text;
|
|
667
|
+
-webkit-text-fill-color: transparent;
|
|
668
|
+
background-clip: text;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/* ========================================
|
|
672
|
+
Enter Animations (@starting-style)
|
|
673
|
+
======================================== */
|
|
674
|
+
|
|
675
|
+
/* Dialog/Modal Enter Animation */
|
|
676
|
+
@utility dialog-enter {
|
|
677
|
+
opacity: 1;
|
|
678
|
+
transform: scale(1) translateY(0);
|
|
679
|
+
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
680
|
+
|
|
681
|
+
@starting-style {
|
|
682
|
+
opacity: 0;
|
|
683
|
+
transform: scale(0.95) translateY(-10px);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/* Popover Enter Animation */
|
|
688
|
+
@utility popover-enter {
|
|
689
|
+
opacity: 1;
|
|
690
|
+
transform: translateY(0);
|
|
691
|
+
transition: opacity 150ms ease-out, transform 150ms ease-out;
|
|
692
|
+
|
|
693
|
+
@starting-style {
|
|
694
|
+
opacity: 0;
|
|
695
|
+
transform: translateY(-4px);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/* Toast Enter Animation */
|
|
700
|
+
@utility toast-enter {
|
|
701
|
+
opacity: 1;
|
|
702
|
+
transform: translateX(0);
|
|
703
|
+
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
704
|
+
|
|
705
|
+
@starting-style {
|
|
706
|
+
opacity: 0;
|
|
707
|
+
transform: translateX(100%);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/* Fade Enter Animation */
|
|
712
|
+
@utility fade-enter {
|
|
713
|
+
opacity: 1;
|
|
714
|
+
transition: opacity 150ms ease-out;
|
|
715
|
+
|
|
716
|
+
@starting-style {
|
|
717
|
+
opacity: 0;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/* ========================================
|
|
722
|
+
Container Query Utilities
|
|
723
|
+
======================================== */
|
|
724
|
+
|
|
725
|
+
/* Define container contexts */
|
|
726
|
+
@utility container-query {
|
|
727
|
+
container-type: inline-size;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
@utility container-query-size {
|
|
731
|
+
container-type: size;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/* Named containers */
|
|
735
|
+
@utility container-card {
|
|
736
|
+
container-type: inline-size;
|
|
737
|
+
container-name: card;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
@utility container-sidebar {
|
|
741
|
+
container-type: inline-size;
|
|
742
|
+
container-name: sidebar;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
@utility container-main {
|
|
746
|
+
container-type: inline-size;
|
|
747
|
+
container-name: main;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/* ========================================
|
|
751
|
+
Advanced Gradient Utilities
|
|
752
|
+
======================================== */
|
|
753
|
+
|
|
754
|
+
/* Radial gradients for highlights */
|
|
755
|
+
@utility gradient-radial-primary {
|
|
756
|
+
background: radial-gradient(circle at center, var(--color-green-400) 0%, transparent 70%);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
@utility gradient-radial-accent {
|
|
760
|
+
background: radial-gradient(circle at center, var(--color-blue-400) 0%, transparent 70%);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
@utility gradient-radial-glow {
|
|
764
|
+
background: radial-gradient(ellipse at top, var(--color-primary) 0%, transparent 50%);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/* Conic gradients for spinners/progress */
|
|
768
|
+
@utility gradient-conic-spinner {
|
|
769
|
+
background: conic-gradient(from 0deg, transparent 0deg, var(--color-primary) 270deg, transparent 360deg);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
@utility gradient-conic-progress {
|
|
773
|
+
background: conic-gradient(var(--color-primary) var(--progress, 0%), var(--color-muted) 0%);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
@utility gradient-conic-rainbow {
|
|
777
|
+
background: conic-gradient(
|
|
778
|
+
in oklch,
|
|
779
|
+
var(--color-red-500) 0deg,
|
|
780
|
+
var(--color-yellow-500) 60deg,
|
|
781
|
+
var(--color-green-500) 120deg,
|
|
782
|
+
var(--color-blue-500) 180deg,
|
|
783
|
+
var(--color-main2-500) 240deg,
|
|
784
|
+
var(--color-pink-500) 300deg,
|
|
785
|
+
var(--color-red-500) 360deg
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/* ========================================
|
|
790
|
+
Form Field Utilities
|
|
791
|
+
======================================== */
|
|
792
|
+
|
|
793
|
+
/* Auto-resize textarea */
|
|
794
|
+
@utility field-sizing-content {
|
|
795
|
+
field-sizing: content;
|
|
796
|
+
min-height: 2.5rem;
|
|
797
|
+
max-height: 20rem;
|
|
798
|
+
resize: none;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/* Fixed height (default behavior) */
|
|
802
|
+
@utility field-sizing-fixed {
|
|
803
|
+
field-sizing: fixed;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/* ========================================
|
|
807
|
+
not-* Variant Usage Examples
|
|
808
|
+
======================================== */
|
|
809
|
+
|
|
810
|
+
/*
|
|
811
|
+
Tailwind v4 includes the not-* variant natively.
|
|
812
|
+
Use directly in your components:
|
|
813
|
+
|
|
814
|
+
Examples:
|
|
815
|
+
- not-hover:opacity-100 → Full opacity when NOT hovering
|
|
816
|
+
- not-focus:border-muted → Muted border when NOT focused
|
|
817
|
+
- not-disabled:cursor-pointer → Pointer cursor when NOT disabled
|
|
818
|
+
- not-first:border-t → Top border on all except first
|
|
819
|
+
- not-last:border-b → Bottom border on all except last
|
|
820
|
+
- not-empty:pb-4 → Padding when NOT empty
|
|
821
|
+
|
|
822
|
+
Combined:
|
|
823
|
+
- hover:not-disabled:bg-primary → Hover effect only when not disabled
|
|
824
|
+
- focus:not-invalid:ring-primary → Focus ring only when valid
|
|
825
|
+
*/
|
|
826
|
+
|
|
827
|
+
/* ========================================
|
|
828
|
+
Inert State Styling
|
|
829
|
+
======================================== */
|
|
830
|
+
|
|
831
|
+
/*
|
|
832
|
+
The [inert] attribute makes elements non-interactive.
|
|
833
|
+
Tailwind v4 includes the inert: variant natively.
|
|
834
|
+
|
|
835
|
+
Use directly:
|
|
836
|
+
- inert:opacity-50
|
|
837
|
+
- inert:pointer-events-none
|
|
838
|
+
- inert:grayscale
|
|
839
|
+
|
|
840
|
+
Below are pre-composed utilities:
|
|
841
|
+
*/
|
|
842
|
+
|
|
843
|
+
@utility inert-overlay {
|
|
844
|
+
&[inert], [inert] & {
|
|
845
|
+
opacity: 0.5;
|
|
846
|
+
pointer-events: none;
|
|
847
|
+
user-select: none;
|
|
848
|
+
filter: grayscale(0.3);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
@utility inert-disabled {
|
|
853
|
+
&[inert], [inert] & {
|
|
854
|
+
opacity: 0.6;
|
|
855
|
+
cursor: not-allowed;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/* ========================================
|
|
860
|
+
in-* Variant Usage Examples
|
|
861
|
+
======================================== */
|
|
862
|
+
|
|
863
|
+
/*
|
|
864
|
+
Tailwind v4 includes the in-* variant for parent state matching.
|
|
865
|
+
Similar to group-* but without needing the group class.
|
|
866
|
+
|
|
867
|
+
Examples:
|
|
868
|
+
- in-hover:text-primary → When ANY ancestor is hovered
|
|
869
|
+
- in-focus:ring-2 → When ANY ancestor is focused
|
|
870
|
+
- in-[.open]:block → When ancestor has .open class
|
|
871
|
+
- in-data-[state=open]:opacity-100 → When ancestor has data-state="open"
|
|
872
|
+
|
|
873
|
+
Comparison with group-*:
|
|
874
|
+
- group-hover:text-primary → Needs <div class="group"> ancestor
|
|
875
|
+
- in-hover:text-primary → Works with any hoverable ancestor
|
|
876
|
+
|
|
877
|
+
Use in-* when:
|
|
878
|
+
- You don't control the parent markup
|
|
879
|
+
- Parent is a third-party component
|
|
880
|
+
- You want implicit parent state detection
|
|
881
|
+
*/
|