feat(08-04): apply design tokens to cover-grid, track-list, queue-panel, and detail components
- cover-grid dynamic text tiers use --yj-text-xs/sm/md/lg tokens - track-list sort toolbar, row text, and fav icon use design tokens - queue-panel header and track text use type scale tokens - track-details, track-info, artist-details, genre-details use tokens - designTokens imported and prepended to static styles in all 8 files
This commit is contained in:
@@ -755,12 +755,12 @@ export class CoverGrid
|
||||
`${placeholderFont}px`,
|
||||
);
|
||||
|
||||
// Text sizing tiers.
|
||||
// Text sizing tiers mapped to design tokens.
|
||||
if (w < 160) {
|
||||
this.classList.add('size-small');
|
||||
this.style.setProperty(
|
||||
'--album-name-font',
|
||||
'11px',
|
||||
'var(--yj-text-xs)',
|
||||
);
|
||||
this.style.setProperty(
|
||||
'--artist-name-font',
|
||||
@@ -770,21 +770,21 @@ export class CoverGrid
|
||||
this.classList.remove('size-small');
|
||||
this.style.setProperty(
|
||||
'--album-name-font',
|
||||
'16px',
|
||||
'var(--yj-text-lg)',
|
||||
);
|
||||
this.style.setProperty(
|
||||
'--artist-name-font',
|
||||
'13px',
|
||||
'var(--yj-text-md)',
|
||||
);
|
||||
} else {
|
||||
this.classList.remove('size-small');
|
||||
this.style.setProperty(
|
||||
'--album-name-font',
|
||||
'14px',
|
||||
'var(--yj-text-lg)',
|
||||
);
|
||||
this.style.setProperty(
|
||||
'--artist-name-font',
|
||||
'12px',
|
||||
'var(--yj-text-sm)',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user