Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add font colors to config.toml #976

Merged
merged 2 commits into from
May 22, 2024
Merged

Add font colors to config.toml #976

merged 2 commits into from
May 22, 2024

Conversation

hayescode
Copy link
Contributor

Enable option to change primary/secondary font colors for light/dark mode. Useful when using non-standard background colors.

@tpatel @willydouhard Need your guidance here as I'm not a frontend expert and permission issues prevent me from fully testing.

    [UI.theme.light.text]
        #primary = "#212121"
        #secondary = "#616161"
    [UI.theme.dark.text]
        #primary = "#EEEEEE"
        #secondary = "#BDBDBD"

Resolves #673

Example before this PR aims to solve. when setting light mode with the below options:
image
Settings:

[UI.theme.light]
    background = "#17234E"
    paper = "#1F397F"

    [UI.theme.light.primary]
        main = "#f5f5f5"
        dark = "#00CED1"
        light = "#D3D3D3"

@hayescode hayescode marked this pull request as ready for review May 9, 2024 13:07
Copy link
Collaborator

@tpatel tpatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution ✨

@tpatel tpatel merged commit 2c74e4d into Chainlit:main May 22, 2024
4 checks passed
@hayescode hayescode deleted the font_colors branch May 22, 2024 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hex Color Override Improvements in config.toml
2 participants