If you want to simplify, separate the background property into its different components (background - CSS: Cascading Style Sheets | MDN):
background-repeat: no-repeat;
background-position: center;
background-size: contain;
#{
@{this} == 127 ? "background-image: url(/A.png)" : "background-image: url(/B.png)"
}
How do you get colors in the code when you post ?
```css
-> css code
```
```javascript
-> javascript code
```