• Skip to primary navigation
  • Skip to content
  • Skip to footer
TS CSSVars Safely define and use CSS vars on JS/TS context
      Jose Luis Leon

      Jose Luis Leon

      • Repository
      • GitHub
      • Twitter
      • Email

      TS CSSVars - API Reference • Docs


      TS CSSVars - API Reference / CssVars

      Type Alias: CssVars<T>

      CssVars<T>: T extends `${string}–${string}:${string};${infer R}` ? VarKey<T> | CssVars<R> : VarKey<T>

      Recursively extracts and joins the names of the css varriables from a string

      Type Parameters

      • T extends string

      Defined in

      lib/makeCssVars.ts:12

      • Repository
      • GitHub
      • Twitter
      © 2024 TS CSSVars. Powered by Jekyll & Minimal Mistakes.