# Style the widgets and pages

## Overview

To apply styles to the widgets and the page itself, the styles must be referenced in the template of the page.

## Procedure

To style your widgets, perform the following:

1. Create a Layout file.\
   For more information, see Sitefinity CMS GitHub sample *Starter template* » [\_Layout.cshtml](https://github.com/Sitefinity/sitefinity-aspnetcore-mvc-samples/blob/gebov/samples-for-13.2/src/starter-template/Views/Shared/_Layout.cshtml).
2. Allow the use of static files.\
   To do this, in the `Startup.cs`, insert the following:\
   `app.UseStaticFiles();`
3. Place your styles and scripts in the `wwwroot` folder.
4. Reference the styles and scripts in the template.\
   For more information about how to do this, see the `_Layout.cshtml`, mentioned above.
