avatarCathy Chapman, PhD

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2236

Abstract

was an issue remaining. The document used dark theme and the content in the external page used white background.</p><p id="0afe"><b>Hack 2: </b>Use dark-reader to automatically generate css for your external page</p><p id="f222">You can use <a href="https://darkreader.org/">dark-reader</a> to automatically apply dark style to your page. There are two options. First is to use dark-reader in your project via npm and apply dark theme automatically. For my case, this was a bit overkill and I choose the second option. Second option is to generate and export css file corresponding to dark theme of your external page and then adding that style-sheet to our <code>iframe</code>.</p><p id="df41">First install the <a href="https://darkreader.org/">dark-reader</a> add-on/extension to your browser. I have done it on Firefox. Then open your external page in that browser and enable the dark-mode in dark-reader add-on.</p><figure id="54a0"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*akq4Mmrutw6XTVdZMY9VBQ.png"><figcaption>dark-reader add-on in Mozilla Firefox</figcaption></figure><p id="ded5">When you enable dark-mode, the dark-reader has generated and applied appropriate styling to make your page dark-themed. It works great. You can also tweak around and set brightness, and contrast as well as use developer tools to further customize the design. Once you are happy with the design, click on the dark-reader browser-action button to open the popup menu and click on settings.</p><figure id="af34"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*B_-rTeDGalYJ-Ci6nyyapg.png"><figcaption></figcaption></figure><p id="0ea2">This will open up the settings view as displayed below.</p><figure id="bac9"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*dqdeQaWkTj38obrpRLEoVg.png"><figcaption></figcaption></figure><p id="1b63">Click on Manage settings and then on <b>Export Dynamic Theme</b>.</p><figure id="504a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*eoK7sNZcYxZF-xWQ3NjEIg.png"><figcaption></figcaption></figure><p id="2bb4">Great job! This will download a css file that you can add to your page to apply the styles for dark theme. Hmmm… So far so g

Options

ood. I believe most of you would do the rest of the stuff on your own, but for the sake of completeness let us add a few lines of code to the event-listeners that we created in Hack1.</p><p id="2a64">Save the css file that was downloaded by the dark-reader as <code>dark-theme.css </code>in the <code>/public</code> directory of your Next.js app. Now, add following lines inside the <code>"load"</code> event-listener.</p><div id="d14f"><pre>const link <span class="hljs-operator">=</span> doc.createElement(<span class="hljs-string">"link"</span>)<span class="hljs-comment">;</span></pre></div><div id="e451"><pre><span class="hljs-attr">link.rel</span> = <span class="hljs-string">"stylesheet"</span><span class="hljs-comment">;</span></pre></div><div id="d811"><pre><span class="hljs-attr">link.href</span> = <span class="hljs-string">"/dark-theme.css"</span><span class="hljs-comment">;</span></pre></div><div id="214b"><pre>doc.head.appendChild(link)<span class="hljs-comment">;</span></pre></div><p id="caa5">Next time when you do this, you will be able to add existing HTML files to your project with custom themes in much lesser time than the time you spent reading this document.</p><p id="3a9a">Wish you all the best and happy coding!</p><p id="ad6f">Interested in building career in web development? Checkout E-degree in JS Frameworks</p><div id="2976" class="link-block"> <a href="https://www.eduonix.com/javascript-frameworks-mini-edegree/UHJvZHVjdC00NDExNjgw"> <div> <div> <h2>JavaScript Mini E-Degree: Master JS Frameworks To The Core!</h2> <div><h3>A perfect mini-e-degree suitable for everyone who wants to master JavaScript effectively without wasting any time…</h3></div> <div><p>www.eduonix.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*OBLf0FHe3Jrk8Lbg)"></div> </div> </div> </a> </div><p id="79c1">Or my course on <a href="https://www.udemy.com/course/react-and-next-js-with-typescript/?referralCode=7202184A1E57C3DCA8B2">React + Next.js with TypeScript</a>.</p></article></body>

SPIRITUALITY

Detachment: More than about Things

We hold onto behavior patterns because we are attached to them. Imagine what would happen in life if you released behavior patterns and allowed them to whither into nothingness.

Image by John Hain from Pixabay

Spiritual growth and personal development, synonymous terms for me, are areas of struggle personally and for others.

Of late, those in the groups I lead, have been working on non-attachment. A couple of weeks ago I used a guided imagery given to me by Spirit. From our hearts we were asking what attachment is most negatively affecting our lives.

The ultimate goal of the process was finding the wound in need of healing, and then asking for healing, to assist in releasing the attachment.

I was startled by the answer I received. Some call it “an insight into the obvious.” I’ll share that after this brief tangent.

I was reading an article by David Gerken on his journey of non-attachment. (You may click on it below.) Since I was working through detachment myself, his words nudged me to write about my experiences.

David talks about his struggle in releasing things.

I can certainly relate to the struggle. As I read about his journey, I thought about one of my things I’ve been using for non-attachment: a mug Mom gave me decades ago for Valentines Day.

Mom gave the gift before she became ill. She’s been gone for 26 years now.

Detachment is about more than things

Back to the guided imagery experience…

From my heart, connected to my Healing Team, I asked, “What am I attached to which is holding me back from personal growth?”

As I tell my clients, “Take the first thing that pops into your mind.”

The popping produced a huge “OUCH” in me.

Resentments.

Resentments were holding me back.

Resentments hold everyone back.

Resentments build a wall around our hearts. The wall prevents us from giving love and accepting love to our fullest capacity.

I am held back by my own wounds which I allowed to fester.

We humans are known for holding tight those feelings of anger and pain which fill our lives with the vile smell of rotting garbage.

Imagine you placed all the hurts you’ve had in your life in a huge garbage bag. (Be sure it’s one of the heaviest duty ones you can find.)

You want to tie the bag tight because each one of those events festers, ferments, and grows.

Each hurt you don’t release, I don’t release, forms a resentment with an aroma which will cause you to gag when you open the bag.

The problem is the “aroma” is so strong it seeps out the bag and into our lives. To avoid it, we form a wall around our hearts which prevent us from discovering the Joy within.

My favorite healing tool

Shortly after Mom died and shortly after I left the convent, I was using energy healing to assist a client.

I was given this simple 5-step process I call the Soul Healing Process.

It’s so simple, I’ve seen others using similar steps.

To begin, you have a wound in mind. You might not know the specific wound, but you know the pain, feeling, behavior pattern or resentment you’d like to release. Ask for healing of the wound beneath those experiences.

  1. Connect with your spiritual connection. I call in the Soul Healing Angels.
  2. Ask them to find and bring back to you all the pieces of yourself you lost when (specific incident) or related to (behavior pattern, resentment, feeling).
  3. Ask that all pieces be cleaned, repaired and healed.
  4. Ask that all pieces be fully integrated within you.
  5. Give thanks.

The Soul Healing Process takes about a minute. Try it and let me know what you think.

This prayer has been responsible for much of my healing over the last 25+ years since it was given to me.

Spirituality
Personal Development
Detachment
Illumination
Personal Growth
Recommended from ReadMedium