Button Sets

by Ashly Lorenzana
5
4
3
2
1
Score: 50/100

Description

Obsidian plugin for creating sets of customized buttons with animated icons

Reviews

No reviews yet.

Stats

0
stars
79
downloads
0
forks
51
days
48
days
51
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
8
commits

README file from

Github

Custom Styled Buttons for Obsidian

A deliberately simple plugin for inserting styled buttons into notes and giving them icons you upload yourself. Animated GIF, APNG, and WebP icons retain their animation. Button and icon styles are tightly scoped so Obsidian themes cannot add their normal note-image borders, padding, or shadows to uploaded icons.

Install

  1. Extract the ZIP.
  2. Copy the custom-styled-buttons folder into YourVault/.obsidian/plugins/.
  3. In Obsidian, open Settings → Community plugins, reload installed plugins, and enable Custom Styled Buttons.

Use

  1. Open Settings → Custom Styled Buttons and upload one or more icons.
  2. In a note, open the Command Palette and run Custom Styled Buttons: Insert custom styled button.
  3. Choose the label, action, icon, colors, corners, and animation.
  4. Switch to Reading view or Live Preview to use the rendered button.

Buttons can run an Obsidian command by command ID or open a URL. The inserted block is ordinary JSON, so you can duplicate it and change any value by hand.

{
  "label": "Open settings",
  "command": "app:open-settings",
  "icon": "sparkle.gif",
  "background": "#ff2bd6",
  "textColor": "#111111",
  "borderColor": "#111111",
  "radius": 8,
  "fontSize": 17,
  "iconSize": 40,
  "animation": "wiggle"
}

Animation options: none, pulse, bounce, wiggle, float, and glow.

Button rows

The button-row CSS is built into the plugin; no separate CSS snippet needs to be installed or enabled. Put complete styled-button blocks inside a button-row callout and prefix every line with >:

> [!button-row]
> ```styled-button
> {
>   "label": "First button",
>   "command": "",
>   "url": "",
>   "icon": "first.gif",
>   "background": "#ffffff",
>   "textColor": "#000000",
>   "borderColor": "#000000",
>   "radius": 10,
>   "fontSize": 17,
>   "iconSize": 40,
>   "animation": "none"
> }
> ```
>
> ```styled-button
> {
>   "label": "Second button",
>   "command": "",
>   "url": "",
>   "icon": "second.gif",
>   "background": "#ffffff",
>   "textColor": "#000000",
>   "borderColor": "#000000",
>   "radius": 10,
>   "fontSize": 17,
>   "iconSize": 40,
>   "animation": "none"
> }
> ```

The row wraps automatically on narrower screens.

Notes

  • Uploaded images are copied to .obsidian/plugins/custom-styled-buttons/icons/.
  • Command IDs are the internal IDs Obsidian and plugins register. If you do not know one, use a URL action or inspect the command list with a developer utility.
  • A button with both a URL and command uses the URL.