Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Angular: v4.1.13 breaks styling #18964

Closed Answered by TobyPerplex
TobyPerplex asked this question in Help
Discussion options

With Angular and Postcss + Tailwind 4, when I upgrade from v4.1.12 to v4.1.13 all styling breaks

On v4.1.12:

<style>
/* src/app/modules/configurator/custom-element/configurator.component.css */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
 :root,
 :host {
 all my vars are here 
 }
}
all my styling is here
</style>

On v4.1.13:

<style>
/* src/app/modules/configurator/custom-element/configurator.component.css */
/*# sourceMappingURL=/configurator.component.css.map */
</style>

Version:

"@tailwindcss/postcss": "4.1.13"
"postcss": "8.5.6"
Angular CLI: 20.3.2
Node: 22.17.0
Package Manager: pnpm 10.2.0
OS: macOS Tahoe 26.0

You must be logged in to vote

Hey, it was due to:

@custom-variant OSdark (@media (prefers-color-scheme: dark));
@custom-variant OSlight (@media (prefers-color-scheme: light));
@custom-variant HDcolor (@media (dynamic-range: high));

which I got from https://github.com/argyleink/open-props/blob/main/src/props.media.css

all I had to do was change the notation:

@custom-variant osDark (@media (prefers-color-scheme: dark));
@custom-variant osLight (@media (prefers-color-scheme: light));
@custom-variant hdColor (@media (dynamic-range: high));

Replies: 1 comment 1 reply

Comment options

Hey! Can you share a minimal reproduction repo so we can take a look?

You must be logged in to vote
1 reply
Comment options

Hey, it was due to:

@custom-variant OSdark (@media (prefers-color-scheme: dark));
@custom-variant OSlight (@media (prefers-color-scheme: light));
@custom-variant HDcolor (@media (dynamic-range: high));

which I got from https://github.com/argyleink/open-props/blob/main/src/props.media.css

all I had to do was change the notation:

@custom-variant osDark (@media (prefers-color-scheme: dark));
@custom-variant osLight (@media (prefers-color-scheme: light));
@custom-variant hdColor (@media (dynamic-range: high));
Answer selected by TobyPerplex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
Converted from issue

This discussion was converted from issue #18963 on September 18, 2025 13:39.

AltStyle によって変換されたページ (->オリジナル) /