Here's my personal ruleset for including often-politicized shit with characters without turning the whole thing into an SJW soapbox propaganda shitfest, as well as for writing good characters regardless of looks and traits:
1: Write an entertaining character that fits with the setting and the story you want to tell.
Good, evil, likable, hate-worthy, friendly, hostile, just as long as they fit with the rest of the story's elements and aren't boring/obnoxious without specifically being intended to be such. At this point, gender, race, political views, sexual orientation and all that other shit shouldn't even factor in yet, as the first two are random elements that can be just as easily defied rather than adhered to in terms of common traits and personality, and the latter two are more-influenced by their race/gender/who like they to fuck but can also develop independently.
People in reality can and often do deviate quite a bit in personality, traits, interests and views from what's assumed by their looks alone and whatever groups they naturally and/or willingly belong to, so you have quite a bit of room for fitting an appealing design using certain typically-used racial/sexual/whatever elements into a different niche than usual if you know what you're doing. Same goes for fiction, too, when it's written well. A girl just as easily be a tomboy as she can be a pretty princess, a cowardly short guy can turn out to be the strongest and most determined person around, a big tough-looking black guy can end up actually being a huge weak nerd with no athletic capability or backbone, and an elf can be just as much of a foul-mouthed, ale-swilling hard manual worker as a dwarf in the right circumstance despite his fair looks.
Make your character first and foremost independent of these elements as the core, then worry about making their physical traits, mental traits and past all wrap around this core later.
2: Factor in gender, race and general appearance (body shape and type/height/hair color/etc.) now that you have the basics down, but only for the purposes of visual design and integrating said visuals into the setting, not for the actual character writing just yet. Figure out how you want them to look, and how to fit this look into your world without fucking everything up and disregarding established worldbuilding.
In other words, if you want a black woman space marine who likes other chicks as a character in a sci-fi novel, having her be of good physical condition and decked out in appropriate attire (especially face-covering helmet if absolutely everyone else wears one, so many faggots can't stand the thought of their super-special OC's face being off-panel for even one page despite all other armor/clothing wearers nearby who look similar being faceless) is good, since it means her being a lesbian black lady means jack-shit on the job and she's a competent human being just the same as any white man or other race/sex combo. However, making her a 500-pound magic space wizard tranny decked out in nothing but cloth and medieval-styled bling would be fucking retarded, as it would completely toss aside your sci-fi setting's cohesion and believability in favor of putting in an OC that's a mere hair's breadth away from being Coldsteel levels of autistic.
Design for appealing (or unappealing, if that's your intention for some characters, i.e. villains) and fitting visuals, but don't break the limits of your setting by shoehorning insane bullshit, unless your setting is intentionally going off the deep end into JoJo-esque "insane shit everywhere", in which case you're in a whole other ballpark and I hope for your sake that you know what you're doing. The crazy option for your setting definitely isn't recommended unless you've built up plenty of skill and have the right mindset for it, or alternatively are a superbly-strange Japanese guy and have both the skills and the mindset easily-acquired/by default.
(body limit's a cunt, will continue)