   return scheme
 }
 
+private struct MDCColorThemeCellConfiguration {
+  let name: String
+  let mainColor: UIColor
+  let colorScheme: () -> MDCColorScheming
+
+  init(name: String, mainColor: UIColor, colorScheme: @escaping () -> MDCColorScheming) {
+    self.name = name
+    self.mainColor = mainColor
+    self.colorScheme = colorScheme
+  }
+}
+
 class MDCThemePickerViewController: UIViewController, UICollectionViewDataSource,
   UICollectionViewDelegateFlowLayout {
 


  func collectionView(_ collectionView: UICollectionView,
                      numberOfItemsInSection section: Int) -> Int {
    return colorSchemeCells.count
  }

  func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
    let colorScheme = colorSchemeCells[indexPath.item].colorScheme
    navigationController?.popViewController(animated: true)
    AppTheme.globalTheme = AppTheme(colorScheme: colorScheme(),
                                    typographyScheme: AppTheme.globalTheme.typographyScheme)
  }


  override func viewDidLoad() {
    super.viewDidLoad()

    paletteTitle.text = "Material Palette-based themes"
    paletteTitle.font = titleFont
    paletteTitle.textColor = titleColor
    paletteTitle.translatesAutoresizingMaskIntoConstraints = false
