Ayu mirage theme

This commit is contained in:
Filippo Berto 2022-09-30 12:00:36 +02:00
parent 9904baca2d
commit 4627af9181
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
5 changed files with 43 additions and 13 deletions

View file

@ -2,14 +2,9 @@
let
strPalette = with pkgs.rice;
pkgs.lib.rice.palette.toRgbHex rec {
inherit (colorPalette) normal bright;
inherit (colorPalette) normal bright primary;
dim = colorPalette.dark;
primary = {
background = normal.black;
foreground = normal.white;
dim_foreground = dim.white;
};
cursor = {
cursor = normal.white;
text = normal.black;

View file

@ -42,7 +42,7 @@
package = pkgs.unstable.helix;
languages = [ ];
settings = {
theme = "monokai_pro_octagon";
theme = "ayu_mirage";
editor.lsp.display-messages = true;
editor.scrolloff = 5;
editor.true-color = true;

View file

@ -2,8 +2,8 @@
let
strPalette = with pkgs.rice;
pkgs.lib.rice.palette.toRgbHex rec {
foreground = colorPalette.normal.white;
background = colorPalette.normal.black;
foreground = colorPalette.primary.foreground;
background = colorPalette.primary.background;
color0 = colorPalette.normal.black;
color1 = colorPalette.normal.red;
color2 = colorPalette.normal.green;

View file

@ -4,19 +4,27 @@ let
# onedark = prev.lib.rice.palette.tPalette prev.lib.rice.color.hexToRgba (import ./themes/onedark.nix);
# tomorrow-night = prev.lib.rice.palette.tPalette prev.lib.rice.color.hexToRgba (import ./themes/tomorrow-night.nix);
# mkpm = with prev.lib.rice; palette.tPalette color.hexToRgba (import ./themes/monokai-pro-machine.nix);
bloom = with prev.lib.rice;
palette.tPalette color.hexToRgba (import ./themes/bloom.nix);
# bloom = with prev.lib.rice;
# palette.tPalette color.hexToRgba (import ./themes/bloom.nix);
ayu-mirage = with prev.lib.rice;
palette.tPalette color.hexToRgba (import ./themes/ayu-mirage.nix);
in
(rec {
rice = {
colorPalette = with prev.lib.rice; rec {
normal = palette.defaultPalette // {
inherit (bloom.normal) black red green yellow blue magenta cyan white;
inherit (ayu-mirage.normal) black red green yellow blue magenta cyan white;
};
bright = palette.brighten 10 normal // {
inherit (bloom.bright) black red green yellow blue magenta cyan white;
inherit (ayu-mirage.bright) black red green yellow blue magenta cyan white;
};
dark = palette.darken 10 normal;
primary = {
background = color.black;
foreground = color.white;
bright_foreground = color.white;
dim_foreground = dark.white;
} // ayu-mirage.primary;
};
font = {
normal = {

27
themes/ayu-mirage.nix Normal file
View file

@ -0,0 +1,27 @@
{
primary = {
background = "#1f2430";
foreground = "#cbccc6";
bright_foreground = "#f28779";
};
normal = {
black = "#212733";
red = "#f08778";
green = "#53bf97";
yellow = "#fdcc60";
blue = "#60b8d6";
magenta = "#ec7171";
cyan = "#98e6ca";
white = "#fafafa";
};
bright = {
black = "#686868";
red = "#f58c7d";
green = "#58c49c";
yellow = "#ffd165";
blue = "#65bddb";
magenta = "#f17676";
cyan = "#9debcf";
white = "#ffffff";
};
}