Declutter template

I am trying to create a text divider template but i am having a hard time extracting the font size from a variable,would like to be able to extract the color also i need help.
Thanks

txt_divider:
      card:
        type: entities
        entities:
          - type: custom:text-divider-row
            text: '[[var_divider_text]]'
            card_mod:
              style: |
                .text-divider span {
                    background-color: #111111 !important;
                    padding: 2px !important;
                      }
        card_mod:
          style: |
            ha-card {
              background: none;
              box-shadow: none;
              border: none;
              --text-divider-color: #8Ab4f8 ;
              --text-divider-font-size:'[[var_text_divider_font_size]]';
              }

Hi Wayne, it’s difficult to help you if you paste that text like that.
Have a look at this how to do it properly: How to help us help you - or How to ask a good questionFormat it properly

Sorry Nick rookie mistake.I am still learning