Skip to content

Commit 125f9e9

Browse files
howwohmmclaude
andcommitted
fix(uno): safelist dynamic social icon classes for about page
Social icons in app/pages/about.vue are resolved at runtime via getSocialIcon() and bound with :class — UnoCSS static analysis cannot detect them, so they must be explicitly safelisted. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 35a73b7 commit 125f9e9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

uno.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ export default defineConfig({
158158
['badge-subtle', 'bg-bg-subtle text-fg-subtle'],
159159
['badge-accent', 'bg-accent/10 text-accent'],
160160
],
161+
safelist: [
162+
// Dynamic social icon classes used in about.vue via getSocialIcon()
163+
// UnoCSS cannot statically detect these since they are bound via :class at runtime
164+
'i-simple-icons:x',
165+
'i-simple-icons:mastodon',
166+
'i-simple-icons:bluesky',
167+
'i-simple-icons:linkedin',
168+
'i-simple-icons:youtube',
169+
'i-simple-icons:discord',
170+
'i-lucide:globe',
171+
'i-lucide:link',
172+
],
161173
rules: [
162174
// Custom scale for active states
163175
['scale-98', { transform: 'scale(0.98)' }],

0 commit comments

Comments
 (0)