feat: add customizable skin support

This commit is contained in:
illusia committed 2026-09-26 08:59:05 +08:00
1 parent 0ea85752fd
commit 2b7e908d31
33 files changed
+3645 -494

No files matched your search

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

+40
View File
@@ -0,0 +1,40 @@
{
"defaultLocale": "en",
"locales": {
"en": {
"home": {
"eyebrow": "A room of your own",
"title": "Talk",
"titleAccent": "together",
"description": "A small example of custom homepage copy and feature text.",
"welcomeTitle": "Join the room",
"welcomeDescription": "Choose a name and connect to your TeamSpeak server.",
"features": [
{ "title": "Clear voice", "description": "Low-latency Opus audio." },
{ "title": "Private by design", "description": "Your connection details stay in this session." },
{ "title": "In sync", "description": "Channels and members update together." }
]
},
"messages": {
"demo.heroLead": "This demo is styled by the same package as the connection and voice pages.",
"demo.speakingNow": "On stage",
"demo.skinSelector": "Skin"
}
},
"zh-CN": {
"home": {
"eyebrow": "属于你的语音空间",
"title": "自在",
"titleAccent": "畅聊",
"description": "示例皮肤可以自定义首页文案、卡片、背景和语音面板。",
"welcomeTitle": "进入房间",
"welcomeDescription": "填写昵称并连接 TeamSpeak 服务器。"
},
"messages": {
"demo.heroLead": "连接页、语音页和演示页都由同一皮肤包定制。",
"demo.speakingNow": "舞台成员",
"demo.skinSelector": "皮肤"
}
}
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"schemaVersion": 1,
"id": "community.aurora-voice",
"name": "Aurora Voice",
"version": "1.0.0",
"author": "WebSpeak Project",
"license": "AGPL-3.0-only",
"description": "A compact example showing local artwork, full-page CSS styling, avatar frames, and localized copy.",
"entry": "skin.css",
"content": "content.json",
"preview": "assets/webspeak-mark.jpg",
"minAppVersion": "0.2.4"
}
+101
View File
@@ -0,0 +1,101 @@
/* Every selector is automatically scoped to this package and a public page root. */
:root {
--page: #07151c;
--surface: #10242b;
--surface-raised: #17333a;
--ink: #effdfa;
--ink-muted: #a2c4be;
--accent: #42dfc7;
--accent-strong: #06a992;
--line: rgba(104, 229, 208, .24);
--glow: 0 18px 48px rgba(0, 0, 0, .26);
--round-card: 22px;
}
[data-ws-part="home"] {
color: var(--ink);
background: radial-gradient(ellipse at 50% 35%, #173b43, var(--page) 74%);
}
[data-ws-part="home.join-card"],
[data-ws-part="voice.member-panel"],
[data-ws-part="voice.chat"],
[data-ws-part="demo.main"],
[data-ws-part="demo.channels"],
[data-ws-part="demo.actions"] {
color: var(--ink);
background: linear-gradient(145deg, var(--surface-raised), var(--surface));
border: 1px solid var(--line);
border-radius: var(--round-card);
box-shadow: var(--glow);
}
[data-ws-part="home.connect"],
[data-ws-part="voice.audio-dock"],
[data-ws-part="demo.chat.send"] {
color: #041613;
background: linear-gradient(110deg, var(--accent), var(--accent-strong));
border: 1px solid rgba(162, 255, 235, .55);
border-radius: 14px;
box-shadow: 0 0 22px rgba(66, 223, 199, .2);
}
[data-ws-part="voice.member.avatar"],
[data-ws-part="voice.member-row.avatar"],
[data-ws-part="demo.avatar"] {
outline: 2px solid var(--accent);
outline-offset: 4px;
box-shadow: 0 0 20px rgba(66, 223, 199, .35);
}
[data-ws-part="voice.member.live-indicator"],
[data-ws-part="demo.live"] {
color: var(--ink);
background: rgba(6, 169, 146, .25);
border: 1px solid var(--line);
border-radius: 999px;
box-shadow: 0 0 18px rgba(66, 223, 199, .18);
}
[data-ws-part="voice.screen-player"] {
border: 1px solid var(--line);
border-radius: 20px;
box-shadow: 0 0 36px rgba(66, 223, 199, .18);
}
[data-ws-part="demo.hero"] {
background-color: #103039;
background-image: linear-gradient(100deg, rgba(7, 21, 28, .12), rgba(7, 21, 28, .76)), url("assets/webspeak-mark.jpg");
background-position: center, right 22px center;
background-repeat: no-repeat;
background-size: cover, 92px 92px;
border: 1px solid var(--line);
border-radius: var(--round-card);
}
[data-ws-part="demo.voice-card"][data-ws-state="speaking"] {
outline: 1px solid var(--accent);
box-shadow: 0 0 24px rgba(66, 223, 199, .22);
}
[data-ws-part="control"][data-ws-control-kind="range"] {
accent-color: var(--accent);
}
* {
scrollbar-color: var(--accent-strong) transparent;
scrollbar-width: thin;
}
@keyframes aurora-breathe {
0%, 100% { filter: brightness(.94); }
50% { filter: brightness(1.12); }
}
[data-ws-part="home.visitors"] {
animation: aurora-breathe 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
[data-ws-part="home.visitors"] { animation: none; }
}