The Culture series describes what is arguably the best possible science fiction society to live in. Player of Games is a good introduction to the series, which shows off what the Culture is by taking you, in the shoes of one of its denizens, to a place that's a high contrast.
David Brin always preaches scifi optimism, but I found Existence to be kind of a slog, so I never finished it - I think you'd agree with a lot of his writing, though.
https://www.goodreads.com/book/show/6665847-daemon
https://www.goodreads.com/book/show/18630.The_Player_of_Game...
The only popular utopian literature I can think of is Star Trek and all of their plots either involve characters leaving the utopia to explore or defending it from those who would destroy it.
A classical form of this conflict is the form of the interaction of a member (or group of members) of the non-utopian society (especially one with a strong pre-existing bias against the utopian society) thrust into the utopian society. Typically, the outsider is converted (if single; if there a multiple, the response is often that most convert, but having a minority of unconvinced holdouts isn't uncommon.)
Among others Walden Two and Ecotopia use variations of this.
* A happy ending: Things were going wrong, but there's at least one 'right' ending, where things go the way most would agree is positive.
* Only 'bad' endings: There might be a fight, you might even win the battle, but ultimately the war is lost.
I think that the popularity of each of these depends on how hopeful society in general (and the people consuming the works in specific) are about the future.
If we feel like there's no control or only bad routes left then the works with only 'less bad' endings will probably win.
"Will Farnaby is a cynical journalist shipwrecked on the fictional island of Pala, a Buddhist paradise where modern science and technology is embraced only insofar as it can improve medicine and nutrition, not for industrialization; drugs are used for enlightenment, not for pacification; and the evils of corporatism are unknown."
"The final novel from Aldous Huxley, Island is a provocative counterpoint to his worldwide classic Brave New World, in which a flourishing, ideal society located on a remote Pacific island attracts the envy of the outside world."