L
L
lilwings2020-01-18 03:42:42
Angular
lilwings, 2020-01-18 03:42:42

How not to connect a file with variables to each component?

To use variables and mixins that are included in the main scss file, they must also be included in the component itself in the scss file:

@import "~scss/variables";
@import "~scss/mixins";

:host {
  display: grid;
  align-items: center;
  justify-content: center;
}

How can I connect once globally so that all scss components see what is connected to the main scss?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question