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
How to Create a Color Scheme
The entire process for creating a theme is simple:
- Come up with a name for the color scheme, you can even name it after yourself. For this example, let's do:
soho - Add the scheme to the list of other schemes in
apply-cs.css - Also add the scheme to the list in
user.js - Copy an existing color-scheme folder, and turn it into
soho - Edit the colors
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.
apply-cs.css has 3 list, these list make the theme available to:
- the browser
- extensions & websites
- & 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 want to. (use existing wallpapers or add your own)
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 default if you want more control. And catppuccin if you only want to setup colors. For this example, I'm going to assume you are working with default. All files follow the same format, so whatever foundation you choose, you'll be able to follow along.
- 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 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.
These lines above are all you need to create a color scheme, and 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 make sure your theme (example:
soho) is turned on. - Only your colorscheme should be on. Turn other colorschemes off.
- If you followed my recommendation in
Part 1, your Browser should now be red.
replace previews
- Open the browser toolbox (live debugger) with
ctrl+shift+alt+I - By default, you will be on the
InspectorTab. Go to theStyle Editortab. - In
Style Editor, Use the search bar to find yourffu-colorscheme.cssfile. - The colorscheme files are alphabetical order. "YourName" should be at the top of your file.
- Now edit the colors. You'll see the Browser Colors changing with every edit you make.
- Like I said in
Part 1: "these lines are all you need to create a color scheme.."Line 17 to 43 •all the colors for dark mode.Line 48 to 74 •all the colors for light mode.
- You can save your changes straight to the file. Press
ctrl+sor click save next to the file name. - You can also peek at the other
ffu-colorschemethemes in the file list 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.
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 updates of FF ULTIMA you can share it through the Github. You would then be considered a Contributor to 'FF ULTIMA' by providing an alternate Style to many other Users of the theme. And Your Color Scheme will be easily enabled and kept updated with future versions of FF ULTIMA.
To share your theme, you can submit a pull request (recommended) or open an issue, with the uploaded files. See also: Color Scheme Presentation. Remember the folder you copied to create the color scheme folder, 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.