Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat(theme): add --node-X role tokens; migrate onboarding + auth to shadcn
trohitgb134d0506135
diff --git a/client/src/components/auth/LoginPage.tsx b/client/src/components/auth/LoginPage.tsxindex 694d32ac..a2d2a15b 100644--- a/client/src/components/auth/LoginPage.tsx+++ b/client/src/components/auth/LoginPage.tsx@@ -1,11 +1,15 @@/**- * Login/Register Page with Dracula theme.+ * Login/Register Page.* Shows login form, or register form if registration is available.*/import React, { useState } from 'react';import { useAuth } from '../../contexts/AuthContext';-import { dracula } from '../../styles/theme';+import { Card, CardContent, CardHeader, CardTitle, CardDescription, CardFooter } from '@/components/ui/card';+import { Input } from '@/components/ui/input';+import { Label } from '@/components/ui/label';+import { Button } from '@/components/ui/button';+import { Alert, AlertDescription } from '@/components/ui/alert';const LoginPage: React.FC = () => {const { login, register, canRegister, error, isLoading } = useAuth();@@ -48,200 +52,91 @@ const LoginPage: React.FC = () => {const displayError = localError || error;return (- <div style={styles.container}>- <div style={styles.card}>- {/* Logo/Title */}- <div style={styles.header}>- <h1 style={styles.title}>MachinaOs</h1>- <p style={styles.subtitle}>+ <div className="flex min-h-screen items-center justify-center bg-background p-5">+ <Card className="w-full max-w-md">+ <CardHeader className="text-center">+ <CardTitle className="text-3xl font-bold text-node-agent">MachinaOs</CardTitle>+ <CardDescription>{isRegistering ? 'Create your account' : 'Sign in to continue'}- </p>- </div>-- {/* Error Message */}- {displayError && (- <div style={styles.errorBox}>- {displayError}- </div>- )}+ </CardDescription>+ </CardHeader>++ <CardContent className="space-y-4">+ {displayError && (+ <Alert variant="destructive">+ <AlertDescription>{displayError}</AlertDescription>+ </Alert>+ )}- {/* Form */}- <form onSubmit={handleSubmit} style={styles.form}>- {isRegistering && (- <div style={styles.inputGroup}>- <label style={styles.label}>Display Name</label>- <input- type="text"- value={displayName}- onChange={(e) => setDisplayName(e.target.value)}- style={styles.input}- placeholder="Your name"+ <form onSubmit={handleSubmit} className="space-y-4">+ {isRegistering && (+ <div className="space-y-1.5">+ <Label htmlFor="displayName">Display Name</Label>+ <Input+ id="displayName"+ type="text"+ value={displayName}+ onChange={(e) => setDisplayName(e.target.value)}+ placeholder="Your name"+ disabled={isLoading}+ />+ </div>+ )}++ <div className="space-y-1.5">+ <Label htmlFor="email">Email</Label>+ <Input+ id="email"+ type="email"+ value={email}+ onChange={(e) => setEmail(e.target.value)}+ placeholder="[email protected]"disabled={isLoading}+ autoComplete="email"/></div>- )}- <div style={styles.inputGroup}>- <label style={styles.label}>Email</label>- <input- type="email"- value={email}- onChange={(e) => setEmail(e.target.value)}- style={styles.input}- placeholder="[email protected]"- disabled={isLoading}- autoComplete="email"- />- </div>-- <div style={styles.inputGroup}>- <label style={styles.label}>Password</label>- <input- type="password"- value={password}- onChange={(e) => setPassword(e.target.value)}- style={styles.input}- placeholder={isRegistering ? 'At least 8 characters' : 'Your password'}- disabled={isLoading}- autoComplete={isRegistering ? 'new-password' : 'current-password'}- />- </div>-- <button- type="submit"- style={{- ...styles.submitButton,- opacity: isLoading ? 0.7 : 1,- cursor: isLoading ? 'not-allowed' : 'pointer'- }}- disabled={isLoading}- >- {isLoading- ? 'Please wait...'- : isRegistering- ? 'Create Account'- : 'Sign In'}- </button>- </form>-- {/* Toggle Login/Register */}+ <div className="space-y-1.5">+ <Label htmlFor="password">Password</Label>+ <Input+ id="password"+ type="password"+ value={password}+ onChange={(e) => setPassword(e.target.value)}+ placeholder={isRegistering ? 'At least 8 characters' : 'Your password'}+ disabled={isLoading}+ autoComplete={isRegistering ? 'new-password' : 'current-password'}+ />+ </div>++ <Button type="submit" className="w-full" disabled={isLoading}>+ {isLoading+ ? 'Please wait...'+ : isRegistering+ ? 'Create Account'+ : 'Sign In'}+ </Button>+ </form>+ </CardContent>+{canRegister && (- <div style={styles.toggleSection}>- <span style={styles.toggleText}>+ <CardFooter className="justify-center gap-2 border-t pt-4 text-sm">+ <span className="text-muted-foreground">{isRegistering ? 'Already have an account?' : "Don't have an account?"}</span>- <button+ <Button+ variant="link"onClick={toggleMode}- style={styles.toggleButton}disabled={isLoading}+ className="h-auto p-0">{isRegistering ? 'Sign In' : 'Register'}- </button>- </div>+ </Button>+ </CardFooter>)}- </div>+ </Card></div>);};-const styles: Record<string, React.CSSProperties> = {- container: {- display: 'flex',- justifyContent: 'center',- alignItems: 'center',- minHeight: '100vh',- backgroundColor: dracula.background,- padding: 20,- },- card: {- backgroundColor: dracula.currentLine,- borderRadius: 12,- padding: 40,- width: '100%',- maxWidth: 400,- boxShadow: '0 8px 32px rgba(0, 0, 0, 0.4)',- },- header: {- textAlign: 'center',- marginBottom: 24,- },- title: {- color: dracula.purple,- fontSize: 32,- fontWeight: 700,- margin: 0,- marginBottom: 8,- },- subtitle: {- color: dracula.comment,- fontSize: 14,- margin: 0,- },- errorBox: {- backgroundColor: `${dracula.red}20`,- border: `1px solid ${dracula.red}`,- borderRadius: 6,- padding: '12px 16px',- marginBottom: 20,- color: dracula.red,- fontSize: 13,- },- form: {- display: 'flex',- flexDirection: 'column',- gap: 16,- },- inputGroup: {- display: 'flex',- flexDirection: 'column',- gap: 6,- },- label: {- color: dracula.foreground,- fontSize: 13,- fontWeight: 500,- },- input: {- backgroundColor: dracula.background,- border: `1px solid ${dracula.comment}50`,- borderRadius: 6,- padding: '12px 14px',- fontSize: 14,- color: dracula.foreground,- outline: 'none',- transition: 'border-color 0.2s, box-shadow 0.2s',- },- submitButton: {- backgroundColor: dracula.purple,- color: dracula.background,- border: 'none',- borderRadius: 6,- padding: '14px 20px',- fontSize: 15,- fontWeight: 600,- marginTop: 8,- transition: 'opacity 0.2s, transform 0.1s',- },- toggleSection: {- textAlign: 'center',- marginTop: 24,- paddingTop: 20,- borderTop: `1px solid ${dracula.comment}30`,- },- toggleText: {- color: dracula.comment,- fontSize: 13,- marginRight: 8,- },- toggleButton: {- background: 'none',- border: 'none',- color: dracula.cyan,- fontSize: 13,- fontWeight: 500,- cursor: 'pointer',- padding: 0,- },-};-export default LoginPage;diff --git a/client/src/components/auth/ProtectedRoute.tsx b/client/src/components/auth/ProtectedRoute.tsxindex 3a423982..09d44601 100644--- a/client/src/components/auth/ProtectedRoute.tsx+++ b/client/src/components/auth/ProtectedRoute.tsx@@ -5,6 +5,7 @@*/import React from 'react';+import { Loader2 } from 'lucide-react';import { useAuth } from '../../contexts/AuthContext';import LoginPage from './LoginPage';@@ -18,29 +19,9 @@ const ProtectedRoute: React.FC<ProtectedRouteProps> = ({ children }) => {// Show loading spinner while checking authif (isLoading) {return (- <div style={{- display: 'flex',- justifyContent: 'center',- alignItems: 'center',- height: '100vh',- backgroundColor: '#0d1117',- color: '#c9d1d9'- }}>- <div style={{ textAlign: 'center' }}>- <div style={{- width: 40,- height: 40,- border: '3px solid #30363d',- borderTopColor: '#bd93f9',- borderRadius: '50%',- animation: 'spin 1s linear infinite',- margin: '0 auto 16px'- }} />- <style>{`- @keyframes spin {- to { transform: rotate(360deg); }- }- `}</style>+ <div className="flex h-screen items-center justify-center bg-background text-foreground">+ <div className="text-center">+ <Loader2 className="mx-auto mb-4 h-10 w-10 animate-spin text-node-agent" /><p>Loading...</p></div></div>diff --git a/client/src/components/onboarding/steps/ConceptsStep.tsx b/client/src/components/onboarding/steps/ConceptsStep.tsxindex 326ec016..b84adc18 100644--- a/client/src/components/onboarding/steps/ConceptsStep.tsx+++ b/client/src/components/onboarding/steps/ConceptsStep.tsx@@ -1,43 +1,50 @@import React from 'react';import { LayoutGrid, GitBranch, Bot, Wrench, ArrowLeftRight } from 'lucide-react';-import { useAppTheme } from '../../../hooks/useAppTheme';-const ConceptsStep: React.FC = () => {- const theme = useAppTheme();+type NodeRole = 'model' | 'skill' | 'agent' | 'workflow' | 'trigger';++const ROLE_CLASSES: Record<NodeRole, { card: string; text: string }> = {+ model: { card: 'bg-node-model-soft border-node-model-border', text: 'text-node-model' },+ skill: { card: 'bg-node-skill-soft border-node-skill-border', text: 'text-node-skill' },+ agent: { card: 'bg-node-agent-soft border-node-agent-border', text: 'text-node-agent' },+ workflow: { card: 'bg-node-workflow-soft border-node-workflow-border', text: 'text-node-workflow' },+ trigger: { card: 'bg-node-trigger-soft border-node-trigger-border', text: 'text-node-trigger' },+};- const concepts = [- {- Icon: LayoutGrid,- title: 'Nodes',- desc: 'Building blocks of your workflow. Each node performs a specific action like sending a message, calling an AI model, or processing data.',- color: theme.dracula.cyan,- },- {- Icon: GitBranch,- title: 'Edges',- desc: "Connections between nodes that define data flow. Drag from one node's output to another's input to connect them.",- color: theme.dracula.green,- },- {- Icon: Bot,- title: 'AI Agents',- desc: 'Intelligent nodes that use LLMs (Claude, GPT, Gemini) to reason, call tools, and complete tasks autonomously.',- color: theme.dracula.purple,- },- {- Icon: Wrench,- title: 'Skills & Tools',- desc: 'Connect skills and tools to agents to extend their capabilities. Skills provide instructions, tools provide actions.',- color: theme.dracula.orange,- },- {- Icon: ArrowLeftRight,- title: 'Normal vs Dev Mode',- desc: 'Normal mode shows AI-focused nodes for simple workflows. Dev mode unlocks all 108+ nodes for advanced automation.',- color: theme.dracula.pink,- },- ];+const concepts: { Icon: typeof LayoutGrid; title: string; desc: string; role: NodeRole }[] = [+ {+ Icon: LayoutGrid,+ title: 'Nodes',+ desc: 'Building blocks of your workflow. Each node performs a specific action like sending a message, calling an AI model, or processing data.',+ role: 'model',+ },+ {+ Icon: GitBranch,+ title: 'Edges',+ desc: "Connections between nodes that define data flow. Drag from one node's output to another's input to connect them.",+ role: 'skill',+ },+ {+ Icon: Bot,+ title: 'AI Agents',+ desc: 'Intelligent nodes that use LLMs (Claude, GPT, Gemini) to reason, call tools, and complete tasks autonomously.',+ role: 'agent',+ },+ {+ Icon: Wrench,+ title: 'Skills & Tools',+ desc: 'Connect skills and tools to agents to extend their capabilities. Skills provide instructions, tools provide actions.',+ role: 'workflow',+ },+ {+ Icon: ArrowLeftRight,+ title: 'Normal vs Dev Mode',+ desc: 'Normal mode shows AI-focused nodes for simple workflows. Dev mode unlocks all 108+ nodes for advanced automation.',+ role: 'trigger',+ },+];+const ConceptsStep: React.FC = () => {return (<div className="py-1"><div className="mb-4 text-center">@@ -48,31 +55,27 @@ const ConceptsStep: React.FC = () => {</div><div className="flex w-full flex-col gap-2.5">- {concepts.map((c) => (- <div- key={c.title}- className="flex items-start gap-3 rounded-md border p-3"- style={{- backgroundColor: `${c.color}10`,- borderColor: `${c.color}25`,- }}- >+ {concepts.map((c) => {+ const classes = ROLE_CLASSES[c.role];+ return (<div- className="flex h-8 w-8 shrink-0 items-center justify-center rounded-md"- style={{ backgroundColor: `${c.color}20`, color: c.color }}+ key={c.title}+ className={`flex items-start gap-3 rounded-md border p-3 ${classes.card}`}>- <c.Icon className="h-4 w-4" />- </div>- <div className="min-w-0 flex-1">- <div className="mb-0.5 text-sm font-semibold" style={{ color: c.color }}>- {c.title}+ <div className={`flex h-8 w-8 shrink-0 items-center justify-center rounded-md ${classes.card}`}>+ <c.Icon className={`h-4 w-4 ${classes.text}`} />+ </div>+ <div className="min-w-0 flex-1">+ <div className={`mb-0.5 text-sm font-semibold ${classes.text}`}>+ {c.title}+ </div>+ <p className="m-0 text-xs leading-relaxed text-muted-foreground">+ {c.desc}+ </p></div>- <p className="m-0 text-xs leading-relaxed text-muted-foreground">- {c.desc}- </p></div>- </div>- ))}+ );+ })}</div></div>);diff --git a/client/src/components/onboarding/steps/GetStartedStep.tsx b/client/src/components/onboarding/steps/GetStartedStep.tsxindex b6f2a8ad..f341f2ac 100644--- a/client/src/components/onboarding/steps/GetStartedStep.tsx+++ b/client/src/components/onboarding/steps/GetStartedStep.tsx@@ -2,49 +2,62 @@ import React from 'react';import { Play, FlaskConical, BookOpen, Settings } from 'lucide-react';import { Card, CardContent } from '@/components/ui/card';import { Badge } from '@/components/ui/badge';-import { useAppTheme } from '../../../hooks/useAppTheme';-const GetStartedStep: React.FC = () => {- const theme = useAppTheme();+type NodeRole = 'skill' | 'agent' | 'model' | 'workflow';++const ROLE_CLASSES: Record<NodeRole, { card: string; text: string }> = {+ skill: { card: 'bg-node-skill-soft border-node-skill-border', text: 'text-node-skill' },+ agent: { card: 'bg-node-agent-soft border-node-agent-border', text: 'text-node-agent' },+ model: { card: 'bg-node-model-soft border-node-model-border', text: 'text-node-model' },+ workflow: { card: 'bg-node-workflow-soft border-node-workflow-border', text: 'text-node-workflow' },+};- const tips = [- {- Icon: Play,- title: 'Try an Example Workflow',- desc: 'Open the sidebar and click on one of the pre-loaded example workflows to see how things work.',- color: theme.dracula.green,- },- {- Icon: FlaskConical,- title: 'Build Your First Workflow',- desc: (- <>- Quick recipe: drag{' '}- <Badge variant="outline" className="mx-0.5 text-[10px]">Chat Trigger</Badge>- <span className="text-xs text-muted-foreground">{'\u2192'}</span>{' '}- <Badge variant="outline" className="mx-0.5 text-[10px]">Zeenie</Badge>- <span className="text-xs text-muted-foreground">{'\u2192'}</span>{' '}- <Badge variant="outline" className="mx-0.5 text-[10px]">Claude Model</Badge>- {' '}then click{' '}- <Badge variant="success" className="mx-0.5 text-[10px]">Run</Badge>- </>- ),- color: theme.dracula.purple,- },- {- Icon: BookOpen,- title: 'Explore AI Skills',- desc: 'Use the Master Skill node to browse and enable built-in skills for your AI agents.',- color: theme.dracula.cyan,- },- {- Icon: Settings,- title: 'Revisit This Guide',- desc: 'You can replay this welcome guide anytime from Settings.',- color: theme.dracula.orange,- },- ];+type Tip = {+ Icon: typeof Play;+ title: string;+ desc: React.ReactNode;+ role: NodeRole;+};+const tips: Tip[] = [+ {+ Icon: Play,+ title: 'Try an Example Workflow',+ desc: 'Open the sidebar and click on one of the pre-loaded example workflows to see how things work.',+ role: 'skill',+ },+ {+ Icon: FlaskConical,+ title: 'Build Your First Workflow',+ desc: (+ <>+ Quick recipe: drag{' '}+ <Badge variant="outline" className="mx-0.5 text-[10px]">Chat Trigger</Badge>+ <span className="text-xs text-muted-foreground">{'→'}</span>{' '}+ <Badge variant="outline" className="mx-0.5 text-[10px]">Zeenie</Badge>+ <span className="text-xs text-muted-foreground">{'→'}</span>{' '}+ <Badge variant="outline" className="mx-0.5 text-[10px]">Claude Model</Badge>+ {' '}then click{' '}+ <Badge variant="success" className="mx-0.5 text-[10px]">Run</Badge>+ </>+ ),+ role: 'agent',+ },+ {+ Icon: BookOpen,+ title: 'Explore AI Skills',+ desc: 'Use the Master Skill node to browse and enable built-in skills for your AI agents.',+ role: 'model',+ },+ {+ Icon: Settings,+ title: 'Revisit This Guide',+ desc: 'You can replay this welcome guide anytime from Settings.',+ role: 'workflow',+ },+];++const GetStartedStep: React.FC = () => {return (<div className="py-1"><div className="mb-4 text-center">@@ -55,32 +68,26 @@ const GetStartedStep: React.FC = () => {</div><div className="flex w-full flex-col gap-2.5">- {tips.map(({ Icon, title, desc, color }, i) => (- <Card- key={i}- style={{- borderColor: `${color}30`,- backgroundColor: `${color}08`,- }}- >- <CardContent className="flex items-start gap-2.5 p-3">- <div- className="flex h-7 w-7 shrink-0 items-center justify-center rounded-md"- style={{ backgroundColor: `${color}20`, color }}- >- <Icon className="h-3.5 w-3.5" />- </div>- <div className="min-w-0 flex-1">- <div className="mb-0.5 text-sm font-semibold" style={{ color }}>- {title}+ {tips.map(({ Icon, title, desc, role }, i) => {+ const classes = ROLE_CLASSES[role];+ return (+ <Card key={i} className={classes.card}>+ <CardContent className="flex items-start gap-2.5 p-3">+ <div className={`flex h-7 w-7 shrink-0 items-center justify-center rounded-md ${classes.card}`}>+ <Icon className={`h-3.5 w-3.5 ${classes.text}`} />+ </div>+ <div className="min-w-0 flex-1">+ <div className={`mb-0.5 text-sm font-semibold ${classes.text}`}>+ {title}+ </div>+ <p className="m-0 text-xs leading-relaxed text-muted-foreground">+ {desc}+ </p></div>- <p className="m-0 text-xs leading-relaxed text-muted-foreground">- {desc}- </p>- </div>- </CardContent>- </Card>- ))}+ </CardContent>+ </Card>+ );+ })}</div></div>);diff --git a/client/src/components/onboarding/steps/WelcomeStep.tsx b/client/src/components/onboarding/steps/WelcomeStep.tsxindex 404f5710..f69bb6ef 100644--- a/client/src/components/onboarding/steps/WelcomeStep.tsx+++ b/client/src/components/onboarding/steps/WelcomeStep.tsx@@ -12,11 +12,11 @@ const features = [const WelcomeStep: React.FC = () => {return (<div className="py-2 text-center">- <Rocket className="mx-auto mb-2 h-10 w-10 text-dracula-purple" />+ <Rocket className="mx-auto mb-2 h-10 w-10 text-node-agent" /><h3 className="m-0 mb-1 text-xl font-semibold">Welcome to MachinaOs</h3>- <p className="text-[15px] font-semibold text-dracula-purple">+ <p className="text-[15px] font-semibold text-node-agent">Visual workflow automation powered by AI agents</p>@@ -30,14 +30,10 @@ const WelcomeStep: React.FC = () => {{features.map(({ Icon, label, desc }) => (<Cardkey={label}- className="text-center"- style={{- backgroundColor: 'hsl(var(--dracula-purple) / 0.08)',- borderColor: 'hsl(var(--dracula-purple) / 0.3)',- }}+ className="text-center bg-node-agent-soft border-node-agent-border"><CardContent className="flex flex-col items-center gap-1 p-3">- <Icon className="h-5 w-5 text-dracula-purple" />+ <Icon className="h-5 w-5 text-node-agent" /><span className="block text-sm font-semibold">{label}</span><span className="text-xs text-muted-foreground">{desc}</span></CardContent>diff --git a/client/src/index.css b/client/src/index.cssindex 732c6a7c..f077c0da 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -65,6 +65,38 @@--dracula-selection: 232 14% 31%; /* #44475a */--dracula-current-line: 232 14% 25%; /* #383a4a */--dracula-comment: 225 27% 51%; /* #6272a4 */++ /* Node-type semantic tokens — role-based. Themes redefine these in+ * their own scope without touching call sites.+ *+ * Each role exposes three variants so call sites never use opacity+ * arithmetic (`bg-node-agent/10`) — themes own the exact tints:+ * --node-X base solid color (badges, icons)+ * --node-X-soft tinted surface (card backgrounds)+ * --node-X-border tinted outline (card / chip borders) */+ --node-agent: 265 89% 78%;+ --node-agent-soft: 265 89% 78% / 0.08;+ --node-agent-border: 265 89% 78% / 0.3;++ --node-model: 191 97% 77%;+ --node-model-soft: 191 97% 77% / 0.08;+ --node-model-border: 191 97% 77% / 0.3;++ --node-skill: 135 94% 65%;+ --node-skill-soft: 135 94% 65% / 0.08;+ --node-skill-border: 135 94% 65% / 0.3;++ --node-tool: 135 94% 65%;+ --node-tool-soft: 135 94% 65% / 0.08;+ --node-tool-border: 135 94% 65% / 0.3;++ --node-trigger: 326 100% 74%;+ --node-trigger-soft: 326 100% 74% / 0.08;+ --node-trigger-border: 326 100% 74% / 0.3;++ --node-workflow: 27 100% 71%;+ --node-workflow-soft: 27 100% 71% / 0.08;+ --node-workflow-border: 27 100% 71% / 0.3;}.dark {@@ -166,6 +198,28 @@--color-dracula-current-line: hsl(var(--dracula-current-line));--color-dracula-comment: hsl(var(--dracula-comment));+ /* Node-type tokens — base + soft (tinted bg) + border (tinted outline).+ * Use bg-node-X / bg-node-X-soft / border-node-X-border directly,+ * never with /N opacity arithmetic. */+ --color-node-agent: hsl(var(--node-agent));+ --color-node-agent-soft: hsl(var(--node-agent-soft));+ --color-node-agent-border: hsl(var(--node-agent-border));+ --color-node-model: hsl(var(--node-model));+ --color-node-model-soft: hsl(var(--node-model-soft));+ --color-node-model-border: hsl(var(--node-model-border));+ --color-node-skill: hsl(var(--node-skill));+ --color-node-skill-soft: hsl(var(--node-skill-soft));+ --color-node-skill-border: hsl(var(--node-skill-border));+ --color-node-tool: hsl(var(--node-tool));+ --color-node-tool-soft: hsl(var(--node-tool-soft));+ --color-node-tool-border: hsl(var(--node-tool-border));+ --color-node-trigger: hsl(var(--node-trigger));+ --color-node-trigger-soft: hsl(var(--node-trigger-soft));+ --color-node-trigger-border: hsl(var(--node-trigger-border));+ --color-node-workflow: hsl(var(--node-workflow));+ --color-node-workflow-soft: hsl(var(--node-workflow-soft));+ --color-node-workflow-border: hsl(var(--node-workflow-border));+--radius-sm: calc(var(--radius) - 4px);--radius-md: calc(var(--radius) - 2px);--radius-lg: var(--radius);diff --git a/client/tailwind.config.js b/client/tailwind.config.jsindex a4b07de2..01c76ad3 100644--- a/client/tailwind.config.js+++ b/client/tailwind.config.js@@ -63,6 +63,28 @@ export default {"current-line": "hsl(var(--dracula-current-line))",comment: "hsl(var(--dracula-comment))",},+ // Role-based node tokens — base + soft (tinted bg) + border+ // (tinted outline). Themes redefine the underlying CSS vars.+ // Call sites use bg-node-X-soft / border-node-X-border directly,+ // never with /N opacity arithmetic.+ "node-agent": "hsl(var(--node-agent))",+ "node-agent-soft": "hsl(var(--node-agent-soft))",+ "node-agent-border": "hsl(var(--node-agent-border))",+ "node-model": "hsl(var(--node-model))",+ "node-model-soft": "hsl(var(--node-model-soft))",+ "node-model-border": "hsl(var(--node-model-border))",+ "node-skill": "hsl(var(--node-skill))",+ "node-skill-soft": "hsl(var(--node-skill-soft))",+ "node-skill-border": "hsl(var(--node-skill-border))",+ "node-tool": "hsl(var(--node-tool))",+ "node-tool-soft": "hsl(var(--node-tool-soft))",+ "node-tool-border": "hsl(var(--node-tool-border))",+ "node-trigger": "hsl(var(--node-trigger))",+ "node-trigger-soft": "hsl(var(--node-trigger-soft))",+ "node-trigger-border": "hsl(var(--node-trigger-border))",+ "node-workflow": "hsl(var(--node-workflow))",+ "node-workflow-soft": "hsl(var(--node-workflow-soft))",+ "node-workflow-border": "hsl(var(--node-workflow-border))",},borderRadius: {lg: "var(--radius)",