class_docstr: A factory class for HTML Themes.
class_docstr_tok: ["A","factory","class","for","HTML","Themes","."]
docstr: Create an instance of theme.
docstr_tok: ["Create","an","instance","of","theme","."]
code: def create(self, name: str) -> Theme:
      """Create an instance of theme."""
      if name not in self.themes:
          self.load_extra_theme(name)
  
      if name not in self.themes:
          raise ThemeError(
              __("no theme named %r found (missing theme.conf?)") % name
          )
  
      return Theme(name, self.themes[name], factory=self)
  
imports: from __future__ import annotations
  import configparser
  import os
  import shutil
  import sys
  import tempfile
  from os import path
  from typing import TYPE_CHECKING, Any
  from zipfile import ZipFile
  import contextlib
  from sphinx import package_dir
  from sphinx.config import check_confval_types
  from sphinx.errors import ThemeError
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.osutil import ensuredir
label_desc: Use image node_id 6 for calling the HTMLThemeFactory obj's underlying member method code with example usage: obj.create(name) and returns: Theme