If you want to create your own theme, you will need to write a Confluence plugin. Please refer to the following pages in our developer documentation: