Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

341 B
Raw Blame
import type { CSSProperties } from "react";
import { useTheme } from "next-themes";
import { oneDark } from "react-syntax-highlighter/dist/esm/styles/prism";

export type SyntaxTheme = Record<string, CSSProperties>;

export const useSyntaxTheme = (light: SyntaxTheme): SyntaxTheme =>
  useTheme().resolvedTheme === "dark" ? oneDark : light;