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

Accessing derived variable - possible? #129

Open
OrenLX opened this issue Nov 19, 2020 · 0 comments
Open

Accessing derived variable - possible? #129

OrenLX opened this issue Nov 19, 2020 · 0 comments

Comments

@OrenLX
Copy link

OrenLX commented Nov 19, 2020

Let's say I have a variable:
$primary: color(indigo);

The color(..) is a function which returns hex value from the color palette I've defined somewhere else:
indigo: ( lighter: #f4f5fa, light: #b3bcf5, base: #5c6ac4, dark: #202e78, darker: #000639, text: #3e4155, ),

when I try to use it inside vue component, in a way like
color: $primary

But when I inspect it on my browser it's not getting me the hex value I mapped - which should be #5c6ac4, instead I get literally the function, like: color: color(indigo).

Is that possible the resource loader would pre-compile the variable before passing it down to the vue components?

Thank you!

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