Skip to content

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

3.3 KB
Raw Blame
@import 'config/tailwind.config.css';
@import 'config/inline-code.css';
@import 'ui-patterns/CodeBlock/code-block.css';
@import './utilities.css';
@import './keyframes.css';
@import 'docs-search/styles.css';

@source '../pages/**/*.astro';
@source '../components/**/*.{astro,tsx}';
@source '../layouts/**/*.astro';
@source './../../../../packages/ui/src/**/*.{tsx,ts,js}';
@source './../../../../packages/ui-patterns/src/**/*.{tsx,ts,js}';
@source './../../../../packages/docs-search/src/**/*.{tsx,ts}';

/* apps/docs loads Inter/Manrope via next/font, which injects these two
 * variables as inline styles on <html>. kb loads the same fonts via the
 * <link> tags in Layout.astro instead, so they're declared here as plain
 * custom properties rather than next/font output. */
:root {
  --font-inter: 'Inter', system-ui, sans-serif;
  --font-manrope: 'Manrope', system-ui, sans-serif;
}

/* Same @theme block as apps/docs/styles/globals.css. */
@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: 'Source Code Pro', ui-monospace, Menlo, monospace;
}

@theme {
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --animate-draw-out: draw-out 700ms cubic-bezier(0.65, 0, 0.35, 1) both;
  --animate-draw-line: draw-line 1.8s linear both;
  --animate-draw-line-fast: draw-line 850ms cubic-bezier(0.65, 0, 0.35, 1) both;
  --animate-fade-in: fade-in 450ms ease-out both;
}

@theme {
  --tracking-display: -0.03em;
  --tracking-title: -0.015em;
  --tracking-body: -0.012em;
  --tracking-label: 0.08em;
}

@theme inline {
  --shadow-raised: var(--raised-shadow, 0 0 #0000);
  --drop-shadow-raised: var(--raised-drop-shadow, 0 0 #0000);
}

/* Same type scale as apps/docs/styles/globals.css — without this, utilities
 * like `text-sm` resolve to Tailwind's default 0.875rem instead of docs'
 * 0.8125rem, so text using the same class names still renders at different
 * sizes than docs. */
@theme {
  --text-sm: 0.8125rem;
  --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;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Same rule as apps/docs/styles/globals.css: headings use font-heading
 * (Manrope) by default instead of the body's font-sans (Inter). */
h1:not(.font-mono),
h2:not(.font-mono),
h3:not(.font-mono),
h4:not(.font-mono),
h5:not(.font-mono),
h6:not(.font-mono),
.h1:not(.font-mono),
.h2:not(.font-mono),
.h3:not(.font-mono),
.h4:not(.font-mono),
.h5:not(.font-mono),
.h6:not(.font-mono) {
  @apply font-heading font-semibold;
}

@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--border-default, currentColor);
  }
}

[data-theme='dark'] {
  --raised-shadow:
    0 0 0 0 var(--border-default), 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --raised-drop-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.prose [role='alert'] {
  margin: 1.25rem 0;
}

@media (width < 64rem) {
  html[data-mobile-menu-open] {
    overflow: hidden;
  }
}