code: def create_mappings(self, config):
          
          mappings = {}
          for name, cfg in config.items():
              # Ignore special config sections.
              if name in CONFIG_SPECIAL_SECTIONS:
                  continue
              color = self.get_config_attribute(name, "color")
              if hasattr(color, "none_setting"):
                  color = None
              mappings[name] = color
          # Store mappings for later use.
          self.mappings_color = mappings
docs: Create any mappings needed for global substitutions eg. colors