Create a Color Scheme
A Detailed Guide for creating Color Schemes in FF Ultima 3.0+
Color Scheme Overview
Color Schemes are centralized to 3 files.
1. ffu-internal-appearance.css
This file is the foundation for FF Ultima's custom appearance. All color-schemes are built on top of this custom appearance by overriding colors, borders, shadows, and more. You actually do not need to worry about this file.
2. ffu-colorscheme.css
Each color scheme has a chrome/theme/color-schemes/folder. Inside of this folder you will find a ffu-colorscheme.css file. To create your own color scheme, you will essentially need to recreate this structure, for your own theme.
3. apply-cs.css
This file connects all color-schemes to the browser, by importing them in a series of 3 list.
- the browser
- extensions & all websites
- & wallpapers
The entire process for creating a color-scheme is simple. You come up for a name and a theme. Add the color-scheme to the list of others. Then copy an existing color-scheme to use as a foundation for your new one. Below you'll find a detailed breakdown of the full process.
Enabling your Color Scheme
If you haven't already, open the
chrome/theme/color-schemesfolder. And openapply-cs.cssin any text editor.
There are three list in apply-cs.css. Each list makes the color scheme available to the browser, extensions, and wallpapers. You can use find & replace (ctrl+f) to add your theme into the lists, or do it manually:
- replace "YourName" with the name of your theme (there are 5 YourName's).
- replace "YourWallpaper" with a wallpaper if you'd like (use existing wallpapers or add your own).
- for these examples, I'll create a color-scheme named "soho".
Editting the Color Scheme (Part 1)
In chrome/theme/color-schemes, copy one of the color schemes that you want to use as a foundation. I recommend copying default if you want more control. Or catppuccin if you only want to setup colors. For this example, I'm going to assume you chose default.
- Make a copy of the
default/folder, and change the copies name to the name of your theme (example:soho/). - Inside of the newly made
soho/folder, you'll findffu-colorscheme.css, open it in a text editor. - These lines in the file are really all you need to create a color scheme:
Line 4 •File Desc:sohocolor scheme.Line 17 to 43 •all the colors for dark mode.Line 48 to 74 •all the colors for light mode.
Any further modification to the lines beyond that are for finer adjustments and other custom modifications. I recommend creating the color scheme inside of Firefox rather than a text editor. That way you can setup the colors and modifications live and view your changes in real-time. I'll show you how below.
I also recommend doing this before we continue: On Line 17, edit --uc-browser-color, change it to red. You'll see why later.
Editting the Color Scheme (Part 2)
All that's left is to setup the colors. The best way to do that is live, inside of Firefox. We'll be doing this with the help of Firefox's built-in Browser Toolbox. You can close the theme files. And Start (Restart) Firefox to continue.
- In Firefox, go to the about:config page and enable your color-scheme (example:
user.theme.soho). Turn all other color-schemes off. - If you followed my recommendation in
Part 1, your Browser should now be red. - Open the browser toolbox (live debugger) with
ctrl+shift+alt+I - By default, it may be on the
InspectorTab. Go to theStyle Editortab. - In
Style Editor, Use the search bar to find yourffu-colorscheme.cssfile. - The color schemes all have the same name but "YourName" should be at the top of your file.
All that's left to do is pick your colors and create your look. You can save your changes to the file by pressing ctrl+s or clicking save next to the file name. You can also peek at the other ffu-colorscheme theme files for inspiration. You can undo & redo mistakes with ctrl+z & ctrl+y.
Fine-tuning Appearances (optional)
- Beyond line 78, of the color scheme file.. You'll see how the color scheme overrides existing firefox variables to setup all of the colors.
- You can make the browser as ugly, or as pretty, as you want it to be.
- Even further, you can control "when" and "where" the colors are applied to "what".
- Most color schemes keep the same border-radius (--uc-button-border-radius) for buttons, you don't have to.
- Most color schemes keep the same Custom Icons. You don't have to.
- You can even delete everything under line 78 & let FF Ultima handle the rest (falling back to ffu-internal-appearance.css to fill in the details)
Finalizing your Color Scheme
Now that you have your Shiny New Theme, you can switch between your theme & others, anytime, in about:config.
Note: If you would like your theme to be included in future versions of FF ULTIMA you can share it through the Github. You would then be considered a Contributor for providing an alternate style that many Users of the theme may enjoy.
To share your theme, you can submit it via pull request (recommended). See also: Color Scheme Presentation. Remember the folder you copied to create the color scheme? Use that as a template to present the Color Scheme to other Users. Credit Yourself, and provide more details if you want to.
With that said, I'll take care of the rest. Best regards, Soulhotel.