<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Liv</title>
    <description>The latest articles on DEV Community by Liv (@chooco).</description>
    <link>https://dev.to/chooco</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F614657%2F0a63b772-344e-488a-8377-2c96fa42aab8.jpg</url>
      <title>DEV Community: Liv</title>
      <link>https://dev.to/chooco</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chooco"/>
    <language>en</language>
    <item>
      <title>Sum 2 numbers, wrong answers only</title>
      <dc:creator>Liv</dc:creator>
      <pubDate>Thu, 09 Jun 2022 07:48:40 +0000</pubDate>
      <link>https://dev.to/chooco/how-to-sum-2-numbers-wrong-answers-only-19m5</link>
      <guid>https://dev.to/chooco/how-to-sum-2-numbers-wrong-answers-only-19m5</guid>
      <description>&lt;p&gt;Hey Dev.to!&lt;br&gt;
It is almost Friday, so lets start the day with a fun task, sum two numbers together. But without summing the two numbers together like this, like you would do normally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const num1 = 2;
const num2 = 3;
const result = num1 + num2;
console.log(result);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I start with my solution:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const num1 = 2;
const num2 = 3;
const arr1 = new Array(num1).fill(0);
const arr2 = new Array(num2).fill(0);

const result = arr1.concat(arr2).length;
console.log(result);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Will be fun to see what Frankenstein Solutions you folks come up with. ⚗️🧑‍💻&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Overriding third-party frameworks' SCSS: How its done (SCSS)</title>
      <dc:creator>Liv</dc:creator>
      <pubDate>Wed, 14 Apr 2021 23:05:00 +0000</pubDate>
      <link>https://dev.to/chooco/overriding-third-party-frameworks-scss-how-its-done-scss-55aj</link>
      <guid>https://dev.to/chooco/overriding-third-party-frameworks-scss-how-its-done-scss-55aj</guid>
      <description>&lt;h2&gt;
  
  
  Introduction and backstory
&lt;/h2&gt;

&lt;p&gt;We have all been there. You're working on a project and decided to use a third-party framework for the design on the website. Everything is going smooth and fine, you're maybe using a few of its component. Everything is looking good in a short moment of time.&lt;/p&gt;

&lt;p&gt;But after working on it for a while, you look at the design and almost vomit. You don't like how each component have rounded corners by default. You know some CSS and apply&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br&gt;
border-radius: 0;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Everything should been flat, right?&lt;br&gt;
&lt;strong&gt;Wrong!&lt;/strong&gt;&lt;br&gt;
It is still the same design and in the framework's documentation, there's no option for disable round corners. You spend hours and hours trying to debug the code and search the web without any result. &lt;/p&gt;

&lt;p&gt;This is based on a real problem I had the last few days until I solved it by...&lt;/p&gt;
&lt;h2&gt;
  
  
  Overriding its scss
&lt;/h2&gt;

&lt;p&gt;First of all, you're going to need SCSS for this tutorial&lt;br&gt;
'npm install -g sass'&lt;/p&gt;

&lt;p&gt;After installation, make a main SCSS file, &lt;strong&gt;main.scss&lt;/strong&gt;&lt;br&gt;
We want to then import the framework's css in the main file, using &lt;em&gt;&lt;a class="mentioned-user" href="https://dev.to/import"&gt;@import&lt;/a&gt;&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//FRAMEWORK
@import "~vuesax/dist/vuesax.css";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you need to find what classes you want to override in the framework, for me I want to make all vuesax cards have no border-radius. After some research, the styling is under the class &lt;em&gt;.vs-card&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Write the class name above the import and apply your custom CSS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.vs-card{
border-radius: 0;
}

@import "~vuesax/dist/vuesax.css";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Import &lt;strong&gt;main.scss&lt;/strong&gt; to your project and see your CSS overriding the framework's CSS. &lt;/p&gt;

&lt;p&gt;Hope this helps you :)&lt;/p&gt;

&lt;h4&gt;
  
  
  Some words
&lt;/h4&gt;

&lt;p&gt;This is my first blog post I've written to Dev.to as well a blog post in general. I decided to take the time to write this because on the web, I barely found any information on how to apply your CSS to a framework. &lt;br&gt;
Wrote this at 1 AM in joy after finding the solution. &lt;/p&gt;

</description>
      <category>css</category>
      <category>npm</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
