onCreateRule(name, decl, options) {
    for (let i = 0; i < this.registry.onCreateRule.length; i++) {
      const rule = this.registry.onCreateRule[i](name, decl, options)
      if (rule) return rule
    }

    return null
  }
Call `onCreateRule` hooks and return an object if returned by a hook.