Let client pass function to determine css options