avatarAlicia Domínguez

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

2713

Abstract

Files</h1><p id="aea6">We need to add a <code>tailwind.config.js</code> and a <code>postcss.config.js</code> file to the root of our application. Use the following command to set this up:</p><div id="ee16"><pre>npx tailwindcss <span class="hljs-keyword">init</span> -p</pre></div><p id="414e">This will create a <code>tailwind.config.js</code> file at the root of your project:</p> <figure id="59e0"> <div> <div>

            <iframe class="gist-iframe" src="/gist/BetterProgramming/5f1fc501fe510339576a69bd5936c2b1.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
          </div>
        </div>
    </figure></iframe></div></div></figure><p id="21b1">Learn more about configuring Tailwind in the <a href="https://tailwindcss.com/docs/configuration">configuration documentation</a>.</p><p id="374c">It will also create a <code>postcss.config.js</code> file that includes <code>tailwindcss</code> and <code>autoprefixer</code> configured:</p>
    <figure id="5464">
        <div>
          <div>
            
            <iframe class="gist-iframe" src="/gist/BetterProgramming/373cad919a6f591df7649efec7dcce78.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
          </div>
        </div>
    </figure></iframe></div></div></figure><h1 id="d634">Import the CSS</h1><p id="07d3">Let’s create a <code>styles</code> folder and import Tailwind CSS from a CSS file:</p><div id="236d"><pre><span class="hljs-built_in">touch</span> styles/tailwind.css</pre></div><p id="79bb">Inside <code>tailwind.css</code>:</p><div id="33c2"><pre><span class="hljs-variable">@tailwind</span> base;

<span class="hljs-variable">@tailwind</span> components; <span class="hljs-variable">@tailwind</span> utilities;</pre></div><p id="5160">To add global CSS to a Next.js app, we need to override the default <code>App</code> component. With Next.js 10, you should already have <code>_app.js</code> inside your pages folder. Now import the stylesheet we created:</p><div id="da6f"><pre><span class="hljs-function"><span class="hljs-title">import</span></span> <span class="hljs-string">'../styles/globals.css'</span> <span class="hljs-function"><span class="hljs-title">import</span></span> <span class="hljs-string">'../styles/tailwind.css'</span>;</pre></div><div id="c873"><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">MyApp</span>(<span class="hljs-params">{ Component, pageProps }</span>) { <span class="hljs-keyword">return</span> <span class="language-xm

Options

l"><span class="hljs-tag"><<span class="hljs-name">Component</span> {<span class="hljs-attr">...pageProps</span>} /></span></span>; }</pre></div><p id="cd5c">Cool, now we are ready to add some Tailwind CSS magic to our home page. Go to <code>/pages/index.js</code> (or <code>/pages/index.tsx</code> if you use TypeScript) and add some elements with Tailwind CSS classes. For example:</p> <figure id="7022"> <div> <div>

            <iframe class="gist-iframe" src="/gist/BetterProgramming/5d768ccc213a3d4eeff44d3955cebd3d.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
          </div>
        </div>
    </figure></iframe></div></div></figure><p id="12b1">Run <code>yarn dev</code> to see your app on <a href="https://localhost:4202/settings/departments">http://localhost:3000</a> in your browser.</p><h1 id="996b">Configure PurgeCSS</h1><p id="d1b6">One problem with Tailwind CSS is the large file size, but <a href="https://github.com/FullHuman/purgecss">PurgeCSS</a> can fix this. PurgeCSS reduces the file size by scanning your HTML and removing any classes that aren’t used. We only want this in production because if we are developing, we want to be able to use any Tailwind CSS class without running the build process.</p><p id="a37c">Now with Tailwind CSS v2, PurgeCSS is already included. All you have to do is update the <code>tailwind.config.js</code> file so Tailwind can tree-shake unused styles in production builds. Update your file like this:</p>
    <figure id="c01b">
        <div>
          <div>
            
            <iframe class="gist-iframe" src="/gist/BetterProgramming/4fe51a3e9e7f33b4e647ffee294f8cdb.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
          </div>
        </div>
    </figure></iframe></div></div></figure><p id="2dad">For now, we check all of our code inside <code>.js, .jsx, .ts or .tsx</code> files that live in either the <code>pages/</code> or <code>components/</code> folder. If you plan to add HTML in other folders like <code>containers/</code> or something, make sure you add that folder to this configuration file.</p><p id="29a2">You can read the guide from Tailwind on <a href="https://tailwindcss.com/docs/optimizing-for-production">optimizing for production</a> to learn more about tree-shaking unused styles for best performance.</p><h1 id="6371">Conclusion</h1><p id="fafc">Now we are ready to work with the latest versions of Next.js and Tailwind CSS without having to worry about bundle sizes!</p><p id="fdfe">That’s it! Thanks for reading. I hope it was helpful.</p></article></body>

Reasons Why You Should Always Check People’s Profiles

You never know who you might be missing out on

Image created with Canva Pro

Between the “read as much as you can” and “connect with others”, there are a bunch of people who don’t do what they preach, and no, this is not one of those articles where some random writer rants about this platform. My intention with this article is to make you think about your social media behaviour and the reasons behind it.

If what you are trying to do is to find your ideal group of people to create some authentic connectivity which will eventually lead you to a sale - which by the way, when you do that you lose your authenticity. Trust me on that, I've been there - then you are probably being too Narcissistic. And yes, we all have worn that label at some point.

After experiencing a “connectivity overwhelm” during the last three months, I have decided to go back to a more “aligned with my beliefs” self.

Being a people pleaser can take you to a place of no return. It can make you lose your identity. And this is what was starting to happen to me, again, but this time in the online space.

So I have taken a pace back and gone back to that person I was when I opened my Twitter account in order to share with the world my fears and my passion for all things Gothic, mainly fiction. A me that, maybe out of lack of knowledge, genuinely looked at people’s profiles before following them, who also took the time to check who followed me to decide whether to follow them back and who connected with creators whose work really resonated with me.

I have gone back to contact other creators after having read, followed and interacted with them for a while. A long process? Yes. Worthwhile? Totally, because when you do this, you have enough information about the other person to be offering interesting deals for them too.

The only way to be valuable to others is by analysing how they align with your project, proposing something attractive to them that’s also beneficial to you and staying in contact with them. At the end of the day, with time some of these contacts will become part of your tribe and the people you will hang out with in online meetings or even plan to visit one day.

Knowing yourself first can be a game-changer

This is the thing: as a good INFP (Introverted, Intuitive, Feeler and Perceptive), I’m in that group of 4% of the population, also known as “the mediators”.

As a teacher for over twenty years now, that aspect has always been one of my strengths when recommending platforms, groups, services, what to do and say in interviews, matching profiles, and creating social events.

The downside of these programmes is that one makes a huge effort and invests a lot of energy organising activities and events to then see how some people couldn’t care less. In those cases, I felt hugely deceived and angry with those who didn’t even say thank you for the effort.

Of course, my instant reaction as an INFP is to look at the group of dissatisfied or numb customers rather than looking at all the good things that came out of that experience and how many other people were really making the most of the opportunities given.

If I had known about the Myers Briggs test then, I would have probably had the tools to handle my frustration and redirect my energies elsewhere.

To know more about the INFP profile here you have a link:

An exceptional follower

Coming back to this article’s main topic, your personality type can be what brings you down or it can be the key to success. And this is something we should all be taught to learn about in schools:

how to handle decisions and live struggles depending on how we perceive the world around us.

Being someone who connects with others the way I do has given me the labels of “exceptional”, “genuine” or “shiner”. I can’t deny that those adjectives make me feel unique and special. However, the downside is that I also expect the same from the other side and when that doesn’t happen, I get a slap of reality in the face.

Become friends with your Shadow Self

If this is the first time you read about the Shadow Self, don’t worry about it, I only knew about it a few months ago when I started working in-depth on “Identity and the Gothic” while developing my brand.

In a nutshell, the Shadow Self is the part of ourselves that we repress in order to be accepted in a social group. This term was first coined by psychologist and Freud’s disciple Carl Jung.

As Nametagscott says in his article Treat the shadow self as an energy source:

Instead of feeding it, feed on it. Make it part of your diet. Treat the shadow self as an energy source. Channel it into creating inspiring art or fostering social change or running charity triathlons.

Your Shadow Self can create huge insecurities if you are the “relying on others too much” type, which has a direct impact on your identity as a friend, a family member and of course as a content creator.

Do you know what your Shadow Self looks like? It’s never too late to find out.

The road to authentic networking

When I looked at the work of my new follower Amy Grech (as I do every time someone follows me), I realised that in one of her articles she talked about “Women in Horror” and her experience as a horror writer.

To my surprise, she happens to know my very good friend, Irish writer and academic Tracy Fahey. This got us talking and even though we haven’t connected much since that initial contact because she’s not very present on Medium, she’s been in the back of my mind for a while, as well as in my list of writers and people to come back to.

I know that having read her few articles and having people in common is the beginning of a slow cooking process that will eventually transform into a collaboration proposal. Don’t forget this is what happens when you are a mediator by nature.

This is the article where you can find a list of contemporary women who write horror:

Conclusions

We all have different ways of interacting with others on social platforms and I’m nobody to tell you what’s the best way to do so. However, if you are jumping like crazy all over the place trying to connect with people I recommend you start by reading the work of all your followers.

There are bound to be a lot of followers who don’t even read your work and all they want is for you to follow back, or sell you something straight away. But that, my friend, is also an interesting discovery.

Takeaways

  • If you want to create powerful connections, you need to be wanting to genuinely connect with people around you first
  • Starting a new relationship with a complete stranger takes a lot of courage, don’t spoil it by not being meaningful
  • Your personality type can help you discover more about yourself and the dark side of connecting with others
  • Follow the breadcrumbs. Analyse the real reasons people connect with you. These will save you some heartache
  • Connecting for the right reasons can lead you to priceless friendships for life

Final thoughts

How do you connect with people? Are your reasons genuine? How much do you know about yourself?

Thanks for reading

© Alicia Domínguez

As a “Confidence Builder”, “Writer”, “Content Creator” and “Project Auditor”, I help people find their path by analysing their dark corners. Visit me at Alice in Gothic Land, check my YouTube channel and follow me on Facebook, Twitter, LinkedIn, Instagram, or Ko-fi. Book your First Free Assessment Call. Let’s figure out your unique journey.

If you liked this article you might also want to read:

Also, support the gang: use my referral link to become a Medium member so other great writers and I can keep producing enlightening and transformational content for you to grow and keep learning.

Illumination
Relationships
Life Lessons
Followers
Gothic
Recommended from ReadMedium