-
Notifications
You must be signed in to change notification settings - Fork 345
Adding A Theme
Oren Farhi edited this page Nov 3, 2017
·
3 revisions
Echoes Player theme is implemented with css variables.
The main and only variables which are used all over the app, are defined under the "body" element.
You can easily inspect the application via Chrome devtools (or other browser's devtool) and inspect the "body" element for the css vars, i.e:
Please submit a new issue or a pull request (preferred) with a suggested theme applied to the css variables.
- create a new
your-theme-name.scss
file under css/themes - copy/paste the default theme from
app/app.component.scss
. - create your theme under the
body.your-theme-name
selector.
example:
// if you want to include colors from sass variables
@import '~css/echoes-variables.scss';
body.galaxy {
--brand-primary: $brand-primary;
--brand-secondary: $brand-secondary;
/* other variables you want to customise */
}
Please append your-theme-name
to the end of the array of themes at src/app/app.themes.ts
.
Themes are ordered by alphabet order (so, there is no meaning for position within the array).
example:
export const themes = [
'eighties',
'fusion',
'galaxy'
];