Are you planning to learn CSS for adding some cool styling in your website?
In this thread, I'm covering all the basics and proper plan you need to know in order to getting started with CSS.
🧵 👇🏻
We need to know the importance of CSS first. Why CSS?
Well I guess CSS is the only language that add some visuals in website. Without CSS, Without it, websites would still be plain text on white backgrounds.
{ 02 / 17 }
Let's compare a website with and without CSS
Image 1: With CSS
Image 2: Without CSS
{ 03 / 17 }
I this should be enough to explain you why CSS is so important. So lets start
You can gain some decent amount of CSS knowledge in 30 days. And after that you will definitely able to create some good looking website. Let's see how 👇🏻
{ 04 / 17 }
First things first, you need to learn basic stuff
- How to link your CSS files with HTML file
- How to select elements so that you can add styling
{ 05 / 17 }
Color and background are the two properties you can start learning with. Although background is a shorthand property and its deep. So intially you can start with background-color property. Later on, you can explore more
{ 06 / 17 }
There are a lot of great color palette out there using which you can generate pleasant color schemes
Check this great tool for generating accessible colors. Just enter a color and generate nice color palettes
Moving forward, typography is an essential thing of web page. A good font can make your webpage and establish a strong visual hierarchy, provide a graphic balance to the website, and set the product's overall tone
You can add free fonts from Google's official site
Next thing we have in CSS is positioning concept, its yet another powerful and confusing. But don't worry I am here to make it easy for you. You can learn it from anywhere but I also have a thread on it
Moving forward, there are million of device on which user will see your website. In order to deliver best experience, you need to make your website responsive. That is also handled by CSS.
{ 14 / 17 }
Few days back I wrote a thread on responsive web design. Give it read and learn about responsiveness in almost no time. This is a visual guide as well
CSS functions can represent more complex data types and can do special data processing and calculations. Let's talk about it in detail
🧵👇🏻
The syntax of CSS functions is same and standard like in other programming languages. Function name followed by the set of parenthesis and they can accept multiple argument.
{ 2 / 16 }
The functions in CSS is broadly divided into 8 categories. They are
1. Transform functions 2. Math functions 3. Filter functions 4. Color functions 5. Image functions 6. Counter functions 7. Font functions 8. Shape functions
Explore and create accessible color palettes using color wheel, in variety of color variations and contrast levels. It will tell you automatically if two colors are not accessible
Neumorphism is a trendy UI style nowadays. It is worth noting that neumorphism is not a replacement for flat design style, but an addition to app user interface design
Let's create a neumorphic form using few simple CSS steps
A thread 🧵
Neumorphic design is another UI design that has become popular these days.
Making neumorphic effect is actually pretty easy using only just CSS box-shadow
We'll be creating a neumorphic form in steps 🔽
STEP 1:
Place a light source(virtually) on screen. In this example I'm considering that my light source is placed top left corner of the screen
Everything on a website is a box. Therefore it is quite important to understand the box model concept in web development but it is confusing. Let's see some hidden facts about it in this thread
🧵 👇🏻
When laying out a document, the browser's rendering engine represents each element as a rectangular box. You can visualize it by adding some solid in any element.
You can manipulate this box using the basic standards of CSS like color, border, background etc.
{ 02 / 17 }
Every box comprised of four parts
- content dimensions
- padding
- border
- margin
Although outline is not considered as the part of box model but we can talk little bit about it later on this thread.