|
| 1 | +{ config, lib, pkgs, ... }: |
| 2 | + |
| 3 | +with lib; |
| 4 | + |
| 5 | +let |
| 6 | + cfg = config.colorscheme.nord; |
| 7 | + hexColor = types.str // { |
| 8 | + check = (x: hasPrefix "#" x && builtins.stringLength x == 7); |
| 9 | + description = "hexadecimal color"; |
| 10 | + }; |
| 11 | + mkHexColorOption = name: default: |
| 12 | + mkOption { |
| 13 | + type = hexColor; |
| 14 | + default = default; |
| 15 | + description = name; |
| 16 | + }; |
| 17 | +in { |
| 18 | + ## POLAR NIGHT |
| 19 | + # The origin color or the Polar Night palette. |
| 20 | + nord0 = mkHexColorOption "nord0" "#2E3440"; |
| 21 | + |
| 22 | + # A brighter shade color based on nord0. |
| 23 | + nord1 = mkHexColorOption "nord1" "#3B4252"; |
| 24 | + |
| 25 | + # An even more brighter shade color of nord0. |
| 26 | + nord2 = mkHexColorOption "nord2" "#434C5E"; |
| 27 | + |
| 28 | + # The brightest shade color based on nord0. |
| 29 | + nord3 = mkHexColorOption "nord3" "#4C566A"; |
| 30 | + |
| 31 | + ## SNOW STORM |
| 32 | + # The origin color or the Snow Storm palette. |
| 33 | + nord4 = mkHexColorOption "nord4" "#D8DEE9"; |
| 34 | + |
| 35 | + # A brighter shade color of nord4. |
| 36 | + nord5 = mkHexColorOption "nord5" "#E5E9F0"; |
| 37 | + |
| 38 | + # The brightest shade color based on nord4. |
| 39 | + nord6 = mkHexColorOption "nord6" "#ECEFF4"; |
| 40 | + |
| 41 | + ## FROST |
| 42 | + # A calm and highly contrasted color reminiscent of frozen polar water. |
| 43 | + nord7 = mkHexColorOption "nord7" "#8FBCBB"; |
| 44 | + |
| 45 | + # The bright and shiny primary accent color reminiscent of pure and clear ice. |
| 46 | + nord8 = mkHexColorOption "nord8" "#88C0D0"; |
| 47 | + |
| 48 | + # A more darkened and less saturated color reminiscent of arctic waters. |
| 49 | + nord9 = mkHexColorOption "nord9" "#81A1C1"; |
| 50 | + |
| 51 | + # A dark and intensive color reminiscent of the deep arctic ocean. |
| 52 | + nord10 = mkHexColorOption "nord10" "#5E81AC"; |
| 53 | + |
| 54 | + ## AURORA |
| 55 | + # RED |
| 56 | + nord11 = mkHexColorOption "nord11" "#BF616A"; |
| 57 | + |
| 58 | + # ORANGE |
| 59 | + nord12 = mkHexColorOption "nord12" "#D08770"; |
| 60 | + |
| 61 | + # YELLOW |
| 62 | + nord13 = mkHexColorOption "nord13" "#EBCB8B"; |
| 63 | + |
| 64 | + # GREEN |
| 65 | + nord14 = mkHexColorOption "nord14" "#A3BE8C"; |
| 66 | + |
| 67 | + # PURPLE |
| 68 | + nord15 = mkHexColorOption "nord15" "#B48EAD"; |
| 69 | +} |
0 commit comments