• 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 / VarKey

      Type Alias: VarKey<T>

      VarKey<T>: T extends `${string}–${infer K1}:${string};${string}` ? K1 : never

      Extracts the name of a single css varriable from a string

      Type Parameters

      • T extends string

      Defined in

      lib/makeCssVars.ts:4

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