# How to Change Default Styles for Headings in Builder.io?

**URL:** <https://forum.builder.io/t/how-to-change-default-styles-for-headings-in-builder-io/6090>\
**Category:** Visual Editor Help\
**Tags:** styling\
**Created:** [August 8, 2024, 9:58am UTC](https://forum.builder.io/t/how-to-change-default-styles-for-headings-in-builder-io/6090 "2024-08-08T09:58:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sheema](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sheema](https://forum.builder.io/u/sheema)\
**Post date:** [August 12, 2024, 9:35am UTC](https://forum.builder.io/t/how-to-change-default-styles-for-headings-in-builder-io/6090/2 "2024-08-12T09:35:51Z")

</div>

Hey @yourator, welcome to the [Builder.io](http://Builder.io) forum. You can set your default styles using Builder’s [design tokens](https://www.builder.io/c/docs/design-tokens) or [Custom CSS.](https://www.builder.io/c/docs/guides/custom-code#custom-css-example)

Here is a general guide you can follow-

### **Option 1: Use Design Tokens**

Design tokens allow you to create consistent styles across your site. In [Builder.io](http://Builder.io), you can use design tokens to define default styles for headings.

1. **Define Design Tokens for Headings:**  
Create a `design-tokens.ts` file if you don’t already have it.

2. **Register Design Tokens with [Builder.io](http://Builder.io):**  
Next, register these design tokens with [Builder.io](http://Builder.io) in your `builder-registry.ts`.

### **Option 2: Use Custom Components**

Create custom components for headings where you can apply your default styles. This allows you to encapsulate the styling within the component itself.

1. **Create a Custom Heading Component:**

### **Option 3: Use Custom CSS**

You can also define global styles in your CSS to ensure consistency across headings.

1. **Set Global Styles in CSS:**

### **Summary**

You have three distinct approaches to choose from:

- **Design Tokens:** Best for maintaining consistency across your site.
- **Custom Components:** Encapsulate styles within reusable components.
- **Custom CSS:** Simple, global styling solution.

Pick the approach that best suits your project’s needs, and apply it accordingly.

For more details, you can refer to the [Custom Components](https://www.builder.io/c/docs/custom-components-setup) and [Design Tokens](https://www.builder.io/c/docs/design-tokens) documentation from [Builder.io](http://Builder.io).

**Note:** My initial post might have been a bit confusing. I have edited my response to make it clearer.

---

_[View the full topic](https://forum.builder.io/t/how-to-change-default-styles-for-headings-in-builder-io/6090)._
