/xsolla-ai-kit:login-stylingfrom xsolla-ai-kit
Styles the Xsolla Login widget (sign-in, sign-up, password reset) by uploading custom CSS via API or setting brand tokens through themeJSON. Use for branding the sign-in screen, dark-mode login, or uploading login CSS.
Ships in xsolla-ai-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Owner: Elnur Khalilov (Login FE) · Last verified: July 2026 · Applies to: Login Widget 2.0 (
login-widget-ng) + Publisher Account Login module. This skill's primary, recommended path is Channel 3 — CSS deployed via API. The other three channels (PA editor, PA CSS upload, SDK) are documented inreferences/channels-and-flag.md.
Use this skill — always alongside login-setup — when the Login UI
must look on-brand rather than shipping the Xsolla default:
themeJSON, and SDK customStyleOut of scope: wiring the auth flow, OAuth clients, JWT validation (→
login-setup); catalog/storefront visuals (→ catalog-design);
checkout/payment UI styling (→ headless-checkout-integration). CSS cannot change the
widget's layout/structure or inject HTML/JS — see limitations.
export XSOLLA_MERCHANT_ID=<numeric merchant ID> # e.g. 71070
export XSOLLA_PROJECT_ID=<numeric publisher project ID> # e.g. 300837
export XSOLLA_LOGIN_PROJECT_ID=<login project UUID> # e.g. 2f1ba87f-...
export XSOLLA_PUBLISHER_TOKEN=<Publisher Account bearer token>
login-setup — the widget must
render before it can be styled.widget_generation > 0). The legacy widget (=== 0) uses a different,
limited endpoint — see references/channels-and-flag.md.search_xsolla_sources (or the linked docs) before handing them to a partner as official.Author the CSS against stable selectors. Target the widget's BEM class names
(.app-block, .button-element, .input-container input, .tabs-links__login_tab-link, …)
— never the hashed css-XXXX Emotion classes (they change every build). Load fonts with
@font-face, never @import (the sanitizer strips it). Save as plain-text .css
(macOS TextEdit saves RTF by default → upload 422s). Full selector list, sanitizer rules,
fonts, and worked examples: references/css-reference.md.
Upload the CSS file to Xsolla storage (Merchant API). POST the file as
multipart/form-data with the form field literally named file:
| Method & path | POST https://api.xsolla.com/merchant/current/merchants/{XSOLLA_MERCHANT_ID}/files |
| Auth | Authorization: Bearer <XSOLLA_PUBLISHER_TOKEN> |
| Body | multipart/form-data, field [email protected] |
| Returns | { "file_url": "https://cdn.xsolla.net/.../styles.css" } |
Attach the returned URL to the login project (Login API).
| Method & path | POST https://login.xsolla.com/api/projects/{XSOLLA_LOGIN_PROJECT_ID}/custom_style_url |
| Auth | Authorization: Bearer <XSOLLA_PUBLISHER_TOKEN> |
| Body | { "custom_style_url": "<file_url from step 2>" } |
Server-side CSS attached this way is injected as a <link rel="stylesheet"> and is honored
under the default disallow_external_style: true — which is why API deployment is the
reliable path. (If a project has been flipped to false, the SDK customStyle param wins and
this uploaded CSS is ignored instead — see references/channels-and-flag.md.)
Verify and refresh. GET https://login.xsolla.com/api/projects/{id}/custom_style_url
→ confirm it returns your CDN URL. Then hard-refresh the widget (Ctrl/Cmd+F5) and allow
7–10 min for CDN cache. The CSS applies to every app/site using this login project.
(Optional) structured theme instead of / alongside CSS. For plain colors, logo, roundness,
background, or social order — no CSS file needed — pass themeJSON via the SDK; it is never
gated by the flag. Keys and defaults: references/css-reference.md.
customStyle in code but nothing changes." That is the SDK path (Channel 4),
gated by disallow_external_style (default true → SDK CSS ignored). Use this skill's API
upload instead — it's the path honored under the default true. Full flag explainer:
references/channels-and-flag.md..css (macOS RTF) or its MIME isn't allowed.
Re-save as plain text; confirm it doesn't report "Rich Text Format".@import (stripped by the sanitizer). Switch
to @font-face { src: url(...) }. JSON is rejected by the uploader, so self-host socialsJSON.#000000. Check theme values.css-XXXX class → styles break next build. Use the BEM selectors only.Prompt: "I've integrated Xsolla Login. Restyle the login widget via API to match my game — brand color #FF6600, rounded buttons, my custom font, and my logo — without me clicking around in Publisher Account."
Expected: the agent loads this skill (+ references) alongside login-setup, writes a plain-text
.css targeting BEM selectors with @font-face (not @import), uploads it via the Merchant API
/files endpoint, attaches the returned CDN URL via the Login API custom_style_url endpoint,
verifies with the GET, and explains the 7–10 min cache + all-apps scope. It does not rely on
the SDK customStyle param (would be blocked by disallow_external_style: true).
⏳ Endpoints verified July 2026 (SERVICE-9991); pending a live sandbox run in this repo.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
xsolla-login, login-widget, custom-css, branding, theme-json
npx claudepluginhub xsolla/xsolla-ai-kit --plugin xsolla-ai-kit15 skills in this plugin
/catalog-designSets up an Xsolla catalog: virtual items, virtual currency and its packages, bundles, game keys, item groups, regional prices and LiveOps offers, plus the client purchase flow (buy by SKU or cart, buy for virtual currency, order status). Use for "set up my Xsolla catalog", "create virtual items", "sell game keys", "regional prices"./description-to-shopTurns a game description or store listing (App Store, Google Play, Steam) into the shop brief that shop-builder-assembly builds from. Reached through nocode-shop-setup; not an entry point. Owns intake and inference only: presets, confirmation, CLI writes and preview belong to shop-builder-assembly./game-web-portalBuilds or resumes an unpublished Game Web Portal for a PC or mobile game: Home, News, Rewards, Web Shop, Community and an optional Launcher, on a site made from the Multi-page web portal template. Reached through nocode-shop-setup. Use for "continue my Game Web Portal" or "add the Community section". Never publishes; that stays with the human. Not for XLA Pages on x.la; use `xla-pages`./headless-checkout-integrationIntegrates Xsolla Headless Checkout — a fully customizable, client-controlled payment UI built on the @xsolla/pay-station-sdk JavaScript SDK, where payment data stays isolated in secure iframes and payments run through Xsolla without the standard Pay Station./login-setupIntegrates Xsolla Login (Xsolla ID, NewID): sign-up and sign-in by password, email or SMS code, social networks, Steam, Xbox, PSN, Epic, device or custom ID; Login Widget, API or SDK; JWT validation, server tokens, account linking, MFA, password reset. Use for "integrate Xsolla Login", "add sign-in", "validate a user JWT", or when a feature needs a signed-in user./merchant-setupGuide for a merchant or developer setting up an Xsolla Account and obtaining API credentials. Use when the user needs that account, API keys, merchant-level versus project-level keys, sandbox mode, to accept payments, to start an Xsolla integration, or to test payments. The agent cannot create the account. This skill gives the exact steps the user completes manually.Other plugins' skills for the same job