In the add to cart button behavior, on the bindings panel, set the color and size columns to be updateabel from a select list, this will create the select lists on the page for you.
You just need to update then to be dynamic and use the record sets to populate the list with options.