You want to create CSS illustrations? 😎

You can! 💪

There's no secret wizardry, I promise 🧙‍♂️🙏

What it takes:

• Time
• Patience
• Practice
• Planning
• Knowing your way around certain properties

Let's go through some of the stand out properties! 👇🤓

<🧵>
Aside from them, the overflow property should get you where you want! 👍

Think outside the box. Use elements to hide other elements 🤓

https://codepen.io/jh3y/pen/gOaVJMB via @CodePen
Once you've got the shape you want and it's roughly in the right position, the transform property is another to check out! 👍

You might want to rotate or skew your shape.

You may even want to use a translation for positioning too! https://css-tricks.com/almanac/properties/t/transform/
Now we have the shape we want and it's roughly in the correct place, we need to give it the colors we need 👍

The "background" property is going to do the majority of the heavy lifting 💪

Using multiple background images can be very powerful! https://css-tricks.com/almanac/properties/b/background/
Layering linear and radial gradients will give your illustrations a more "Realistic" effect by giving the impression of lighting 😎

Consider this pen where you can turn shading on and off 🤓 https://codepen.io/jh3y/pen/OJMNyVg
Which leads nicely onto the use of box-shadow 👍

Much like background, we can use multiple box-shadows layered up for an element 🤓

This gives us another opportunity to provide depth and shading to our illustrations 😎 https://css-tricks.com/snippets/css/css-box-shadow/
p.s I have some more CSS materials on the way covering all kinds of things 🔥

But, I'm keen to know what things people are really interested in seeing. Reach out and let me know! 🙏
You can follow @jh3yy.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled:

By continuing to use the site, you are consenting to the use of cookies as explained in our Cookie Policy to improve your experience.