Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

150
Vistas
Vue 3 get scss variable

I have some struggles with importing scss variable into my Vue 3 app. I have gloabal variable defined in colors like $some-class-danger or $some-class-success.

So I would need to import only $some-class and add danger or success property dynamicly.

So for now I have something like:

<style scoped lang="scss">
  @import "@/scss/variables/variables";
 
  .drop-color{
    color: $some-class-danger;
  }
</style>

So this works, but I need it to have v-bind(label) and looks like:

 <style scoped lang="scss">
      @import "@/scss/variables/variables";
     
      .drop-color{
        color: $some-class- v-bind(label);
      }
    </style>

but it's not working that way, any ideas how to fix it?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda