Skip to content

A refined dark theme with cohesive colors and complete UI coverage for GTK-based text editors.

License

Notifications You must be signed in to change notification settings

vmkspv/zenith-theme-gtk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zenith Theme for GtkSourceView

A refined dark theme with cohesive colors and complete UI coverage
This is a GTK adaptation of the Zenith VS Code theme with custom language definitions.

Overview

Zenith is a refined dark theme that offers cohesive colors and comprehensive syntax highlighting support for GTK-based text editors using GtkSourceView 5. The theme providing optimal readability with balanced contrast and semantic color assignments, making it great for long coding sessions.

Beyond the theme itself, this project includes custom language definitions for infrastructure configuration files, designed to streamline workflows for DevOps engineers and IT administrators.

The repository contains:

  1. A GtkSourceView 5 theme (zenith.xml) with a carefully curated color palette.
  2. Custom language definitions not included in the GtkSourceView 5 package:
    • nginx.lang: syntax highlighting for Nginx configuration files;
    • cisco.lang: syntax highlighting for Cisco IOS/IOS XE/NX-OS configuration files;
    • fstab.lang: syntax highlighting for filesystem table (fstab) configuration file.

Installation

You can install the Zenith theme and language definitions using a script:

curl -fsSL https://raw.githubusercontent.com/vmkspv/zenith-theme-gtk/main/install.sh | bash -s -- --full

Script options

Use the --theme or --langs flags to install only required components:

# Install the Zenith theme only
curl -fsSL https://raw.githubusercontent.com/vmkspv/zenith-theme-gtk/main/install.sh | bash -s -- --theme

# Install language definitions only
curl -fsSL https://raw.githubusercontent.com/vmkspv/zenith-theme-gtk/main/install.sh | bash -s -- --langs

Color palette

Element Color Usage
Background #161a1d Editor background
Text #cbd1d6 Default text color
Comments #637079 Comments and documentation
Keywords #cf86c1 Language keywords and control flow
Strings #64b280 String literals
Numbers #d68c67 Numeric literals
Functions #61abda Function names and declarations
Types #65b8c1 Types, classes, and interfaces
Variables #cbd1d6 Variable names
Constants #d68c67 Constants and enumeration values
Special Constants #9d86ce Special values like null, true, false
Errors #de6e7c Error indicators

Contributing

Contributions are welcome!

If you have an idea, bug report or something else, don’t hesitate to open an issue.

This project follows the GNOME Code of Conduct.

License

Zenith Theme for GtkSourceView is released under the MIT License.

The color scheme is adapted from the Zenith Theme for VS Code by Brian Kuzmanoski.

About

A refined dark theme with cohesive colors and complete UI coverage for GTK-based text editors.

Topics

Resources

License

Stars

Watchers

Forks

Languages