feat: initial commit — crema-app-aifirst-template
Hybrid traditional + AI-first webapp scaffold. Sibling to crema-app-template, adds the AI assistant surface, command bus, scripts dialog, and virtual cursor. What's pre-wired: - 6 routes: Overview, Resources, Activity, Assistant, Library, Settings - Collapsible rail + appbar + avatar dropdown shell (template code, not a lib) - Mobile sheet at <md - /assistant: streaming chat via @crema/llm-ui, mock fallback, model selector, token meter, retry probe, stop-while-streaming, persistent UI Control toggle - /settings: editable LM Studio endpoint + context window + response cap, with test-connection button - Markdown rendering for assistant replies; ```action``` blocks rendered as a small "Ran N actions" pill - ⌘⇧P script runner dialog + Play icon in the appbar - Two demo scripts in public/scripts/ - mightypix theme as default, scoped via <AppShell theme="mightypix"> Libs wired in tsconfig + app.css: - @crema/action-bus (the bus, parser, runner, cursor, provider, ws, llm-bridge) - @crema/llm-ui, @crema/chat-ui, @crema/aifirst-ui, @crema/notification-ui - lib-theme-mightypix Docs: - README.md — pitch + quick start + structure - docs/AI_FIRST.md — full system tour (data-action contract, bus, DSL, scripts, cursor, LLM integration) - app/components/layout/THEME_CONTRACT.md — every CSS variable a theme must declare - CLAUDE.md — orientation for an LLM working in the repo Genericized from comfy-cloud (the original prototype): - Brand defaults to "App" / Sparkles icon (override via app/lib/identity.ts) - User defaults to a stub (swap useUser() for real auth) - localStorage namespace is "crema.*" (was "comfy.*") Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
116
app/app.css
Normal file
116
app/app.css
Normal file
@@ -0,0 +1,116 @@
|
||||
/* Active theme — must be first so its @import url() font directives resolve
|
||||
* to the top of the output. Themes are self-contained: tokens + fonts. */
|
||||
@import "../../lib-theme-mightypix/theme.css"; /* CREMA:THEME */
|
||||
@import "tailwindcss";
|
||||
@import "tw-animate-css";
|
||||
@import "shadcn/tailwind.css";
|
||||
|
||||
@source "../../lib-chat-ui/src";
|
||||
@source "../../lib-aifirst-ui/src";
|
||||
@source "../../lib-llm-ui/src";
|
||||
@source "../../lib-action-bus/src";
|
||||
/* CREMA:SOURCES */
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
@theme inline {
|
||||
--font-heading: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
|
||||
--font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
|
||||
--font-ai-prose: "Source Serif 4", Georgia, serif;
|
||||
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
--color-sidebar-accent: var(--sidebar-accent);
|
||||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
||||
--color-sidebar-primary: var(--sidebar-primary);
|
||||
--color-sidebar-foreground: var(--sidebar-foreground);
|
||||
--color-sidebar: var(--sidebar);
|
||||
--color-chart-5: var(--chart-5);
|
||||
--color-chart-4: var(--chart-4);
|
||||
--color-chart-3: var(--chart-3);
|
||||
--color-chart-2: var(--chart-2);
|
||||
--color-chart-1: var(--chart-1);
|
||||
--color-ring: var(--ring);
|
||||
--color-input: var(--input);
|
||||
--color-border: var(--border);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-success: var(--success);
|
||||
--color-success-foreground: var(--success-foreground);
|
||||
--color-syntax-keyword: var(--syntax-keyword);
|
||||
--color-syntax-string: var(--syntax-string);
|
||||
--color-syntax-number: var(--syntax-number);
|
||||
--color-syntax-comment: var(--syntax-comment);
|
||||
--color-syntax-function: var(--syntax-function);
|
||||
--color-syntax-type: var(--syntax-type);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-card: var(--card);
|
||||
--color-foreground: var(--foreground);
|
||||
--color-background: var(--background);
|
||||
--ease-standard: var(--ease-standard);
|
||||
--ease-emphasized: var(--ease-emphasized);
|
||||
--ease-decelerate: var(--ease-decelerate);
|
||||
--ease-accelerate: var(--ease-accelerate);
|
||||
--ease-spring-gentle: var(--ease-spring-gentle);
|
||||
--ease-spring-snappy: var(--ease-spring-snappy);
|
||||
--ease-spring-bouncy: var(--ease-spring-bouncy);
|
||||
--duration-spring: var(--duration-spring);
|
||||
--duration-fast: var(--duration-fast);
|
||||
--duration-base: var(--duration-base);
|
||||
--duration-slow: var(--duration-slow);
|
||||
--duration-slower: var(--duration-slower);
|
||||
--text-display: var(--text-display-size);
|
||||
--text-display--line-height: var(--text-display-lh);
|
||||
--text-headline: var(--text-headline-size);
|
||||
--text-headline--line-height: var(--text-headline-lh);
|
||||
--text-title: var(--text-title-size);
|
||||
--text-title--line-height: var(--text-title-lh);
|
||||
--text-body: var(--text-body-size);
|
||||
--text-body--line-height: var(--text-body-lh);
|
||||
--text-label: var(--text-label-size);
|
||||
--text-label--line-height: var(--text-label-lh);
|
||||
--text-caption: var(--text-caption-size);
|
||||
--text-caption--line-height: var(--text-caption-lh);
|
||||
--shadow-e0: var(--elevation-0);
|
||||
--shadow-e1: var(--elevation-1);
|
||||
--shadow-e2: var(--elevation-2);
|
||||
--shadow-e3: var(--elevation-3);
|
||||
--shadow-e4: var(--elevation-4);
|
||||
--shadow-e5: var(--elevation-5);
|
||||
--border-width-thin: var(--border-width-thin);
|
||||
--border-width-base: var(--border-width-base);
|
||||
--border-width-thick: var(--border-width-thick);
|
||||
--border-width-heavy: var(--border-width-heavy);
|
||||
--radius-sm: calc(var(--radius) * 0.5);
|
||||
--radius-md: calc(var(--radius) * 0.75);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) * 1.15);
|
||||
--radius-2xl: calc(var(--radius) * 1.3);
|
||||
--radius-3xl: calc(var(--radius) * 1.5);
|
||||
--radius-4xl: calc(var(--radius) * 1.75);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
overscroll-behavior-y: none;
|
||||
}
|
||||
html {
|
||||
@apply font-sans;
|
||||
font-size: 18px;
|
||||
overscroll-behavior-y: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user