How to Change Termux Font and Color Theme

How to Change Termux Font and Color Theme: Step-by-Step Guide

The default appearance of Termux is simple and functional, but working in a plain black background with default monochrome text can quickly become tiring for your eyes. Customizing your terminal interface with a modern termux theme, custom typography, and crisp color palettes drastically improves code readability and overall user experience. Whether you spend hours writing Python scripts, managing remote SSH servers, or running command-line tools on Android, a personalized workspace makes a massive difference.

In this comprehensive tutorial, you will learn how to change your Termux font and color theme using official add-ons, manual configurations, and custom color properties. We will also cover how to apply the highly popular termux color scheme dracula to give your terminal a slick, dark aesthetic.


Prerequisites Before Changing Your Termux Theme

Before modifying core settings or executing customization scripts, ensure your system is updated and properly configured. Execute the following commands in your current Termux session to prepare your environment:

pkg update && pkg upgrade -y
pkg install curl wget nano -y
termux-setup-storage

Granting storage access allows Termux to interact with local files on your Android device, which is essential if you plan to import custom .ttf font files from your local downloads directory.


Method 1: Change Termux Font and Theme via Termux:Styling

The most straightforward method to modify visual elements without editing configuration files is using the official Termux:Styling add-on. This app integrates directly into the main interface and provides pre-built fonts and color configurations.

Step 1: Install Termux:Styling

Download and install the Termux:Styling application from the exact same source where you installed Termux (e.g., F-Droid or GitHub release releases). Mixing installation sources like Google Play Store and F-Droid causes signature mismatch errors.

Step 2: Access the Styling Menu

  • Long-press anywhere inside the active Termux terminal window.
  • Tap on More... from the contextual menu popup.
  • Select Style.

Step 3: Select Colors and Fonts

Inside the styling menu options:

  • Choose Choose Color to pick from popular terminal color palettes like Solarized, Monokai, Nord, or Gruvbox.
  • Choose Choose Font to select optimized developer fonts such as Anonymous Pro, Fira Code, Hack, or Ubuntu Mono.

The changes apply instantly across all open session tabs once selected.


Method 2: Manually Change Font and Color Theme

If you want exact control over your interface, configuring properties manually is the best option. Termux checks a specific hidden folder located at ~/.termux/ for custom theme variables.

Step 1: Create the Configuration Directory

Run the following command to create the required hidden directory if it does not already exist:

mkdir -p ~/.termux

Step 2: Configure Custom Color Scheme

Termux reads custom color hexadecimal values from a file named colors.properties located in the ~/.termux/ path.

To manually configure a custom theme, open the properties file with the text editor:

nano ~/.termux/colors.properties

Paste your desired color definitions into the file. For developers looking for an elegant dark interface, applying the termux color scheme dracula provides optimal contrast and vibrant syntax highlighting. Add the following exact values:

# Dracula Theme for Termux
background=#282a36
foreground=#f8f8f2
cursor=#f8f8f2

# Normal Colors
color0=#21222c
color1=#ff5555
color2=#50fa7b
color3=#f1fa8c
color4=#bd93f9
color5=#ff79c6
color6=#8be9fd
color7=#bfbfbf

# Bright Colors
color8=#4d4d4d
color9=#ff6e6e
color10=#69ff94
color11=#ffffa5
color12=#d6acff
color13=#ff92d0
color14=#a4ffff
color15=#e6e6e6

Save the changes in Nano by pressing CTRL + O, pressing Enter, and exiting with CTRL + X.

Step 3: Change the Termux Font Manually

Termux uses a standard TrueType Font file named font.ttf stored in the ~/.termux/ folder. You can download and rename any preferred developer font directly into this directory.

For instance, to download and set the JetBrains Mono font automatically via curl, run:

curl -fsSL https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf -o ~/.termux/font.ttf

Step 4: Reload Settings

To render the new typography and visual settings without restarting your session, issue the reload command:

termux-reload-settings
Termux terminal showing Dracula color scheme and JetBrains Mono font output
Terminal visual preview displaying active Dracula theme with custom typography.

Your current active session will instantly refresh to display your new custom termux theme along with high-definition typography.


Method 3: Using Third-Party Scripts (Automated Setup)

If manually copying color codes feels tedious, community-built styling scripts automate the setup process by providing interactive terminal selection menus.

One popular open-source script is C-Style or Termux-Style. Run the following installation commands to launch an interactive menu:

git clone https://github.com/adi1090x/termux-style.git
cd termux-style
./install.sh

Once installed, execute the menu command anywhere:

termux-style

From the interactive prompt, type 1 to explore dozens of visual color palettes or 2 to choose installed developer fonts automatically.


Common Termux Theme Errors and How to Fix Them

During visual configuration, you may encounter output rendering errors or broken settings. Below are common causes and solutions.

Error: "termux-reload-settings: command not found"

Cause: Your core Termux utility package is either outdated or incomplete.

Fix: Reinstall the primary API and core setup packages using the package manager:

pkg install termux-tools -y

Error: Font Changes Do Not Apply After Reload

Cause: The font file is misnamed, uses an unsupported extension (e.g., .otf), or has incorrect system permissions.

Fix: Verify that the font file resides in ~/.termux/ and is strictly named font.ttf in lowercase. Fix file naming and set execution permissions using these steps:

mv ~/.termux/font/*.ttf ~/.termux/font.ttf 2>/dev/null
chmod 644 ~/.termux/font.ttf
termux-reload-settings

Error: Color Properties Show Plain White/Black Text

Cause: Syntax error or missing hash (#) symbols inside your colors.properties file.

Fix: Re-open ~/.termux/colors.properties and ensure each key contains no spaces around the equal sign and uses valid 6-digit hex color formats (e.g., background=#282a36).


Summary Checklist

  • Always place visual configuration files inside the ~/.termux/ directory.
  • Name your font file strictly as font.ttf.
  • Name your palette file strictly as colors.properties.
  • Run termux-reload-settings to apply visual changes without killing running processes.

What to Do Next

Now that your visual setup looks sharp with a functional layout and customized color balance, upgrade your terminal shell functionality by adding prompt icons, autocompletion, and extended command histories.

Check out our step-by-step follow-up guide: How to Install ZSH and Oh My Zsh in Termux to build the ultimate mobile command-line workflow!