I want to add the configurable product to cart from the product list page itself. When I select a color from swatch and add the product to cart, It is Redirecting to details page and able to add the product to cart from there. I need to add it directly from list page.
I don't know if that exactly what you want but you can do that with extension that manage
addToCart function with ajax like this one :
With this your customer stay on the same page without any redirection.