# Spectrum for Adobe XD plugin

**URL:** <https://forums.creativeclouddeveloper.com/t/spectrum-for-adobe-xd-plugin/2333>\
**Category:** Adobe XD\
**Created:** [December 13, 2020, 2:26am UTC](https://forums.creativeclouddeveloper.com/t/spectrum-for-adobe-xd-plugin/2333 "2020-12-13T02:26:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [December 13, 2020, 2:26am UTC](https://forums.creativeclouddeveloper.com/t/spectrum-for-adobe-xd-plugin/2333/1 "2020-12-13T02:26:01Z")

</div>

I’m not able to install this plugin for some reason (I’m still figuring it out) but is it possible to get the visual settings of the spectrum components?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/a/ac892bd37ac4be92d8f11f03996d1b422691a5a9.jpeg)

For example, if a user puts a Spectrum Button component on the artboard and changes the fill color can my plugin get:

1. That it is a Spectrum component (created by the Spectrum plugin)
2. The fill color that has been changed from default

---

<div class="post-metadata">

**Author:** ![Erin\_Finnegan](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/erin_finnegan/32/100_2.png) [@Erin\_Finnegan](https://forums.creativeclouddeveloper.com/u/Erin_Finnegan)\
**Post date:** [December 17, 2020, 8:50pm UTC](https://forums.creativeclouddeveloper.com/t/spectrum-for-adobe-xd-plugin/2333/2 "2020-12-17T20:50:34Z")

</div>

I’m not sure why you can’t download it yet…

When XD 36 comes out in January, there will be Spectrum support, I’m working with the team on a blog post and newsletter update even as I write this. For now, you can read [the Spectrum Web Component documentation here](https://www.adobe.io/photoshop/uxp/uxp/reference-spectrum/).

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [March 20, 2021, 9:57pm UTC](https://forums.creativeclouddeveloper.com/t/spectrum-for-adobe-xd-plugin/2333/4 "2021-03-20T21:57:56Z")

</div>

I was able to install it. Now I need to know if it’s possible to get the user preferences from the Spectrum components.

For example, if a user using the Spectrum plugin (shown above) puts a Spectrum Button component on the artboard and changes the fill color (using the Spectrum plugin shown above) can my plugin get:

1. That it is a Spectrum component (created by the Spectrum plugin)
2. The fill color that has been changed from the default

I’ve noticed there is a new **[sharedPluginData](https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#scenenodesharedplugindata--perpluginstorage)** property on SceneNode objects. Is any data written to this by the Spectrum plugin (shown above) about the scene nodes property changes?

If you were to look at the code it would look something like this:

```
const ADOBE_SPECTRUM_PLUGIN_ID = "<ID here>";
var sharedData = sceneNode.sharedPluginData.getForPluginId(ADOBE_SPECTRUM_PLUGIN_ID);
var numberOfKeys = sharedData.keys();

if (numberOfKeys>0) {
    // guessing the names of the properties
    if (sharedData.getKey("fill")!=null) {
        // do something
    }
    if (sharedData.getKey("textColor")!=null) {
       // do something
     }
    if (sharedData.getKey("label")!=null) {
      // do something
    }
 }
```
