Pratham Profile picture
Jun 22, 2021 β€’ 28 tweets β€’ 13 min read β€’ Read on X
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

Sep 23
5 GitHub repositories will make your life 90% easier as a developer:
1. StackQL

StackQL allows you to query multiple cloud and SaaS providers (Google, AWS, Azure, Okta, GitHub, etc.) using SQL.

github.com/stackql/stackql
Image
2. Open SaaS

Starter kit for your next SaaS.

Tech stack used:

β€’Β React
β€’ Node.js
β€’ Tailwind
β€’Β Stripe
β€’ Plausible

And much more...

github.com/wasp-lang/open…
Image
Read 6 tweets
Apr 30
CORS is the biggest headache for developers.

In the next 3 minutes, you will be able to tackle CORS errors much more effectively.
CORS is not rocket science.

It's the biggest pain for developers because the majority of us don't know its core concept.

Let's try to build a solid fundamental.

Stands for Cross-Origin Resource Sharing.
It is a security feature implemented by web browsers (almost all) that controls how web pages from one domain can request resources hosted on another domain.
Read 9 tweets
Apr 7
APIs are the backbone of development.

Let me show you how to build your first basic REST API in four simple steps.
Step 1: Install Node.js

I'm assuming you have Node.js installed on your machine. If you haven't installed it, click on the following link and install it simply.

nodejs.org/en
Step 2: Initialize the project

Let's start; create an empty directory and initialize your project by running the following command. Image
Read 17 tweets
Apr 4
5 GitHub repositories will make your life 90% easier:
1. StackQL

StackQL allows you to query multiple cloud and SaaS providers (Google, AWS, Azure, Okta, GitHub, etc.) using SQL.

πŸ”— github.com/stackql/stackql
Image
2. 50 Projects 50 Days

50+ mini web projects using HTML, CSS & JavaScript.

πŸ”— github.com/bradtraversy/5…
Image
Read 6 tweets
Feb 2
Convert your Python application into a website in 2 minutes.

Let me show you how:
There's no easy way than this to build a data, AI-based web applications.

I came across Taipy.

It is an open-source Python library for building production-ready front-end & back-end in no time.
Let's see in five simple steps how to build a movie recommendation system using Taipy.
Read 11 tweets
Jan 23
6 free Books to learn web development:
1. The Magic of CSS

The content in this eBook is for all-level developers. Learn about layout, box-model, positioning etc. with sample code snippets.

β†’ adamschwartz.co/magic-of-css/
Image
2. DOM Enlightenment

"DOM Enlightenment" is a free online book that explores DOM in-depth, providing a clear and detailed understanding of how it works.

β†’ domenlightenment.com
Image
Read 7 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

Don't want to be a Premium member but still want to support us?

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

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(