Skip to content

[FEATURE] CSS variables #399

@florenthobein

Description

@florenthobein

Did you already consider including the JS config variables in the generated lib, as css variables?

In my projects, I include the generated output of a configured tailwind as a css library, then extend it with targeted css, and I'd love to be able to make use of, say, colors as css variables.

Ex:

In Tailwind config:

let colors = {
  ...
  'black': '#22292f',
  ...
}

would generate in the css:

:root {
  --color-black: #22292f;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions