Select to view content in your preferred language

Import the styles for Calcite Components 5.0

466
3
Jump to solution
02-10-2026 08:37 AM
ForrestLin
Frequent Contributor

Importing the styles for Calcite Components 5.0 doesn't work:

ForrestLin_0-1770741355072.pngForrestLin_1-1770741439790.png

 

0 Kudos
1 Solution

Accepted Solutions
ForrestLin
Frequent Contributor

@fdeters 

Yes, it works.

@import "@esri/calcite-components/main.css";

Thanks

Forrest

View solution in original post

0 Kudos
3 Replies
fdeters
Frequent Contributor

Looks like that documentation page hasn't been updated yet. The package.json for v5.0.0 specifies a "./main.css" export. Try using this import statement instead:

@import "@esri/calcite-components/main.css";
ForrestLin
Frequent Contributor

@fdeters 

Yes, it works.

@import "@esri/calcite-components/main.css";

Thanks

Forrest

0 Kudos
DitwanDPrice
Esri Contributor

Hey Forrest, the “Import the styles” section of the Get Started page has been revised to reflect the updated behavior. Additionally, a note regarding CSS asset imports has been included in the Angular sample app setup instructions.