As an adjective:
* The dim light of the bedside lamp cast long shadows on the wall.
* The room was dimly lit, making it hard to see.
* The dim glow of the dying embers warmed their faces.
* Her hopes for the future were dim after the recent setback.
As a verb:
* The lights dimmed as the music started.
* His enthusiasm dimmed when he realized the task was impossible.
* The sun dimmed behind the clouds.
As a noun:
* The dim of the light revealed the shadowy figures lurking in the alleyway. (This is a bit more poetic, but still a valid use.)
As an adverb:
* The light was dimly lit, making the room feel cozy.
* The fire crackled dimly in the hearth.
* She smiled dimly at his joke.
The meaning of "dim" can change depending on the context. It can describe a lack of brightness, a lessening of intensity, or a lack of intelligence.