Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add prebuilt themes with custom properties #2977

Merged
merged 1 commit into from
Dec 2, 2021
Merged

feat: add prebuilt themes with custom properties #2977

merged 1 commit into from
Dec 2, 2021

Conversation

yggg
Copy link
Contributor

@yggg yggg commented Dec 2, 2021

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

Adds {auth,bootstrap,theme}/styles/prebuilt/components-custom-properties.scss to separate theme files from components styles. This way user could include component styles once, and then add one or more theme files that only contain theming properties settings.

Usage

@yggg yggg merged commit ff0b034 into akveo:master Dec 2, 2021
@yggg
Copy link
Contributor Author

yggg commented Dec 2, 2021

How to use

In the styles entry of angular.json replace ./node_modules/@nebular/theme/styles/prebuilt/<theme-name>.css line with two following lines:

"./node_modules/@nebular/theme/styles/prebuilt/<theme-name>-custom-properties.css",
"./node_modules/@nebular/theme/styles/prebuilt/components-custom-properties.css",

<theme-name> is the file name of the theme you use, e.g. default or dark.

If you use multiple prebuilt themes include all themes you need and then add "./node_modules/@nebular/theme/styles/prebuilt/components-custom-properties.css". For example to enable default and dark themes add:

"./node_modules/@nebular/theme/styles/prebuilt/default-custom-properties.css",
"./node_modules/@nebular/theme/styles/prebuilt/dark-custom-properties.css",
"./node_modules/@nebular/theme/styles/prebuilt/components-custom-properties.css",

katebatura pushed a commit to katebatura/nebular that referenced this pull request Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant