On this page
Loading...
## File structure Utilize our source Sass files to take advantage of variables, maps, mixins, and functions to help you build faster and customize your project. Whenever possible, avoid modifying CoreUI core files. For Sass, that means creating your own stylesheet that imports CoreUI for Bootstrap so you can modify and extend it. Assuming you're using a package manager like npm, you'll have a file structure that looks like this: ```text your-project/ ├── ... ├── node_modules/ │ ├── @coreui/coreui │ │ ├── scss │ │ └── ... │ └── @coreui/angular │ └── ... ├── src │ └── scss │ ├── _custom.scss │ ├── ... │ ├── _variables.scss │ └── styles.scss └── ... ```
## Variable defaults Every Sass variable in CoreUI for Angular includes the `!default` flag allowing you to override the variable's default value in your own Sass without modifying CoreUI source code. Copy and paste variables as needed, modify their values, and remove the `!default` flag. If a variable has already been assigned, then it won't be re-assigned by the default values in CoreUI. You will find the complete list of CoreUI variables in `node_modules/@coreui/coreui/scss/_variables.scss`. Some variables are set to `null`, these variables don't output the property unless they are overridden in your configuration.
You can also find a specific component variables list in **Customizing** section ex.
[Alerts - Customizing](https://coreui.io/angular/docs/components/alerts#customizing)
Here's an example that changes the `background-color` and `color` for the `body` when importing and compiling CoreUI for Angular via npm:
```scss
// _variables.scss
// Default variable overrides
$body-bg: #000;
$body-color: #111;
```