<?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: Karima Aktari</title>
    <description>The latest articles on DEV Community by Karima Aktari (@karimaaktari119).</description>
    <link>https://dev.to/karimaaktari119</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%2F821170%2Fcd479f2e-5acb-43ea-8465-eea84e967253.jpeg</url>
      <title>DEV Community: Karima Aktari</title>
      <link>https://dev.to/karimaaktari119</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karimaaktari119"/>
    <language>en</language>
    <item>
      <title>Tailwind</title>
      <dc:creator>Karima Aktari</dc:creator>
      <pubDate>Thu, 03 Mar 2022 12:52:48 +0000</pubDate>
      <link>https://dev.to/karimaaktari119/tailwind-4k3c</link>
      <guid>https://dev.to/karimaaktari119/tailwind-4k3c</guid>
      <description>&lt;h2&gt;
  
  
  What is Tailwind-CSS
&lt;/h2&gt;

&lt;p&gt;Basically, tailwind CSS is a utility-first CSS framework for building custom user interfaces rapidly. It is a highly customizable CSS framework. It’s a framework of packing  with classes like flex, p for padding, m for margin, text-center to centralized text, rotate, bg-color etc, that can be composed to build any design, directly in our project. It is being the most populated CSS framework day by day because of its flexibility.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benefits of Tailwind CSS
&lt;/h2&gt;

&lt;p&gt;According to my experience, Tailwind CSS is a framework which is highly customizable. It’s very flexible to make designs. It can be used to make websites in the fastest and the easiest way. Here are no more silly names for CSS classes and Id’s. We can customize the designs to make the components. Also Making the website responsive here is easier. It Can Be Optimized Using PurgeCSS too.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjeczi6x3s7viboxe0dq4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjeczi6x3s7viboxe0dq4.jpg" alt="Image description" width="800" height="444"&gt;&lt;/a&gt;           &lt;strong&gt;Image: Benefits of Tailwind CSS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Based on these features,&lt;/strong&gt; we can easily say that Tailwind is an excellent solution for developers familiar with CSS who want to speed up the creation and design process in the long run. But It’s not such a good idea if you are not familiar with vanilla CSS and do not want to spend time to learn a new CSS framework.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compared with Bootstrap
&lt;/h2&gt;

&lt;p&gt;Bootstrap is the most popular HTML, CSS, and JavaScript framework for building  responsive web sites. On the other hand,  Tailwind CSS  is the most popular utility-first CSS framework for fast UI development.&lt;br&gt;
If anyone is working with a design, a framework like Bootstrap doesn't help much because of writing most of their own CSS. With Tailwind, that becomes easier because  of the utility classes.&lt;br&gt;
Tailwind is different from frameworks like Bootstrap because  it's not a UI kit. It doesn't have a default theme, and there are no built-in UI components. &lt;/p&gt;

&lt;h2&gt;
  
  
  Use Tailwind CSS
&lt;/h2&gt;

&lt;p&gt;To use tailwind css we can apply two way:__&lt;/p&gt;

&lt;p&gt;First-way:- Install tailwind css via npm,&lt;/p&gt;

&lt;p&gt;Step-1:- Install:  &lt;code&gt;npm install -D tailwindcss&lt;/code&gt;&lt;br&gt;
Step-2:- Configure your template paths __tailwind.config.js &lt;br&gt;
&lt;code&gt;module.exports = {&lt;br&gt;
 content: ["./src/**/*.{html,js}"],&lt;br&gt;
 theme: {&lt;br&gt;
   extend: {},&lt;br&gt;
 },&lt;br&gt;
 plugins: [],&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step-3:-Install:- &lt;code&gt;npx tailwindcss init&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step-4:- Add the Tailwind directives to  CSS__src/input.css&lt;br&gt;
&lt;code&gt;@tailwind base; &lt;br&gt;
@tailwind components; &lt;br&gt;
@tailwind utilities;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step-5:- Start the Tailwind CLI build process_command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Second-way:-Using Tailwind CSS via CDN,&lt;br&gt;
Link:- &amp;lt;!-- add it to the head section of the html file --&amp;gt;&lt;br&gt;
&lt;code&gt;&amp;lt;link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"&lt;br&gt;
    rel="stylesheet"&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code with CDN in html file
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"&amp;gt;

&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

    &amp;lt;body&amp;gt;
        &amp;lt;div class="container mx-auto"&amp;gt;

            &amp;lt;div class="leading-9
                    text-red-700
                    bg-red-500 w-full p-5 my-10
                    border-t-2
                    border-solid
                    border-green-500
                    opacity-40
                    shadow-2xl"&amp;gt;
                &amp;lt;h2 class='text-2xl font-bold text-center text-pink-800 uppercase py-2'&amp;gt;Our Top New Brands&amp;lt;/h2&amp;gt;

            &amp;lt;/div&amp;gt;
            &amp;lt;div class='container mx-auto py-5'&amp;gt;

                &amp;lt;div class='grid lg:grid-cols-6 md:grid-cols-4 sm:grid-cols-2 text-black gap-4'&amp;gt;

                    &amp;lt;div class='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                        &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo1.png" class='w-full'
                            alt='' /&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div class='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                        &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo2.png" class='w-full'
                            alt='' /&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div class='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                        &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo3.png" class='w-full'
                            alt='' /&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div class='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                        &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo4.png" class='w-full'
                            alt='' /&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div class='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                        &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo5.png"
                            class='w-full p-2' alt='' /&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div class='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                        &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo6.png"
                            class='w-full p-2' alt='' /&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
    &amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Code with npm in react javascript library(Brands.js)file;
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  import React from 'react';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const Brands = () =&amp;gt; {
    return (
        &amp;lt;div className='container mx-auto py-5'&amp;gt;
            &amp;lt;h2 className='text-2xl font-bold justify-center text-pink-800 uppercase pb-6'&amp;gt;Our Top New Brands&amp;lt;/h2&amp;gt;

            &amp;lt;div className='grid lg:grid-cols-6 md:grid-cols-4 sm:grid-cols-2 text-black gap-4'&amp;gt;

                &amp;lt;div className='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                    &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo1.png" className='w-full' alt='' /&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;div className='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                    &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo2.png" className='w-full' alt='' /&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;div className='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                    &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo3.png" className='w-full' alt='' /&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;div className='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                    &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo4.png" className='w-full' alt='' /&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;div className='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                    &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo5.png" className='w-full p-2' alt='' /&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;div className='p-2 transition hover:-translate-y-2 hover:scale-110 hover:shadow duration-300'&amp;gt;
                    &amp;lt;img src="https://template.annimexweb.com/diva/assets/images/logo/brandlogo6.png" className='w-full p-2' alt='' /&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    );
};

export default Brands;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, that's all within a short description about Tailwind CSS. I hope readers will benefit at least a little bit.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Typescript</title>
      <dc:creator>Karima Aktari</dc:creator>
      <pubDate>Fri, 25 Feb 2022 06:01:50 +0000</pubDate>
      <link>https://dev.to/karimaaktari119/typescript-2nb1</link>
      <guid>https://dev.to/karimaaktari119/typescript-2nb1</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is TYpescript:--&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;TypeScript is a strongly typed programming language which is built on JavaScript and developed and maintained by Microsoft. It is a syntactical superset of the JavaScript programming language. It’s an open source programming language. It is designed for the large applications development and  transcompiles to JavaScript. It provides optional static typing, classes and interfaces. Typescript doesn’t run in the browser. The code which is written in typescript is compiled to JavaScript, then runs in the browser.&lt;/p&gt;

&lt;p&gt;So, We can say that TypeScript is a strongly typed, object oriented, compiled language.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How Typescript works:--&lt;/strong&gt;&lt;br&gt;
    Typescript has a relation with javascript. It offers all javascript features in its type system. JavaScript provides language primitives like string and number without  checking that we’ve consistently assigned these but TypeScript does. Besides, typescript knows javascript and generates types for many cases. &lt;/p&gt;

&lt;p&gt;Example:- If we create a variable and assign it to a particular value, TypeScript will use the value as its type.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjwnq7bdeu2nabrxw8617.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjwnq7bdeu2nabrxw8617.png" alt="Image description" width="324" height="103"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq9n43p0vkce4qdjzgfb9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq9n43p0vkce4qdjzgfb9.png" alt="Image description" width="297" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features of typescript:--&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Browsers can’t compile typescript code, a compiler compiles typescript code into javascript and runs on browsers. That means the code of typescript  is compiled to JavaScript for the purpose of execution.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TypeScript can run on any environment where JavaScript runs on.&lt;br&gt;
Typescript also supports other js libraries and JavaScript can also be written in TypeScript.  Like:-&lt;br&gt;
    i)Front-end in any framework ;&lt;br&gt;
   ii) Backend in Node js ; &lt;br&gt;
  iii) Cross-platform mobile apps in React Native ;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It supports OOP concepts like classes, objects, interfaces and inheritance etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Typescript is javascript and javascript is typescript because &lt;br&gt;
Typescript starts with Javascript and ends with JavaScript. And, as a superset of JavaScript any valid .js file can be renamed to .ts and compiled with other TypeScript files.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Typescript takes the basic building blocks of a program from JavaScript. So, we only need to know JavaScript to use TypeScript.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Difference between Typescript and Javascript:--&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;TypeScript checks a program for errors before execution but javascript doesn't.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JavaScript is dynamically typed. But Typescript provides optional static typing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;JavaScript is an interpreted single threaded programming language. It needs to be run to test and see if it is valid or not. But TypeScript transpiler provides the error-checking feature. Which helps to highlight errors before the script is run by compiling the code and generating compilation errors if there is any syntax error.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    Finally
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Typescript isn't the altar of JavaScript, instead expanding it with new, valuable features. Everything that can be written in JavaScript can also be written in TypeScript.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
