Use humour with care and restraint
Humour can lighten a text, surprise readers, or reveal a contradiction in a situation. It works best when it comes from the character and circumstances, rather than being added just to make the text seem funny. Try noticing the difference between what a character expects and what actually happens. A comic effect can come from an unexpected detail, an overly serious tone, or a subtle misunderstanding.
Write a short situation in two ways: first in a completely serious tone, then with a small comic twist. Compare what changed. Humour can be self-deprecating, situational, or based on a choice of words. With a sensitive topic, consider who the joke is aimed at and whether it puts down someone who already has less power. If you're unsure, leave the joke out or show it to a reader you trust.
Not every difficult experience needs humour, and humour doesn't solve a problem by itself. Sometimes a calm, honest tone is more appropriate. When writing for a particular audience, consider what they may know and how they might understand the text. During revision, ask whether the joke supports your point or distracts from it. If it distracts, you can leave it out without diminishing the value of the text.
Before sharing your text, consider whether someone could be identified without their consent. Humour can be subtle and brief; a long explanation often weakens its effect.