Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

2.9 KB
Raw Blame
@import 'tailwindcss';
@import 'tw-animate-css';

@source "../../../../packages/ui";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

.cm-editor.cm-focused {
  outline: none;
}

.app-drag-region {
  -webkit-app-region: drag;
}

.app-no-drag-region {
  -webkit-app-region: no-drag;
}

.emoji-element svg {
  width: 100%;
  height: 100%;
}

.icon-element svg {
  width: 100%;
  height: 100%;
}

[data-radix-scroll-area-viewport] > div {
  height: 100%;
}

@keyframes draw-path {
  from {
    stroke-dashoffset: 2000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-fill {
  from {
    fill-opacity: 0;
  }
  to {
    fill-opacity: 1;
  }
}

@keyframes hide-stroke {
  to {
    stroke-width: 0;
  }
}

.logo-draw-animation svg path {
  stroke: currentColor;
  stroke-width: 1;
  fill: currentColor;
  fill-opacity: 0;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  paint-order: stroke fill;
  animation:
    draw-path 3s ease-in-out forwards,
    fade-fill 0.75s ease-in-out 2.85s forwards,
    hide-stroke 0.15s ease-in-out 3.45s forwards;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-draw-animation svg path:nth-child(2) {
  animation:
    draw-path 3s ease-in-out 0.45s forwards,
    fade-fill 0.75s ease-in-out 3.3s forwards,
    hide-stroke 0.15s ease-in-out 3.9s forwards;
}