Change default email text color in SAKURA theme

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pehoma
    Member
    • Aug 2022
    • 64

    #1

    Change default email text color in SAKURA theme

    Hello everyone,

    I would like to ask if there is a possibility to modify the default text color when composing an email in the system. We are using the SAKURA theme, and currently the text color is grey, which is quite hard to read.
    We would like to change it to black.

    Is there any configuration setting or CSS customization that could achieve this?

    Thank you in advance for your help.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9248

    #2
    Could you attach a screenshot? It should not be hard to read. Maybe you have some customization.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • pehoma
      Member
      • Aug 2022
      • 64

      #3
      Here is a screenshot
      Attached Files

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9248

        #4
        It's not like that in the out-of-the-box version.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • pehoma
          Member
          • Aug 2022
          • 64

          #5
          But we did not change anything in the CSS. But that means there is no configuration in the UI to modify text color, correct? So we will change the CSS

          Comment

          • pehoma
            Member
            • Aug 2022
            • 64

            #6
            From what I understand, starting with version 9.x the custom CSS handling has changed — we now need to register our own CSS via client.json instead of using the old custom.less method.

            Here’s the approach I came up with:
            1. Create custom CSS file
              Path: client/custom/css/email-editor.css
            Content:

            /* Force default black text in WYSIWYG editor (Summernote) */
            .note-editor .note-editable {
            color: #000000 !important;
            }
            /* For cases where the editor uses a direct editable container */
            .note-editable {
            color: #000000 !important;
            }

            2. Register the CSS in client.json
            Path: custom/Espo/Custom/Resources/metadata/app/client.jsonContent:

            {
            "cssList": [
            "__APPEND__",
            "client/custom/css/email-editor.css"
            ]
            }

            3. Rebuild
            Go to Administration → Clear Cache and Rebuild, then refresh the browser cache.

            Question:
            Is this the correct and recommended way in 9.1.8 to set the default text color in the email composer to black, or is there a better approach in the current version?

            Thanks in advance!

            Comment

            • yuri
              EspoCRM product developer
              • Mar 2014
              • 9248

              #7
              There was no any change.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • yuri
                EspoCRM product developer
                • Mar 2014
                • 9248

                #8
                > Is this the correct and recommended way in 9.1.8 to set the default text color in the email composer to black

                There should not be the need to change the color for email body. What you do is wrong. There's some reason why it displays gray for you.

                > the old custom.less method.

                There was not such a method.
                If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                Comment

                Working...