# App block color setting transparent

**URL:** <https://community.shopify.dev/t/app-block-color-setting-transparent/14381>\
**Category:** Extensions\
**Tags:** pos-extensions, theme-app-extension\
**Created:** [April 29, 2025, 8:30am UTC](https://community.shopify.dev/t/app-block-color-setting-transparent/14381 "2025-04-29T08:30:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soufiane\_Ghzal](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/soufiane_ghzal/32/3758_2.png) [@Soufiane\_Ghzal](https://community.shopify.dev/u/Soufiane_Ghzal)\
**Post date:** [April 29, 2025, 8:30am UTC](https://community.shopify.dev/t/app-block-color-setting-transparent/14381/1 "2025-04-29T08:30:05Z")

</div>

Hi,

I’m configuring the settings of an app block in my app extension as per:

```auto
{
    "type": "color",
    "id": "color",
    "label": "Color",
    "default": "#00000000" 
},

```

As you can see I used a setting of type color and a transparent color for the default. That’s a totally valid css value. But I can’t deploy the app block using shopify cli. I get the following error message:

`Invalid tag 'schema': settings: with id="color" default must be a CSS color`

What makes this issue even more interesting is that the color picker itself will let us configure opacity in the hex code:

 ![image](https://global.discourse-cdn.com/shopifycommunity/original/2X/6/6b34debbde05f7bc149c717a6a4d493aa3d1eadb.png)

Can we expect a fix in the shopify cli for that?

Thanks

---

<div class="post-metadata">

**Author:** ![Jacco](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/jacco/32/5689_2.png) [@Jacco](https://community.shopify.dev/u/Jacco)\
**Post date:** [April 29, 2025, 8:54am UTC](https://community.shopify.dev/t/app-block-color-setting-transparent/14381/2 "2025-04-29T08:54:08Z")

</div>

> [@Soufiane\_Ghzal](#):
>
> `Invalid tag 'schema': settings: with id="color" default must be a CSS color`

Looks like the syntax checker used by Shopify is incomplete. The color code you provides _is_ a valid CSS color, although it is not a commonly used syntax.

You could try using an alternative (and more common) syntax for specifying a color-with-alpha-value in CSS, namely: `rgba(red, green, blue, alpha)`, where `rgba(64, 64, 64, 50)` equals `#40400432`.

I have no Idea if Shopify supports the alternative syntax, but since it is the more commonly used one for specifying RGBA values, I would say it is worth a try.

---

<div class="post-metadata">

**Author:** ![Soufiane\_Ghzal](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/soufiane_ghzal/32/3758_2.png) [@Soufiane\_Ghzal](https://community.shopify.dev/u/Soufiane_Ghzal)\
**Post date:** [April 29, 2025, 9:06am UTC](https://community.shopify.dev/t/app-block-color-setting-transparent/14381/3 "2025-04-29T09:06:45Z")

</div>

@Jacco thanks for your answer.

You mentioned it’s not a common syntax, but that’s the syntax used by the color picker itself in the theme editor when customizing the opacity of the selected color.

Also I wouldn’t assert that it’s not a common one. I used it a lot and seen other people using it a lot over the years.

By the way, after experimenting I found that specifying “transparent” will work
