# Custom skins for Mini-games

### Overview

You can prepare custom skin for the 'Spin the Wheel', 'Scratch Card', 'Treasure Hunt', 'Lootbox 2.0' and 'Giftbox' games directly from the Smartico Back Office by navigating to the **Gamification tab** and then to the **Mini games skin menu**

<figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-df7a038f21ea8a4e8173933aa04729508f6d18f3%2FScreenshot_56.png?alt=media" alt=""><figcaption><p>BO: Mini-games skins editor</p></figcaption></figure>

When you upload an image package, you'll now see detailed information about each file, including a preview, format, dimensions, status, size, and more. If there are any missing or incorrect files, you'll be notified immediately. To view the currently uploaded package, simply click the 'Open files' button.

{% hint style="success" %}
Important:

* All images should be in the same format, and size and have the same names as in the reference package
* Images should be uploaded unpacked (not as an archive)
* For the "Spin the Wheel" game, pay attention to how background images for different sectors are designed. There are separators for each sector that should be placed exactly at the same angles as in the reference design, otherwise, the text of the prize will overlap the separators
  {% endhint %}

<div><figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-9e9cdb42859af4ea7f85148af95e5f9d073d63b5%2FScreenshot_54.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-2a9a8adefbdcb49f4d4def470db3d0503cf17d54%2FScreenshot_55.png?alt=media" alt=""><figcaption></figcaption></figure></div>

In the configuration screen, you can upload the game's image package and customize the skin using the Custom CSS option.

<figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-3130a13be6835e404bb415cd236bc385f68d6b67%2FScreenshot_25.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
We can provide a Figma template for Mini-games skins upon request.

Please note that any images exported from the template must be compressed before uploading them to the BO. You can use [\[this link\]](https://tinypng.com/) to compress your images.

For further assistance, please contact your Customer Success Manager!
{% endhint %}

* <mark style="color:purple;">To view the available skins for the</mark> <mark style="color:purple;">**Spin the Wheel**</mark> <mark style="color:purple;">mini-game, click</mark>[ <mark style="color:blue;">**here.**</mark>](https://help.smartico.ai/welcome/products/mini-games/custom-skins-for-mini-games/spin-the-wheel-skins)
* <mark style="color:purple;">To view the available skins for the</mark> <mark style="color:purple;">**Scratch Card**</mark> <mark style="color:purple;">mini-game, click</mark>[ **here.**](https://help.smartico.ai/welcome/products/mini-games/custom-skins-for-mini-games/scratch-card-skins)
* <mark style="color:purple;">To view the available skins for the</mark> <mark style="color:purple;">**Giftbox**</mark> <mark style="color:purple;">mini-game, click</mark> [<mark style="color:blue;">**here**</mark>](https://help.smartico.ai/welcome/products/mini-games/custom-skins-for-mini-games/giftbox-skins)<mark style="color:blue;">**.**</mark>
* <mark style="color:purple;">To view the available skins for the</mark> <mark style="color:purple;">**Treasure Hunt**</mark> <mark style="color:purple;">mini-game, click</mark> [<mark style="color:blue;">**here**</mark>](https://help.smartico.ai/welcome/products/mini-games/custom-skins-for-mini-games/treasure-hunt-skins)<mark style="color:blue;">**.**</mark>
* <mark style="color:purple;">To view the available skins for the</mark> <mark style="color:purple;">**Lootbox 2.0**</mark> <mark style="color:purple;">mini-game, click</mark> [<mark style="color:blue;">**here**</mark>](https://help.smartico.ai/welcome/products/mini-games/custom-skins-for-mini-games/lootbox-2.0-skins)<mark style="color:blue;">**.**</mark>
* <mark style="color:purple;">To view the available skins for the</mark> <mark style="color:purple;">**Missions Lootbox**</mark> <mark style="color:purple;">mini-game, click</mark> [<mark style="color:blue;">**here**</mark>](https://help.smartico.ai/welcome/products/mini-games/custom-skins-for-mini-games/missions-lootbox-skin)<mark style="color:blue;">**.**</mark>

### Customize mini-games with CSS

You can also customize some elements using custom CSS. The most useful styles that you can use are the following.

{% hint style="success" %}
You can use only 'Google Font' fonts.

* To change the font family you need to Copy the import of the needed font family from Google Fonts and paste it in the CSS/SCSS file.
* The Font family can be set globally for all texts or used only in a specific location.
  {% endhint %}

<figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-70741845497cafaa9d871b8ac43b0d68316201ce%2FScreenshot_29.png?alt=media" alt=""><figcaption><p>BO: CSS editor in Mini-game Skins</p></figcaption></figure>

<pre class="language-css"><code class="lang-css">/* Google fonts only, example of import query */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&#x26;display=swap');

/* text of the prize on sector */
.saw-view .wheel-sector-name .sector-text {
   color: yellow !important;
}

/* the name of the game shown under the wheel */
.saw-info-name {
   color: red !important;
}

/* style of the "?" mark opening description of the game */
.saw-info-link {
  filter: invert(0);
}

/* style of the buttons in the description popup when old pop-ups are enabled */
.saw-modal-actions > div {
    background-color: white !important;
    color: black !important;
    border: 2px solid black !important;
  }

/*style of the title in the description popup when new pop-ups are enabled */
.saw-modal-container-new .saw-modal-title {
  color: white !important;
}

/* color of text main text in the description popup */
.saw-modal-body-content {
    color: white !important;
 }

/* color and style of the links in the description popup */
.saw-modal-body-content a {
   color: white !important;
   text-decoration: underline;
}

/* style of the title in the description popup */
.saw-modal-content .saw-modal-title > div > div {
  color: yellow !important;
  text-shadow: none !important;
}

/* the default lights on the wheel’s rim removed and the shining turned off */
.wheel-light-behind, .wheel-lights {
 display: none !important;
}

/* style of the sound button */
.saw-sound-button {
filter: invert(0);
}

/* style of the Play button on Scratch Card */
.button-area > div {
box-shadow: 0 0 6px 0 black !important;
color: white !important;
background: #0077FF !important;
}

/* border of the Scratch Card */
.scratch-card-content {
border: none !important;
}

/* Scratch Card prize text color */
.prizes > div > div {
  color: black !important;
}

<strong>For Giftbox Only
</strong>/* style of game rules text button (text under attempts) */
.giftboxes-root .prizeboard-game-rules {

}
/* styles for popup title */
.saw-modal-wrapper .saw-modal-container-v2 
.saw-modal-content .saw-modal-title {

}

/* styles for popup content */
.saw-modal-wrapper .saw-modal-container-v2 
.saw-modal-content .saw-modal-message {

}

/* style of game modal action button */
.saw-modal-wrapper .saw-modal-container-v2 
.saw-modal-content .saw-modal-actions {

}
</code></pre>

### Updated pop-ups in mini-games

You can create Custom designs for the pop-ups inside the mini-games. The **‘Use new pop-ups’** option is available in the Mini-games Skins section in the BO.

{% hint style="success" %}

* For newly created skins the **'Use new pop-ups’** option is enabled by default and cannot be disabled.
* The skin package for the new pop-ups includes different images. Make sure you're uploading the correct package that contains the new visuals.
  {% endhint %}

<figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-2de07732d95f5b839532a5e691d3e2e9102288fe%2FScreenshot_126.png?alt=media" alt=""><figcaption><p>GF: Example of the new pop-up in Mini-games</p></figcaption></figure>

Here you can find an example of a Scratch Card skin package:

{% file src="<https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-10ec0b1ddb6c75ee36ca38385d82e6a52b71465e%2FScratch%20Card%20-%20Treasure.zip?alt=media>" %}

Below are the required image files and naming conventions for implementing pop-ups in a mini-game:

<table><thead><tr><th>Image Name</th><th data-type="files">Files</th><th>Sizes</th></tr></thead><tbody><tr><td>popup_bg_bottom</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-f194ae248d7371738b2ee8646018b6c6a0b22e7f%2Fpopup_bg_bottom.png?alt=media">popup_bg_bottom.png</a></td><td>50x50 px</td></tr><tr><td>popup_bg_bottom_left</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-1435705ac072a528436bcf9c8e0a2266bbb00ec4%2Fpopup_bg_bottom_left.png?alt=media">popup_bg_bottom_left.png</a></td><td>50x50 px</td></tr><tr><td>popup_bg_bottom_right</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-3971ac3523ea68462ba641cde27c5c76b0c8c682%2Fpopup_bg_bottom_right.png?alt=media">popup_bg_bottom_right.png</a></td><td>50x50 px</td></tr><tr><td>popup_bg_center</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-873088eb07fd7abc63536cb533928df879981248%2Fpopup_bg_center.png?alt=media">popup_bg_center.png</a></td><td>50x50 px</td></tr><tr><td>popup_bg_left</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-f552a33bf96a8ef812ab7cad0e4b74eec29d38c0%2Fpopup_bg_left.png?alt=media">popup_bg_left.png</a></td><td>50x50 px</td></tr><tr><td>popup_bg_right</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-de9c74bbb08f9c42c8d0d00804d65636843c9a98%2Fpopup_bg_right.png?alt=media">popup_bg_right.png</a></td><td>50x50 px</td></tr><tr><td>popup_bg_top</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-47f0846005c4d3d40f0bcd635a1eaf64202504b9%2Fpopup_bg_top.png?alt=media">popup_bg_top.png</a></td><td>50x50 px</td></tr><tr><td>popup_bg_top_left</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-0e6613f2bc2b7c5690f240cdc15ec699b62474f1%2Fpopup_bg_top_left.png?alt=media">popup_bg_top_left.png</a></td><td>50x50 px</td></tr><tr><td>popup_bg_top_right</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-2349a0bef87ec7d0a52125e8f46d2d97cd388294%2Fpopup_bg_top_right.png?alt=media">popup_bg_top_right.png</a></td><td>50x50 px</td></tr><tr><td>button_primary_bg_left</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-b45506085d463dc95c34b0f3368d548028bdb6bf%2Fbutton_primary_bg_left.png?alt=media">button_primary_bg_left.png</a></td><td>22x44 px</td></tr><tr><td>button_primary_bg_center</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-a430a6731cd9e9e14f773fde1df5de9dc90de7ce%2Fbutton_primary_bg_center.png?alt=media">button_primary_bg_center.png</a></td><td>22x44 px</td></tr><tr><td>button_primary_bg_right</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-077ea6905564f43ed4e564371dcb55e5613ffa9f%2Fbutton_primary_bg_right.png?alt=media">button_primary_bg_right.png</a></td><td>22x44 px</td></tr><tr><td>button_secondary_bg_left</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-fd9d10213cf24df180aa860cc90c0fa5488f4f9b%2Fbutton_secondary_bg_left.png?alt=media">button_secondary_bg_left.png</a></td><td>22x44 px</td></tr><tr><td>button_secondary_bg_right</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-37307f61e118f8a96f99b62c48c99974f40b3293%2Fbutton_secondary_bg_right.png?alt=media">button_secondary_bg_right.png</a></td><td>22x44 px</td></tr><tr><td>button_secondary_bg_center</td><td><a href="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-f540ccb1d732f12d8afbef0492f5d22a2d545f10%2Fbutton_secondary_bg_center.png?alt=media">button_secondary_bg_center.png</a></td><td>22x44 px</td></tr></tbody></table>

These images are used to create the background and buttons of the pop-up.\
You can customize the font color of the text content by using the 'Override CSS' field, either at the skin level or directly within the mini-game settings in the BO.

<figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-b5909ca237bed8233a65f3fb05259fde8855f6d9%2FSPRITE.png?alt=media" alt=""><figcaption></figcaption></figure>
