Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
M40: UI discipline pass (typography + stroke + corners)
Yuechen Li9c0bb88f7283
diff --git a/aetheris.client/src/App.css b/aetheris.client/src/App.cssindex 491253d4..27db7af1 100644--- a/aetheris.client/src/App.css+++ b/aetheris.client/src/App.css@@ -1,8 +1,3 @@-#root {- width: 100%;- min-height: 100vh;-}-.app-shell {display: flex;flex-direction: column;@@ -15,31 +10,31 @@display: flex;justify-content: space-between;align-items: center;- padding: 1rem 1.5rem;- border-bottom: 1px solid hsl(var(--border));- background: hsla(var(--card), 0.92);- backdrop-filter: blur(4px);+ padding: 16px 24px;+ border-bottom: var(--ui-divider) solid hsl(var(--border));+ background: hsla(var(--card), 0.95);}.toolbar h1 {margin: 0;- font-size: 1.05rem;- letter-spacing: 0.08em;+ font-size: var(--ui-title);+ letter-spacing: 0.1em;text-transform: uppercase;- font-weight: 520;+ font-weight: var(--ui-weight-title);}.toolbar-actions {display: flex;- gap: 0.6rem;+ gap: 8px;+ flex-wrap: wrap;}.top-tabs {display: flex;- gap: 0.6rem;- padding: 0.85rem 1.5rem;- border-bottom: 1px solid hsl(var(--border));- background: hsla(var(--card), 0.76);+ gap: 8px;+ padding: 12px 24px;+ border-bottom: var(--ui-divider) solid hsl(var(--border));+ background: hsla(var(--card), 0.86);}.tab-button {@@ -47,14 +42,15 @@}.tab-button.active {- box-shadow: inset 0 0 0 1px hsla(var(--primary), 0.35);+ box-shadow: inset 0 0 0 var(--ui-stroke) hsla(var(--primary), 0.35);}.experimental-badge {- font-size: 0.66rem;- padding: 0.1rem 0.35rem;- border-radius: 999px;- border: 1px solid hsl(var(--border));+ font-size: 11px;+ line-height: 1;+ padding: 2px 6px;+ border-radius: var(--ui-radius);+ border: var(--ui-stroke) solid hsl(var(--border));background: hsla(var(--muted), 0.8);}@@ -62,31 +58,37 @@flex: 1;display: grid;grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);- gap: 1.2rem;- padding: 1.25rem 1.5rem 1.5rem;+ gap: 16px;+ padding: 16px 24px;}.product-panel {display: flex;flex-direction: column;- gap: 0.9rem;+ gap: 12px;}-.product-panel section {- border: 1px solid hsl(var(--border));+.product-panel section,+.viewer-secondary,+.debug-panel section {+ border: var(--ui-stroke) solid hsl(var(--border));background: hsl(var(--card));- border-radius: 14px;- padding: 1rem;+ border-radius: var(--ui-radius);+ padding: 16px;+ box-shadow: none;}.product-panel h2,-.viewer-secondary h2 {- margin-top: 0;- margin-bottom: 0.65rem;- font-size: 0.92rem;- letter-spacing: 0.06em;+.viewer-secondary h2,+.debug-panel h2,+.debug-panel h3,+.product-panel h3 {+ margin: 0 0 12px;+ font-size: var(--ui-title);+ letter-spacing: var(--ui-title-tracking);text-transform: uppercase;color: hsl(var(--muted-foreground));+ font-weight: var(--ui-weight-title);}.audit-panel {@@ -95,16 +97,8 @@.inspector-row {display: grid;- gap: 0.45rem;- margin-bottom: 0.5rem;-}--.viewer-secondary {- border: 1px solid hsl(var(--border));- background: hsl(var(--card));- border-radius: 14px;- padding: 0.9rem;- box-shadow: 0 8px 20px -18px rgba(30, 20, 10, 0.55);+ gap: 8px;+ margin-bottom: 12px;}.main-grid {@@ -118,60 +112,67 @@}.debug-panel {- border-left: 1px solid #1e293b;- padding: 1rem;+ border-left: var(--ui-divider) solid #1e293b;+ padding: 16px;background: #0f172a;color: #e2e8f0;overflow: auto;}-.debug-panel h2,-.debug-panel h3 {- margin-top: 0;-}-.debug-panel section {- margin-bottom: 1rem;- padding-bottom: 0.75rem;- border-bottom: 1px solid #1e293b;+ margin-bottom: 16px;}.debug-panel ul,.product-panel ul {margin: 0;- padding-left: 1rem;+ padding-left: 16px;word-break: break-word;}.demo-notice {- margin-top: -0.35rem;- margin-bottom: 1rem;- padding: 0.5rem;- border-radius: 8px;+ margin-top: 0;+ margin-bottom: 16px;+ padding: 8px;+ border-radius: var(--ui-radius);background: #1e293b;- border: 1px solid #334155;+ border: var(--ui-stroke) solid #334155;+ font-size: var(--ui-small);}.form-grid {display: grid;grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 0.4rem;- margin-bottom: 0.5rem;+ gap: 12px;+ margin-bottom: 12px;}-.form-grid label {+.form-grid label,+.textarea-label,+.product-panel label {display: flex;flex-direction: column;- gap: 0.25rem;- font-size: 0.8rem;+ gap: 4px;+ font-size: var(--ui-small);+ font-weight: var(--ui-weight-emphasis);+}++input,+select,+textarea,+button {+ border-radius: var(--ui-radius);+ border: var(--ui-stroke) solid hsl(var(--input));+ min-height: 34px;+ font-family: var(--ui-font-sans);+ font-size: var(--ui-text);}input,select,textarea {- border-radius: 8px;- border: 1px solid #334155;- padding: 0.44rem 0.52rem;+ padding: 6px 8px;+ font-weight: var(--ui-weight-body);color: #e2e8f0;background: #020617;}@@ -184,12 +185,19 @@ textarea {border-color: hsl(var(--input));}+button {+ background: hsl(var(--muted));+ color: hsl(var(--foreground));+ padding: 0 12px;+ font-weight: var(--ui-weight-emphasis);+}+.boolean-grid {grid-template-columns: 1fr;}.boolean-actions {- margin-bottom: 0.5rem;+ margin-bottom: 12px;}button.active-row {@@ -197,22 +205,27 @@ button.active-row {background: #0c4a6e;}+button:focus-visible,+input:focus-visible,+select:focus-visible,+textarea:focus-visible {+ outline: none;+ box-shadow: 0 0 0 var(--ui-focus-ring) hsla(var(--ring), 0.35);+}+button:disabled {opacity: 0.5;cursor: not-allowed;}.textarea-label {- display: flex;- flex-direction: column;- gap: 0.25rem;- margin-top: 0.5rem;- margin-bottom: 0.5rem;- font-size: 0.8rem;+ margin-top: 8px;+ margin-bottom: 8px;}textarea {width: 100%;+ min-height: 100px;resize: vertical;}diff --git a/aetheris.client/src/components/ui/button.tsx b/aetheris.client/src/components/ui/button.tsxindex 70b2bbb7..8208b5ea 100644--- a/aetheris.client/src/components/ui/button.tsx+++ b/aetheris.client/src/components/ui/button.tsx@@ -4,19 +4,19 @@ import { cva, type VariantProps } from 'class-variance-authority';import { cn } from '../../lib/utils';const buttonVariants = cva(- 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',+ 'inline-flex items-center justify-center whitespace-nowrap rounded-[var(--ui-radius)] border-[var(--ui-stroke)] text-[13px] font-semibold transition-colors focus-visible:outline-none focus-visible:ring-[var(--ui-focus-ring)] focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',{variants: {variant: {- default: 'bg-primary text-primary-foreground shadow hover:opacity-90',- secondary: 'bg-muted text-foreground hover:bg-muted/80',- ghost: 'hover:bg-muted hover:text-foreground',- outline: 'border border-input bg-background hover:bg-muted',+ default: 'border-primary bg-primary text-primary-foreground hover:opacity-90',+ secondary: 'border-border bg-muted text-foreground hover:bg-muted/80',+ ghost: 'border-transparent bg-transparent hover:bg-muted hover:text-foreground',+ outline: 'border-input bg-background text-foreground hover:bg-muted',},size: {- default: 'h-9 px-4 py-2',- sm: 'h-8 rounded-md px-3 text-xs',- lg: 'h-10 rounded-md px-8',+ default: 'h-[34px] px-3',+ sm: 'h-[32px] px-3 text-[13px]',+ lg: 'h-[36px] px-6 text-[14px]',},},defaultVariants: {diff --git a/aetheris.client/src/index.css b/aetheris.client/src/index.cssindex 2a8ed944..097854aa 100644--- a/aetheris.client/src/index.css+++ b/aetheris.client/src/index.css@@ -14,9 +14,22 @@--border: 30 14% 84%;--input: 30 16% 82%;--ring: 30 18% 30%;- --radius: 0.7rem;- font-family: 'Inter', 'Avenir Next', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;+ --ui-font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;+ --ui-text: 0.875rem;+ --ui-small: 0.8125rem;+ --ui-title: 0.75rem;+ --ui-weight-body: 400;+ --ui-weight-emphasis: 600;+ --ui-weight-title: 600;+ --ui-title-tracking: 0.08em;++ --ui-radius: 2px;+ --ui-stroke: 1.5px;+ --ui-divider: 1px;+ --ui-focus-ring: 2px;++ --radius: var(--ui-radius);}* {@@ -29,4 +42,13 @@ body {min-height: 100vh;background: hsl(var(--background));color: hsl(var(--foreground));+ font-family: var(--ui-font-sans);+ font-size: var(--ui-text);+ font-weight: var(--ui-weight-body);+ line-height: 1.4;+}++#root {+ width: 100%;+ min-height: 100vh;}