Skip to content

Variable: BARE_MODIFIER ​

ts
const BARE_MODIFIER: Regex<"(?<name>[A-Za-z_][\\w-]*)", {
  flags: "u";
  names: {
     name: string;
  };
}>;

Defined in: packages/regex/src/tiers/cssdoc-local.ts:306

Bare Chained Modifier Pattern Alternative convention: any class chained to the base with no special prefix. Pattern: .base.modifier-name Used for bare/OOCSS convention support.

Example ​

ts
BARE_MODIFIER.exec("active")?.groups?.name // "active"
BARE_MODIFIER.exec("size-lg")?.groups?.name // "size-lg"

Released under the MIT License