diff --git a/apps/website/src/app/global.css b/apps/website/src/app/global.css index efe57991a..417bc6d4a 100644 --- a/apps/website/src/app/global.css +++ b/apps/website/src/app/global.css @@ -1,6 +1,20 @@ @import "tailwindcss"; @import "@threadplane/design-tokens/theme.css"; +/* + * Scope files for the inline-style migration. These MUST sit with the other + * @imports at the top: @import after any rule is invalid CSS — the production + * pipeline (Lightning CSS) forgives it by hoisting, but turbopack dev can + * silently DROP the imported files, unstyling everything they cover. Found + * the hard way in Batch 2. + */ +@import "../styles/ui.css"; +@import "../styles/chrome.css"; +@import "../styles/docs.css"; +@import "../styles/landing.css"; +@import "../styles/marketing.css"; +@import "../styles/pages.css"; + /* * Local, non-token constants. * @@ -30,12 +44,6 @@ --docs-accent-tint-line: color-mix(in srgb, var(--color-accent) 10%, transparent); } -@import "../styles/ui.css"; -@import "../styles/chrome.css"; -@import "../styles/docs.css"; -@import "../styles/landing.css"; -@import "../styles/marketing.css"; -@import "../styles/pages.css"; * { box-sizing: border-box; diff --git a/apps/website/src/components/shared/AnnouncementToast.tsx b/apps/website/src/components/shared/AnnouncementToast.tsx index 01acbd8e9..b51411dbd 100644 --- a/apps/website/src/components/shared/AnnouncementToast.tsx +++ b/apps/website/src/components/shared/AnnouncementToast.tsx @@ -1,6 +1,5 @@ 'use client'; import { useState, useEffect } from 'react'; -import { tokens } from '@threadplane/design-tokens'; import { analyticsEvents } from '../../lib/analytics/events'; import { track, trackWhitepaperDownloadClick } from '../../lib/analytics/client'; import { Button } from '../ui/Button'; @@ -83,97 +82,43 @@ export function AnnouncementToast() { setTimeout(dismiss, 4000); }; - const inputStyle: React.CSSProperties = { - width: '100%', - background: tokens.surfaces.surface, - border: `1px solid ${tokens.surfaces.border}`, - borderRadius: tokens.radius.md, - padding: '8px 12px', - fontSize: '0.82rem', - color: tokens.colors.textPrimary, - fontFamily: 'Inter, sans-serif', - outline: 'none', - }; - if (!visible) return null; return (
+
Free Guide
{/* Title */} -+
From Prototype to Production
{step === 'cta' && ( <> -+
Six production-readiness dimensions for Angular agents. Get the guide.
-