# \[FEATURE\] Perspective - Allow pasting of CSS to create/overwrite/merge Perspective Style

**URL:** <https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [June 9, 2021, 2:17am UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586 "2021-06-09T02:17:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 9, 2021, 2:17am UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/1 "2021-06-09T02:17:54Z")

</div>

v8.1.5

As in title, please allow pasting of CSS to create and modify Perspective Styles. Currently the paste option is disabled ☹

I want to copy a whole folder of style and bulk find/replace stuff in the styles within their copied CSS, then paste back in. Right now I either have to do it manually, or I have to export the styles, open all css definition files in notepad++, find replace in all opened documents, save all, then import

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 9, 2021, 7:06pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/2 "2021-06-09T19:06:40Z")

</div>

Paste where, exactly? I’m having a hard time picturing what you’re describing.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 9, 2021, 9:14pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/3 "2021-06-09T21:14:38Z")

</div>

Exactly the same as how pasting tag json works:

1. copy Perspective Style(s) to clipboard (which copies the CSS)
2. make changes in text editor and copy again to clipboard
3. right click in the Perspective Styles at the right folder location and press Paste to update the Styles with your changes

Edit: although I realise now that the CSS itself will define which styles it will update, not the location/folder that you paste it into, as this structure is defined by the CSS selectors. Minor detail

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 11, 2021, 8:19pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/4 "2021-06-11T20:19:29Z")

</div>

I’m not sure this is so wise.

It’s easy to generate our limited subset of CSS that our styles will create.

Parsing arbitrary CSS that is pasted, on the other hand, is a totally different effort.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 12, 2021, 3:47am UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/5 "2021-06-12T03:47:27Z")

</div>

It’s already possible though via an import, so shouldn’t that code already be there to use?  
I can export the styles, change the css in them, and reimport the file and it changes, it’s just more effort than just copy paste

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 16, 2021, 10:28pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/6 "2021-06-16T22:28:54Z")

</div>

I’m not sure what import you mean. You mean the `style.json` file that is the project resource? If so, that isn’t CSS - it’s JSON.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 16, 2021, 10:41pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/7 "2021-06-16T22:41:39Z")

</div>

Ah, so it is! I got my wires crossed, nevermind what I said 🐑

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 16, 2021, 10:56pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/8 "2021-06-16T22:56:48Z")

</div>

CSS does look a lot like JSON if you squint your eyes 🙈

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 16, 2021, 10:58pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-allow-pasting-of-css-to-create-overwrite-merge-perspective-style/47586/9 "2021-06-16T22:58:06Z")

</div>

Or close them entirely haha 😄
