Skip to main content

Interface: TailwindThemeConfig

Defined in: adapters/toTailwindTheme.ts:15

Return type of toTailwindTheme().

  • cssVars: flat map of CSS custom property names → values.
  • config: Tailwind-compatible theme config referencing the CSS vars.
  • toCssString(): generates a :root { ... } CSS string for injection.

Properties

config

config: object

Defined in: adapters/toTailwindTheme.ts:17

borderRadius

borderRadius: Record<string, string>

boxShadow

boxShadow: Record<string, string>

colors

colors: Record<string, string>

fontFamily

fontFamily: Record<string, string>

fontSize

fontSize: Record<string, string>

fontWeight

fontWeight: Record<string, string>

letterSpacing

letterSpacing: Record<string, string>

lineHeight

lineHeight: Record<string, string>

opacity

opacity: Record<string, string>

screens

screens: Record<string, string>

spacing

spacing: Record<string, string>

transitionDuration

transitionDuration: Record<string, string>

transitionTimingFunction

transitionTimingFunction: Record<string, string>

zIndex

zIndex: Record<string, string>


cssVars

cssVars: Record<string, string | number>

Defined in: adapters/toTailwindTheme.ts:16


toCssString()

toCssString: () => string

Defined in: adapters/toTailwindTheme.ts:33

Returns

string