# Adding custom CSS to your theme

CSS (Cascading Style Sheets) is coded file that selects elements of your page and controls their presentation. Think of your custom template's HTML as the bones of your website and the CSS as the skin of your site.

Please refer this article from Shopify for Adding custom CSS to your theme: [https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css](https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css)

{% embed url="https://www.youtube.com/embed/jDdnFSwhjcc" %}

## Add Custom Css in Theme Settings

Custom CSS can be added to your entire theme that affects all pages in your online store except the **Checkout** page. For example, you can change the way that buttons are displayed across your entire store.

**Steps:**

1. In your Shopify admin, go to **Online Store** > **Themes**.
2. Find the theme that you want to edit, and then click **Customize**.
3. Click **Theme settings -> CUSTOM CSS**.
4. Add your code and click **Save**.

<figure><img src="https://3284033180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fag3h7ZduRGWlquTgGUHi%2Fuploads%2FccGTu5m6rRX6jLirPBAf%2Fcustom-css.jpg?alt=media&#x26;token=7638af44-29eb-4b7b-af59-fde8e5c784d2" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Your css will be saved in **settings\_data.json** file
{% endhint %}

<figure><img src="https://3284033180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fag3h7ZduRGWlquTgGUHi%2Fuploads%2FRmaZWhGQIgnaDShVqqRU%2Fcustom-css-2.jpg?alt=media&#x26;token=d3adf465-b901-44a4-aa55-3f14f399a75e" alt=""><figcaption></figcaption></figure>

## Add Custom Css in Section

Custom CSS can also be added to a specific section of your theme. For example, you can apply a custom font size or a background color to a single section.

**Steps:**

1. In your Shopify admin, go to **Online Store** > **Themes**.
2. Find the theme that you want to edit, and then click **Customize**.
3. Click the section that you want to add CSS to.
4. At the bottom of the section properties panel, click **Custom CSS**.
5. Add your code and click **Save**.

<figure><img src="https://3284033180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fag3h7ZduRGWlquTgGUHi%2Fuploads%2Ff4U01jOEIdxTbG6bNweo%2Fcustom-css-3.jpg?alt=media&#x26;token=1bf1158c-d158-454d-b1df-42614ee9bb1e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Your css will be saved in **index.json** file
{% endhint %}

<figure><img src="https://3284033180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fag3h7ZduRGWlquTgGUHi%2Fuploads%2Ftkk0Yu8FMSCckoEItCX7%2Fcustom-css-4.jpg?alt=media&#x26;token=d02f6f01-17de-4f2a-aeed-42d51df979b2" alt=""><figcaption></figcaption></figure>
