KÄ lidÄ s 's plays and poetry are based on Hindu mythology and philosophy . The place bestowed to the English poet Shakespeare is considered akin to that held by KÄ lidÄ sa in Sanskrit literature . His plays and poetry are primarily based on Hindu Puranas and philosophy .