Pixel is not a pixel.

Sounds confusing.

But the thing is that CSS pixel has nothing to do with real physical pixels.

PPI, DPI, LPI, DPR, PAR... 🤯

Here is your weekly digest dedicated to this crazy world of pixels 👇
A pixel is not a pixel is not a pixel 😱

by @ppk

quirksmode.org/blog/archives/…
CSS Resolution vs Device Resolution

elad.medium.com/understanding-…
Understanding pixels and other CSS units.

webplatform.github.io/docs/tutorials…
Designing for multiple screen densities on Android by @Prototypr

blog.prototypr.io/designing-for-…
Understanding the Device Pixel Ratio (DPR)

tomroth.com.au/dpr/
Information about your current device and device list comparison

mydevice.io

• • •

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

Keep Current with Victor

Victor 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 @vponamariov

3 Jun
How to validate forms?

Some useful Do/Dont's 👇
The best place to show validation errors - near inputs. Don't gather all of them in one place.
Don't disable the submit button. Allow users to click on it and see the validation errors.

Users might scroll past some of the inputs without filling them.

If the submit button is blocked, then they won't know what to do next.
Read 10 tweets
27 May
Learn how to avoid common mistakes when designing forms.

18 cards with practical examples 👇
Try to avoid multi column layouts.

It's easier for your eyes to go through the form if it's a one-column layout.
This layout is also acceptable.

But the labels should be placed next to inputs to avoid Z-pattern.
Read 19 tweets
25 May
Want to make your UI flawless?

Here are some ideas for you 👇
Consistency

🔸Make a color palette in advance, or use a ready one

🔸Ideally, make a UI kit of every element you need

🔸Make sure your icons have the same styling

🔸Don't use too many layouts

🔸Make sure UI elements behave the same way across your app
Typography

🔸The text should have good contrast (AA+ WCAG)

🔸Don't use more than 2 fonts

🔸Provide text hierarchy (headings/sub-heading/paragraphs)

🔸Use proper line-height

🔸font-size should be at least 16px

🔸Do not justify text
Read 7 tweets
24 May
A curated list of 68 free resources for designers 🤩

👇
Read 14 tweets
24 May
Do you know how to make a dotted background with CSS?

Once I found the code but didn't understand the magic.

Here is a detailed explanation 👇
As a container, I'll use the body tag.

To make a dotted background we will use a combination of linear gradients.

Let's make something illustrated below.

The red background takes 20px.
Then goes green which takes 1-100%, in other words - the rest space.
Now, if we set background-size we can repeat the pattern which will look like on the image below.

The first value doesn't matter in this case since it's repeated horizontally.

But the second value is important - it's the space between the lines.
Read 6 tweets
24 May
Today I turned 32.

Sharing with you some life lessons that I learned by this time.

I do not claim I necessary follow them.

It's not a planned thread. Just some sincere thoughts about life.

In no particular order. 👇
Your personal experience is more important than any advice.

This thing I've read in "The happiness trap". It is a book dedicated to the ACT therapy method.

Any advice is good. But nothing can replace your own experience.
People affected by survivorship bias too much

We see cool photos of people who drink smoothies on the beach and code startups.

The bias is that those who suffer depression, burnouts, anxiety, who has debts, and so on - they don't tell you that.

indiehackers.com/post/holy-heck…
Read 17 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!

:(