Creating a theme that is written in lua

The title says it all. Is there anyway to create a theme? Or is there sny soirce that i can reference as a beginner who wanna create a theme???

A very good introduction to colors with Lua can be found with the solution colorbuddy by TJ DeVries:

How to use it tho? I am a complete newbie lmaoo

what about GitHub - EdenEast/nightfox.nvim: 🦊A soft dark, fully customizable (Neo)Vim theme, with support for lsp, treesitter and a variety of plugins. ?