From 3b3a7a292f3cab0f472ce95aa91e92f877cad095 Mon Sep 17 00:00:00 2001 From: mrtnvgr Date: Wed, 25 Oct 2023 10:09:12 +0700 Subject: [PATCH] formatting --- .github/workflows/format.yml | 28 ++++++++++++++++++++++++++++ colorschemes/catppuccin.nix | 31 +++++++++++++++++++++++++++++++ colorschemes/default.nix | 3 +++ 3 files changed, 62 insertions(+) create mode 100644 .github/workflows/format.yml create mode 100644 colorschemes/catppuccin.nix create mode 100644 colorschemes/default.nix diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..b78279c --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,28 @@ +on: + push: + +jobs: + main: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install nix + uses: cachix/install-nix-action@v23 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - name: Format files with nixpkgs-fmt + run: | + nix-shell -p nixpkgs-fmt + nixpkgs-fmt . + + - name: Commit changes + uses: EndBug/add-and-commit@v9 + with: + message: "chore: format" + default_author: user_info + committer_name: GitHub Actions + committer_email: 41898282+github-actions[bot]@users.noreply.github.com diff --git a/colorschemes/catppuccin.nix b/colorschemes/catppuccin.nix new file mode 100644 index 0000000..fa57506 --- /dev/null +++ b/colorschemes/catppuccin.nix @@ -0,0 +1,31 @@ +{ + name = "Catppuccin"; + slug = "catppuccin"; + author = "https://github.com/catppuccin"; + + colors = rec { + base00 = "#1e1e2e"; # base + base01 = "#181825"; # mantle + base02 = "#313244"; # surface0 + base03 = "#45475a"; # surface1 + base04 = "#585b70"; # surface2 + base05 = "#cdd6f4"; # text + base06 = "#f5e0dc"; # rosewater + base07 = "#b4befe"; # lavender + base08 = "#f38ba8"; # red + base09 = "#fab387"; # peach + base0A = "#f9e2af"; # yellow + base0B = "#a6e3a1"; # green + base0C = "#94e2d5"; # teal + base0D = "#89b4fa"; # blue + base0E = "#cba6f7"; # mauve + base0F = "#f2cdcd"; # flamingo + + background = base00; + foreground = base05; + + red = base08; + orange = base09; + yellow = base0A; + }; +} diff --git a/colorschemes/default.nix b/colorschemes/default.nix new file mode 100644 index 0000000..2dba6a6 --- /dev/null +++ b/colorschemes/default.nix @@ -0,0 +1,3 @@ +{ + catppuccin = import ./catppuccin.nix; +}