Signature-Level Reference for styled(), className(), defineConfig(), Every define* Helper, and defineRuntime() in an Astro Project
Salty CSS API Reference for Astro
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 .astro and .tsx IslandsAPI reference for styled() in Salty CSS — typed components with base styles, variants, anyOfVariants, defaultVariants, passProps, element override, and priority.
- className() for .astro and .tsxFull API reference for the className() function in Salty CSS — signature, options, and variants.
- defineConfig for Astro IntegrationFull reference for defineConfig — variables, global, reset, templates, modifiers, importStrategy, externalModules, strict, and defaultUnit.
- define* Factories for AstroOne-page index of every define* helper in Salty CSS — signature, role, and links to the deep-dive.
- defineRuntime() in Astro SSR RoutesAPI 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().