import re


def parse_stylesheet_header(css):
    """Get WordPress theme data from CSS file contents via the comment header.

    :param css: The contents of the CSS file
    :type css: string
    :return: Theme info. See https://codex.wordpress.org/File_Header
    :rtype: dict
    """
    headers = [
        'Theme Name',
        'Theme URI',
        'Description',
        'Author',
        'Author URI',
        'Version',
        'Template',
        'Template Version',
        'Status',
        'Tags',
        'Text Domain',
        'Domain Path'
    ]
    result = {}
    for header in headers:
        regex = re.escape(header + ':') + r'(.*)'
        match = re.search(regex, css, flags=re.IGNORECASE)
        if match:
            result[header.lower().replace(' ', '_')] = match.group(1).strip()
    return result