To unlock Shadow in Sonic Riders, you'll need to successfully complete Heroes in Story Mode. Once you clear that, Shadow becomes available to use.
It's a rewarding unlock for fans of the character, so focus on beating Heroes and you'll have Shadow ready to race in no time.