
#  ▄███████████████                   ▄▄▄████████▒░      ▄▄▄
# ████████████████████▒░      ██████████████████▒░   ▄█████████▄
# ░▒▒▒▒▒█████▒▒▒▒▒███▒░        ▒███████████▒▒▒▒▒░  ▄█████████████▄
#      █████████░░▒▒▒░███░   ███▒░▒▒▒▒█████▒░░░░  ██████▀   ▀██████░
#     ████████▒▒░ ░░░ ███▒░  ███▒ ░░░░█████▒░    ██████       ██████▒
#    ▄███▒▒▒▒▒░░     ███▒░  ███▒░     █████▒░    ░██████▄   ▄██████▒░
#    ███▒░░░░░      ▐████▄▄███▒░      ░█████▒░    ░▒█████████████▒▒░
#    ██▒░            ▐███████▒░        ░▒██▒░      ░░▒█████████▒▒░
#    ░▒░              ▒▒▒▒▒▒▒░          ░▒▒░         ░░▒▒▒▒▒▒▒░░░
#     ░               ░░░░░░░            ░░            ░░░░░░░
#          ▄██████▄░ ▄██████▄░ ▄██████▄░ ▄██████▄░ ▄██████▄░
#          ████████▒░████████▒░████████▒░████████▒░████████▒░
#          ▀██████▀░ ▀██████▀░ ▀██████▀░ ▀██████▀░ ▀██████▀░
#           ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░
#          ▄██████▄░ ▄██████▄░ ▄██████▄░ ▄██████▄░ ▄██████▄░
#          ████████▒░████████▒░████████▒░████████▒░████████▒░
#          ▀██████▀░ ▀██████▀░ ▀██████▀░ ▀██████▀░ ▀██████▀░
#           ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░   ░▒▒▒▒▒░
#            ░░░░░  ▄█████████████████████████████▄░ ░░░░░
#                   ███████████████████████████████▒░
#                   ▀█████████████████████████████▀░
#                    ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
#                     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#
#                  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 = "Rainbow theme"
author = "Alex"
id = "p.alex.rainbow"
version = 2
description = ""

[options]
auto_borders = true
center_hints = true
roundedness = 1
scale_text = 1.2
scale_hints = 1.3
weight_text = 900
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 = "#30d944"
on_primary = "#002203" # inherited
primary_container = "#00530f" # inherited
on_primary_container = "#a8f59e" # inherited
inverse_primary = "#006e17" # inherited

secondary = "#c4d000" # inherited
on_secondary = "#303300" # inherited
secondary_container = "#464a00" # inherited
on_secondary_container = "#e3e890" # inherited

tertiary = "#ffb783" # inherited
on_tertiary = "#4f2500" # inherited
tertiary_container = "#6b3a11" # inherited
on_tertiary_container = "#ffdcc5" # inherited

background = "#131313" # inherited
on_background = "#e5e2e1" # inherited

surface = "#131313" # inherited
on_surface = "#e5e2e1" # inherited
surface_variant = "#434749" # inherited
on_surface_variant = "#c4c7c9" # inherited
surface_tint = "#30d944" # inherited
inverse_surface = "#e5e2e1" # inherited
inverse_on_surface = "#313030" # inherited

error = "#ffb4a8" # inherited
on_error = "#51221b" # inherited
error_container = "#6c3830" # inherited
on_error_container = "#ffdad4" # inherited

outline = "#929090cc" # inherited
outline_variant = "#47464666" # inherited
scrim = "#000000" # inherited

surface_bright = "#393939" # inherited
surface_dim = "#131313" # inherited
surface_container = "#1f1f1f" # inherited
surface_container_high = "#292929" # inherited
surface_container_highest = "#343434" # inherited
surface_container_low = "#1b1b1b" # inherited
surface_container_lowest = "#0d0d0d" # inherited

keyboard_surface = "#252525"
keyboard_surface_dim = "#252525"
keyboard_container = "#93ff93"
keyboard_container_variant = "#7de87f" # inherited
on_keyboard_container = "#002204" # inherited
keyboard_press = "#006e17" # inherited
keyboard_container_pressed = "#92909054" # inherited
on_keyboard_container_pressed = "#92909000" # inherited

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

[options.background]
image = "rainbg.webp"
opacity = 0.6
action_bar_opacity = 0.01
cropping = [0, 0, 1, 1]

# -------------------------------------------------------------------
# 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 = "morekey pressed"
asset = "bright.png"

[[matchrules.border]]
selector = "morekey"
asset = "dark.png"

[[matchrules.border]]
selector = "morekeysbox"
asset = "dark.png"

[[matchrules.border]]
selector = "row -1 popup"
asset = "cyan.png"

[[matchrules.border]]
selector = "row -1 pressed"
asset = "cyan.png"

[[matchrules.border]]
selector = "popup"
asset = "altgreen.png"

[[matchrules.border]]
selector = "pressed"
asset = "altgreen.png"

[[matchrules.border]]
selector = "layer -1"
asset = "keyshadow.png"

[[matchrules.border]]
selector = "row -1"
asset = "altgreen.png"

[[matchrules.border]]
selector = "col 9"
asset = "violent.png"

[[matchrules.border]]
selector = "col 8"
asset = "violent.png"

[[matchrules.border]]
selector = "col 7"
asset = "blue.png"

[[matchrules.border]]
selector = "col 6"
asset = "cyan.png"

[[matchrules.border]]
selector = "col 5"
asset = "teal.png"

[[matchrules.border]]
selector = "col 4"
asset = "green.png"

[[matchrules.border]]
selector = "col 3"
asset = "lime.png"

[[matchrules.border]]
selector = "col 2"
asset = "yellow.png"

[[matchrules.border]]
selector = "col 1"
asset = "orange.png"

[[matchrules.border]]
selector = "col 0"
asset = "red.png"

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

[[asset.border]]
name = "cyan.png"
background_tint = "#8affff"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "altgreen.png"
background_tint = "#6bda6b"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "keyshadow.png"
background_tint = "#ffffff"
foreground_tint = "#00000000"
padding = [0, 0, 0, 0]
slicing = [0.321, 0.199, 0.687, 0.764]
gap = [-1.4, 1, -1.4, -1]
target_density = 460

[[asset.border]]
name = "violent.png"
background_tint = "#cb7eff"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "blue.png"
background_tint = "#8383ff"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "teal.png"
background_tint = "#6dffca"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "green.png"
background_tint = "#93ff93"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "lime.png"
background_tint = "#c8ff74"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "yellow.png"
background_tint = "#ffff87"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "orange.png"
background_tint = "#ffbe6b"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "red.png"
background_tint = "#ff5f5f"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "dark.png"
background_tint = "#252525"
foreground_tint = "#a3a3a3d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300

[[asset.border]]
name = "bright.png"
background_tint = "#e1e1e1"
foreground_tint = "#242424d7"
padding = [0, 0, 0, 0]
slicing = [0.425, 0.425, 0.575, 0.575]
gap = [1, 1, 1, 1]
target_density = 300