@donotdev/cli 0.1.0 → 0.1.42
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/LICENSE.md +1 -1
- package/README.md +0 -0
- package/dependencies-matrix.json +175 -72
- package/dist/bin/commands/agent-setup.js +936 -428
- package/dist/bin/commands/build.js +4363 -883
- package/dist/bin/commands/bump.js +1296 -780
- package/dist/bin/commands/cacheout.js +494 -363
- package/dist/bin/commands/coach.js +632 -431
- package/dist/bin/commands/create-app.js +1316 -799
- package/dist/bin/commands/create-project.js +1355 -827
- package/dist/bin/commands/db.js +26158 -18868
- package/dist/bin/commands/deploy.js +5983 -1971
- package/dist/bin/commands/dev.js +1223 -657
- package/dist/bin/commands/doctor.js +1100 -528
- package/dist/bin/commands/emu.js +1380 -757
- package/dist/bin/commands/format.js +494 -363
- package/dist/bin/commands/get-demo.js +1210 -715
- package/dist/bin/commands/make-admin.js +16073 -8700
- package/dist/bin/commands/preview.js +1227 -658
- package/dist/bin/commands/seed.js +26171 -18881
- package/dist/bin/commands/setup-cicd.js +1475 -880
- package/dist/bin/commands/setup.js +1574 -956
- package/dist/bin/commands/staging.js +5984 -1972
- package/dist/bin/commands/sync-secrets.js +1423 -676
- package/dist/bin/commands/type-check.js +976 -469
- package/dist/bin/commands/wai.js +499 -368
- package/dist/bin/dndev.js +43 -19
- package/dist/bin/donotdev.js +43 -19
- package/dist/index.js +6166 -2133
- package/guidelines/DEPENDENCIES.md +155 -0
- package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
- package/package.json +2 -1
- package/templates/app-demo/.env.example +1 -1
- package/templates/app-demo/entities/Contact.ts.example +0 -0
- package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
- package/templates/app-demo/entities/demo.ts.example +0 -0
- package/templates/app-demo/index.html.example +0 -0
- package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
- package/templates/app-demo/public/fonts/fonts.css.example +0 -0
- package/templates/app-demo/public/icon-192x192.png.example +0 -0
- package/templates/app-demo/public/icon-512x512.png.example +0 -0
- package/templates/app-demo/src/App.tsx.example +0 -0
- package/templates/app-demo/src/config/app.ts.example +0 -0
- package/templates/app-demo/src/entities/booking.ts.example +0 -0
- package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
- package/templates/app-demo/src/entities/product.ts.example +0 -0
- package/templates/app-demo/src/entities/quote.ts.example +0 -0
- package/templates/app-demo/src/globals.css.example +0 -0
- package/templates/app-demo/src/main.tsx.example +0 -0
- package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
- package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-demo/src/themes.css.example +27 -0
- package/templates/app-demo/tsconfig.json.example +0 -0
- package/templates/app-demo/vite.config.ts.example +0 -0
- package/templates/app-dndev/index.html.example +0 -3
- package/templates/app-dndev/src/App.tsx.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
- package/templates/app-dndev/src/components/Kanban.css.example +0 -0
- package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
- package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
- package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
- package/templates/app-dndev/src/config/app.ts.example +0 -0
- package/templates/app-dndev/src/config/commands.ts.example +0 -0
- package/templates/app-dndev/src/config/legal.ts.example +0 -0
- package/templates/app-dndev/src/config/providers.ts.example +1 -1
- package/templates/app-dndev/src/globals.css.example +0 -0
- package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
- package/templates/app-dndev/src/main.tsx.example +0 -0
- package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
- package/templates/app-dndev/src/themes.css.example +26 -0
- package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
- package/templates/app-dndev/vite.config.ts.example +0 -0
- package/templates/app-expo/.env.example +0 -32
- package/templates/app-expo/.expo/README.md.example +0 -0
- package/templates/app-expo/.gitignore.example +0 -0
- package/templates/app-expo/README.md.example +1 -1
- package/templates/app-expo/app/.gitkeep +0 -0
- package/templates/app-expo/app/_layout.tsx.example +0 -0
- package/templates/app-expo/app/form.tsx.example +0 -0
- package/templates/app-expo/app/index.tsx.example +0 -0
- package/templates/app-expo/app/list.tsx.example +0 -0
- package/templates/app-expo/app/profile.tsx.example +0 -0
- package/templates/app-expo/app/signin.tsx.example +0 -0
- package/templates/app-expo/app.json.example +0 -0
- package/templates/app-expo/assets/adaptive-icon.png +0 -0
- package/templates/app-expo/assets/favicon.png +0 -0
- package/templates/app-expo/assets/icon.png +0 -0
- package/templates/app-expo/assets/splash.png +0 -0
- package/templates/app-expo/babel.config.js.example +0 -0
- package/templates/app-expo/eas.json.example +0 -0
- package/templates/app-expo/expo-env.d.ts.example +0 -0
- package/templates/app-expo/metro.config.js.example +0 -0
- package/templates/app-expo/service-account-key.json.example +1 -1
- package/templates/app-expo/src/config/app.ts.example +0 -0
- package/templates/app-expo/src/config/providers.ts.example +1 -1
- package/templates/app-expo/tsconfig.json.example +0 -0
- package/templates/app-next/.env.example +0 -33
- package/templates/app-next/next.config.ts.example +0 -2
- package/templates/app-next/postcss.config.js.example +0 -0
- package/templates/app-next/service-account-key.json.example +0 -0
- package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
- package/templates/app-next/src/app/layout.tsx.example +13 -4
- package/templates/app-next/src/app/not-found.tsx.example +0 -0
- package/templates/app-next/src/config/app.ts.example +0 -0
- package/templates/app-next/src/config/legal.ts.example +0 -0
- package/templates/app-next/src/config/providers.ts.example +1 -1
- package/templates/app-next/src/globals.css.example +0 -0
- package/templates/app-next/src/locales/dndev_en.json.example +0 -0
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-next/src/themes.css.example +28 -1
- package/templates/app-vite/.env.example +0 -33
- package/templates/app-vite/csp.example.json +44 -0
- package/templates/app-vite/index.html.example +0 -3
- package/templates/app-vite/service-account-key.json.example +0 -0
- package/templates/app-vite/src/App.tsx.example +0 -0
- package/templates/app-vite/src/config/app.ts.example +0 -0
- package/templates/app-vite/src/config/legal.ts.example +0 -0
- package/templates/app-vite/src/config/providers.ts.example +1 -1
- package/templates/app-vite/src/globals.css.example +0 -0
- package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/main.tsx.example +0 -0
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-vite/src/themes.css.example +26 -0
- package/templates/deploy-config/.firebaserc.example +0 -0
- package/templates/deploy-config/firestore.indexes.json.example +0 -0
- package/templates/deploy-config/firestore.rules.example +0 -0
- package/templates/deploy-config/storage.rules.example +0 -0
- package/templates/deploy-config/tsconfig.functions.json.example +0 -0
- package/templates/deploy-config/vercel.json.example +2 -2
- package/templates/functions-firebase/.env.example +2 -2
- package/templates/functions-firebase/README.md.example +3 -3
- package/templates/functions-firebase/build.mjs.example +0 -0
- package/templates/functions-firebase/functions.config.js.example +0 -0
- package/templates/functions-firebase/functions.yaml.example +0 -0
- package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-firebase/src/auth/index.ts.example +0 -0
- package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-firebase/src/billing/index.ts.example +0 -0
- package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/index.ts.example +0 -0
- package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
- package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
- package/templates/functions-firebase/src/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/tsconfig.json.example +0 -0
- package/templates/functions-supabase/supabase/config.toml.example +0 -0
- package/templates/functions-supabase/supabase/functions/.env.example +0 -0
- package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
- package/templates/functions-vercel/.env.example +3 -3
- package/templates/functions-vercel/README.md.example +2 -2
- package/templates/functions-vercel/build.mjs.example +0 -0
- package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/tsconfig.json.example +0 -0
- package/templates/functions-vercel/vercel.json.example +0 -0
- package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
- package/templates/overlay-firebase/env.fragment.example +0 -0
- package/templates/overlay-firebase/env.fragment.expo.example +0 -0
- package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
- package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
- package/templates/overlay-supabase/env.fragment.example +0 -0
- package/templates/overlay-supabase/env.fragment.expo.example +0 -0
- package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
- package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
- package/templates/overlay-vercel/env.fragment.example +0 -0
- package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
- package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
- package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
- package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
- package/templates/root-consumer/.claude/rules/git.md.example +14 -0
- package/templates/root-consumer/.claude/rules/security.md.example +13 -0
- package/templates/root-consumer/.claude/settings.json.example +100 -4
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
- package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
- package/templates/root-consumer/.cursor/mcp.json.example +0 -0
- package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
- package/templates/root-consumer/.dndev/args.json.example +0 -0
- package/templates/root-consumer/.dndev.secrets.example +0 -0
- package/templates/root-consumer/.env.example +0 -1
- package/templates/root-consumer/.gemini/settings.json.example +0 -0
- package/templates/root-consumer/.gitignore.example +1 -0
- package/templates/root-consumer/.mcp.json.example +0 -0
- package/templates/root-consumer/.prettierrc.cjs.example +0 -0
- package/templates/root-consumer/AGENTS.md.example +63 -0
- package/templates/root-consumer/CLAUDE.md.example +1 -1
- package/templates/root-consumer/README.md.example +11 -33
- package/templates/root-consumer/entities/index.ts.example +0 -0
- package/templates/root-consumer/eslint.config.js.example +0 -0
- package/templates/root-consumer/tsconfig.json.example +0 -0
- package/templates/app-demo/public/manifest.json.example +0 -10
- package/templates/app-dndev/public/manifest.json.example +0 -10
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
- package/templates/root-consumer/.claude/commands/build.md.example +0 -131
- package/templates/root-consumer/.claude/commands/design.md.example +0 -184
- package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
- package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
- package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
- package/templates/root-consumer/.claude/statusline.py.example +0 -79
- package/templates/root-consumer/.clinerules.example +0 -1
- package/templates/root-consumer/.cursorrules.example +0 -1
- package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
- package/templates/root-consumer/.windsurfrules.example +0 -1
- package/templates/root-consumer/AI.md.example +0 -108
- package/templates/root-consumer/CONVENTIONS.md.example +0 -1
- package/templates/root-consumer/GEMINI.md.example +0 -1
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
- package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
- package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
- package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
- package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
- package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
- package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
- package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
- package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
- package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
- package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
- package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
- package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
- package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
- package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
- package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
- package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
- package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
- package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
- package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
- package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
- package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
- package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
- package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
- package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
- package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
- package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
- package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
- package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
- package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
- package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
- package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
- package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
- package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
- package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
# Cookie Reference Guide
|
|
2
|
-
|
|
3
|
-
**For Framework Consumers: GDPR Compliance**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Overview
|
|
8
|
-
|
|
9
|
-
This guide maps DoNotDev framework features to the cookies they set, helping you configure your cookie consent banner and privacy policy correctly.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Cookie Categories (GDPR)
|
|
14
|
-
|
|
15
|
-
- **Necessary** - Essential for service to function (no consent required per GDPR Article 6(1)(f))
|
|
16
|
-
- **Functional** - Enhances experience (requires consent per GDPR Article 6(1)(a))
|
|
17
|
-
- **Analytics** - Usage tracking (requires consent)
|
|
18
|
-
- **Marketing** - Advertising/tracking (requires consent)
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Feature Cookie Mapping
|
|
23
|
-
|
|
24
|
-
### Authentication (`@donotdev/auth`)
|
|
25
|
-
|
|
26
|
-
**Provider: Firebase Authentication**
|
|
27
|
-
|
|
28
|
-
| Cookie Name | Category | Purpose | Expires |
|
|
29
|
-
|------------|----------|---------|---------|
|
|
30
|
-
| `__session` | Necessary | Session authentication token | Session |
|
|
31
|
-
| `__Secure-*` | Necessary | Security tokens (HTTPS only) | Varies |
|
|
32
|
-
|
|
33
|
-
**GDPR Status:** Necessary - Authentication is essential for account-based services.
|
|
34
|
-
|
|
35
|
-
**Environment Variables:**
|
|
36
|
-
```bash
|
|
37
|
-
VITE_FIREBASE_API_KEY=your-key
|
|
38
|
-
VITE_FIREBASE_PROJECT_ID=your-project
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
### OAuth (`@donotdev/oauth`)
|
|
44
|
-
|
|
45
|
-
**Providers: Google, GitHub OAuth**
|
|
46
|
-
|
|
47
|
-
| Cookie Name | Category | Purpose | Expires |
|
|
48
|
-
|------------|----------|---------|---------|
|
|
49
|
-
| OAuth state cookies | Necessary | CSRF protection during OAuth flow | Session |
|
|
50
|
-
| Provider session cookies | Necessary | Maintain OAuth session | Per provider |
|
|
51
|
-
|
|
52
|
-
**GDPR Status:** Necessary - Part of authentication flow.
|
|
53
|
-
|
|
54
|
-
**Environment Variables:**
|
|
55
|
-
```bash
|
|
56
|
-
VITE_AUTH_PARTNERS=google,github
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
**Third-party cookies set by OAuth providers:**
|
|
60
|
-
- **Google:** `SID`, `HSID`, `SSID`, `APISID`, `SAPISID` (necessary for OAuth)
|
|
61
|
-
- **GitHub:** `user_session`, `logged_in` (necessary for OAuth)
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
### Billing (`@donotdev/billing`)
|
|
66
|
-
|
|
67
|
-
**Provider: Stripe**
|
|
68
|
-
|
|
69
|
-
| Cookie Name | Category | Purpose | Expires |
|
|
70
|
-
|------------|----------|---------|---------|
|
|
71
|
-
| `__stripe_mid` | Necessary | Fraud prevention | 1 year |
|
|
72
|
-
| `__stripe_sid` | Necessary | Checkout session | 30 minutes |
|
|
73
|
-
|
|
74
|
-
**GDPR Status:** Necessary - Required for payment processing and fraud prevention.
|
|
75
|
-
|
|
76
|
-
**Environment Variables:**
|
|
77
|
-
```bash
|
|
78
|
-
VITE_STRIPE_PUBLIC_KEY=pk_live_xxx
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**Stripe Privacy:** Stripe sets these cookies when Checkout or Customer Portal is opened. They're classified as necessary for PCI compliance and fraud prevention.
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
### Framework Core Cookies
|
|
86
|
-
|
|
87
|
-
**Set by `@donotdev/core`**
|
|
88
|
-
|
|
89
|
-
| Cookie Name | Category | Purpose | Expires |
|
|
90
|
-
|------------|----------|---------|---------|
|
|
91
|
-
| `dndev-cookie-consent` | Necessary | Stores user's cookie preferences | 365 days |
|
|
92
|
-
| `dndev-theme` | Necessary | Remembers dark/light mode preference | 365 days |
|
|
93
|
-
| `dndev-lang` | Necessary | Remembers language preference | 365 days |
|
|
94
|
-
|
|
95
|
-
**GDPR Status:** Necessary (essential for UX, no tracking, purely local preferences)
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
## Analytics & Marketing (Optional)
|
|
100
|
-
|
|
101
|
-
These are NOT included in the framework but commonly added by consumers:
|
|
102
|
-
|
|
103
|
-
### Google Analytics
|
|
104
|
-
|
|
105
|
-
| Cookie Name | Category | Purpose | Expires |
|
|
106
|
-
|------------|----------|---------|---------|
|
|
107
|
-
| `_ga` | Analytics | Distinguish users | 2 years |
|
|
108
|
-
| `_gid` | Analytics | Distinguish users | 24 hours |
|
|
109
|
-
| `_gat` | Analytics | Throttle requests | 1 minute |
|
|
110
|
-
|
|
111
|
-
**GDPR Status:** Analytics - Requires explicit consent.
|
|
112
|
-
|
|
113
|
-
**Setup:** Consumer must add Google Analytics script and obtain consent.
|
|
114
|
-
|
|
115
|
-
### Facebook Pixel
|
|
116
|
-
|
|
117
|
-
| Cookie Name | Category | Purpose | Expires |
|
|
118
|
-
|------------|----------|---------|---------|
|
|
119
|
-
| `_fbp` | Marketing | Track conversions | 90 days |
|
|
120
|
-
|
|
121
|
-
**GDPR Status:** Marketing - Requires explicit consent.
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
## Cookie Banner Configuration
|
|
126
|
-
|
|
127
|
-
### Minimal Setup (Auth + Billing + Theme/Lang)
|
|
128
|
-
|
|
129
|
-
If your app only uses auth, billing, theme, and language preferences, all cookies are **necessary**:
|
|
130
|
-
|
|
131
|
-
```typescript
|
|
132
|
-
// src/config/app.ts
|
|
133
|
-
export const appConfig: AppConfig = {
|
|
134
|
-
features: {
|
|
135
|
-
// No config needed - all framework cookies are necessary
|
|
136
|
-
},
|
|
137
|
-
};
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
**Result:** No cookie banner shown - all cookies are GDPR-compliant without consent.
|
|
141
|
-
|
|
142
|
-
### With Analytics/Marketing
|
|
143
|
-
|
|
144
|
-
If you add Google Analytics or marketing pixels:
|
|
145
|
-
|
|
146
|
-
```typescript
|
|
147
|
-
// src/config/app.ts
|
|
148
|
-
export const appConfig: AppConfig = {
|
|
149
|
-
features: {
|
|
150
|
-
requiredCookies: ['necessary', 'functional', 'analytics'],
|
|
151
|
-
},
|
|
152
|
-
};
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
**Result:** Cookie banner shows all categories, users must consent to analytics.
|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
## Privacy Policy Template
|
|
160
|
-
|
|
161
|
-
**Example text for your privacy policy:**
|
|
162
|
-
|
|
163
|
-
```markdown
|
|
164
|
-
## Cookies We Use
|
|
165
|
-
|
|
166
|
-
### Essential Cookies (Always Active)
|
|
167
|
-
|
|
168
|
-
We use essential cookies that are necessary for our service to function:
|
|
169
|
-
|
|
170
|
-
- **Authentication** (Firebase): Maintains your login session
|
|
171
|
-
- **Payment Processing** (Stripe): Enables secure payments and fraud prevention
|
|
172
|
-
- **Cookie Preferences**: Remembers your cookie consent choices
|
|
173
|
-
|
|
174
|
-
These cookies are essential and cannot be disabled.
|
|
175
|
-
|
|
176
|
-
### Functional Cookies (Optional)
|
|
177
|
-
|
|
178
|
-
With your consent, we use functional cookies to enhance your experience:
|
|
179
|
-
|
|
180
|
-
- **Theme Preference**: Remembers your dark/light mode choice
|
|
181
|
-
- **Language Preference**: Remembers your selected language
|
|
182
|
-
|
|
183
|
-
You can disable these in cookie settings.
|
|
184
|
-
|
|
185
|
-
### Analytics Cookies (Optional) [If applicable]
|
|
186
|
-
|
|
187
|
-
With your consent, we use Google Analytics to understand how visitors use our site.
|
|
188
|
-
This helps us improve the user experience.
|
|
189
|
-
|
|
190
|
-
You can disable these in cookie settings.
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
---
|
|
194
|
-
|
|
195
|
-
## Testing Cookie Compliance
|
|
196
|
-
|
|
197
|
-
### Check What Cookies Are Set
|
|
198
|
-
|
|
199
|
-
```javascript
|
|
200
|
-
// Browser console
|
|
201
|
-
document.cookie
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
### Verify Consent Before Analytics
|
|
205
|
-
|
|
206
|
-
```typescript
|
|
207
|
-
import { useConsent } from '@donotdev/core';
|
|
208
|
-
|
|
209
|
-
function MyAnalytics() {
|
|
210
|
-
const hasAnalyticsConsent = useConsent('hasCategory')('analytics');
|
|
211
|
-
|
|
212
|
-
useEffect(() => {
|
|
213
|
-
if (hasAnalyticsConsent) {
|
|
214
|
-
// Initialize Google Analytics
|
|
215
|
-
}
|
|
216
|
-
}, [hasAnalyticsConsent]);
|
|
217
|
-
}
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
---
|
|
221
|
-
|
|
222
|
-
## GDPR Compliance Checklist
|
|
223
|
-
|
|
224
|
-
- [ ] List all cookies in privacy policy with categories
|
|
225
|
-
- [ ] Only set analytics/marketing cookies after consent
|
|
226
|
-
- [ ] Provide cookie settings link in footer
|
|
227
|
-
- [ ] Allow users to withdraw consent
|
|
228
|
-
- [ ] Store consent for 12 months maximum
|
|
229
|
-
- [ ] Don't block essential features if functional cookies declined
|
|
230
|
-
|
|
231
|
-
**Framework handles:** Consent storage, banner UI, category management
|
|
232
|
-
|
|
233
|
-
**You handle:** Privacy policy text, analytics integration, marketing pixels
|
|
234
|
-
|
|
235
|
-
---
|
|
236
|
-
|
|
237
|
-
## Quick Reference
|
|
238
|
-
|
|
239
|
-
| Feature | Cookies | Category | Consent Required? |
|
|
240
|
-
|---------|---------|----------|-------------------|
|
|
241
|
-
| Auth | `__session`, `__Secure-*` | Necessary | No |
|
|
242
|
-
| OAuth | Provider session cookies | Necessary | No |
|
|
243
|
-
| Billing | `__stripe_mid`, `__stripe_sid` | Necessary | No |
|
|
244
|
-
| Theme | `dndev-theme` | Necessary | No |
|
|
245
|
-
| Language | `dndev-lang` | Necessary | No |
|
|
246
|
-
| Consent | `dndev-cookie-consent` | Necessary | No |
|
|
247
|
-
| Analytics | `_ga`, `_gid` | Analytics | Yes |
|
|
248
|
-
| Marketing | `_fbp`, etc. | Marketing | Yes |
|
|
249
|
-
|
|
250
|
-
---
|
|
251
|
-
|
|
252
|
-
**Need help?** Check your browser DevTools → Application → Cookies to see exactly what's being set.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Emulator Setup Guide
|
|
2
|
-
|
|
3
|
-
This guide covers how to set up your local development environment for the Firebase Emulator Suite.
|
|
4
|
-
|
|
5
|
-
## Environment Variables
|
|
6
|
-
|
|
7
|
-
The DoNotDev framework uses a strict separation between local development and production secrets for functions.
|
|
8
|
-
|
|
9
|
-
### Local Development (.env.local)
|
|
10
|
-
|
|
11
|
-
**`.env.local` is the exclusive source of truth for emulators.**
|
|
12
|
-
|
|
13
|
-
When you run `dndev emu <app-name>`, the framework loads environment variables **ONLY** from `functions/.env.local`.
|
|
14
|
-
|
|
15
|
-
1. Create `functions/.env.local` (it is git-ignored by default).
|
|
16
|
-
2. Add your local development keys (e.g., Stripe ephemeral webhook secret).
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# functions/.env.local
|
|
20
|
-
STRIPE_SECRET_KEY=sk_test_...
|
|
21
|
-
STRIPE_WEBHOOK_SECRET=whsec_... # Get this from 'stripe listen' output
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### Production Secrets (.env)
|
|
25
|
-
|
|
26
|
-
**`.env` is the source of truth for production secrets.**
|
|
27
|
-
|
|
28
|
-
These are the secrets that will be synced to Firebase Cloud Functions when you run `dndev deploy` or `dndev sync-secrets`.
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
# functions/.env
|
|
32
|
-
STRIPE_SECRET_KEY=sk_live_...
|
|
33
|
-
STRIPE_WEBHOOK_SECRET=whsec_... # Your permanent production webhook secret
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Running the Emulator
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
# Start emulators for a specific app
|
|
40
|
-
dndev emu showcase
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
If you need Stripe webhook forwarding, the emulator command will provide instructions on how to start the Stripe CLI and where to paste the temporary webhook secret.
|
|
44
|
-
|
|
45
|
-
## Troubleshooting
|
|
46
|
-
|
|
47
|
-
1. **Signature Verification Error**: This usually means the `STRIPE_WEBHOOK_SECRET` in your `functions/.env.local` does not match the secret displayed in your active `stripe listen` terminal.
|
|
48
|
-
2. **Missing Secrets**: Ensure you have created the `functions/.env.local` file. The emulator command will warn you if it's missing.
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reference: Framework essences (Brutalist, Luxury, Retro).
|
|
3
|
-
* Copy the blocks you need into your app's src/themes.css.
|
|
4
|
-
* Default essence = SaaS (Inter); these do not apply until you set the class on <html>.
|
|
5
|
-
*
|
|
6
|
-
* Fonts: Space Grotesk (Brutalist), Playfair Display (Luxury), Press Start 2P (Retro),
|
|
7
|
-
* Inter, Roboto are bundled in @donotdev/ui (no external requests).
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/** =========================================================================
|
|
11
|
-
* Brutalist — Industrial, monospace body, Space Grotesk headlines, orange/black.
|
|
12
|
-
* Set <html class="brutalist"> to apply.
|
|
13
|
-
* ========================================================================= */
|
|
14
|
-
.brutalist {
|
|
15
|
-
--theme-icon: 'Construction';
|
|
16
|
-
--theme-label: 'Brutalist';
|
|
17
|
-
--theme-is-dark: 1;
|
|
18
|
-
|
|
19
|
-
/* 1. Core Colors - Black + white + industrial orange */
|
|
20
|
-
--background: #000000;
|
|
21
|
-
--foreground: #ffffff;
|
|
22
|
-
--primary: #f97316;
|
|
23
|
-
--secondary: #ffffff;
|
|
24
|
-
--accent: #f97316;
|
|
25
|
-
|
|
26
|
-
/* 2. Semantic */
|
|
27
|
-
--success: #22c55e;
|
|
28
|
-
--warning: #f97316;
|
|
29
|
-
--destructive: #dc2626;
|
|
30
|
-
|
|
31
|
-
/* 3. Surfaces - Dark, industrial */
|
|
32
|
-
--muted: #111111;
|
|
33
|
-
--muted-foreground: #888888;
|
|
34
|
-
--border: #ffffff;
|
|
35
|
-
--input: #111111;
|
|
36
|
-
--ring: #f97316;
|
|
37
|
-
--card: #000000;
|
|
38
|
-
--card-foreground: #f97316;
|
|
39
|
-
--popover: #000000;
|
|
40
|
-
--popover-foreground: #ffffff;
|
|
41
|
-
|
|
42
|
-
/* 4. Text on Colors */
|
|
43
|
-
--primary-foreground: #ffffff;
|
|
44
|
-
--secondary-foreground: #000000;
|
|
45
|
-
--accent-foreground: #000000;
|
|
46
|
-
--success-foreground: #ffffff;
|
|
47
|
-
--warning-foreground: #000000;
|
|
48
|
-
--destructive-foreground: #ffffff;
|
|
49
|
-
|
|
50
|
-
/* 5. Radius - Hard zero */
|
|
51
|
-
--radius-interactive: 0;
|
|
52
|
-
--radius-surface: 0;
|
|
53
|
-
--radius-floating: 0;
|
|
54
|
-
|
|
55
|
-
/* 6. Typography - Monospace for body, Space Grotesk 700 for headings */
|
|
56
|
-
--font-family: var(--font-mono);
|
|
57
|
-
--font-headline: "Space Grotesk", var(--font-sans);
|
|
58
|
-
--font-weight-semibold: 700;
|
|
59
|
-
--font-weight-bold: 700;
|
|
60
|
-
|
|
61
|
-
/* 7. Borders */
|
|
62
|
-
--border-width: 2px;
|
|
63
|
-
--border-huge: 4px;
|
|
64
|
-
|
|
65
|
-
/* 8. Shadows — flat by default, hard offset on interactive */
|
|
66
|
-
--shadow-color: var(--foreground);
|
|
67
|
-
--shadow-sm: none;
|
|
68
|
-
--shadow-md: none;
|
|
69
|
-
--shadow-xl: 8px 8px 0px 0px var(--shadow-color);
|
|
70
|
-
--shadow-cta: 20px 20px 0px 0px var(--shadow-color);
|
|
71
|
-
|
|
72
|
-
/* 9. Per-variant shadows — only at xl level (elevated/clickable) */
|
|
73
|
-
--shadow-primary: none;
|
|
74
|
-
--shadow-primary-xl: 8px 8px 0px 0px var(--background);
|
|
75
|
-
--shadow-secondary: none;
|
|
76
|
-
--shadow-secondary-xl: 8px 8px 0px 0px var(--primary);
|
|
77
|
-
|
|
78
|
-
/* 10. Header padding for hard-offset shadows */
|
|
79
|
-
--header-shadow-padding: 0.75rem;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Body - grid background */
|
|
83
|
-
.brutalist body {
|
|
84
|
-
background-color: var(--background);
|
|
85
|
-
background-image:
|
|
86
|
-
linear-gradient(#111 1px, transparent 1px),
|
|
87
|
-
linear-gradient(90deg, #111 1px, transparent 1px);
|
|
88
|
-
background-size: 40px 40px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* Uppercase headings (both native elements and Text component levels) */
|
|
92
|
-
.brutalist {
|
|
93
|
-
:is(h1, h2, h3, h4, h5, h6),
|
|
94
|
-
[data-level^='h'] {
|
|
95
|
-
text-transform: uppercase;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* Flat surface - no gradient glow */
|
|
100
|
-
.brutalist .dndev-surface { background: var(--card); }
|
|
101
|
-
.brutalist .dndev-surface[data-variant='outline'] { border: var(--border-width) solid var(--border); }
|
|
102
|
-
|
|
103
|
-
.brutalist .dndev-card[data-variant='outline'] {
|
|
104
|
-
background: transparent;
|
|
105
|
-
box-shadow: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/** =========================================================================
|
|
110
|
-
* Luxury — Playfair Display headlines, gold/cream, warm shadows.
|
|
111
|
-
* Set <html class="luxury"> to apply.
|
|
112
|
-
* ========================================================================= */
|
|
113
|
-
.luxury {
|
|
114
|
-
--theme-icon: 'Gem';
|
|
115
|
-
--theme-label: 'Luxury';
|
|
116
|
-
--theme-is-dark: 0;
|
|
117
|
-
|
|
118
|
-
/* 1. Core Colors */
|
|
119
|
-
--background: #faf8f5;
|
|
120
|
-
--foreground: #1c1917;
|
|
121
|
-
--primary: #b45309;
|
|
122
|
-
--secondary: #fef3c7;
|
|
123
|
-
--accent: #92400e;
|
|
124
|
-
|
|
125
|
-
/* 2. Semantic */
|
|
126
|
-
--success: #15803d;
|
|
127
|
-
--warning: #b45309;
|
|
128
|
-
--destructive: #b91c1c;
|
|
129
|
-
|
|
130
|
-
/* 3. Surfaces */
|
|
131
|
-
--muted: #fef9c3;
|
|
132
|
-
--muted-foreground: #78716c;
|
|
133
|
-
--border: #e7e5e4;
|
|
134
|
-
--border-hairline: 1px;
|
|
135
|
-
--input: #ffffff;
|
|
136
|
-
--ring: #b45309;
|
|
137
|
-
--card: #ffffff;
|
|
138
|
-
--card-foreground: #1c1917;
|
|
139
|
-
--popover: #ffffff;
|
|
140
|
-
--popover-foreground: #1c1917;
|
|
141
|
-
|
|
142
|
-
/* 4. Text on Colors */
|
|
143
|
-
--primary-foreground: #ffffff;
|
|
144
|
-
--secondary-foreground: #1c1917;
|
|
145
|
-
--accent-foreground: #ffffff;
|
|
146
|
-
--success-foreground: #ffffff;
|
|
147
|
-
--warning-foreground: #1c1917;
|
|
148
|
-
--destructive-foreground: #ffffff;
|
|
149
|
-
|
|
150
|
-
/* 5. Radius */
|
|
151
|
-
--radius-interactive: 0.375rem;
|
|
152
|
-
--radius-surface: 0.5rem;
|
|
153
|
-
--radius-floating: 0.5rem;
|
|
154
|
-
|
|
155
|
-
/* 6. Typography — lighter weights, serif headlines */
|
|
156
|
-
--font-family: var(--font-sans);
|
|
157
|
-
--font-headline: 'Playfair Display', var(--font-serif);
|
|
158
|
-
--font-weight-normal: 300;
|
|
159
|
-
--font-weight-medium: 400;
|
|
160
|
-
--font-weight-semibold: 500;
|
|
161
|
-
--font-weight-bold: 600;
|
|
162
|
-
|
|
163
|
-
/* 7. Spacing — generous, one notch above expressive */
|
|
164
|
-
--gap-sm: 0.75rem;
|
|
165
|
-
--gap-md: 1.5rem;
|
|
166
|
-
--gap-lg: 3rem;
|
|
167
|
-
|
|
168
|
-
/* 8. Shadows — warm gold-tinted, soft diffused */
|
|
169
|
-
--shadow-color: color-mix(in oklab, #b45309 8%, transparent);
|
|
170
|
-
--shadow-sm: 0 1px 3px var(--shadow-color);
|
|
171
|
-
--shadow-md: 0 4px 12px var(--shadow-color);
|
|
172
|
-
--shadow-xl: 0 8px 24px var(--shadow-color);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
/** =========================================================================
|
|
177
|
-
* Retro — 8-bit pixel aesthetic, Press Start 2P, neon on dark, CRT vibes.
|
|
178
|
-
* Set <html class="retro"> to apply.
|
|
179
|
-
* ========================================================================= */
|
|
180
|
-
.retro {
|
|
181
|
-
--theme-icon: 'Gamepad2';
|
|
182
|
-
--theme-label: 'Retro';
|
|
183
|
-
--theme-is-dark: 1;
|
|
184
|
-
|
|
185
|
-
/* 1. Core Colors - Muted neon on zinc */
|
|
186
|
-
--background: #1c1c22;
|
|
187
|
-
--foreground: #c8e6c9;
|
|
188
|
-
--primary: #5eead4;
|
|
189
|
-
--secondary: #c084fc;
|
|
190
|
-
--accent: #fbbf24;
|
|
191
|
-
|
|
192
|
-
/* 2. Semantic */
|
|
193
|
-
--success: #6ee7b7;
|
|
194
|
-
--warning: #fbbf24;
|
|
195
|
-
--destructive: #f87171;
|
|
196
|
-
|
|
197
|
-
/* 3. Surfaces - Zinc CRT glass */
|
|
198
|
-
--muted: #27272f;
|
|
199
|
-
--muted-foreground: #8bae8b;
|
|
200
|
-
--border: #4a6a4a;
|
|
201
|
-
--input: #1c1c22;
|
|
202
|
-
--ring: #5eead4;
|
|
203
|
-
--card: #222228;
|
|
204
|
-
--card-foreground: #c8e6c9;
|
|
205
|
-
--popover: #222228;
|
|
206
|
-
--popover-foreground: #c8e6c9;
|
|
207
|
-
|
|
208
|
-
/* 4. Text on Colors */
|
|
209
|
-
--primary-foreground: #0f172a;
|
|
210
|
-
--secondary-foreground: #0f172a;
|
|
211
|
-
--accent-foreground: #0f172a;
|
|
212
|
-
--success-foreground: #0f172a;
|
|
213
|
-
--warning-foreground: #0f172a;
|
|
214
|
-
--destructive-foreground: #ffffff;
|
|
215
|
-
|
|
216
|
-
/* 5. Radius - Hard pixel corners */
|
|
217
|
-
--radius-interactive: 0;
|
|
218
|
-
--radius-surface: 0;
|
|
219
|
-
--radius-floating: 0;
|
|
220
|
-
|
|
221
|
-
/* 6. Typography - Press Start 2P (pixel font, 400 only) */
|
|
222
|
-
--font-family: 'Press Start 2P', var(--font-mono);
|
|
223
|
-
--font-headline: 'Press Start 2P', var(--font-mono);
|
|
224
|
-
--font-weight-normal: 400;
|
|
225
|
-
--font-weight-medium: 400;
|
|
226
|
-
--font-weight-semibold: 400;
|
|
227
|
-
--font-weight-bold: 400;
|
|
228
|
-
|
|
229
|
-
/* 7. Font scale - smaller base (pixel font reads large) */
|
|
230
|
-
--font-size-xs: 0.5rem;
|
|
231
|
-
--font-size-sm: 0.625rem;
|
|
232
|
-
--font-size-base: 0.75rem;
|
|
233
|
-
--font-size-lg: 0.875rem;
|
|
234
|
-
--font-size-xl: 1rem;
|
|
235
|
-
--font-size-2xl: 1.25rem;
|
|
236
|
-
--font-size-3xl: 1.5rem;
|
|
237
|
-
--line-height: 1.6;
|
|
238
|
-
|
|
239
|
-
/* 8. Borders - Chunky pixel borders */
|
|
240
|
-
--border-width: 3px;
|
|
241
|
-
--border-huge: 4px;
|
|
242
|
-
|
|
243
|
-
/* 9. Shadows — soft neon glow */
|
|
244
|
-
--shadow-color: #5eead433;
|
|
245
|
-
--shadow-sm: 0 0 4px #5eead422;
|
|
246
|
-
--shadow-md: 0 0 8px #5eead433, 0 0 16px #5eead41a;
|
|
247
|
-
--shadow-xl: 0 0 12px #5eead444, 0 0 24px #5eead42a, 0 0 48px #c084fc1a;
|
|
248
|
-
--shadow-cta: 0 0 16px #5eead444, 0 0 32px #5eead422;
|
|
249
|
-
|
|
250
|
-
/* 10. Per-variant shadows — soft neon matching */
|
|
251
|
-
--shadow-primary: 0 0 8px #5eead42a;
|
|
252
|
-
--shadow-primary-xl: 0 0 16px #5eead444, 0 0 32px #5eead422;
|
|
253
|
-
--shadow-secondary: 0 0 8px #c084fc2a;
|
|
254
|
-
--shadow-secondary-xl: 0 0 16px #c084fc44, 0 0 32px #c084fc22;
|
|
255
|
-
|
|
256
|
-
/* 11. Header padding */
|
|
257
|
-
--header-shadow-padding: 0;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/* Body - subtle CRT scanlines */
|
|
261
|
-
.retro body {
|
|
262
|
-
background-color: var(--background);
|
|
263
|
-
background-image:
|
|
264
|
-
repeating-linear-gradient(
|
|
265
|
-
0deg,
|
|
266
|
-
transparent,
|
|
267
|
-
transparent 2px,
|
|
268
|
-
rgba(0, 0, 0, 0.08) 2px,
|
|
269
|
-
rgba(0, 0, 0, 0.08) 4px
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/* Uppercase headings (pixel fonts look best in caps) */
|
|
274
|
-
.retro {
|
|
275
|
-
:is(h1, h2, h3, h4, h5, h6),
|
|
276
|
-
[data-level^='h'] {
|
|
277
|
-
text-transform: uppercase;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/* Flat surfaces - no gradient, pixel-sharp */
|
|
282
|
-
.retro .dndev-surface { background: var(--card); }
|
|
283
|
-
.retro .dndev-surface[data-variant='outline'] { border: var(--border-width) solid var(--border); }
|
|
284
|
-
|
|
285
|
-
.retro .dndev-card[data-variant='outline'] {
|
|
286
|
-
background: transparent;
|
|
287
|
-
box-shadow: none;
|
|
288
|
-
}
|