-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
How can I style the components / change the SCSS variables ? #747
Comments
As far as I know this is not yet supported, note that this project is in Alpha stage. I have no authority here but as far as I've seen comments you should see this feature in beta or late alpha. Then you'd probably get a service instead of including the scss. |
I understand it's in alpha. I was just not sure whether there is already support for this and I was unable to figure this out. So for now, if I need a workaround, what would that be? |
It's not pretty, but what I do is just overriding the generated css... Which requires important and is quite fiddly to be fair. I'm not sure if there is a way to replace the default values by firing a bash script or something which replaces the values in node_modules. Meh. |
That's sad. I can't even think of doing it and reliably change things. I guess this issue should be open till we have a way to customize the styles in a better way. |
closing this because #123 exists. |
@praveenpuglia #123 is unrelated. It is now closed and there is still no way to style components the variables as intended in this issue description. Is there any news or can we consider reopening? |
@aldo-roman , +1. |
Just don't start commenting on a year old closed bug. In this case people wanted to adjust colours as far as I know right now there is not much support for others, but expect more features once it's all stable 'n stuff. |
@msegers this issue is about overriding default variables (toolbar height, button padding, etc) which are configurable in other frameworks btw (see bootstrap sample above). Can we reopen/consider as a feature request? The issue is not "a year old", come on. |
I found a workaround, which is far better than using
/* css/card.override.css */
.mat-card-header {
margin-bottom: 24px;
}
.mat-card-header .mat-card-title {
font-size: 24px;
}
.mat-card-header .mat-card-subtitle {
font-size: 16px;
}
/* my-component.component.css */
@import 'path/to/css/card.override.css'; Now you will have your custom styles applied to the |
@aldo-roman Well it's not up to me, at time of writing it's over 9 months old which is nearly a year in my head. They will probably provide more but it still is beta. So it won't be a priority soon. |
Updates? Updates... |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
It might be silly to ask but how do I style the components and change values in _variables.scss. For example, for bootstrap, I am doing this.
@import "theme";
@import "../../node_modules/bootstrap/scss/bootstrap";
The theme file contains the modified variables and bootstrap get's compiled with those modifications. How do I achieve something similar here?
The text was updated successfully, but these errors were encountered: