An author conveys the tone of their work through their diction.
Diction is an author’s word choice they use in their writing. Each word used has a unique connotation or emotion associated with the word itself. All of the words’ connotations and associated feelings convey a tome or message in the writing.
I hope this helps! :)