def sheet_from_template(name, colors='<STR_LIT>'):
colors = colors.lower()<EOL>if colors=='<STR_LIT>':<EOL><INDENT>return default_light_style_template%get_colors(name)<EOL><DEDENT>elif colors=='<STR_LIT>':<EOL><INDENT>return default_dark_style_template%get_colors(name)<EOL><DEDENT>elif colors=='<STR_LIT>':<EOL><INDENT>return default_bw_style_sheet<EOL><DEDENT>else:<EOL><INDENT>raise KeyError("<STR_LIT>"%colors)<EOL><DEDENT>
Use one of the base templates, and set bg/fg/select colors.