Hi @Atul Upadhye ,
Thank you for posting in this community.
a) For guest users, custom CSS may not be applied consistently due to permission settings or restrictions in SharePoint. Ensure that the guest users have the necessary permissions to access the custom CSS files and that the CSS is included in a way that is accessible to them.
b) The inconsistency in applying custom CSS across different SharePoint templates could be due to the varying structures and styles of those templates. Each template may have its own set of CSS classes and styles, which can affect how your custom CSS interacts with them. It's important to test and adjust your CSS for each specific template to ensure compatibility.
c) When overriding or extending SharePoint's provided CSS class names, be cautious as these class names may change in future updates. It's advisable to avoid relying too heavily on specific class names and instead use more general selectors or custom classes to minimize the risk of your styles breaking with updates.
References:
- Use CSS to brand SharePoint pages
- Recommendations for working with CSS in SharePoint Framework solutions
- SharePoint site branding and page customization solutions
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.