Pratham Profile picture
22 Jun, 28 tweets, 13 min read
Are you planning to create your first CSS art for fun? Start with the basic shapes.

Here are 26 easy to hard shapes and figures you can try first πŸ§΅πŸ‘‡πŸ»
In general, analyze any image and try to think how can you make it using different shapes.

Two concepts that you need to master

1. border-radius
2. linear-gradient
1. Circle Yellow πŸ”΅

- Pretty simple, we just need to make a square and apply the border-radius 50% in order to give it a circular shape
2. Semi-circle First πŸŒ“

- Create a rectangle
- Apply border-radius top left and top right same as the height of the rectangle
3. Triangle πŸ”Ί

- Creating a triangle is little bit tricky
- Set height and width as zero
- To make this, we draw a solid border and make the side border transparent
4. Trapezium

- Same as a triangle but in this case we need to set some width
5. Parallelogram πŸ”³

- Create a rectangle
- Apply skew in order to tilt it
6. Hexagon πŸ’ 

- Creating a hexagon is very easy
- We need to make two trapeziums of the same size but make sure that the other trapezium should be upside down
- Align them perfectly
7. Drop πŸ’§

- Create a square
- Apply 50% border-radius to all the sides except one side
- Rotate in such a manner so that tip comes to top
8. Diamond πŸ’Ž

- Combination of Trapezium and triangle
9. Cross ❎

- Create two rectangles
- Place them over each other vertically and horizontally
- Rotate 45deg
10. Egg πŸ₯š

- Using an advanced border-radius technique
11. Star Glowing 🌟

- Create two triangle upside down
- Align the second triangle in the middle of the first one
12. Moon πŸŒ™

- Transparent background
- Apply box-shadow
13. Coffee β˜•
14. Heart ❀️

- Two rectangles with top round border-radius
15. Infinity ♾️

It may look tough but trust me I created this symbol using border-radius only
16. Arrow ▢️

Combination of the rectangle and a triangle
17. Star ⭐

Combination of two triangles
18. Magnifying glass πŸ”

You guessed it right! It's just a simple circle and small rectangle
19. Pacman
20. 8 Point 🌟

Two squares overlapping each other
21. Pentagon βœ’

- Create a trapezium
- Create a triangle
- Merge them both
22. Leaf πŸ€

- Just the matter or border-radius
23. Yin and Yang

Looks tough but actually, it is not
24. Mobile Phone πŸ“±
25. Headphones 🎧
26. Spectacles πŸ‘“

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Pratham

Pratham Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Prathkum

23 Jun
I have created enormous handmade notes for Web development beginners.

Here are some of my handmade JavaScript and CSS notes/cheat sheets that can help you 🧡 πŸ‘‡πŸ»
0. Semantic HTML Image
2. CSS border-radius Image
Read 13 tweets
23 Jun
Let's talk about some CSS concepts that we rarely used but they will prove that CSS is so deep.

πŸ§΅πŸ‘‡πŸ»
1. Select grammatical errors

::grammar-error pseudo-element select a grammatically incorrect sentence. Although this feature has not been standardized yet.

πŸ”— developer.mozilla.org/en-US/docs/Web…
2. You can optimize the performance of your web page by adding one line of CSS

The `will-change` property

- will-change tells the browser that how an element is expected to change
- Increase the responsiveness
Read 7 tweets
23 Jun
I again brought 5 awesome GitHub repositories for beginners

πŸ§΅πŸ‘‡πŸ»
1. Project-based learning

A curated list of project-based tutorials covering JavaScript, Python and many other popular languages

πŸ”— github.com/tuvtran/projec…
2. Awesome Linux software

A list of awesome applications, software, tools, and other materials for Linux distros

πŸ”— github.com/luong-komorebi…
Read 6 tweets
22 Jun
Planning to learn React? Knowledge of a few JavaScript concepts can make the process easier for you.

Let's see some basic JavaScript modules that can help you πŸ§΅πŸ‘‡πŸ»
Keep JavaScript aside for a moment, Knowledge of basic HTML and CSS is a must in my opinion.

React is all about building user interface so you'll be working with HTML and CSS as well. So start with these first
1. Basic programming knowledge which is must

- Data types in JavaScript
- Variables
- Statements
- Control statements
- Operators
Read 13 tweets
22 Jun
Here are some great websites that can help you in your next web development project.

Including colors, accessibility, backgrounds, icons, testing, and much more πŸ§΅πŸ‘‡πŸ»
1. Color hunt

- Color Hunt is a free and open platform for color inspiration with thousands of trendy hand-picked color palettes

πŸ”— colorhunt.co
2. Adobe color wheel

Explore and create accessible color palettes using color wheel, in a variety of color variations and contrast levels. It will tell you automatically if two colors are not accessible

πŸ”— color.adobe.com/create/color-a…
Read 21 tweets
19 Jun
JavaScript is an enormous language but you don't need to learn everything in the beginning.

Here is the detailed explanation on JavaScript for Web Development πŸ§΅πŸ‘‡πŸ»
JavaScript is a kind of language that as you progress deeper in the field, you will come to know a lot more cool concepts about it.

Prerequisites if you want to learn JavaScript for web development πŸ‘‡πŸ»

- HTML
- CSS
First and foremost, it's a programming language so you should know about basic programming concepts:

- Data types in JavaScript
- Variables
- Statements
- Control statements
- Operators
- And other basic stuff....
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(