Signature-Level Reference for styled(), className(), defineConfig(), Every define* Helper, and defineRuntime() in a Next.js App
Salty CSS API Reference for Next.js
Signature-level reference for the Salty CSS public API. styled and className are the two component-shaped entry points; defineConfig wires up your tokens, templates, modifiers, and reset; the define* factories index lists every helper; and defineRuntime covers request-time scoped CSS for CMS payloads or prop-derived overrides.
In this section
- styled() in App Router Server and Client ComponentsAPI reference for styled() in Salty CSS — typed components with base styles, variants, anyOfVariants, defaultVariants, passProps, element override, and priority.
- className() in the App RouterFull API reference for the className() function in Salty CSS — signature, options, and variants.
- defineConfig for the Next.js App RouterFull reference for defineConfig — variables, global, reset, templates, modifiers, importStrategy, externalModules, strict, and defaultUnit.
- define* Factories for Next.jsOne-page index of every define* helper in Salty CSS — signature, role, and links to the deep-dive.
- defineRuntime() in App Router Server ComponentsAPI reference for defineRuntime() in Salty CSS — turn arbitrary JSON-shaped style objects (CMS payloads, prop-derived overrides) into scoped CSS at request time, while staying inside the same parser as styled().