#NEWLINE# def gen_css( name , theme ) : #NEWLINE# #INDENT# lines = [ ] #NEWLINE# for ( element , params ) in theme : #NEWLINE# #INDENT# lines . append ( ( '.%s .%s { %s }' % ( name , element , gen_style ( params ) ) ) ) #NEWLINE# #UNINDENT# return '\n' . join ( lines )