Just like moths, butterflies are attracted to the colors of flowers.  So they'll have a preference for different types of flowers depending on what colors they prefer.  But many species can live on a diet of a single color of flower, especially if it’s a diet of nectar.  So, like a person with a sweet tooth, if a butterfly likes sugar, it might eat a lot of sweets, even though it's not good for the person.
assitant
Many types of butterflies do like sunflowers.  So long as there’s no bees around, they like to sit on them and eat the pollen.  I recommend buying some of the regular-sized sunflowers as well, and putting them in a big flowerbed.  They like a bit of room.
assistant
How can I raise butterflies?
user
If you don’t want to raise a lot of different species, you might be able to start with a butterfly garden that only has a few different species.  These plants will attract butterflies and support them while they’re present.
assistant
What plants attract the most butterflies?
user
Flowers with a lot of different colors in them are very attractive to butterflies.  A lot of common flowers like dandelions, clover, and sunflowers.  If you don’t have a lot of sunshine, you can also try trying plants that can grow in part shade like daffodils.
assistant
I didn't know butterflies liked sunflowers.
user