dify icon indicating copy to clipboard operation
dify copied to clipboard

[FR] Frontend - Customize theme color of chatbot app.

Open dromerolovo opened this issue 1 year ago • 3 comments

Self Checks

  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] Pleas do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing?

The colors of the chatbot app are static. For example, in the Header component, the class that sets the background color is bg-gradient-to-r from-blue-600 to-sky-500. This distinctively blue color, doesn't blend well with some website's styles or doesn't adhere to the design requirements of the website.

2. Describe the feature you'd like to see

It would be ideal, without having to fork the chat app and manually change the code, to configure the colors in a way that the embedded frame blends better with the website's style without making the customization too complex. I was thinking of adding an extra field in the SettingsModal component, such as "Chat Color Theme".

SettingsModal

3. How will this feature improve your workflow or experience?

It will improve the experience of developers and designers that want to include the iframe into a website that have clear or strict design requirements.

4. Additional context or comments

Examples using free templates of astro:

Before_Tailcast

After_Tailcast

Inverted style:

Inverted_Tailcast

Before_Pinwheel After_Pinwheel

Inverted Style:

Inverted_Pinwheel

@iamjoel Wanted to know what you guys think or what the community, in general, thinks.

5. Can you help us with this feature?

  • [X] I am interested in contributing to this feature.

dromerolovo avatar May 02 '24 06:05 dromerolovo

@dromerolovo Can you share your modification? Thanks

ZuzooVn avatar May 22 '24 15:05 ZuzooVn

@ZuzooVn I haven't had time yet. I'm going to make this this weekend and submit a PR to get feedback.

dromerolovo avatar May 22 '24 15:05 dromerolovo

@ZuzooVn https://github.com/langgenius/dify/pull/4767

dromerolovo avatar May 29 '24 07:05 dromerolovo