The Grammarly Keyboard for iOS will automatically switch to the dark mode if you're running a dark theme on iOS.
The keyboard will also appear in dark mode if you enable Smart Invert on your iPhone.
Note: At this time, dark mode is not available in the Grammarly iPhone Editor.