Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

2.0 KB
Raw Blame
@import 'config/tailwind.config.css';
@import 'config/inline-code.css';

@source '../app/**/*.{js,ts,jsx,tsx}';
@source '../components/**/*.{js,ts,jsx,tsx}';
@source '../registry/**/*.{js,ts,jsx,tsx}';
@source '../content/**/*.mdx';
@source './../../../packages/ui/src/**/*.{tsx,ts,js}';
@source './../../../packages/ui-patterns/src/**/*.{tsx,ts,js}';

@theme inline {
  --font-sans:
    var(--font-inter), Inter, Helvetica Neue, Helvetica, ui-sans-serif, system-ui, sans-serif;
  --font-heading: var(--font-manrope, var(--font-sans));
  --font-mono: var(--font-source-code-pro), 'Source Code Pro', ui-monospace, Menlo, monospace;
}

@theme {
  --container-site: 96rem;

  /* font sizing and weights optimized for Inter */
  --text-base: 0.9375rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.375rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2.125rem;
  --text-5xl: 2.875rem;
  --text-6xl: 3.625rem;
  --text-7xl: 4.375rem;
  --text-8xl: 5.875rem;
  --text-9xl: 7.875rem;
  --font-weight-normal: 450;
}

@layer base {
  * {
    @apply border-border;
  }
  html {
    @apply scroll-smooth scroll-pt-20;
  }
  body {
    @apply bg-default text-foreground;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
  }
  .preview body {
    background: none;
  }
}

@layer utilities {
  .step {
    counter-increment: step;
  }

  .step:before {
    @apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;
    @apply ml-[-50px] mt-[-4px];
    content: counter(step);
  }

  .chunk-container {
    @apply shadow-none;
  }

  .chunk-container::after {
    content: '';
    @apply absolute -inset-4 shadow-xl rounded-xl border;
  }
}

@media (max-width: 640px) {
  .container {
    @apply px-4;
  }
}

.preview * {
  @apply border-border outline-ring/50;
}

.preview {
  --primary: var(--foreground);
  --primary-foreground: var(--background);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}