Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat(web): global CSS and public assets

Gener9bde168601c9
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.css
new file mode 100644
index 000000000..1f8d7a601
--- /dev/null
+++ b/src/web/src/app/globals.css
@@ -0,0 +1,406 @@
+@import "tailwindcss";
+@import "tw-animate-css";
+@import "shadcn/tailwind.css";
+@source "../node_modules/streamdown/dist/*.js";
+
+@custom-variant dark (&:is(.dark *));
+
+@theme inline {
+ --text-base: 0.9375rem;
+ --text-base--line-height: 1.6;
+ --color-background: var(--background);
+ --color-foreground: var(--foreground);
+ --font-sans: var(--font-dm-sans);
+ --font-mono: var(--font-dm-mono);
+ --font-heading: var(--font-dm-sans);
+ --font-brand: var(--font-caveat);
+ --color-sidebar-ring: var(--sidebar-ring);
+ --color-sidebar-border: var(--sidebar-border);
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
+ --color-sidebar-accent: var(--sidebar-accent);
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
+ --color-sidebar-primary: var(--sidebar-primary);
+ --color-sidebar-foreground: var(--sidebar-foreground);
+ --color-sidebar: var(--sidebar);
+ --color-chart-5: var(--chart-5);
+ --color-chart-4: var(--chart-4);
+ --color-chart-3: var(--chart-3);
+ --color-chart-2: var(--chart-2);
+ --color-chart-1: var(--chart-1);
+ --color-ring: var(--ring);
+ --color-input: var(--input);
+ --color-border: var(--border);
+ --color-status-online: var(--status-online);
+ --color-status-offline: var(--status-offline);
+ --color-destructive: var(--destructive);
+ --color-accent-foreground: var(--accent-foreground);
+ --color-accent: var(--accent);
+ --color-muted-foreground: var(--muted-foreground);
+ --color-muted: var(--muted);
+ --color-secondary-foreground: var(--secondary-foreground);
+ --color-secondary: var(--secondary);
+ --color-primary-foreground: var(--primary-foreground);
+ --color-primary: var(--primary);
+ --color-popover-foreground: var(--popover-foreground);
+ --color-popover: var(--popover);
+ --color-card-foreground: var(--card-foreground);
+ --color-card: var(--card);
+ --radius-sm: calc(var(--radius) * 0.6);
+ --radius-md: calc(var(--radius) * 0.8);
+ --radius-lg: var(--radius);
+ --radius-xl: calc(var(--radius) * 1.4);
+ --radius-2xl: calc(var(--radius) * 1.8);
+ --radius-3xl: calc(var(--radius) * 2.2);
+ --radius-4xl: calc(var(--radius) * 2.6);
+}
+
+:root {
+ --background: oklch(0.995 0.005 80);
+ --foreground: oklch(0.18 0.01 60);
+ --card: oklch(1 0.003 80);
+ --card-foreground: oklch(0.18 0.01 60);
+ --popover: oklch(1 0.003 80);
+ --popover-foreground: oklch(0.18 0.01 60);
+ --primary: oklch(0.25 0.012 60);
+ --primary-foreground: oklch(0.985 0.005 80);
+ --secondary: oklch(0.965 0.006 80);
+ --secondary-foreground: oklch(0.25 0.012 60);
+ --muted: oklch(0.965 0.006 80);
+ --muted-foreground: oklch(0.52 0.01 60);
+ --accent: oklch(0.96 0.008 80);
+ --accent-foreground: oklch(0.25 0.012 60);
+ --destructive: oklch(0.577 0.245 27.325);
+ --border: oklch(0.915 0.008 80);
+ --input: oklch(0.915 0.008 80);
+ --ring: oklch(0.68 0.01 60);
+ --chart-1: oklch(0.85 0.01 80);
+ --chart-2: oklch(0.55 0.01 60);
+ --chart-3: oklch(0.44 0.01 60);
+ --chart-4: oklch(0.37 0.01 60);
+ --chart-5: oklch(0.27 0.01 60);
+ --radius: 0.625rem;
+ --status-online: oklch(0.72 0.19 145);
+ --status-offline: oklch(0.65 0.2 25);
+ --sidebar: oklch(0.98 0.005 80);
+ --sidebar-foreground: oklch(0.18 0.01 60);
+ --sidebar-primary: oklch(0.25 0.012 60);
+ --sidebar-primary-foreground: oklch(0.985 0.005 80);
+ --sidebar-accent: oklch(0.96 0.008 80);
+ --sidebar-accent-foreground: oklch(0.25 0.012 60);
+ --sidebar-border: oklch(0.915 0.008 80);
+ --sidebar-ring: oklch(0.68 0.01 60);
+}
+
+.dark {
+ --background: oklch(0.16 0.008 60);
+ --foreground: oklch(0.93 0.006 80);
+ --card: oklch(0.21 0.008 60);
+ --card-foreground: oklch(0.93 0.006 80);
+ --popover: oklch(0.21 0.008 60);
+ --popover-foreground: oklch(0.93 0.006 80);
+ --primary: oklch(0.9 0.008 80);
+ --primary-foreground: oklch(0.21 0.008 60);
+ --secondary: oklch(0.27 0.008 60);
+ --secondary-foreground: oklch(0.93 0.006 80);
+ --muted: oklch(0.27 0.008 60);
+ --muted-foreground: oklch(0.65 0.01 70);
+ --accent: oklch(0.27 0.008 60);
+ --accent-foreground: oklch(0.93 0.006 80);
+ --destructive: oklch(0.704 0.191 22.216);
+ --border: oklch(1 0.005 80 / 10%);
+ --input: oklch(1 0.005 80 / 15%);
+ --ring: oklch(0.55 0.01 60);
+ --chart-1: oklch(0.85 0.01 80);
+ --chart-2: oklch(0.55 0.01 60);
+ --chart-3: oklch(0.44 0.01 60);
+ --chart-4: oklch(0.37 0.01 60);
+ --chart-5: oklch(0.27 0.01 60);
+ --status-online: oklch(0.75 0.18 145);
+ --status-offline: oklch(0.7 0.18 25);
+ --sidebar: oklch(0.21 0.008 60);
+ --sidebar-foreground: oklch(0.93 0.006 80);
+ --sidebar-primary: oklch(0.488 0.243 264.376);
+ --sidebar-primary-foreground: oklch(0.985 0.005 80);
+ --sidebar-accent: oklch(0.27 0.008 60);
+ --sidebar-accent-foreground: oklch(0.93 0.006 80);
+ --sidebar-border: oklch(1 0.005 80 / 10%);
+ --sidebar-ring: oklch(0.55 0.01 60);
+}
+
+/* ── Sonner toast: close button only on hover ── */
+[data-sonner-toast] [data-close-button] {
+ opacity: 0;
+ transition: opacity 150ms ease;
+}
+[data-sonner-toast]:hover [data-close-button] {
+ opacity: 1;
+}
+
+/* ── Gradient background blobs ── */
+.gradient-blob {
+ position: absolute;
+ filter: blur(40px);
+ opacity: 0.7;
+ will-change: transform;
+}
+
+.gradient-blob-1 {
+ width: 750px;
+ height: 450px;
+ top: -140px;
+ left: -200px;
+ border-radius: 30% 70% 64% 36% / 62% 28% 72% 38%;
+ background: oklch(0.90 0.12 90);
+ animation: blob-drift-1 25s ease-in-out infinite;
+}
+
+.gradient-blob-2 {
+ width: 500px;
+ height: 720px;
+ bottom: -180px;
+ right: -150px;
+ border-radius: 68% 32% 25% 75% / 38% 72% 28% 62%;
+ background: oklch(0.88 0.10 85);
+ animation: blob-drift-2 30s ease-in-out infinite;
+}
+
+.gradient-blob-3 {
+ width: 680px;
+ height: 400px;
+ top: -100px;
+ right: -180px;
+ border-radius: 25% 75% 68% 32% / 72% 35% 65% 28%;
+ background: oklch(0.86 0.14 95);
+ animation: blob-drift-3 22s ease-in-out infinite;
+}
+
+.gradient-blob-4 {
+ width: 420px;
+ height: 700px;
+ bottom: -160px;
+ left: -120px;
+ border-radius: 72% 28% 35% 65% / 25% 68% 32% 75%;
+ background: oklch(0.89 0.11 80);
+ animation: blob-drift-4 28s ease-in-out infinite;
+}
+
+.dark .gradient-blob-1 {
+ background: oklch(0.38 0.16 290);
+ opacity: 0.65;
+}
+
+.dark .gradient-blob-2 {
+ background: oklch(0.34 0.14 270);
+ opacity: 0.6;
+}
+
+.dark .gradient-blob-3 {
+ background: oklch(0.36 0.18 310);
+ opacity: 0.6;
+}
+
+.dark .gradient-blob-4 {
+ background: oklch(0.32 0.15 280);
+ opacity: 0.55;
+}
+
+/* Blob 1: top-left corner → drifts toward center, morphs shape */
+@keyframes blob-drift-1 {
+ 0%, 100% {
+ transform: translate(0, 0) scale(1);
+ border-radius: 30% 70% 64% 36% / 62% 28% 72% 38%;
+ }
+ 50% {
+ transform: translate(200px, 180px) scale(1.05);
+ border-radius: 65% 35% 28% 72% / 38% 68% 32% 62%;
+ }
+}
+
+/* Blob 2: bottom-right corner → drifts toward center, morphs shape */
+@keyframes blob-drift-2 {
+ 0%, 100% {
+ transform: translate(0, 0) scale(1);
+ border-radius: 68% 32% 25% 75% / 38% 72% 28% 62%;
+ }
+ 50% {
+ transform: translate(-200px, -180px) scale(1.08);
+ border-radius: 32% 68% 72% 28% / 65% 30% 70% 35%;
+ }
+}
+
+/* Blob 3: top-right corner → drifts toward center, morphs shape */
+@keyframes blob-drift-3 {
+ 0%, 100% {
+ transform: translate(0, 0) scale(1);
+ border-radius: 25% 75% 68% 32% / 72% 35% 65% 28%;
+ }
+ 50% {
+ transform: translate(-180px, 200px) scale(1.06);
+ border-radius: 70% 30% 35% 65% / 28% 72% 38% 62%;
+ }
+}
+
+/* Blob 4: bottom-left corner → drifts toward center, morphs shape */
+@keyframes blob-drift-4 {
+ 0%, 100% {
+ transform: translate(0, 0) scale(1);
+ border-radius: 72% 28% 35% 65% / 25% 68% 32% 75%;
+ }
+ 50% {
+ transform: translate(180px, -200px) scale(1.04);
+ border-radius: 28% 72% 65% 35% / 70% 25% 75% 30%;
+ }
+}
+
+/* ── Motion tokens ── */
+@keyframes fade-up {
+ from {
+ opacity: 0;
+ transform: translateY(8px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+/* ── Utility: hide scrollbar ── */
+.scrollbar-none {
+ -ms-overflow-style: none;
+ scrollbar-width: none;
+}
+.scrollbar-none::-webkit-scrollbar {
+ display: none;
+}
+
+@layer base {
+ * {
+ @apply border-border outline-ring/50;
+ }
+ body {
+ @apply bg-background text-foreground;
+ font-kerning: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ }
+ html {
+ @apply font-sans;
+ font-size: 16px;
+ line-height: 1.6;
+ }
+ .dark body {
+ line-height: 1.65;
+ }
+ h1, h2, h3, h4, h5, h6 {
+ @apply font-heading;
+ line-height: 1.15;
+ letter-spacing: -0.015em;
+ }
+ p {
+ line-height: 1.6;
+ }
+}
+
+/* Markdown content styles */
+.markdown {
+ line-height: 1.65;
+}
+.markdown > *:first-child {
+ margin-top: 0;
+}
+.markdown > *:last-child {
+ margin-bottom: 0;
+}
+.markdown h1,
+.markdown h2,
+.markdown h3,
+.markdown h4 {
+ font-weight: 600;
+ letter-spacing: -0.015em;
+ margin-top: 1.25em;
+ margin-bottom: 0.5em;
+ line-height: 1.3;
+}
+.markdown h1 { font-size: 1.25em; }
+.markdown h2 { font-size: 1.125em; }
+.markdown h3 { font-size: 1em; }
+.markdown p {
+ margin-top: 0.5em;
+ margin-bottom: 0.5em;
+}
+.markdown ul,
+.markdown ol {
+ margin-top: 0.5em;
+ margin-bottom: 0.5em;
+ padding-left: 1.5em;
+}
+.markdown ul { list-style-type: disc; }
+.markdown ol { list-style-type: decimal; }
+.markdown li {
+ margin-top: 0.2em;
+ margin-bottom: 0.2em;
+}
+.markdown li > ul,
+.markdown li > ol {
+ margin-top: 0.15em;
+ margin-bottom: 0.15em;
+}
+.markdown code:not(pre code) {
+ font-family: var(--font-mono);
+ font-size: 0.85em;
+ padding: 0.15em 0.35em;
+ border-radius: 0.3em;
+ background: var(--muted);
+}
+.markdown pre {
+ margin-top: 0.75em;
+ margin-bottom: 0.75em;
+ border-radius: 0.5em;
+ overflow-x: auto;
+ font-size: 0.85em;
+ line-height: 1.55;
+}
+.markdown pre:not(:has(> code)) {
+ padding: 0.75em 1em;
+ background: var(--muted);
+}
+.markdown blockquote {
+ margin-top: 0.75em;
+ margin-bottom: 0.75em;
+ padding-left: 1em;
+ border-left: 2px solid var(--border);
+ color: var(--muted-foreground);
+}
+.markdown a {
+ text-decoration: underline;
+ text-underline-offset: 2px;
+ text-decoration-color: var(--border);
+ transition: text-decoration-color 200ms;
+}
+.markdown a:hover {
+ text-decoration-color: currentColor;
+}
+.markdown hr {
+ margin-top: 1.25em;
+ margin-bottom: 1.25em;
+ border-color: var(--border);
+}
+.markdown table {
+ width: 100%;
+ margin-top: 0.75em;
+ margin-bottom: 0.75em;
+ border-collapse: collapse;
+ font-size: 0.9em;
+}
+.markdown th,
+.markdown td {
+ padding: 0.4em 0.75em;
+ border: 1px solid var(--border);
+ text-align: left;
+}
+.markdown th {
+ font-weight: 600;
+ background: var(--muted);
+}
+.markdown strong { font-weight: 600; }
+.markdown em { font-style: italic; }