Ecommerce Shopify WordPress Discussion

Shopify Liquid CSS and Prettier formatting

I'm having trouble formatting my theme.css.liquid with Prettier on VS Code on Mac. I tried following the official Shopify instructions for prettier but no luck. It doesn't seem to like the liquid double quotes. I have tried with the Prettier Plugin and installing Shopify Liquid Prettier as a dev dependency and also with the Shopify Liquid VS Code Extension. My .prettierrc { "plugins": ["@shopify/prettier-plugin-liquid"] } My unformatted code @charset "UTF-8"; :root { --colorBtnPrimary: {{ settings.color_button | default: "#000" }}; /*--colorBtnPrimaryLight:{{ settings.color_button | default: "#000" | color_darken: 10 }};*/ --colorBtnPrimaryLight:{{ settings.color_button_hover | default: "#000" }}; --colorBtnPrimaryDim:{{ settings.color_button | default: "#000" | color_darken: 5 }}; --colorBtnPrimaryText:{{ settings.color_button_text | default: "#fff" }}; --colorCartDot:{{ settings.color_cart_dot | default: "#ff4f33" }}; } Formatted with prettier output: @charset "UTF-8"; :root { --colorBtnPrimary: {{ settings.color_button | default: '#000' }}; /*--colorBtnPrimaryLight: {{- settings.color_button | default: '#000' | color_darken: 10 -}} ;*/ --colorBtnPrimaryLight:{{ settings.color_button_hover | default: '#000' }}; --colorBtnPrimaryDim: {{- settings.color_button | default: '#000' | color_darken: 5 -}} ; --colorBtnPrimaryText:{{ settings.color_button_text | default: '#fff' }}; --colorCartDot: {{- settings.color_cart_dot | default: '#ff4f33' -}} ; Formatted with CSS Language features :root { --colorBtnPrimary: { { settings.color_button | default: "#000" } } ; ... Desired output :root { --colorBtnPrimary: {{ settings.color_button | default: "#000" }}; } Trying to format with the Shopify Prettier Plugin didn't do anything. I can't even choose it from the list if I try to "Format Document With...". Formatting other liquid files is no problem! I just have trouble with the theme.css.liquid. Any help is appreciated! Thank you
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.