mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-08 20:19:04 +03:00
updated color keys
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
# BASE COLORS (raw)
|
||||
color1.raw {term_red}
|
||||
color1.raw {base01}
|
||||
|
||||
# HEX
|
||||
color1.hex {term_red.hex}
|
||||
color1.hex.stripped {term_red.hex_stripped}
|
||||
color1.hex {base01.hex}
|
||||
color1.hex.stripped {base01.hex_stripped}
|
||||
|
||||
color1.hexa {term_red.hexa}
|
||||
color1.hexa.stripped {term_red.hexa_stripped}
|
||||
color1.hexa {base01.hexa}
|
||||
color1.hexa.stripped {base01.hexa_stripped}
|
||||
|
||||
# RGB (0–255)
|
||||
color1.rgb {term_red.rgb}
|
||||
color1.r {term_red.r}
|
||||
color1.g {term_red.g}
|
||||
color1.b {term_red.b}
|
||||
color1.rgb {base01.rgb}
|
||||
color1.r {base01.r}
|
||||
color1.g {base01.g}
|
||||
color1.b {base01.b}
|
||||
|
||||
# RGBA (A = 0–1 normalized)
|
||||
color1.rgba {term_red.rgba}
|
||||
color1.a {term_red.a}
|
||||
color1.rgba {base01.rgba}
|
||||
color1.a {base01.a}
|
||||
|
||||
# HSL (normalized 0–1 for s,l, integers for h)
|
||||
color1.hsl {term_red.hsl}
|
||||
color1.h {term_red.h}
|
||||
color1.s {term_red.s}
|
||||
color1.l {term_red.l}
|
||||
color1.hsl {base01.hsl}
|
||||
color1.h {base01.h}
|
||||
color1.s {base01.s}
|
||||
color1.l {base01.l}
|
||||
|
||||
# HSLA
|
||||
color1.hsla {term_red.hsla}
|
||||
color1.hsla_a {term_red.hsla_a}
|
||||
color1.hsla {base01.hsla}
|
||||
color1.hsla_a {base01.hsla_a}
|
||||
|
||||
# Combined custom formats
|
||||
color1.r-g-b {term_red.r}-{term_red.g}-{term_red.b}
|
||||
color1.r-g-b-a {term_red.r}-{term_red.g}-{term_red.b}-{term_red.a}
|
||||
color1.r-g-b {base01.r}-{base01.g}-{base01.b}
|
||||
color1.r-g-b-a {base01.r}-{base01.g}-{base01.b}-{base01.a}
|
||||
|
||||
color1.h-s-l {term_red.h}-{term_red.s}-{term_red.l}
|
||||
color1.h-s-l-a {term_red.h}-{term_red.s}-{term_red.l}-{term_red.hsla_a}
|
||||
color1.h-s-l {base01.h}-{base01.s}-{base01.l}
|
||||
color1.h-s-l-a {base01.h}-{base01.s}-{base01.l}-{base01.hsla_a}
|
||||
@@ -1,32 +1,40 @@
|
||||
cursor {foreground}
|
||||
cursor {cursor}
|
||||
cursor_text_color {background}
|
||||
|
||||
foreground {foreground}
|
||||
background {background}
|
||||
selection_foreground {foreground_secondary}
|
||||
selection_foreground {on_surface}
|
||||
selection_background {surface}
|
||||
url_color {accent}
|
||||
|
||||
color8 {surface_variant}
|
||||
color0 {background}
|
||||
# Base colors (dark variants)
|
||||
color0 {base00}
|
||||
color8 {base08}
|
||||
|
||||
color1 {term_red}
|
||||
color9 {term_red_bright}
|
||||
# Red
|
||||
color1 {base01}
|
||||
color9 {base09}
|
||||
|
||||
color2 {term_green}
|
||||
color10 {term_green_bright}
|
||||
# Green
|
||||
color2 {base02}
|
||||
color10 {base0A}
|
||||
|
||||
color3 {term_yellow}
|
||||
color11 {term_yellow_bright}
|
||||
# Yellow
|
||||
color3 {base03}
|
||||
color11 {base0B}
|
||||
|
||||
color4 {term_blue}
|
||||
color12 {term_blue_bright}
|
||||
# Blue
|
||||
color4 {base04}
|
||||
color12 {base0C}
|
||||
|
||||
color5 {term_magenta}
|
||||
color13 {term_magenta_bright}
|
||||
# Magenta
|
||||
color5 {base05}
|
||||
color13 {base0D}
|
||||
|
||||
color6 {term_cyan}
|
||||
color14 {term_cyan_bright}
|
||||
# Cyan
|
||||
color6 {base06}
|
||||
color14 {base0E}
|
||||
|
||||
color15 {term_white_bright}
|
||||
color7 {term_white}
|
||||
# White
|
||||
color7 {base07}
|
||||
color15 {base0F}
|
||||
@@ -3,33 +3,39 @@ vim.cmd("syntax reset")
|
||||
vim.g.colors_name = "clrsync"
|
||||
|
||||
local palette = {
|
||||
-- TextEditor
|
||||
Default = "{text_main.hex}",
|
||||
Keyword = "{syntax_keyword.hex}",
|
||||
Number = "{text_warning.hex}",
|
||||
String = "{text_string.hex}",
|
||||
CharLiteral = "{text_string.hex}",
|
||||
Punctuation = "{text_main.hex}",
|
||||
Preprocessor = "{syntax_special_keyword.hex}",
|
||||
Identifier = "{text_main.hex}",
|
||||
KnownIdentifier = "{text_link.hex}",
|
||||
PreprocIdentifier = "{text_link.hex}",
|
||||
-- Editor colors
|
||||
Default = "{editor_main.hex}",
|
||||
Keyword = "{editor_command.hex}",
|
||||
Number = "{editor_warning.hex}",
|
||||
String = "{editor_string.hex}",
|
||||
CharLiteral = "{editor_string.hex}",
|
||||
Punctuation = "{editor_main.hex}",
|
||||
Preprocessor = "{editor_emphasis.hex}",
|
||||
Identifier = "{editor_main.hex}",
|
||||
KnownIdentifier = "{editor_link.hex}",
|
||||
PreprocIdentifier = "{editor_link.hex}",
|
||||
|
||||
Comment = "{text_comment.hex}",
|
||||
MultiLineComment = "{text_comment.hex}",
|
||||
Comment = "{editor_comment.hex}",
|
||||
MultiLineComment = "{editor_comment.hex}",
|
||||
|
||||
Background = "{editor_background.hex}",
|
||||
Cursor = "{cursor.hex}",
|
||||
|
||||
Selection = "{text_selected.hex}",
|
||||
ErrorMarker = "{syntax_error.hex}",
|
||||
Breakpoint = "{syntax_error.hex}",
|
||||
Selection = "{editor_selected.hex}",
|
||||
ErrorMarker = "{editor_error.hex}",
|
||||
Breakpoint = "{editor_error.hex}",
|
||||
|
||||
LineNumber = "{text_line_number.hex}",
|
||||
LineNumber = "{editor_line_number.hex}",
|
||||
CurrentLineFill = "{surface_variant.hex}",
|
||||
CurrentLineFillInactive = "{surface.hex}",
|
||||
|
||||
CurrentLineEdge = "{border_emphasized.hex}",
|
||||
CurrentLineEdge = "{border_focused.hex}",
|
||||
|
||||
-- Semantic colors
|
||||
Success = "{success.hex}",
|
||||
Warning = "{warning.hex}",
|
||||
Error = "{error.hex}",
|
||||
Info = "{info.hex}",
|
||||
}
|
||||
|
||||
-- Helper function to set highlights in Neovim
|
||||
@@ -59,7 +65,7 @@ set_hl("Type", { fg = palette.Keyword })
|
||||
set_hl("Special", { fg = palette.PreprocIdentifier })
|
||||
set_hl("Underlined", { fg = palette.KnownIdentifier })
|
||||
set_hl("Error", { fg = palette.ErrorMarker, bg = palette.Background })
|
||||
set_hl("Todo", { fg = palette.Text, bg = palette.Keyword })
|
||||
set_hl("Todo", { fg = palette.Default, bg = palette.Keyword })
|
||||
|
||||
-- Floating windows
|
||||
set_hl("NormalFloat", { bg = palette.Background })
|
||||
@@ -70,12 +76,12 @@ set_hl("Pmenu", { bg = palette.Background })
|
||||
set_hl("PmenuSel", { bg = palette.Keyword, fg = palette.Background })
|
||||
|
||||
-- Git and diagnostic highlights
|
||||
set_hl("DiffAdd", { fg = palette.Success or palette.Default, bg = palette.Background })
|
||||
set_hl("DiffAdd", { fg = palette.Success, bg = palette.Background })
|
||||
set_hl("DiffChange", { fg = palette.Keyword, bg = palette.Background })
|
||||
set_hl("DiffDelete", { fg = palette.ErrorMarker, bg = palette.Background })
|
||||
set_hl("DiagnosticError", { fg = palette.ErrorMarker })
|
||||
set_hl("DiagnosticWarn", { fg = palette.Number })
|
||||
set_hl("DiagnosticInfo", { fg = palette.Keyword })
|
||||
set_hl("DiagnosticError", { fg = palette.Error })
|
||||
set_hl("DiagnosticWarn", { fg = palette.Warning })
|
||||
set_hl("DiagnosticInfo", { fg = palette.Info })
|
||||
set_hl("DiagnosticHint", { fg = palette.PreprocIdentifier })
|
||||
|
||||
-- Treesitter links
|
||||
@@ -84,4 +90,4 @@ set_hl("@string", { fg = palette.String })
|
||||
set_hl("@function", { fg = palette.Keyword })
|
||||
set_hl("@variable", { fg = palette.Identifier })
|
||||
set_hl("@keyword", { fg = palette.Keyword })
|
||||
set_hl("@type", { fg = palette.Preprocessor })
|
||||
set_hl("@type", { fg = palette.Preprocessor })
|
||||
Reference in New Issue
Block a user