Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

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

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 47.4% 11.2%;

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

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 47.4% 11.2%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 47.4% 11.2%;

    --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%;

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

    --destructive: 0 100% 50%;
    --destructive-foreground: 210 40% 98%;

    --ring: 215 20.2% 65.1%;

    --radius: 0.5rem;

    --background-inverse-standard: rgba(230, 227, 246, 0.15);
    --background-inverse-standard-foreground: rgb(92, 81, 81);
    --colors-background-neutral-standard: white;

    --button-blue-text: rgb(22, 119, 255);

    --colors-outline-sentiment-primary: rgba(127, 105, 255, 1);
    --colors-outline-neutral-strong: rgba(112, 107, 107, 0.15);
    --colors-outline-neutral-standard: rgba(53, 51, 65, 0.1);

    --colors-text-neutral-strong: rgba(17, 16, 23, 1);
    --colors-text-neutral-standard: rgba(152, 148, 176, 1);

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;

    --background-inverse-strong: rgba(255, 255, 255, 0.15);

    --text-badge: rgba(151, 154, 171, 1);

    --text-title: rgba(22, 22, 24, 1);
    --text-sub-title: rgba(151, 154, 171, 1);
    --text-sub-title-invert: rgba(91, 93, 106, 1);

    --background-header-bar: rgba(0, 0, 0, 0.05);
    --text-title-invert: rgba(255, 255, 255, 1);
    --background-card: rgba(22, 22, 24, 0.05);

    --background-highlight: rgba(76, 164, 231, 0.1);

    --input-border: rgba(22, 22, 24, 0.2);

    --metallic: #46464a;

    --bg-title: #f6f6f7;
    /* design colors */

    --bg-base: #ffffff;
    /* card color , dividing line */
    --bg-card: rgba(0, 0, 0, 0.05);
    --bg-component: #ffffff;
    --bg-input: rgba(0, 0, 0, 0.05);
    --bg-canvas: 246 246 247;
    --bg-list: 246 246 247;
    /* Button ,Body text, Input completed text */

    /* #161618 */
    --text-primary: 22 22 24;
    --text-secondary: 117 120 122;
    --text-disabled: #b2b5b7;
    /* Input  default color */
    --border-default: rgba(0, 0, 0, 0.2);
    /* Input accent color */
    --border-accent: #000000;
    --border-button: rgba(0, 0, 0, 0.1);
    /* Regulators, parsing, switches, variables */
    --accent-primary: 0 190 180;
    /* Categorical graph fills shared by light and dark themes. */
    --graph-node-1: #4e79a7;
    --graph-node-2: #b96b1d;
    --graph-node-3: #c44e52;
    --graph-node-4: #268985;
    --graph-node-5: #4e8638;
    --graph-node-6: #9a7b00;
    --graph-node-7: #9165a0;
    --graph-node-8: #b55b89;
    --graph-node-9: #8a6f55;
    --graph-node-10: #677d8d;
    --graph-node-other: #777777;
    /* Output Variables Box */
    --bg-accent: rgba(76, 164, 231, 0.05);

    /* --state-success: #3ba05c; */
    --state-success: 59 160 92;
    /* --state-warning: #767573; */
    --state-warning: 250 173 20;
    --state-error: 216 73 75;

    --team-group: #5ab77e;
    --team-member: #5c96c8;
    --team-department: #8866d3;
    --bg-member: rgba(92, 150, 200, 0.1);

    /* --*-inverse: colors in dark mode */
    --text-primary-inverse: 246 246 247;
    --text-secondary-inverse: 178 181 183;
  }

  .dark {
    --background: rgba(11, 10, 18, 1);
    --foreground: 213 31% 91%;

    --muted: 223 47% 11%;
    --muted-foreground: 215.4 16.3% 56.9%;

    --accent: 216 34% 17%;
    --accent-foreground: 210 40% 98%;

    --popover: 224 71% 4%;
    --popover-foreground: 215 20.2% 65.1%;

    --border: 216 34% 17%;
    --input: 216 34% 17%;

    --card: 224 71% 4%;
    --card-foreground: 213 31% 91%;

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

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

    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;

    --ring: 216 34% 17%;

    --radius: 0.5rem;

    --background-inverse-standard: rgba(230, 227, 246, 0.15);
    --background-inverse-standard-foreground: rgba(255, 255, 255, 1);

    --background-inverse-strong: rgba(255, 255, 255, 0.15);
    --background-inverse-strong-foreground: rgba(255, 255, 255, 1);

    --background-core-weak: rgb(101, 75, 248);

    --text-badge: rgba(151, 154, 171, 1);

    --colors-background-neutral-standard: rgba(11, 10, 18, 1);

    --colors-outline-sentiment-primary: rgba(146, 118, 255, 1);
    --colors-outline-neutral-strong: rgba(255, 255, 255, 0.15);
    --colors-outline-neutral-standard: rgba(230, 227, 246, 0.1);

    --colors-text-neutral-strong: rgba(255, 255, 255, 1);
    --colors-text-neutral-standard: rgba(230, 227, 246, 1);

    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;

    --text-title: rgba(255, 255, 255, 1);
    --text-sub-title: rgba(91, 93, 106, 1);
    --text-sub-title-invert: rgba(151, 154, 171, 1);
    --background-header-bar: rgba(11, 11, 12, 1);

    --text-title-invert: rgba(22, 22, 24, 1);

    --background-card: rgba(255, 255, 255, 0.05);

    --background-highlight: rgba(76, 164, 231, 0.1);

    --input-border: rgba(255, 255, 255, 0.2);

    --metallic: #fafafa;

    --bg-title: #38383a;
    /* design colors */

    --bg-base: #161618;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-component: #202025;
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-canvas: 0 0 0;
    --bg-list: 56 56 58;

    /* #f6f6f7 */
    --text-primary: 246 246 247;
    --text-secondary: 178 181 183;
    --text-disabled: #75787a;
    --border-default: rgba(255, 255, 255, 0.2);
    --border-accent: #ffffff;
    --border-button: rgba(255, 255, 255, 0.1);

    /* *-inverse: colors in light mode */
    --text-primary-inverse: 22 22 24;
    --text-secondary-inverse: 117 120 122;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-bg-base text-text-primary;
    font-feature-settings:
      'rlig' 1,
      'calt' 1;
  }

  /* https://tailwindcss.com/docs/preflight */

  h1 {
    @apply text-2xl font-bold;
  }
  h2 {
    @apply text-xl font-semibold;
  }
  h3 {
    @apply text-lg font-medium;
  }

  h4 {
    @apply text-base font-normal;
  }

  img,
  video {
    max-width: none;
  }
}

@layer base {
  * {
    /* Make this default */
    scrollbar-width: thin;
    scrollbar-color: var(--border-default) var(--bg-card);
  }
}

@layer utilities {
  .bg-card-soft {
    /* First line is the fallback for browsers without color-mix() */
    background-color: var(--bg-card);
    background-color: color-mix(in srgb, var(--bg-card) 50%, transparent);
  }

  .scrollbar-auto {
    /* hide scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border-default) var(--bg-card);
  }

  .scrollbar-auto::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

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

  .scrollbar-auto::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 3px;
    transition: background-color 0.2s ease;
  }

  .scrollbar-auto:hover::-webkit-scrollbar-thumb,
  .scrollbar-auto:focus::-webkit-scrollbar-thumb,
  .scrollbar-auto:active::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .dark .scrollbar-auto:hover::-webkit-scrollbar-thumb,
  .dark .scrollbar-auto:focus::-webkit-scrollbar-thumb,
  .dark .scrollbar-auto:active::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
  }
}