# Qwik API (Beta) is mangling CSS Custom Properties that have been entered inside the editor

**URL:** https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167
**Category:** Bugs
**Created:** [August 23, 2024, 1:33am UTC](https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167 "2024-08-23T01:33:01Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![latchdigital](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@latchdigital](https://forum.builder.io/u/latchdigital)
#### Post date: [August 23, 2024, 1:33am UTC](https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167/1 "2024-08-23T01:33:01Z")

</div>

**Builder content link**

> **[Builder.io: Visual Development Platform](https://builder.io/content/bbec87e7b47740b39cd0fc5c6b16067c)**
>
> Drag and drop with your components, right within your existing site or app. Build and optimize digital experiences for any tech stack, visually..

**Builder public api key**  
f49a4479fc8b4fff8fa77fa179c7c21b

**Detailed steps to reproduce the bug**  
Accessing a page through the HTML API works fine; however, the Qwik API mangles custom properties entered inside the editor and removes the two hyphens at the start of the CSS custom property, OR inserts hyphens in random places.

**Screenshots or video link**  
 ![Screenshot 2024-08-23 at 11.25.44 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/1/183f99dfab81757d7674dc1f9d39dd60f0de86e6.png)  
_Should be: --h3-tag-font-size_  
 ![Screenshot 2024-08-23 at 11.25.56 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/d/d3380ec6db86b48abda916814c0813b5d3785cb4.png)  
_Should be: --section-grid-template-columns_

Where this is entered (CSS properties in the editor):  
 ![Screenshot 2024-08-23 at 11.31.55 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/a/a5877b2e56c0c7c8c3263c78dcb380e5d923e38e.png)

**Code stack you are integrating Builder with**  
Special use case vanilla js / html…

---

<div class="post-metadata">

### Author: ![latchdigital](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@latchdigital](https://forum.builder.io/u/latchdigital)
#### Post date: [August 23, 2024, 1:42am UTC](https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167/2 "2024-08-23T01:42:43Z")

</div>

I am referring to the builder API here for server rendering our builder editor content:

 ![](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/c/c8c2b56da509716aa8ad3d65dca6aa16747aa502.png)[Builder.io](https://www.builder.io/c/docs/qwik-api)

 ![](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/5/5ff4d94729301652239273a9f498b9f224e7d79a.jpeg)

### [Builder.io Qwik API - Builder.io](https://www.builder.io/c/docs/qwik-api)

Discover Builder’s Qwik API, a performance-optimized HTML alternative. Pre-render content into JavaScript-free optimized HTML with dynamic capabilities.

> Builder’s Qwik API is an performance-optimized alternative to the [HTML API]

Please don’t send me to discord this is a [BUILDER.IO](http://BUILDER.IO) issue

---

<div class="post-metadata">

### Author: ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)
#### Post date: [August 23, 2024, 9:59am UTC](https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167/3 "2024-08-23T09:59:52Z")

</div>

Hello @latchdigital,

We had a look at the reported issue and it seems the builder Qwik API is returning the custom CSS properties set correctly  
[https://cdn.builder.io/api/v1/qwik/page?url=https%3A%2F%2Fyour-site.com%2Fsome-page%3Fand%3Dquery&apiKey=f49a4479fc8b4fff8fa77fa179c7c21b&userAttributes.urlPath=%2F&limit=1](https://cdn.builder.io/api/v1/qwik/page?url=https%3A%2F%2Fyour-site.com%2Fsome-page%3Fand%3Dquery&apiKey=f49a4479fc8b4fff8fa77fa179c7c21b&userAttributes.urlPath=%2F&limit=1)

 ![Screenshot 2024-08-23 at 3.28.14 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/1/1116dfbf91c90cc1a7fd19813d05da06c8693286.png)

Are hyphens being removed while rendering the page server-side?

> **[Builder.io Qwik API - Builder.io](https://www.builder.io/c/docs/qwik-api)**
>
> Discover Builder's Qwik API, a performance-optimized HTML alternative. Pre-render content into JavaScript-free optimized HTML with dynamic capabilities.

---

<div class="post-metadata">

### Author: ![latchdigital](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@latchdigital](https://forum.builder.io/u/latchdigital)
#### Post date: [August 23, 2024, 10:18pm UTC](https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167/4 "2024-08-23T22:18:46Z")

</div>

Hi there, yes. But as you can see in the actual style tag inside the HTML output these are messed up:

 ![Screenshot 2024-08-24 at 8.17.29 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/3/307952e1537be99b9f8c5dbb16265be08d0f962e.png)

---

<div class="post-metadata">

### Author: ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)
#### Post date: [August 26, 2024, 10:54am UTC](https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167/5 "2024-08-26T10:54:41Z")

</div>

Hello @latchdigital,

I am happy to confirm that I was able to reproduce the issue you are experiencing thanks to the details and steps you have provided.

I will now discuss the issue internally in order to determine the next steps. Once I have further updates, I will get back to you.

Thanks,

---

<div class="post-metadata">

### Author: ![latchdigital](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@latchdigital](https://forum.builder.io/u/latchdigital)
#### Post date: [August 31, 2024, 9:17am UTC](https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167/6 "2024-08-31T09:17:37Z")

</div>

Any ETA on this. I’d love to use this API (for a very basic site), it is amazingly fast. ☺

---

<div class="post-metadata">

### Author: ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)
#### Post date: [September 3, 2024, 8:19am UTC](https://forum.builder.io/t/qwik-api-beta-is-mangling-css-custom-properties-that-have-been-entered-inside-the-editor/6167/7 "2024-09-03T08:19:47Z")

</div>

Hello @latchdigital,

We are still working on this internally. We don’t have an ETA at the moment, but rest assured I will be sure to keep you updated as soon as we make any progress.

Best regards,
