2shine is built to give you many different customization possibilities. You will need to prepare for your customization by installing Node.js and the dependencies required to convert your changes to CSS and JS.
npm ci
npm install
npm run build-prod
You should now be able to make changes to your own 2shine Theme.
The themes can be found within the theme/ folder."
theme/
theme.scss
dist/theme.min.css
ou can find all the various stylesheets in the src/scss folder.
src/scss
_custom-variables.scss
_custom-pages.scss
In this folder, you will also find files with the dnn prefix. These files are used for making DNN-specific style changes, such as adjustments to the DNN UI.
dnn
Die standardmäsigen SCSS-Variablen findest du im 2shine-Skin-Ordner. Von dort navigiere zu src/scss/_variables.scss. There are variables with the prefix tosic, which means they are prepared variables set to your preferences. Most of the variables are self-explanatory, but we will still briefly look at the important ones.
src/scss/_variables.scss
tosic
$primary
$secondary
$theme-colors
.bg-yourcolor
To learn more about the variables, check the comments in the _custom-variables.scss file or refer to the Sass Bootstrap5 documentation.
Bootstrap variables are predefined variables provided by Bootstrap, which can be used to customize and theme the Bootstrap framework.
Use Bootstrap variables when:
Sass variables are custom variables that you define in your Sass files.
Use Sass variables when:
If you want to change a variable, first try to change it in theme.css. If the variable isn't defined there and there is no Bootstrap variable that can be accessed, make use of the _custom-variables.scss file. There you can directly override existing Sass variables or create your own.
theme.css
This file is used to overwrite Bootstrap variables with your own custom values. These variables are available globally and can be used to customize Bootstrap's default styles.
This file is used to add custom colors and spacing by merging them into Bootstrap's default maps. It allows for optimized and extended spacing and other customizations.
This file leverages CSS variables to define theme-specific customizations that can be applied in the project's root or specific components. It includes Bootstrap's root variables and additional custom variables for theme consistency.