Comments (3)
This does not solve the issue for you?
from angular-material-css-vars.
Yeah but how to set that number, example 900?
from angular-material-css-vars.
Why would you want to do that? As far as I understand it the the colors are intended to be a continuum from brighter to darker. You can of course just use the hex value of the palettes 900 as base color. But if you really want to do it, you can reassign every default value like so:
$mat-css-default-light-theme: map-merge(
$mat-css-default-light-theme,
(
--palette-primary-500: _mat-css-hex-to-rgb(#THE-HEX-VAL),
// ...
)
);
@include init-material-css-vars();
from angular-material-css-vars.
Related Issues (20)
- Angular 15 support HOT 14
- mat-typography not working anymore
- var(--palette-primary-500-rgb) is not a color. Falling back to "dark" tone. HOT 8
- Is contrast currently broken? HOT 3
- More custom theme ability HOT 3
- V15 MDC Fixes HOT 32
- How to use it with Angular 14 HOT 6
- Opacity Broken in mat-css-color utility HOT 1
- Docs on $mat-css-dark-theme-selector and $mat-css-light-theme-selector not accurate HOT 3
- Legacy Checkbox - checkmark not displayed anymore HOT 1
- Material 15: Usage of default palettes HOT 3
- Foreground and Background mapping HOT 3
- Setting Variables and Styles with default material mixins HOT 4
- v5.0.0-next.0: SassError: Undefined mixin @include app-theme($mat-css-theme); HOT 3
- Allow setting theme on a specific element HOT 3
- Is it possible to disable "isDarkTheme" specific css? HOT 3
- Broken on Angular Material 13 HOT 10
- Angular 13 Support HOT 6
- @mixin init-css-vars HOT 1
- SCSS Import HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-material-css-vars.