Files
vue-chat-layer/app/assets/css/chat-tokens.css
Jakub Zych 269c75b5dd feat: threads, pins, reactions, attachments, link embeds and the command picker
- threads: reply counts, ChatThreadPane with replies, live replies and thread mute
- channel pins in ChatPinsPanel; a refused pin hides the action for the session
- reactions, attachments with upload progress and bearer downloads, inline edits, the delete dialog (moderators also in channels)
- link cards with the registerEmbedRenderer registry; linkify for escaped text
- slash commands: the command picker over chatbots, dispatch with sender-only answers
- slots conversation-actions (DMs only) and sidebar-footer
- chat-tokens.css and chat-base.css, EN and PL copy, README
2026-10-31 14:04:54 +01:00

66 lines
1.7 KiB
CSS

/*
* vue-chat-layer design tokens. Every visual value of the Chat* components
* reads one of these; an app overrides any of them on :root:root (or a
* narrower selector) after the layer's CSS. The defaults are a neutral
* palette.
*/
:root {
/* colour */
--chat-color-text: #1f2328;
--chat-color-muted: #59636e;
--chat-color-bg: #ffffff;
--chat-color-surface: #f6f8fa;
--chat-color-hover: #eef1f4;
--chat-color-border: #d1d9e0;
--chat-color-accent: #0969da;
--chat-color-on-accent: #ffffff;
--chat-color-accent-soft: #ddf4ff;
--chat-color-mention: #fff8c5;
--chat-color-danger: #cf222e;
--chat-color-success: #1a7f37;
--chat-color-backdrop: rgba(31, 35, 40, 0.4);
/* avatar palette */
--chat-av-1: #b35900;
--chat-av-2: #0969da;
--chat-av-3: #1a7f37;
--chat-av-4: #8250df;
--chat-av-5: #bf3989;
--chat-av-6: #0a7480;
--chat-av-7: #9a6700;
--chat-av-8: #cf222e;
--chat-av-text: #ffffff;
/* type */
--chat-font: inherit;
--chat-font-size-sm: 0.8125rem;
--chat-font-size: 0.9375rem;
--chat-font-size-lg: 1.0625rem;
--chat-line-height: 1.5;
/* spacing */
--chat-space-1: 0.25rem;
--chat-space-2: 0.5rem;
--chat-space-3: 0.75rem;
--chat-space-4: 1rem;
--chat-space-5: 1.5rem;
/* radii */
--chat-radius: 6px;
--chat-radius-card: 10px;
--chat-radius-pill: 999px;
/* layout */
--chat-height: min(78vh, 48rem);
--chat-sidebar: 16rem;
--chat-side: 22rem;
--chat-target: 2.25rem;
--chat-floating-width: 22rem;
--chat-floating-height: min(70vh, 34rem);
--chat-floating-offset: 1.25rem;
--chat-z-floating: 60;
/* shadow (popovers, dialogs, the floating panel) */
--chat-shadow: 0 8px 24px rgba(31, 35, 40, 0.12);
}