> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/product/page-builder/page-builder-overview-of-key-features/updating-page-styling-using-the-style-editor.md).

# Configure Styling

You can update your page's look and feel using CSS from the style editor in the Page Builder.

Open the style editor by clicking on Style in the top navigation. Once the Style editor is open, you can add the relevant CSS.

<figure><img src="https://3320508512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAw9J8ugfVIqzNtzPQiWO%2Fuploads%2Fgit-blob-914299fd30d2f3107b5c096211bbdd0034600679%2Fimage%20(57).png?alt=media" alt=""><figcaption></figcaption></figure>

You can preview what your page will look like on Mobile or Tablet by selecting the device.

<figure><img src="https://3320508512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAw9J8ugfVIqzNtzPQiWO%2Fuploads%2Fgit-blob-da98eacaefc30958489db62400f87155578da929%2Fimage%20(59).png?alt=media" alt=""><figcaption></figcaption></figure>

Don't forget to save any edits you make.

### Using Global Styles in Limio

You can create a global stylesheet and reuse it across multiple pages by importing it into each page’s style editor. This helps keep styling consistent and easier to maintain.

Follow the steps below to set this up.

#### 1. Create your global CSS file

Start by creating a CSS file that contains styles to be shared across pages, such as base typography, design tokens, and common components.

Example:

```
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #1a1a1a;
}

/* ===== Design tokens ===== */
:root {
  --color-primary: #0055ff;
  --color-secondary: #00a3a3;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
}

/* ===== Shared components ===== */
.button {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  background: var(--color-primary);
  color: white;
  border: none;
}

/* ===== more global styles ===== */
...

```

#### 2. Upload the stylesheet as an asset

1. In the Limio sidebar, navigate to **Assets**.
2. Create a new asset (for example, **Global Styles**).
3. Drag and drop your global CSS file into the asset upload area.
4. Save the asset.
5. Copy the asset URL from the clipboard icon on the right-hand side.

<figure><img src="https://3320508512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAw9J8ugfVIqzNtzPQiWO%2Fuploads%2Fgit-blob-4ab8b9ea2ee5e1ef68a755a9946d24165f9bd9a6%2FScreenshot%202026-01-16%20at%2012.13.25.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 3. Import the global stylesheet into a page

1. Navigate to the page where you want to apply the global styles.
2. Open the page’s **Style Editor**.
3. Import the global stylesheet using the asset URL you copied, for example:

```css
@import url("https://<your-limio-domain>/public/<asset-id>/global.css");
```

<figure><img src="https://3320508512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAw9J8ugfVIqzNtzPQiWO%2Fuploads%2Fgit-blob-bfc125bea58c9b67a7f73484b42a72a76d8914eb%2Fimage%20(145).png?alt=media" alt=""><figcaption></figcaption></figure>

Replace the URL in the example with the asset URL that you copied.

Put the `@import` line before all other CSS in the Style Editor. A browser ignores an `@import` rule that comes after a style rule or after another at-rule, such as `@font-face`.

The Style Editor saves the CSS of one page only. To use the global stylesheet on more than one page, add the same `@import` line to the Style Editor of each page.

#### 4. Verify the styles

Once imported, the global styles should be applied to the page. You can still add page-specific styles below the import to override or extend the global styles as needed.

### Use a custom font

Limio has no design token for the font family. Set the font with an `@font-face` rule and a `font-family` rule in your CSS.

1. In **Assets**, upload the font file. Assets accept `.woff2`, `.woff`, `.ttf`, `.otf` and `.eot` files.
2. Copy the asset URL of the font.
3. In the Style Editor, or in your global stylesheet, add the rules. Replace `FONT_URL` with the asset URL:

```css
@font-face {
  font-family: "Brand Sans";
  src: url("FONT_URL") format("woff2");
}

body {
  font-family: "Brand Sans", Arial, sans-serif;
}
```

If the Style Editor also has an `@import` line, put the `@font-face` rule after it.

{% hint style="info" %}
Make sure that the font loads on a published page. A browser loads a font from a different domain only if that domain allows it. If the font does not load, the browser uses the next font in the `font-family` list.
{% endhint %}

### Override Limio styles

Some Limio styles use `!important`:

* All Limio utility classes that start with `tw-`, for example `tw-bg-primary`.
* Some rules in the stylesheets of Limio components.

A rule without `!important` cannot override these styles. Use this sequence:

1. Find out if a design token controls the value. A token changes the value that the Limio style uses, thus `!important` is not necessary. See [Design Tokens](https://docs.limio.com/components/ui-primitives-and-theming/design-tokens).
2. If no token controls the value, write a rule that has `!important` and a selector that is more specific than the Limio selector. An ID selector is more specific than a selector that has only classes.

Some components put the value of their **Component Id** prop in the `id` attribute of their root element. Examples are the Header, Header with Navigation and Footer components. In this example, the Component Id is `my-component-id`:

```css
#my-component-id .tw-bg-primary {
  background-color: #0055ff !important;
}
```

{% hint style="warning" %}
Keep the selector narrow. A rule such as `.tw-bg-primary { ... !important }` without a component ID changes each element on the page that has the class.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.limio.com/product/page-builder/page-builder-overview-of-key-features/updating-page-styling-using-the-style-editor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
