Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

2.5 KB
Raw Blame
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;

    --panel: 210 40% 96.1%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;

    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;

    --destructive: 357.2 100% 45.3%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 215 20.2% 65.1%;

    --radius: 0.5rem;
  }

  .dark {
    --background: 0 0% 1.2%;
    --foreground: 0 0% 96%;

    --panel: 0 0% 3.9%;

    --card: 0 0% 7%;
    --card-foreground: 0 0% 96%;

    --popover: 0 0% 8.5%;
    --popover-foreground: 0 0% 96%;

    --primary: 223 87% 57%;
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 10.5%;
    --secondary-foreground: 0 0% 96%;

    --muted: 0 0% 10%;
    --muted-foreground: 0 0% 54%;

    --accent: 0 0% 11%;
    --accent-foreground: 0 0% 96%;

    --destructive: 358.7 100% 69.6%;
    --destructive-foreground: 0 0% 98%;

    --border: 0 0% 10.5%;
    --input: 0 0% 14.5%;
    --ring: 223 87% 57%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

@layer components {
  /* Sleek scrollbar for sidebar only */
  .sidebar-scrollbar::-webkit-scrollbar {
    width: 6px;
  }

  .sidebar-scrollbar::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar-scrollbar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background-color 150ms ease;
  }

  .sidebar-scrollbar:hover::-webkit-scrollbar-thumb,
  .sidebar-scrollbar:focus-within::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground) / 0.15);
  }

  .sidebar-scrollbar:hover::-webkit-scrollbar-thumb:hover,
  .sidebar-scrollbar:focus-within::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground) / 0.25);
  }

  /* Firefox scrollbar for sidebar */
  .sidebar-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  .sidebar-scrollbar:hover,
  .sidebar-scrollbar:focus-within {
    scrollbar-color: hsl(var(--muted-foreground) / 0.15) transparent;
  }
}