
#  ▄███████████████                   ▄▄▄████████▒░      ▄▄▄
# ████████████████████▒░      ██████████████████▒░   ▄█████████▄
# ░▒▒▒▒▒█████▒▒▒▒▒███▒░        ▒███████████▒▒▒▒▒░  ▄█████████████▄
#      █████████░░▒▒▒░███░   ███▒░▒▒▒▒█████▒░░░░  ██████▀   ▀██████░
#     ████████▒▒░ ░░░ ███▒░  ███▒ ░░░░█████▒░    ██████       ██████▒
#    ▄███▒▒▒▒▒░░     ███▒░  ███▒░     █████▒░    ░██████▄   ▄██████▒░
#    ███▒░░░░░      ▐████▄▄███▒░      ░█████▒░    ░▒█████████████▒▒░
#    ██▒░            ▐███████▒░        ░▒██▒░      ░░▒█████████▒▒░
#    ░▒░              ▒▒▒▒▒▒▒░          ░▒▒░         ░░▒▒▒▒▒▒▒░░░
#     ░               ░░░░░░░            ░░            ░░░░░░░
#          ▄██████▄░ ▄██████▄░ ▄██████▄░ ▄██████▄░ ▄██████▄░
#          ████████▒░████████▒░████████▒░████████▒░████████▒░
#          ▀██████▀░ ▀██████▀░ ▀██████▀░ ▀██████▀░ ▀██████▀░
#           ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░
#          ▄██████▄░ ▄██████▄░ ▄██████▄░ ▄██████▄░ ▄██████▄░
#          ████████▒░████████▒░████████▒░████████▒░████████▒░
#          ▀██████▀░ ▀██████▀░ ▀██████▀░ ▀██████▀░ ▀██████▀░
#           ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░
#            ░░░░░  ▄█████████████████████████████▄░ ░░░░░
#                   ███████████████████████████████▒░
#                   ▀█████████████████████████████▀░
#                    ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
#                     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#
#                  FUTO Keyboard Theme Configuration
#                        Format version: 1.0
#
# Although there are comments to help you, please check our guide for
# more information. It can be found at:
#                      https://docs.keyboard.futo.tech/theme/advanced
#
# If blindly editing configuration files isn't your thing, there is a
# much easier way which is our theme editor web app. You can see live
# realtime previews of the keyboard with different sizes or languages
# as well as an easy editing interface. Try it out at:
#                             https://keyboard.futo.tech/theme-editor
#
# Have fun theming!
# -------------------------------------------------------------------

name = "Gruvbox Rainbow"
author = "MelonSteak"
id = "futo.gruvbox.rainbow"
version = 2
description = "Gruvbox rainbow theme for Futo. Paired with courierprime font. Color based on https://github.com/morhetz/gruvbox"

[options]
auto_borders = true
center_hints = false
roundedness = 0.5
scale_text = 1
scale_hints = 1
weight_text = 400
weight_hints = 500

# -------------------------------------------------------------------
# There are many colors here, so it'll likely be difficult for you to
# edit them by hand. We would recommend you to use a Material 3 color
# generator or our theme editor linked above. Color format: #RRGGBBAA
# If you change a color, remove its "# inherited" comment if present.
# -------------------------------------------------------------------

[colors]
primary = "#fe8019"
on_primary = "#1d2021"
primary_container = "#504945"
on_primary_container = "#fe8019"
inverse_primary = "#504945"

secondary = "#b8bb26"
on_secondary = "#1d2021"
secondary_container = "#504945"
on_secondary_container = "#b8bb26"

tertiary = "#d3869b"
on_tertiary = "#1d2021"
tertiary_container = "#504945"
on_tertiary_container = "#d3869b"

background = "#3c3836"
on_background = "#d5c4a1"

surface = "#282828"
on_surface = "#fabd2f"
surface_variant = "#3c3836"
on_surface_variant = "#fe8019"
surface_tint = "#fe8019" # inherited
inverse_surface = "#fbf1c7"
inverse_on_surface = "#504945"

error = "#fabd2f"
on_error = "#1d2021"
error_container = "#504945"
on_error_container = "#fabd2f"

outline = "#fe8019"
outline_variant = "#47474666" # inherited
scrim = "#1d2021"

surface_bright = "#393939" # inherited
surface_dim = "#1d2021"
surface_container = "#353535" # inherited
surface_container_high = "#404040" # inherited
surface_container_highest = "#4c4c4c" # inherited
surface_container_low = "#313131" # inherited
surface_container_lowest = "#242424" # inherited

keyboard_surface = "#282828"
keyboard_surface_dim = "#242424" # inherited
keyboard_container = "#db4740"
keyboard_container_variant = "#7c6f64"
on_keyboard_container = "#fbf1c7"
keyboard_press = "#db4740"
keyboard_container_pressed = "#fe801954" # inherited
on_keyboard_container_pressed = "#fe801900" # inherited

[options.font]
font = "courierprime.ttf"

[options.background]
image = "bg.png"
opacity = 1
action_bar_opacity = 0.5
cropping = [0.005, 0.079, 0.99, 0.981]

# -------------------------------------------------------------------
# Matchrules will apply a key border or icon to a group of keys based
# on the selector.  They are order-dependent, only the first matching
# rule will be applied.
# -------------------------------------------------------------------

[[matchrules.border]]
selector = "normal pressed"
asset = "normal-pressed.png"

[[matchrules.border]]
selector = "action pressed"
asset = "action-pressed.png"

[[matchrules.border]]
selector = "spacebar pressed"
asset = "spacebar-pressed.png"

[[matchrules.border]]
selector = "functional pressed"
asset = "functional-pressed.png"

[[matchrules.border]]
selector = "action"
asset = "action.png"

[[matchrules.border]]
selector = "spacebar"
asset = "spacebar.png"

[[matchrules.border]]
selector = "normal"
asset = "normal.png"

[[matchrules.border]]
selector = "functional"
asset = "functional.png"

# -------------------------------------------------------------------
# All image assets used above should have a corresponding config here
# -------------------------------------------------------------------

[[asset.border]]
name = "action.png"
background_tint = "#ffffff"
foreground_tint = "#282828"
padding = [0, 0, 0, 0]
slicing = [0.162, 0.13, 0.84, 0.744]
gap = [1, 1, 1, 1]
target_density = 640

[[asset.border]]
name = "spacebar.png"
background_tint = "#ffffff"
foreground_tint = "#282828"
padding = [0, 0, 0, 0]
slicing = [0.266, 0.193, 0.738, 0.552]
gap = [1, 1, 1, 1]
target_density = 640

[[asset.border]]
name = "normal.png"
background_tint = "#ffffff"
foreground_tint = "#fbf1c7"
padding = [0, 0, 0, 0]
slicing = [0.177, 0.172, 0.806, 0.733]
gap = [1, 1, 1, 1]
target_density = 640

[[asset.border]]
name = "functional.png"
background_tint = "#ffffff"
foreground_tint = "#fbf1c7"
padding = [0, 0, 0, 0]
slicing = [0.182, 0.155, 0.819, 0.721]
gap = [1, 1, 1, 1]
target_density = 640

[[asset.border]]
name = "functional-pressed.png"
background_tint = "#ffffff"
foreground_tint = "#282828"
padding = [0, 0, 0, 0]
slicing = [0.101, 0.103, 0.873, 0.903]
gap = [1, 1, 1, 1]
target_density = 640

[[asset.border]]
name = "normal-pressed.png"
background_tint = "#ffffff"
foreground_tint = "#282828"
padding = [0, 0, 0, 0]
slicing = [0.124, 0.116, 0.859, 0.872]
gap = [1, 1, 1, 1]
target_density = 640

[[asset.border]]
name = "spacebar-pressed.png"
background_tint = "#ffffff"
foreground_tint = "#000000"
padding = [0, 0, 0, 0]
slicing = [0.253, 0.145, 0.704, 0.676]
gap = [1, 1, 1, 1]
target_density = 640

[[asset.border]]
name = "action-pressed.png"
background_tint = "#ffffff"
foreground_tint = "#282828"
padding = [0, 0, 0, 0]
slicing = [0.13, 0.124, 0.85, 0.852]
gap = [1, 1, 1, 1]
target_density = 640