This is a simple module which defines several sets of color schemes to be used in Astrality templates.
At the moment, the module contains the following color schemes:
Pull requests with new color schemes are welcome.
Install the module by adding the following to astrality.yml
:
modules:
enabled_modules:
- name: github::jakobgm/color-schemes.astrality
You can configure which color scheme that is imported into Astrality's context, and what you want to name that context section. The default values are as following:
color_schemes_config:
enabled: gruvbox_dark
context_section: colors
You can override these values in ~/.config/astrality/context.yml
.
Each color scheme defines the following color groups:
background
- Integer indexed colors, starting from 1, the primary background color, with additional colors 2, 3, and so on for contrast. Most often the same color but with different shades.
foreground
- Same as
background
, only for colors meant for foreground elements, such as letters, etc.. primary
- The primary colors used by the specific color scheme. Also integer indexed. These colors are often more colorful. You can use these values to set colors when you don't care exactly which colors you want to use, but you want colors from the color scheme.
normal
- For when you need a specific color from your color scheme. Each color scheme includes the following colors (although some of these may be duplicates of each other): black, red, green, yellow, blue, purple, aqua, gray, magenta, cyan, orange, white.
bright
- Same as
normal
but with a brighter shade.
Here are two examples of Astrality modules using these color scheme context values: