Skip to content

Instantly share code, notes, and snippets.

@pylixonly
Last active September 17, 2024 13:02
Show Gist options
  • Save pylixonly/e20dd0b504efdece9ac91a06c8436265 to your computer and use it in GitHub Desktop.
Save pylixonly/e20dd0b504efdece9ac91a06c8436265 to your computer and use it in GitHub Desktop.
Bunny's color spec, version 3

Extra note:

  • Color values are now required to be hex format (#RRGGBBAA)

Things to consider:

  • Allow comments JSONC, or even JSON5
  • Name conventions on id and display name
  • Read the overrideThemeContexts part
{
    "id": "pylixonly.color.daydream",
    "spec": 3,
    "display": {
        "name": "Daydream",
        "description": "Cafe themed",
        "authors": [
            {
                "name": "pylixonly",
                "id": "your_id_here" // still optional
            }
        ]
    },
    "main": {
        "type": "dark", // only "dark" and "light". bunny will change user's settings to update discord theme once user selected your theme
        "semantic": {
            "SEMANTIC_KEY_HERE": {
                "type": "color", // "color" reference RawColor (may pose a compatibility issue), or "raw"
                "value": "#AABBCCFF", // or a raw color key, can be an array to define
                "opacity": "0.3" // numeral value (theme will invalid if the type is raw and the value has already defined alpha value)
            }
        },
        "raw": { // Avoid using different shades for this
            "RAW_KEY_HERE": "#AABBCCFF"
        },
        "background": { // Optional, and may be optionally "turned off" by the user
            "blur": 1.0,
            "opacity": 1.0,
            "url": "https://the.url.to/the/background/image.png"
        }
    },
    "extras": {
        // extra fields, where themes+ or similar stuff may belong
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment