Skip to content

[create-theme]: Custom uiFont #1462

@lindongbin

Description

@lindongbin

Name

Custom uiFont

Description

Customize the interface font, the default is consistent with the serif font in the settings.

Homepage

No response

Image

https://006750.xyz/customuifont.png

Type

  • JSON Color Theme

Theme Styles

:root:has(#theme-Custom-uiFont[theme-custom_uifont-default="Serif"]) {
    * {font-family: serif !important;}
}
:root:has(#theme-Custom-uiFont[theme-custom_uifont-default="Custom"]) {
    * {font-family: var(--theme-custom_uifont-custom) !important; text-shadow: var(--theme-custom_uifont-shadow) !important;}
}

Readme

Customize the interface font, the default is consistent with the serif font in the settings.

Preferences

[
    {
        "property": "theme.custom_uifont.default",
        "label": "Select Font:",
        "type": "dropdown",
        "defaultValue": "Serif",
        "options": [
            {
                "label": "Serif",
                "value": "Serif"
            },
            {
                "label": "Custom",
                "value": "Custom"
            }
        ]
    },
    {
        "property": "theme.custom_uifont.custom",
        "label": "font-family:",
        "type": "string",
        "placeholder": "sans-serif",
        "defaultValue": "sans-serif"
    },
    {
        "property": "theme.custom_uifont.shadow",
        "label": "text-shadow:",
        "type": "string",
        "placeholder": "0.01em 0.01em 0.05em #7C7C7C70",
        "defaultValue": "none"
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-themeSubmit a theme to be added to the theme library

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions