In D&D 5e, Shadow dragons have the following abilities (among others):
resistance to necrotic damage always, and resistance to all other forms of damage except force, psychic and radiant, when in dim light or darkness.
can Hide as a bonus action when in dim light or darkness.
it has sunlight sensitivity (disadvantage on attack rolls and Perception checks involving sight when in sunlight).
In other words, they have abilities that affect them when they are in sunlight, and abilities that affect them when they are in dim light and darkness.
This brings me to this odd case I've encountered in a recent game. Here's an example to explain.
The dragon, a huge creature who occupies multiple tiles, is partially in a beam of sunlight, and partially in an area of darkness. >50% of the dragon is in the dark area, which includes the center point of the dragon's token.
For the purposes of its light-condition-dependent abilities, is the dragon considered in sunlight, in darkness, both, or neither?