Artist page
Fans open an artist’s My Loka Link page on their phones, so the page is one 440px column. The artist’s color comes from a tenant accent preset, and everything else stays on the My Loka Link theme.
When to use
Section titled “When to use”- Use it for public pages that belong to one artist or tenant, in My Loka Link and Ruang Loka Musik.
- Don’t use a tenant accent in admin screens.
Anatomy
Section titled “Anatomy”- Hero on
tenant-accent-soft: the avatar, the artist’s name in the brand display font, and one sentence of bio. - Main call to action on
tenant-accent, as wide as the column. - Links as full-width outline rows with a Lucide icon and a chevron.
- Schedule card with dates and places.
- Footer: “from Sosialoka”.
- Accent only on the hero and the main call to action. Links, cards and text use the brand theme.
- Text on the hero uses
foregroundortenant-accent-text.muted-foregrounddrops under 4.5:1 on some presets. - Presets: set
data-tenant-accenttoblue,orange,tealorredon the page root. Every preset passes the contrast checks in light and dark. See Color. - Icons: Lucide for the interface. Don’t use third-party platform logos.
- Column: max 440px, centered, also on desktop.
import { CalendarIcon, ChevronRightIcon, DiscIcon, PlayIcon, ShirtIcon, VideoIcon } from "lucide-react"import { Avatar, AvatarFallback } from "@/components/ui/avatar"import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
const links = [ { label: "Rilis terbaru", icon: DiscIcon }, { label: "Video", icon: VideoIcon }, { label: "Jadwal manggung", icon: CalendarIcon }, { label: "Merchandise", icon: ShirtIcon },]
const shows = [ { date: "Sab, 22 Nov 2026", place: "Kafe Lentera, Bandung" }, { date: "Jum, 5 Des 2026", place: "Ruang Dengar, Yogyakarta" },]
/** * A My Loka Link artist page: a 440px column on the artist's accent (data-tenant-accent). The accent colors * only the hero and the main call to action; everything else stays on the brand theme. */export default function ArtistPageDemo() { return ( <div data-tenant-accent="orange" className="mx-auto min-h-svh max-w-[440px] bg-background text-foreground"> <header className="flex flex-col items-center gap-3 bg-tenant-accent-soft px-6 pt-10 pb-8 text-center"> <Avatar className="size-24"> <AvatarFallback className="bg-tenant-accent text-2xl text-tenant-accent-foreground">NS</AvatarFallback> </Avatar> <h1 className="text-3xl" style={{ fontFamily: "var(--font-brand)", fontWeight: "var(--font-brand-weight)", letterSpacing: "var(--font-brand-tracking)", }} > Nadia Senja </h1> <p className="text-sm text-foreground">Penyanyi folk dari Bandung. Lagu tentang kota dan pulang.</p> <a href="#" className="mt-2 inline-flex h-10 w-full items-center justify-center gap-2 rounded-md bg-tenant-accent px-4 text-sm font-medium text-tenant-accent-foreground outline-none hover:bg-tenant-accent/90 focus-visible:ring-[3px] focus-visible:ring-ring/50" > <PlayIcon className="size-4 fill-current" /> Dengarkan rilis terbaru </a> </header>
<nav aria-label="Tautan" className="grid gap-2 px-4 py-6"> {links.map((link) => ( <a key={link.label} href="#" className="flex h-12 items-center gap-3 rounded-lg border border-border bg-card px-4 text-sm font-medium outline-none hover:bg-muted focus-visible:ring-[3px] focus-visible:ring-ring/50" > <link.icon className="size-4 text-muted-foreground" /> <span className="flex-1">{link.label}</span> <ChevronRightIcon className="size-4 text-muted-foreground" /> </a> ))} </nav>
<div className="px-4"> <Card> <CardHeader> <CardTitle>Jadwal manggung</CardTitle> </CardHeader> <CardContent className="grid gap-3"> {shows.map((show) => ( <div key={show.date} className="grid gap-0.5"> <span className="text-sm font-medium">{show.date}</span> <span className="text-sm text-muted-foreground">{show.place}</span> </div> ))} </CardContent> </Card> </div>
<footer className="flex items-center justify-center gap-1.5 py-8 text-xs text-muted-foreground"> <span>from</span> <img src="/brand/sosialoka.png" alt="" className="size-4" />{" "} <span className="font-semibold text-foreground">Sosialoka</span> </footer> </div> )}<script setup lang="ts">import { Calendar, ChevronRight, Disc, Play, Shirt, Video } from "@lucide/vue"import { Avatar, AvatarFallback } from "@/components/ui/avatar"import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
/** * A My Loka Link artist page: a 440px column on the artist's accent (data-tenant-accent). The accent colors * only the hero and the main call to action; everything else stays on the brand theme. */const links = [ { label: "Rilis terbaru", icon: Disc }, { label: "Video", icon: Video }, { label: "Jadwal manggung", icon: Calendar }, { label: "Merchandise", icon: Shirt },]
/** The Sosialoka mark; a binding, so the SFC compiler leaves the URL alone instead of importing it. */const markSrc = "/brand/sosialoka.png"
const shows = [ { date: "Sab, 22 Nov 2026", place: "Kafe Lentera, Bandung" }, { date: "Jum, 5 Des 2026", place: "Ruang Dengar, Yogyakarta" },]</script>
<template> <div data-tenant-accent="orange" class="mx-auto min-h-svh max-w-[440px] bg-background text-foreground"> <header class="flex flex-col items-center gap-3 bg-tenant-accent-soft px-6 pt-10 pb-8 text-center"> <Avatar class="size-24"> <AvatarFallback class="bg-tenant-accent text-2xl text-tenant-accent-foreground">NS</AvatarFallback> </Avatar> <h1 class="text-3xl" style="font-family: var(--font-brand); font-weight: var(--font-brand-weight); letter-spacing: var(--font-brand-tracking)" > Nadia Senja </h1> <p class="text-sm text-foreground">Penyanyi folk dari Bandung. Lagu tentang kota dan pulang.</p> <a href="#" class="mt-2 inline-flex h-10 w-full items-center justify-center gap-2 rounded-md bg-tenant-accent px-4 text-sm font-medium text-tenant-accent-foreground outline-none hover:bg-tenant-accent/90 focus-visible:ring-[3px] focus-visible:ring-ring/50" > <Play class="size-4 fill-current" /> Dengarkan rilis terbaru </a> </header>
<nav aria-label="Tautan" class="grid gap-2 px-4 py-6"> <a v-for="link in links" :key="link.label" href="#" class="flex h-12 items-center gap-3 rounded-lg border border-border bg-card px-4 text-sm font-medium outline-none hover:bg-muted focus-visible:ring-[3px] focus-visible:ring-ring/50" > <component :is="link.icon" class="size-4 text-muted-foreground" /> <span class="flex-1">{{ link.label }}</span> <ChevronRight class="size-4 text-muted-foreground" /> </a> </nav>
<div class="px-4"> <Card> <CardHeader> <CardTitle>Jadwal manggung</CardTitle> </CardHeader> <CardContent class="grid gap-3"> <div v-for="show in shows" :key="show.date" class="grid gap-0.5"> <span class="text-sm font-medium">{{ show.date }}</span> <span class="text-sm text-muted-foreground">{{ show.place }}</span> </div> </CardContent> </Card> </div>
<footer class="flex items-center justify-center gap-1.5 py-8 text-xs text-muted-foreground"> <span>from</span> <img :src="markSrc" alt="" class="size-4"> <span class="font-semibold text-foreground">Sosialoka</span> </footer> </div></template>// A My Loka Link artist page: a 440 px column on the artist's accent. The accent colors only the hero and// the main call to action. sosialoka_ui has no tenant parameter yet, so read the preset from// SosialokaColors.tenant for the current mode.import 'package:flutter/widgets.dart';import 'package:shadcn_ui/shadcn_ui.dart';import 'package:sosialoka_ui/sosialoka_ui.dart';
const _links = [ ('Rilis terbaru', LucideIcons.disc), ('Video', LucideIcons.video), ('Jadwal manggung', LucideIcons.calendar), ('Merchandise', LucideIcons.shirt),];
class ArtistPageDemo extends StatelessWidget { const ArtistPageDemo({super.key, this.accent = 'orange'});
/// One of the tenant presets: blue, orange, teal or red. final String accent;
@override Widget build(BuildContext context) { final theme = ShadTheme.of(context); final mode = theme.brightness == Brightness.dark ? 'dark' : 'light'; final tenant = SosialokaColors.tenant[accent]![mode]!; return ConstrainedBox( constraints: const BoxConstraints(maxWidth: 440), child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.stretch, children: [ ColoredBox( color: tenant['tenant-accent-soft']!, child: Padding( padding: const EdgeInsets.fromLTRB(24, 32, 24, 24), child: Column( children: [ ShadAvatar( '', size: const Size.square(96), backgroundColor: tenant['tenant-accent'], placeholder: Text('NS', style: TextStyle(color: tenant['tenant-accent-foreground'], fontSize: 24)), ), const SizedBox(height: 12), Text('Nadia Senja', style: theme.textTheme.h2), const SizedBox(height: 4), Text( 'Penyanyi folk dari Bandung. Lagu tentang kota dan pulang.', // foreground, not muted: muted text drops under 4.5:1 on some tenant presets. style: theme.textTheme.p.copyWith(color: theme.colorScheme.foreground), textAlign: TextAlign.center, ), const SizedBox(height: 16), ShadButton( width: double.infinity, backgroundColor: tenant['tenant-accent'], foregroundColor: tenant['tenant-accent-foreground'], leading: const Icon(LucideIcons.play, size: 16), onPressed: () {}, child: const Text('Dengarkan rilis terbaru'), ), ], ), ), ), const SizedBox(height: 16), for (final (label, icon) in _links) Padding( padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4), child: ShadButton.outline( height: 48, mainAxisAlignment: MainAxisAlignment.start, leading: Icon(icon, size: 16), trailing: const Icon(LucideIcons.chevronRight, size: 16), onPressed: () {}, child: Expanded(child: Text(label)), ), ), ], ), ); }}Built from
Section titled “Built from”Avatar and Card, with the tenant accent tokens.
Flutter
Section titled “Flutter”sosialoka_ui has no tenant option yet. Read the preset from SosialokaColors.tenant[accent][mode], and pass its colors to the hero and the main button.
