40 lines
1.5 KiB
Markdown
40 lines
1.5 KiB
Markdown
+++
|
|
title = "My Neovim Custom Theme"
|
|
date = "2025-10-17"
|
|
+++
|
|
I use Neovim as my main IDE and text editor. Since I started using Neovim, I've been using the [Catppuccin](https://catppuccin.com/) theme, until one day I was blessed by stumbling across [vimcolours](https://vimcolors.org/) and realised I can create my own horrible theme to strain my eyes.
|
|
|
|
<img src="neovim_horrid.png" alt="Horrid Theme" style="width:1200px;height:600px;">
|
|
|
|
After five minutes of this I realised I actually don't like my eyes being strained, so I decided to make something that was easier for them to look at. I made the background grey, and added more purple because that's my favourite colour.
|
|
|
|
<img src="neovim_purple.png" alt="Better Theme" style="width:1200px;height:600px;">
|
|
|
|
## How?
|
|
Okay so the way this works is to download the `theme.vim` file (after customising your theme) into a `colors` directory within your neovim configuration directory (in `~/.config/nvim`).
|
|
|
|

|
|
|
|
Then you can put these two lines into the `init.lua` file, replacing my `gay7.vim` with whatever your theme is:
|
|
```lua
|
|
vim.opt.termguicolors = true
|
|
vim.cmd("colorscheme gay7")
|
|
```
|
|
|
|
## My Colours:
|
|
The colours I used were taken from the colour scheme of my website:
|
|
```scss
|
|
$white: #FFFFFF;
|
|
$black: #000000;
|
|
$purple: #962FFE;
|
|
$pink: #FFA0E3;
|
|
$periwinkle: #EBD7FF;
|
|
$yoghurt: #d1e6ff;
|
|
$red: #FF3030;
|
|
$orange: #FF7930;
|
|
$yellow: #FFF530;
|
|
$green: #45FF30;
|
|
$cyan: #30FFEA;
|
|
$blue: #30A9FF;
|
|
```
|