You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
We are building our own token based theming with custom tokens named by our department. Then we translate them to Material 3 color palettes with the var() function of CSS. The colorpalettes will be the implemented like following:
But the mat.theme mixin generates transparencies of neutral-0 which doesn't work, because the is a function which converts the Hex-Color into RGB and then sets the transparency.
Reproduction
Generate a theme with ng generate @angular/material:theme-color
Change the neutral with hue 0 to a CSS variable which you have defined at root level and set its color to e.g. #000000
start the app with
inspect the the --mat-sys-level variables
Expected Behavior
You should be able to insert the transparency RGB colors needed for the --mat-sys-level1 variables into the mat.theme mixin to get working box shadows for e.g. buttons.
Actual Behavior
Instead of a fancy transparency the var(--my-neutral-0) will be shown and the box shadow looks really dark deep and black
Environment
Angular: 19.1.5
CDK/Material: 19.1.3
Browser(s): Google Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows
The text was updated successfully, but these errors were encountered:
Is this a regression?
The previous version in which this bug was not present was
No response
Description
We are building our own token based theming with custom tokens named by our department. Then we translate them to Material 3 color palettes with the
var()
function of CSS. The colorpalettes will be the implemented like following:But the
mat.theme
mixin generates transparencies ofneutral-0
which doesn't work, because the is a function which converts the Hex-Color into RGB and then sets the transparency.Reproduction
ng generate @angular/material:theme-color
neutral
with hue0
to a CSS variable which you have defined at root level and set its color to e.g.#000000
--mat-sys-level
variablesExpected Behavior
You should be able to insert the transparency RGB colors needed for the
--mat-sys-level1
variables into themat.theme
mixin to get working box shadows for e.g. buttons.Actual Behavior
Instead of a fancy transparency the
var(--my-neutral-0)
will be shown and the box shadow looks really dark deep and blackEnvironment
The text was updated successfully, but these errors were encountered: