add tailwind jit as a first element in the header

Created on 5 June 2024, 26 days ago
Updated 6 June 2024, 25 days ago
πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Osama Nuserat
  • Issue was unassigned.
  • Status changed to Needs review 26 days ago
  • tailwind jit styles was added as a last element in the head section so we couldnt do general styles for the h2 , h3 ..etc it was always taking the inherent style for them so we had to add it first element inside the head so our styles files comes next and override the jit styles file

  • πŸ‡¦πŸ‡ΉAustria hudri Austria

    This is by design. Tailwind JIT is operating on theme level, so it always should load last, after any CSS from parent themes or modules.

    To solve your problem, use the @layer base { ... } directive from Tailwind, which orders your CSS styles.

    Or, if you don't want Tailwind's base styles at all, better do not include it in the Tailwind CSS input file:

    @tailwind base; // <<< remove this line
    @tailwind components;
    @tailwind utilities;
    
  • Status changed to Closed: won't fix 25 days ago
  • πŸ‡¦πŸ‡ΉAustria hudri Austria
Production build 0.69.0 2024