Skip to content

CSS vars and CSS functions are not working #174

Open
@beetlegius-somos

Description

@beetlegius-somos

I know the gem is in maintenance mode, so I don't expect you to add support for CSS variables and functions, but you might have enough knowledge on how to workaround it.

We're using tailwindcss, that's using a lot of CSS variables and functions, which are not being replaced in code, generating some HTML like this:

<div style="background-color:var(--color-dark-matter-900);color:var(--color-start-dust-50)">
  <div style="max-width:var(--container-lg);padding:calc(var(--spacing)*4);text-align:center">
    ...
  </div>
</div>

For now I think we'll have to avoid using those classes or generate new ones without the variables for the emails, although it generates duplication.

Do you think we can use something like providers or callbacks to replace those variables somehow? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions