Skip to content

Variable: CSS_NAME ​

ts
const CSS_NAME: Regex<"(?<name>[a-zA-Z_\\u0080-\\uFFFF][\\w\\u0080-\\uFFFF]*)", {
  names: {
     name: string;
  };
}>;

Defined in: packages/regex/src/tiers/css-spec.ts:41

CSS name from W3C formal grammar. Similar to identifier but typically used for property/function names. Pattern: {name} → [a-zA-Z_\u0080-\uFFFF][\w\u0080-\uFFFF]*

Example ​

ts
CSS_NAME.exec("background-color")?.groups?.name // "background-color"

Released under the MIT License