- Add Tiptap editor + toolbar and rich content rendering with sanitize-html - Fix SSR hydration (immediatelyRender: false) and setContent options - Comments: rich text + visibility selector, typed attachments (Id<_storage>) - New Ticket: description rich text; attachments typed; queues typed - Convex: server-side filters using indexes; priority order rename; stronger Doc/Id typing; remove helper with any - Schemas/Mappers: zod v4 record typing; event payload record typing; customFields typed - UI: replace any in header/play/list/timeline/fields; improve select typings - Build passes; only non-blocking lint warnings remain
140 lines
5.2 KiB
CSS
140 lines
5.2 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-geist-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
--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-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) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
}
|
|
|
|
:root {
|
|
--radius: 0.75rem;
|
|
--background: oklch(0.99 0.004 95.08);
|
|
--foreground: oklch(0.28 0.02 254.6);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.22 0.02 254.6);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.22 0.02 254.6);
|
|
--primary: oklch(0.63 0.16 254.6);
|
|
--primary-foreground: oklch(0.99 0.004 95.08);
|
|
--secondary: oklch(0.96 0.022 254.6);
|
|
--secondary-foreground: oklch(0.3 0.03 254.6);
|
|
--muted: oklch(0.96 0.01 254.6);
|
|
--muted-foreground: oklch(0.55 0.03 254.6);
|
|
--accent: oklch(0.96 0.01 254.6);
|
|
--accent-foreground: oklch(0.3 0.03 254.6);
|
|
--destructive: oklch(0.55 0.23 23.3);
|
|
--border: oklch(0.9 0.01 254.6);
|
|
--input: oklch(0.92 0.008 254.6);
|
|
--ring: oklch(0.63 0.16 254.6);
|
|
--chart-1: oklch(0.63 0.16 254.6);
|
|
--chart-2: oklch(0.66 0.11 200.43);
|
|
--chart-3: oklch(0.73 0.14 146.75);
|
|
--chart-4: oklch(0.7 0.17 95.21);
|
|
--chart-5: oklch(0.73 0.1 18.06);
|
|
--sidebar: oklch(0.985 0.004 95.08);
|
|
--sidebar-foreground: oklch(0.28 0.02 254.6);
|
|
--sidebar-primary: oklch(0.63 0.16 254.6);
|
|
--sidebar-primary-foreground: oklch(0.99 0.004 95.08);
|
|
--sidebar-accent: oklch(0.95 0.008 254.6);
|
|
--sidebar-accent-foreground: oklch(0.28 0.02 254.6);
|
|
--sidebar-border: oklch(0.9 0.01 254.6);
|
|
--sidebar-ring: oklch(0.63 0.16 254.6);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.16 0.02 254.6);
|
|
--foreground: oklch(0.96 0.02 254.6);
|
|
--card: oklch(0.19 0.02 254.6);
|
|
--card-foreground: oklch(0.96 0.02 254.6);
|
|
--popover: oklch(0.22 0.02 254.6);
|
|
--popover-foreground: oklch(0.96 0.02 254.6);
|
|
--primary: oklch(0.71 0.15 254.6);
|
|
--primary-foreground: oklch(0.1 0.01 254.6);
|
|
--secondary: oklch(0.32 0.02 254.6);
|
|
--secondary-foreground: oklch(0.96 0.02 254.6);
|
|
--muted: oklch(0.3 0.02 254.6);
|
|
--muted-foreground: oklch(0.68 0.02 254.6);
|
|
--accent: oklch(0.29 0.02 254.6);
|
|
--accent-foreground: oklch(0.96 0.02 254.6);
|
|
--destructive: oklch(0.6 0.21 23.3);
|
|
--border: oklch(0.32 0.02 254.6);
|
|
--input: oklch(0.32 0.02 254.6);
|
|
--ring: oklch(0.71 0.15 254.6);
|
|
--chart-1: oklch(0.71 0.15 254.6);
|
|
--chart-2: oklch(0.63 0.12 200.43);
|
|
--chart-3: oklch(0.62 0.14 146.75);
|
|
--chart-4: oklch(0.6 0.17 95.21);
|
|
--chart-5: oklch(0.64 0.1 18.06);
|
|
--sidebar: oklch(0.18 0.02 254.6);
|
|
--sidebar-foreground: oklch(0.96 0.02 254.6);
|
|
--sidebar-primary: oklch(0.71 0.15 254.6);
|
|
--sidebar-primary-foreground: oklch(0.1 0.01 254.6);
|
|
--sidebar-accent: oklch(0.26 0.02 254.6);
|
|
--sidebar-accent-foreground: oklch(0.96 0.02 254.6);
|
|
--sidebar-border: oklch(0.26 0.02 254.6);
|
|
--sidebar-ring: oklch(0.71 0.15 254.6);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground font-sans antialiased;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
/* Tipografia básica para conteúdos rich text (Tiptap) */
|
|
.rich-text {
|
|
@apply text-foreground;
|
|
}
|
|
.rich-text p { @apply my-2; }
|
|
.rich-text a { @apply text-primary underline; }
|
|
.rich-text ul { @apply my-2 list-disc ps-5; }
|
|
.rich-text ol { @apply my-2 list-decimal ps-5; }
|
|
.rich-text li { @apply my-1; }
|
|
.rich-text blockquote { @apply my-3 border-l-2 border-muted-foreground/30 ps-3 text-muted-foreground; }
|
|
.rich-text h1 { @apply text-xl font-semibold my-3; }
|
|
.rich-text h2 { @apply text-lg font-semibold my-3; }
|
|
.rich-text h3 { @apply text-base font-semibold my-2; }
|
|
.rich-text code { @apply rounded bg-muted px-1 py-0.5 text-xs; }
|
|
.rich-text pre { @apply my-3 overflow-x-auto rounded bg-muted p-3 text-xs; }
|
|
}
|