mirror of
https://github.com/techforces-ai/Cial.git
synced 2026-05-15 20:14:11 +00:00
Reorganize @cial/core-ui from a flat src/ into three folders:
- components/<Name>/ — tsx + colocated .scss per component, splitting
MessageList (240→60 lines + 6 leaf files) and
Sidebar / SessionView into their natural pieces
- lib/ — store, theme, markdown, types
- styles/ — _tokens, _base, _animations, _components,
index.scss (the SCSS bundle entry)
Move all custom CSS (theme tokens, glow border, hljs theme, prose-chat,
keyframes, .cial-logo, .bubble-*, .composer-shell, .send-button,
.cial-avatar, .empty-state-icon …) into the package's SCSS partials so
the package travels with its own styles. Replace inline gradient
style={{ background: 'linear-gradient(...)' }} usages in AppShell,
Sidebar avatar, SessionView empty-state and InputBar send button with
proper SCSS classes.
Expose `@cial/core-ui/styles` via the package.json exports map and
import it from cial-platform/front via a tiny cial-styles.scss alongside
globals.css. globals.css now owns ONLY Tailwind setup (the framework
import, @source for cross-package class scanning, @theme inline tokens
and the two @utility scrollbar rules — none of which Sass can parse).
Add `sass ^1.83.4` as a dev dep on cial-platform/front; Next.js 16
picks it up automatically. No public API change — `AppShell` and
`SessionUser` are still the only exports.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| back | ||
| front | ||