[Feature]: GTK theme + Firefox Stylus theme + Micro automation
GTK3 Theme (almost done)
I've made this theme using the help of AI, modified a lot to fix it. Reached a good level so far but still has little issues with different gtk apps. you can finish it .. you're better than me in css 😅. it works good with thunar, waybar.
~/.themes/CYBRGTK/index.theme
[Desktop Entry]
Type=X-GNOME-Metatheme
Name=CYBRGTK
Comment=Cyberpunk GTK theme
GtkTheme=CYBRGTK
~/.themes/CYBRGTK/gtk-3.0/gtk.css
/* --- 1. CORE COLORS --- */
@define-color theme_bg_color #030408; /* OLED Black */
@define-color theme_fg_color #F75049; /* Cyber Red */
@define-color accent_green #1DED83; /* Neon Green */
@define-color theme_selected_bg_color #F75049; /* Solid Red Selection */
@define-color theme_selected_fg_color #030408; /* Black text on Red */
/* --- 2. THE BUTTONS (No default red border) --- */
button, .button {
background: rgba(247, 80, 73, 0.05); /* Very subtle red tint, no border */
border: 1px solid transparent; /* Hidden border for layout stability */
color: @theme_fg_color;
padding: 2px 6px;
border-radius: 0;
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
transition: all 0.2s ease;
}
/* Hover: Turns Green with a glow */
button:hover, .button:hover {
color: @accent_green;
background: rgba(29, 237, 131, 0.1);
border: 1px solid @accent_green; /* Green border appears only on hover */
box-shadow: 0 0 10px rgba(29, 237, 131, 0.3);
}
/* Selected/Active: Solid Red */
button:active, button:checked, .button:active, .button:checked {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Becomes solid */
}
/* --- 3. SELECTION FIX (Files turn Red) --- */
/* This targets Thunar, file dialogs, and lists */
treeview.view:selected,
row:selected,
.view:selected,
iconview:selected {
background-color: @theme_selected_bg_color !important;
color: @theme_selected_fg_color !important;
}
/* Ensure the text inside the selected row is also black */
treeview.view:selected label,
row:selected label {
color: @theme_selected_fg_color !important;
}
/* The drag-selection box (No border, just tint) */
.rubberband, rubberband {
background-color: rgba(247, 80, 73, 0.2);
border: none;
}
/* --- 4. RED LABEL SEPARATORS --- */
/* Elegant 1px red line under sidebar headings */
.sidebar label,
thunar .sidebar .label {
color: @accent_green !important;
padding-bottom: 4px;
border-bottom: 1px solid rgba(247, 80, 73, 0.4); /* Subtle red divider */
margin-bottom: 8px;
margin-top: 12px;
}
/* General menu separators */
separator {
background-color: rgba(247, 80, 73, 0.3);
min-height: 1px;
}
/* --- 5. THUNAR CLEANUP --- */
thunar .view {
background-color: @theme_bg_color;
color: #e0e0e0; /* Neutral grey for unselected file names */
}
/* Highlight files on mouse hover (Green tint) */
thunar .view row:hover {
background-color: rgba(29, 237, 131, 0.05);
}
/* Pathbar (The buttons at the top of Thunar) */
thunar .path-bar button {
border: none;
background: transparent;
color: @theme_fg_color;
}
thunar .path-bar button:hover {
color: @accent_green;
}
Firefox Stylus ( extension ) theme for all sites
doesn't break anysite for me so far, very minimal.
/* ------------------------------
Minimal cyberpunk theme
------------------------------ */
/* ---------- PALETTE ---------- */
:root {
--bg-main: #030408;
/* Page background */
--bg-soft: #030408cc;
/* Inputs, panels */
--fg-main: #F75049;
/* Main text */
--fg-soft: #8c919c;
/* Secondary text */
--accent-blue: #2570D4;
--accent-green: #1DED83;
--accent-yellow: #FB932E;
--accent-purple: #9D2BF5;
}
/* Background and red accent */
html,
body {
background-color: #030408 !important;
color: #F75049 !important;
}
/* ---------- LINKS ---------- */
a,
a:visited {
color: var(--accent-blue) !important;
}
a:hover {
color: var(--accent-green) !important;
}
/* Update your font-family variable or rule */
body, body * {
font-family: "GeistMono Nerd Font", "Inter", "Segoe UI", "Tahoma", "Arial", sans-serif !important;
}
::placeholder {
color: var(--fg-soft) !important;
}
/* Focus highlight */
input:focus,
textarea:focus,
select:focus,
button:focus {
outline: 2px solid var(--accent-yellow) !important;
}
/* ---------- MINIMAL MEDIA FIX ---------- */
img,
video,
canvas,
svg {
background-color: transparent !important;
}
/* This makes highlighted text visible */
::selection {
background-color: var(--fg-main) !important; /* Red background */
color: var(--bg-main) !important; /* Black text */
}
/* For Firefox support */
::-moz-selection {
background-color: var(--fg-main) !important;
color: var(--bg-main) !important;
}
Micro cyberpunk theme automation script
a bash script requires the CYBRmicro.micro to be in the same folder with it, -auto installs micro if not found. -applies the theme for root user, and normal user. -requires SUDO password.
#!/usr/bin/env bash
set -e
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
THEME_FILE="$SCRIPT_DIR/CYBRmicro.micro"
# Detect real user when running with sudo
if [ -n "$SUDO_USER" ]; then
USER_NAME="$SUDO_USER"
else
USER_NAME="$USER"
fi
USER_HOME="$(getent passwd "$USER_NAME" | cut -d: -f6)"
USER_THEME_DIR="$USER_HOME/.config/micro/colorschemes"
USER_SETTINGS="$USER_HOME/.config/micro/settings.json"
ROOT_THEME_DIR="/root/.config/micro/colorschemes"
ROOT_SETTINGS="/root/.config/micro/settings.json"
echo "[+] Installing micro (if missing)..."
if ! command -v micro >/dev/null 2>&1; then
sudo pacman -S --noconfirm micro
else
echo " micro already installed."
fi
echo "[+] Checking theme file..."
if [ ! -f "$THEME_FILE" ]; then
echo "[-] Theme file not found: $THEME_FILE"
exit 1
fi
echo "[+] Installing theme for user ($USER_NAME)..."
mkdir -p "$USER_THEME_DIR"
cp "$THEME_FILE" "$USER_THEME_DIR/"
chown -R "$USER_NAME:$USER_NAME" "$USER_HOME/.config/micro"
echo "[+] Installing theme for root..."
sudo mkdir -p "$ROOT_THEME_DIR"
sudo cp "$THEME_FILE" "$ROOT_THEME_DIR/"
apply_theme () {
local SETTINGS_FILE="$1"
mkdir -p "$(dirname "$SETTINGS_FILE")"
if [ -f "$SETTINGS_FILE" ]; then
if grep -q '"colorscheme"' "$SETTINGS_FILE"; then
sed -i "s/\"colorscheme\": *\"[^\"]*\"/\"colorscheme\": \"CYBRmicro\"/" "$SETTINGS_FILE"
else
sed -i "1s/{/{\n \"colorscheme\": \"CYBRmicro\",/" "$SETTINGS_FILE"
fi
else
cat > "$SETTINGS_FILE" <<EOF
{
"colorscheme": "CYBRmicro"
}
EOF
fi
}
echo "[+] Applying theme for user..."
apply_theme "$USER_SETTINGS"
chown "$USER_NAME:$USER_NAME" "$USER_SETTINGS"
echo "[+] Applying theme for root..."
sudo bash -c "$(declare -f apply_theme); apply_theme '$ROOT_SETTINGS'"
echo "[+] Done."
echo " Theme installed and activated for both user and root."
Screenshots
Checklist
- [ ] Test GTK theme with different apps, Fix toolbar & Right-Click Context_menu in thunar.
- [ ] Improve & Test Stylus css
- [ ] Add the script to micro documentation if stable.
Is there an icon pack that matches the theme, or would we have to produce one?
Hey, @SychoAN ! First of all - WOW!
- GTK: I've been kinda struggling to even start creating that theme, you gave me the push I needed. It's a great starting point, I'll just need to do some minor adjustments, I think.
- Firefox Stylus: Honestly, this is very nice -- I just have to adjust some minor details like giving users option to either use
no0ortransparentas background (img1) + URLs should begr0. But that's on me, I need to update the Design Philosophy document, add color use definitions (like re0=basic text, gr0=links, wh0=metadata, re2=dividers etc.). Honestly I just might as well create an UI library like this, haha, why not - Micro install script: It's nice, but the docs should pretty much make this option obsolete. But would be nice to integrate something like this (maybe with Gum) into the main installer script (when I start working on it).
Thanks for suggestions! I'll try to implement them asap.
Screenshots:
Is there an icon pack that matches the theme, or would we have to produce one?
Hey, @DiegoSof2! Not at the moment, but I'd like to include some (even if it's just a recolor, for starters) at the release of the full GTK theme in v2.0.0.
Hey, @SychoAN! Added a beta version of the full GTK theme. Created with Oomox/Themix tool, which let me recolor the icons.
Since this dotfile config is mostly TUI/CLI-centric, and since GTK 2.0/3.0/3.20 CSS have combined well over 100k lines, I think this is it for a while. It's at least something, future version will be much more refined and based on CYBR UI Library (work in progress).
Thanks again for the push!