1

I'm trying here something simple. I want to set global variables according to a main class. E.g.:

body.professional {
    $c1: #00B143;
    $c2: #151018;
}
.container {
    color: $c1;
}

Is this possible?

Thanks!

Lucas Veiga
  • 1,758
  • 7
  • 27
  • 45

1 Answers1

0

Got it. Simple.

Build all the css classes in separate file then include it.

body.professional {
    $c1: #00B143;
    $c2: #151018;
    @import 'base.scss';
}

body.clientes {
    $c1: #4A8FE5;
    $c2: #393C42;
    @import 'base.scss';

}
Lucas Veiga
  • 1,758
  • 7
  • 27
  • 45