π¨ UI Color Customization
Usage
Enter the devhub_weed folder
Enter the html folder
Open the colors.css file
The part you edit looks like this
:root {
/* custom colors */
/* YOU CAN'T USE A COMMA BETWEEN RGB */
--primary: 253 209 64; /* #fdd140 */
--background: 32 46 59; /* #202e3b */
--disabled: 114 114 114; /* #727272 */
--background-body: 11 19 32; /* #0b1320 */
--background-light: 42 61 78; /* #2a3d4e */
/*!!! YOU MUST USE A COMMA BETWEEN RGB !!!*/
--primary-rgba: 253, 209, 64; /* #fdd140 */
--grid-dark-rgba: 11, 19, 32; /* #0b1320 */
}To customize the UI for yourself, simply edit the RGB color.
The accent color of every window the script draws (the plant panel, the harvest window, the drying rack and packing table, the shop and the dealer, the warehouse marketplace and laptop, the stash and the admin panel) comes from two variables:
- --primary: the accent color. Highlights, active tabs, buttons, progress bars, the selected rows.
- --primary-rgba: the same accent color again, used wherever transparency is needed (glows, gradients, shadows).
The dark panels themselves are part of the design and do not change with this file. --background, --background-body, --background-light, --disabled and --grid-dark-rgba are kept for compatibility with other DevHub scripts.
Watch the format, the two groups are not written the same way. The first group uses spaces between the RGB values (--primary: 253 209 64;), and the -rgba variables use commas (--primary-rgba: 253, 209, 64;). Mixing them up breaks the UI colors.
When you change --primary, change --primary-rgba to the same color.
The file also ships the Tailwind palette (slate, gray, red, green and so on) as reference variables below the custom colors. Those are the fixed semantic colors: green for confirm, red for delete. You normally only touch --primary and --primary-rgba.
Sound and number format
html/config.js holds two more interface options:
window.config = {
soundVolume: 0.25,
numberFormatting: [/\B(?=(\d{3})+(?!\d))/g, " "],
};- soundVolume: volume of the interface sounds, from
0(muted) to1. - numberFormatting: how thousands are separated in prices. The default writes
12 500; replace" "with","for12,500.
No rebuild is needed. Edit the files, restart the resource, and the interface comes back with the new settings.