obsidian-plugin-shadcn-styling
Obsidian Plugin shadcn Styling
Use this skill when the plugin already uses shadcn/ui and you need the UI to look more polished without drifting into brittle custom styling.
Typical triggers
- "Make this settings page prettier"
- "These shadcn components look inconsistent"
- "Can we theme this plugin view better?"
- "Replace these raw Tailwind color classes with something cleaner"
- "Why does this dialog feel visually off?"
Prefer another skill when
- the repo is not clearly using shadcn/ui or Tailwind →
obsidian-plugin-css-styling - the issue is component architecture or prop design →
obsidian-plugin-react-components - the issue is which form/card/dialog primitives to compose →
obsidian-plugin-shadcn-composition - the issue is copy, labels, or settings wording →
obsidian-plugin-ui-ux
Focus areas
- semantic colors instead of raw palette classes
- built-in variants before custom overrides
classNamefor layout, not for rewriting component internalsgap-*andsize-*conventions- icon-library alignment and
data-iconplacement - CSS-variable based theme customization
- adding custom tokens safely when built-ins are insufficient
Obsidian-specific guidance
When applying shadcn styling in an Obsidian plugin:
- keep the UI visually restrained so it still feels at home inside Obsidian
- prefer theme tokens and CSS variables over hard-coded light/dark overrides
- verify focus states and contrast with
obsidian-plugin-accessibility - use
obsidian-plugin-css-stylingfor broader plugin-level container scoping and coexistence with Obsidian styles
Good defaults
- prefer
variant="outline",variant="secondary", etc. before custom classes - prefer
bg-primary,text-muted-foreground,text-destructive, etc. over raw color utilities - use
cn()for conditional classes - avoid manual z-index tweaks on overlay primitives
- customize through global variables or explicit component variants, not scattered ad hoc overrides
Reference files
../obsidian-plugin-shadcn-ui/references/rules/styling.md../obsidian-plugin-shadcn-ui/references/rules/icons.md../obsidian-plugin-shadcn-ui/references/customization.md
Related skills
obsidian-plugin-shadcn-uiobsidian-plugin-shadcn-compositionobsidian-plugin-react-componentsobsidian-plugin-css-stylingobsidian-plugin-accessibilityobsidian-plugin-ui-uxobsidian-plugin-dev
More from zpankz/obsidian-skills
viva-llm
Use VIVA LLM for multi-provider chat, voice calls, terminal integration, assistants, skills, MCP tools, and agent mode inside Obsidian. Trigger when the user mentions VIVA LLM, voice chat, realtime voice, LLM providers in Obsidian, or vault-integrated AI chat.
1obsidian-plugin-accessibility
Use this skill when building or reviewing Obsidian plugin UI for keyboard access, ARIA labels, screen reader support, focus handling, or mobile touch targets. Accessibility is treated as mandatory, not optional.
1tasks
Create and query tasks using the Tasks plugin syntax including due dates, recurrence, priorities, and task queries. Use when the user mentions Tasks plugin, recurring tasks, task queries, or advanced task management in Obsidian.
1dataview
Create Dataview queries using DQL (Dataview Query Language), inline queries, and DataviewJS. Use when the user mentions Dataview, DQL, querying notes, listing notes by metadata, or creating dynamic views of vault content.
1defuddle
Extract clean markdown from web pages using Defuddle CLI, removing clutter to save tokens. Use when the user provides a URL to read or analyze.
1datacore
Create Datacore views using JSX/React syntax and the dc.* API. Use when the user mentions Datacore, dc.useQuery, JSX views, or React-based vault queries. Datacore is the successor to Dataview with better performance and interactive views.
1