-- Dracula Theme for Lumacs -- Defined in Lua using the theme API local theme = editor:create_and_register_theme("dracula") -- Dracula color palette local bg = lumacs.Color(40, 42, 54) -- #282a36 - Background local current_line = lumacs.Color(68, 71, 90) -- #44475a - Current Line local fg = lumacs.Color(248, 248, 242) -- #f8f8f2 - Foreground local comment = lumacs.Color(98, 114, 164) -- #6272a4 - Comment local cyan = lumacs.Color(139, 233, 253) -- #8be9fd - Cyan local green = lumacs.Color(80, 250, 123) -- #50fa7b - Green local orange = lumacs.Color(255, 184, 108) -- #ffb86c - Orange local pink = lumacs.Color(255, 121, 198) -- #ff79c6 - Pink local purple = lumacs.Color(189, 147, 249) -- #bd93f9 - Purple local red = lumacs.Color(255, 85, 85) -- #ff5555 - Red local yellow = lumacs.Color(241, 250, 140) -- #f1fa8c - Yellow -- Text elements theme:set_color(lumacs.ThemeElement.Normal, fg, bg) theme:set_color(lumacs.ThemeElement.Keyword, pink, bg) theme:set_color(lumacs.ThemeElement.String, yellow, bg) theme:set_color(lumacs.ThemeElement.Comment, comment, bg) theme:set_color(lumacs.ThemeElement.Function, green, bg) theme:set_color(lumacs.ThemeElement.Type, cyan, bg) theme:set_color(lumacs.ThemeElement.Number, purple, bg) theme:set_color(lumacs.ThemeElement.Constant, orange, bg) theme:set_color(lumacs.ThemeElement.Error, fg, red) -- UI elements theme:set_color(lumacs.ThemeElement.StatusLine, bg, purple) theme:set_color(lumacs.ThemeElement.StatusLineInactive, comment, current_line) theme:set_color(lumacs.ThemeElement.MessageLine, fg, bg) theme:set_color(lumacs.ThemeElement.LineNumber, comment, bg) theme:set_color(lumacs.ThemeElement.Cursor, bg, fg) theme:set_color(lumacs.ThemeElement.Selection, fg, current_line) theme:set_color(lumacs.ThemeElement.SearchMatch, bg, orange) theme:set_color(lumacs.ThemeElement.SearchFail, fg, red) -- Window elements theme:set_color(lumacs.ThemeElement.WindowBorder, comment, bg) theme:set_color(lumacs.ThemeElement.WindowBorderActive, pink, bg) theme:set_color(lumacs.ThemeElement.Background, fg, bg) print(string.format("Theme '%s' loaded.", theme:name()))