aegixx1k downloadsTransforms YAML data into a simple business/contact card with power features.
The Obsidian Contact Cards Plugin transforms YAML data inside a special code block into a beautifully designed contact card. This lets you quickly view a person's details (even in preview mode).

NOTE: This plugin utilizes third-party services:
contact-card code block with YAML fields, and the plugin will handle the rest..obsidian/plugins/obsidian-contact-cards folder or symlink it!npm installnpm run dev to compile your plugin from main.ts to main.js.Add a code block to your note:
```contact-card
name: Bryan Stone
email: [email protected]
company: Steampunk Labs
title: Founder & Managing Partner
phone: 2565551234
location: Madison, AL
```
View the rendered card in Reading/Preview mode:

You can use Obsidian wiki-link syntax to reference images from your vault for the contact photo or company logo:
```contact-card
name: Bryan Stone
photo: [[headshot.png]]
logo: ![[company-logo.png]]
company: Steampunk Labs
title: Founder & Managing Partner
```
Both [[...]] and ![[...]] forms are supported. The plugin resolves the link to the corresponding file in your vault. If the linked file is not found, the field is silently ignored (falling back to Gravatar for photos, or Logo.dev for logos).
The photo and logo fields are shorthand aliases for photo_url and logo_url respectively — you can use either form.
The obsidian-contact-cards plugin allows for several customizable settings to tailor the behavior and design of your contact cards. Below are the available options you can configure:
The obsidian-contact-cards plugin provides several customizable CSS classes to help you personalize the appearance of the business cards. You can override these styles in your own stylesheet to create a custom look and feel. Below are the available classes and their purposes:
.contact-card-content - The outer container for the card, this is used for layout & sizing..contact-card - The inner container that holds the profile image, logo, and contact information..contact-card-photo - Profile photo image of the contact..contact-card-logo - Company logo displayed on the card..contact-card-info - Container for the contact's name, title, company, and other information..contact-card-name - The name of the contact..contact-card-title - The title/position of the contact..contact-card-separator - A separator between sections in the contact info (e.g., between name and company)..contact-card-error - Applied to elements displaying an error message..contact-card-content - This class uses the animatop animation to slide the background shape into view..contact-card:after - This class defines the background shape displayed behind the card.Contributions, issues, and feature requests are welcome!
Feel free to open an issue or submit a pull request if you find any bugs or have suggestions for improvements.