Skip to content

support tailwind JIT from typescript tailwind.config.ts  #24943

Closed
@burner-account

Description

@burner-account

Command

serve

Description

With tailwind 3.3 there is the possibility to use a typescript tailwind.config.ts.

I would like to be able to pass my tailwind config around via InjectionToken, e.g. feed a BreakpointObserver with tailwind configuration values.

While JIT compiling tailwind css works great with a JS config, a TS config file currently seems to be ignored.


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 15.2.4
Node: 18.10.0
Package Manager: npm 9.6.2
OS: linux x64

Angular: 15.2.5
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.4
@angular-devkit/build-angular   15.2.4
@angular-devkit/core            15.2.4
@angular-devkit/schematics      15.2.4
@angular/cli                    15.2.4
@schematics/angular             15.2.4
ng-packagr                      15.2.2
rxjs                            7.8.0
typescript                      4.9.5

Describe the solution you'd like

Well. Whatever you did to support tailswind in v12, please extend it to allow TS configurations ;)

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions