diff --git a/apps/docs/app/global.css b/apps/docs/app/global.css index 09ffa108b86..d7709776139 100644 --- a/apps/docs/app/global.css +++ b/apps/docs/app/global.css @@ -65,16 +65,17 @@ body.wp-lightbox-open [aria-label="Ask Sim"] { --surface-5: #f3f3f3; --surface-6: #e5e5e5; --surface-active: #ececec; - --border: #dedede; - --border-1: #e0e0e0; - --divider: #ededed; + --border: #d8d8d8; + /** Legacy neutral-border aliases. New work should use --border. */ + --border-1: var(--border); --text-primary: #1a1a1a; --text-secondary: #525252; --text-tertiary: #5c5c5c; - --text-body: #3b3b3b; - --text-muted: #707070; + --text-body: #434343; + --text-muted: #7a7a7a; --text-subtle: #8c8c8c; - --text-icon: #525252; + --text-icon: #5a5a5a; + --text-icon-muted: #5c5c5c; --text-inverse: #ffffff; --text-error: #ef4444; --text-muted-inverse: #a0a0a0; @@ -84,9 +85,26 @@ body.wp-lightbox-open [aria-label="Ask Sim"] { --surface-inverted: #1b1b1b; --surface-inverted-hover: #363636; --border-inverted: #363636; - --border-muted: #e4e4e4; + --border-muted: var(--border); --badge-success-bg: #bbf7d0; --badge-success-text: #15803d; + /* Shared-component tokens: referenced by @sim/emcn and @sim/workflow-renderer. + Undefined here, a var() silently falls back to currentColor. Values mirror + apps/sim/app/_styles/globals.css. */ + --border-success: #e0e0e0; + --success: #22c55e; + --error: #dc2626; + --warning: #ea580c; + --caution: #f59e0b; + --text-placeholder: #8d8d8d; + --badge-teal-bg: #99f6e4; + --badge-teal-text: #0f766e; + --badge-cyan-bg: #cffafe; + --badge-cyan-text: #0891b2; + --badge-pink-bg: #fbcfe8; + --badge-pink-text: #be185d; + --badge-blue-secondary-bg: #bae6fd; + --badge-blue-secondary-text: #0369a1; --badge-blue-bg: #bfdbfe; --badge-blue-text: #1d4ed8; --badge-purple-bg: #e9d5ff; @@ -116,16 +134,17 @@ body.wp-lightbox-open [aria-label="Ask Sim"] { --surface-5: #363636; --surface-6: #454545; --surface-active: #2c2c2c; - --border: #333333; - --border-1: #3d3d3d; - --divider: #393939; + --border: #444444; + /** Legacy neutral-border aliases. New work should use --border. */ + --border-1: var(--border); --text-primary: #e6e6e6; --text-secondary: #cccccc; --text-tertiary: #b3b3b3; - --text-body: #cdcdcd; - --text-muted: #787878; + --text-body: #c1c1c1; + --text-muted: #6e6e6e; --text-subtle: #7d7d7d; - --text-icon: #a0a0a0; + --text-icon: #969696; + --text-icon-muted: #949494; --text-inverse: #1b1b1b; --text-error: #ef4444; --text-muted-inverse: #b3b3b3; @@ -135,9 +154,26 @@ body.wp-lightbox-open [aria-label="Ask Sim"] { --surface-inverted: #242424; --surface-inverted-hover: #363636; --border-inverted: #3d3d3d; - --border-muted: #424242; + --border-muted: var(--border); --badge-success-bg: rgba(34, 197, 94, 0.2); --badge-success-text: #86efac; + /* Shared-component tokens: referenced by @sim/emcn and @sim/workflow-renderer. + Undefined here, a var() silently falls back to currentColor. Values mirror + apps/sim/app/_styles/globals.css. */ + --border-success: #575757; + --success: #22c55e; + --error: #f87171; + --warning: #ff6600; + --caution: #f59e0b; + --text-placeholder: #8d8d8d; + --badge-teal-bg: rgba(20, 184, 166, 0.2); + --badge-teal-text: #5eead4; + --badge-cyan-bg: rgba(14, 165, 233, 0.2); + --badge-cyan-text: #7dd3fc; + --badge-pink-bg: rgba(236, 72, 153, 0.2); + --badge-pink-text: #f9a8d4; + --badge-blue-secondary-bg: rgba(51, 180, 255, 0.2); + --badge-blue-secondary-text: #7dd3fc; --badge-blue-bg: rgba(59, 130, 246, 0.2); --badge-blue-text: #93c5fd; --badge-purple-bg: rgba(168, 85, 247, 0.2); diff --git a/apps/docs/components/ai/ask-ai-panel.tsx b/apps/docs/components/ai/ask-ai-panel.tsx index e6af234ebb6..c55b05dca0c 100644 --- a/apps/docs/components/ai/ask-ai-panel.tsx +++ b/apps/docs/components/ai/ask-ai-panel.tsx @@ -145,8 +145,8 @@ export function AskAIPanel({ locale, open, onClose }: AskAIPanelProps) { className={cn( 'space-y-3 text-[var(--text-primary)] text-base leading-relaxed', '[&_a]:text-[var(--text-primary)] [&_a]:underline [&_a]:decoration-dashed [&_a]:underline-offset-4', - '[&_strong]:font-[600]', - '[&_h1]:font-[600] [&_h2]:font-[600] [&_h3]:font-[600] [&_h4]:font-[600]', + '[&_strong]:font-semibold', + '[&_h1]:font-semibold [&_h2]:font-semibold [&_h3]:font-semibold [&_h4]:font-semibold', '[&_li]:my-1 [&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-5', '[&_code]:font-mono [&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-lg [&_pre]:bg-[var(--surface-5)] [&_pre]:p-3 [&_pre]:text-small' )} diff --git a/apps/docs/components/docs-layout/sidebar-components.tsx b/apps/docs/components/docs-layout/sidebar-components.tsx index d4c279e255b..cb7cb3e8dda 100644 --- a/apps/docs/components/docs-layout/sidebar-components.tsx +++ b/apps/docs/components/docs-layout/sidebar-components.tsx @@ -56,7 +56,7 @@ const ITEM_BASE = const ITEM_ACTIVE_MOBILE = 'bg-[var(--surface-active)] font-medium text-[var(--text-primary)]' const ITEM_DESKTOP = - 'lg:mb-[0.0625rem] lg:block lg:rounded-lg lg:px-2.5 lg:py-1.5 lg:font-normal lg:text-[13px] lg:leading-tight' + 'lg:mb-[0.0625rem] lg:block lg:rounded-lg lg:px-2.5 lg:py-1.5 lg:font-normal lg:text-small lg:leading-tight' const ITEM_TEXT = 'lg:text-[var(--text-body)]' const ITEM_HOVER = 'lg:hover:bg-[var(--surface-3)]' const ITEM_ACTIVE = 'lg:bg-[var(--surface-active)] lg:font-normal lg:text-[var(--text-body)]' @@ -144,7 +144,7 @@ export function SidebarFolder({ item, children }: { item: Folder; children: Reac 'flex flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors', 'text-[var(--text-muted)] hover:bg-[var(--surface-active)] hover:text-[var(--text-body)]', active && ITEM_ACTIVE_MOBILE, - 'lg:block lg:flex-1 lg:rounded-lg lg:px-2.5 lg:py-1.5 lg:text-[13px] lg:leading-tight', + 'lg:block lg:flex-1 lg:rounded-lg lg:px-2.5 lg:py-1.5 lg:text-small lg:leading-tight', FOLDER_TEXT, !active && FOLDER_HOVER, active && FOLDER_ACTIVE @@ -171,7 +171,7 @@ export function SidebarFolder({ item, children }: { item: Folder; children: Reac className={cn( 'flex flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors', 'text-[var(--text-muted)] hover:bg-[var(--surface-active)]', - 'lg:flex lg:w-full lg:cursor-pointer lg:items-center lg:justify-between lg:rounded-lg lg:px-2.5 lg:py-1.5 lg:text-left lg:text-[13px] lg:leading-tight', + 'lg:flex lg:w-full lg:cursor-pointer lg:items-center lg:justify-between lg:rounded-lg lg:px-2.5 lg:py-1.5 lg:text-left lg:text-small lg:leading-tight', FOLDER_TEXT, FOLDER_HOVER )} @@ -214,7 +214,7 @@ export function SidebarSeparator({ item }: { item: Separator }) {
{item.name}
diff --git a/apps/docs/components/navbar/navbar.tsx b/apps/docs/components/navbar/navbar.tsx
index 20d8020c0bf..8b2ee8fcc2a 100644
--- a/apps/docs/components/navbar/navbar.tsx
+++ b/apps/docs/components/navbar/navbar.tsx
@@ -77,12 +77,12 @@ export function Navbar() {
className={cn(
'-mb-px relative flex items-center border-b text-[14px] tracking-[-0.01em] transition-colors',
isActive
- ? 'border-[var(--text-muted)] font-[480] text-[var(--text-primary)]'
- : 'border-transparent font-[430] text-[var(--text-muted)] hover:border-[var(--border-1)] hover:text-[var(--text-secondary)]'
+ ? 'border-[var(--text-muted)] font-medium text-[var(--text-primary)]'
+ : 'border-transparent font-normal text-[var(--text-muted)] hover:border-[var(--border-1)] hover:text-[var(--text-secondary)]'
)}
>
{/* Invisible bold text reserves width to prevent layout shift */}
- {tab.label}
+ {tab.label}
{tab.label}
)
diff --git a/apps/docs/components/page-type-badge.tsx b/apps/docs/components/page-type-badge.tsx
index e1f7eb30db5..df46fd1d962 100644
--- a/apps/docs/components/page-type-badge.tsx
+++ b/apps/docs/components/page-type-badge.tsx
@@ -42,7 +42,7 @@ export function PageTypeBadge({ type, className }: PageTypeBadgeProps) {
return (
{title}
+ {title}