Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

12.7 KB
Raw Blame
@import "tailwindcss";
@import "@fontsource-variable/geist";
@import "@fontsource-variable/geist-mono";

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

@theme inline {
  --animate-skeleton: skeleton 2s -1s infinite linear;
  --font-sans: var(--font-sans);
  --font-heading: var(--font-heading);
  --font-mono: var(--font-mono);
  --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-warning-foreground: var(--warning-foreground);
  --color-warning: var(--warning);
  --color-success-foreground: var(--success-foreground);
  --color-success: var(--success);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar: var(--sidebar);
  --color-ring: var(--ring);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-input: var(--input);
  --color-info-foreground: var(--info-foreground);
  --color-info: var(--info);
  --color-foreground: var(--foreground);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-destructive: var(--destructive);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --color-code-foreground: var(--code-foreground);
  --color-code-highlight: var(--code-highlight);
  --color-code: var(--code);
  --color-border: var(--border);
  --color-background: var(--background);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  @keyframes skeleton {
    to {
      background-position: -200% 0;
    }
  }
}

:root {
  --font-sans:
    "Geist Variable",
    ui-sans-serif,
    system-ui,
    sans-serif;
  --font-heading: var(--font-sans);
  --font-mono:
    "Geist Mono Variable",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  --radius: 0.625rem;
  --accent: --alpha(var(--color-black) / 4%);
  --accent-foreground: var(--color-neutral-800);
  --background: var(--color-white);
  --border: --alpha(var(--color-black) / 8%);
  --card: var(--color-white);
  --card-foreground: var(--color-neutral-800);
  --destructive: var(--color-red-500);
  --destructive-foreground: var(--color-red-700);
  --foreground: var(--color-neutral-800);
  --info: var(--color-blue-500);
  --info-foreground: var(--color-blue-700);
  --input: --alpha(var(--color-black) / 10%);
  --muted: --alpha(var(--color-black) / 4%);
  --muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-black));
  --popover: var(--color-white);
  --popover-foreground: var(--color-neutral-800);
  --primary: var(--color-neutral-800);
  --primary-foreground: var(--color-neutral-50);
  --ring: var(--color-neutral-400);
  --secondary: --alpha(var(--color-black) / 4%);
  --secondary-foreground: var(--color-neutral-800);
  --success: var(--color-emerald-500);
  --success-foreground: var(--color-emerald-700);
  --warning: var(--color-amber-500);
  --warning-foreground: var(--color-amber-700);
  --chart-1: var(--color-orange-600);
  --chart-2: var(--color-teal-600);
  --chart-3: var(--color-cyan-900);
  --chart-4: var(--color-amber-400);
  --chart-5: var(--color-amber-500);
  --sidebar: var(--color-neutral-50);
  --sidebar-foreground: color-mix(
    in srgb,
    var(--color-neutral-800) 64%,
    var(--sidebar)
  );
  --sidebar-primary: var(--color-neutral-800);
  --sidebar-primary-foreground: var(--color-neutral-50);
  --sidebar-accent: --alpha(var(--color-black) / 4%);
  --sidebar-accent-foreground: var(--color-neutral-800);
  --sidebar-border: --alpha(var(--color-black) / 6%);
  --sidebar-ring: var(--color-neutral-400);
  --code: var(--color-white);
  --code-foreground: var(--foreground);
  --code-highlight: --alpha(var(--color-black) / 4%);
}

.dark {
  --accent: --alpha(var(--color-white) / 4%);
  --accent-foreground: var(--color-neutral-100);
  --background: color-mix(
    in srgb,
    var(--color-neutral-950) 96%,
    var(--color-white)
  );
  --border: --alpha(var(--color-white) / 6%);
  --card: color-mix(in srgb, var(--background) 98%, var(--color-white));
  --card-foreground: var(--color-neutral-100);
  --destructive: color-mix(in srgb, var(--color-red-500) 90%, var(--color-white));
  --destructive-foreground: var(--color-red-400);
  --foreground: var(--color-neutral-100);
  --info: var(--color-blue-500);
  --info-foreground: var(--color-blue-400);
  --input: --alpha(var(--color-white) / 8%);
  --muted: --alpha(var(--color-white) / 4%);
  --muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-white));
  --popover: color-mix(in srgb, var(--background) 98%, var(--color-white));
  --popover-foreground: var(--color-neutral-100);
  --primary: var(--color-neutral-100);
  --primary-foreground: var(--color-neutral-800);
  --ring: var(--color-neutral-500);
  --secondary: --alpha(var(--color-white) / 4%);
  --secondary-foreground: var(--color-neutral-100);
  --success: var(--color-emerald-500);
  --success-foreground: var(--color-emerald-400);
  --warning: var(--color-amber-500);
  --warning-foreground: var(--color-amber-400);
  --chart-1: var(--color-blue-700);
  --chart-2: var(--color-emerald-500);
  --chart-3: var(--color-amber-500);
  --chart-4: var(--color-purple-500);
  --chart-5: var(--color-rose-500);
  --sidebar: color-mix(
    in srgb,
    var(--color-neutral-950) 97%,
    var(--color-white)
  );
  --sidebar-foreground: color-mix(
    in srgb,
    var(--color-neutral-100) 64%,
    var(--sidebar)
  );
  --sidebar-primary: var(--color-neutral-100);
  --sidebar-primary-foreground: var(--color-neutral-800);
  --sidebar-accent: --alpha(var(--color-white) / 4%);
  --sidebar-accent-foreground: var(--color-neutral-100);
  --sidebar-border: --alpha(var(--color-white) / 5%);
  --sidebar-ring: var(--color-neutral-400);
  --code: color-mix(in srgb, var(--background) 98%, var(--color-white));
  --code-foreground: var(--foreground);
  --code-highlight: --alpha(var(--color-white) / 4%);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background font-sans text-foreground antialiased;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    @apply font-heading font-semibold tracking-tight;
  }
}

@layer components {
  .blocknote-transparent .bn-container {
    --bn-font-family: var(--font-sans);
    --bn-border-radius: var(--radius);
    --bn-colors-menu-background: var(--popover);
    --bn-colors-menu-text: var(--popover-foreground);
    --bn-colors-hovered-background: var(--accent);
    --bn-colors-hovered-text: var(--accent-foreground);
    --bn-colors-selected-background: var(--accent);
    --bn-colors-selected-text: var(--accent-foreground);
    --bn-colors-border: var(--border);
    --bn-colors-shadow: --alpha(var(--color-black) / 12%);
  }

  .blocknote-transparent .bn-suggestion-menu {
    min-width: 18rem;
    max-width: 28rem;
    max-height: min(24rem, 60vh);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow:
      0 8px 24px --alpha(var(--color-black) / 10%),
      0 1px 2px --alpha(var(--color-black) / 8%);
    padding: 0.25rem;
  }

  .blocknote-transparent .bn-suggestion-menu-loader {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    padding: 0.5rem;
  }

  .kaneo-slash-menu {
    min-width: 17rem;
    max-width: 22rem;
    max-height: min(20rem, 56vh);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow:
      0 8px 24px --alpha(var(--color-black) / 10%),
      0 1px 2px --alpha(var(--color-black) / 8%);
    padding: 0.25rem;
  }

  .kaneo-slash-menu-label {
    color: var(--muted-foreground);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.375rem 0.5rem 0.25rem;
  }

  .kaneo-slash-menu-item {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    height: 2rem;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0 0.5rem;
    border-radius: calc(var(--radius) - 4px);
    color: var(--popover-foreground);
    text-align: left;
    transition: background-color 0.12s ease;
    cursor: pointer;
    line-height: 1;
  }

  .kaneo-slash-menu-item:hover,
  .kaneo-slash-menu-item.is-selected {
    background: var(--accent);
    color: var(--accent-foreground);
  }

  .kaneo-slash-menu-icon {
    width: 1.125rem;
    min-width: 1.125rem;
    height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    color: var(--muted-foreground);
  }

  .kaneo-slash-menu-title {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kaneo-slash-menu-shortcut {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 0.375rem;
    border: 1px solid var(--input);
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }

  .kaneo-slash-menu-item.is-selected .kaneo-slash-menu-shortcut {
    color: color-mix(in srgb, var(--accent-foreground) 72%, transparent);
  }

  .dark .blocknote-transparent .bn-container {
    --bn-colors-shadow: --alpha(var(--color-black) / 44%);
  }
}

@layer components {
  /* Rendered markdown for blog posts. Scoped so it never leaks into the app UI. */
  .blog-prose {
    @apply text-[1.0625rem] text-foreground/80 leading-[1.75];
  }

  .blog-prose > *:first-child {
    @apply mt-0;
  }

  .blog-prose p {
    @apply mt-5;
  }

  .blog-prose h2 {
    @apply mt-14 scroll-mt-24 text-balance font-medium text-2xl text-foreground leading-tight md:text-3xl;
  }

  .blog-prose h3 {
    @apply mt-10 scroll-mt-24 text-balance font-medium text-foreground text-lg leading-snug md:text-xl;
  }

  .blog-prose h4 {
    @apply mt-8 scroll-mt-24 font-medium text-base text-foreground;
  }

  .blog-prose h2 + p,
  .blog-prose h3 + p,
  .blog-prose h4 + p {
    @apply mt-4;
  }

  .blog-prose a {
    @apply text-foreground underline decoration-border underline-offset-4 transition-colors hover:decoration-current;
  }

  .blog-prose strong {
    @apply font-medium text-foreground;
  }

  .blog-prose ul,
  .blog-prose ol {
    @apply mt-5 space-y-2 pl-5;
  }

  .blog-prose ul {
    @apply list-disc;
  }

  .blog-prose ol {
    @apply list-decimal;
  }

  .blog-prose li::marker {
    @apply text-foreground/35;
  }

  .blog-prose li > ul,
  .blog-prose li > ol {
    @apply mt-2;
  }

  .blog-prose blockquote {
    @apply mt-6 border-border border-l-2 pl-5 text-foreground/65;
  }

  .blog-prose blockquote p {
    @apply mt-3 first:mt-0;
  }

  .blog-prose code {
    @apply rounded-md border border-border/70 bg-muted px-1.5 py-0.5 font-mono text-[0.8125em] text-foreground;
  }

  .blog-prose pre {
    @apply mt-6 overflow-x-auto rounded-xl border border-border/70 bg-card p-4 text-sm leading-relaxed;
  }

  .blog-prose pre code {
    @apply border-0 bg-transparent p-0 text-[0.875rem];
  }

  .blog-prose-table {
    @apply mt-8 overflow-x-auto rounded-xl border border-border/70;
  }

  .blog-prose table {
    @apply w-full border-collapse text-left text-sm;
  }

  .blog-prose th,
  .blog-prose td {
    @apply border-border/70 border-b px-4 py-3 align-top;
  }

  .blog-prose thead th {
    @apply bg-muted/50 font-medium text-foreground;
  }

  .blog-prose tbody tr:last-child th,
  .blog-prose tbody tr:last-child td {
    @apply border-b-0;
  }

  .blog-prose hr {
    @apply my-12 border-border/70;
  }

  .blog-prose img {
    @apply mt-8 w-full rounded-xl border border-border/70;
  }

  .blog-prose figcaption {
    @apply mt-3 text-center text-foreground/50 text-sm;
  }
}