Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use scss var in fill and stroke #39

Open
josepotal opened this issue Jan 31, 2020 · 0 comments
Open

Cannot use scss var in fill and stroke #39

josepotal opened this issue Jan 31, 2020 · 0 comments

Comments

@josepotal
Copy link

I was trying to use the a scss variable var(--text) in the fill attribute, like so:

g
        [ class [ "x-units" ] ]
        [ text_
            **[ fill  "var(--text)"]**
            [ text "Day" ]
        ]

I ended up using:
attribute "fill" "var(--text)"

It would be nice to have a type inside the Paint type to handle the scss variables. Like the svg docs say:

" You can use the same css color naming schemes that you use in HTML, whether that's color names (that is red), rgb values (that is rgb(255,0,0)), hex values, rgba values, etc."

(https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Fills_and_Strokes)

As the scss properties also include scss variables (https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant