Ravi Kumar Profile picture
Feb 10 7 tweets 2 min read
Do You Know about CSS variables?

know everything about CSS variables In this thread:
1/ Intro of a CSS variable

It is a custom property of a CSS that is defined by a CSS author that contains some specific values that are reusable through a document.

it is used in the google chrome browser. Image
2/ Syntax or how to use

:root{
— color-primary: #001f3f;
}

p {
color: var(--color-primary);
}
3/ use case of a CSS variable

1. colors
2. font sizes
3. SVG
4. Grid layouts
5. column proportions
6. Buttons Image
4/ Tip💡

always defined variable in the root section because it gives you global reach through your entire Html document

you can define it in the Html section also so it can be treated as a global variable. Image
5/ conclusion

So many good uses, and we’re barely getting started Use the comments to ask follow-up questions or share your ideas for using CSS custom properties (variables).
That's a wrap! Thanks for reading. :)

If you find this thread useful:

1. Follow me @ravikmmr for weekly threads.
2. RT the tweet below to share this thread with your network.
3. share your feedback in the comments.

🔗

• • •

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

Keep Current with Ravi Kumar

Ravi Kumar 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 @ravikmmr

Feb 12
Top 10 VS Code Extension to Increase 10x Productivity (Free): Image
1/ Path Intellisense

This Extension autocompletes the file names. Like tags in HTML, it autocompletes the tags. Image
2/ Live Server

This Extension allows you to launch your local projects with a live reload on the browser so you don't have to constantly refresh after changes. Image
Read 12 tweets
Feb 11
Want to Improve CSS try these Resources (Free):
1/ CSS Tricks

🔗css-tricks.com Image
2/ CSS Author.

🔗cssauthor.com Image
Read 12 tweets
Jan 31
Top CSS Frameworks you should try (In 2023):
1/ Tailwind

🔗tailwindcss.com Image
2/ Bootstrap

🔗getbootstrap.com Image
Read 7 tweets
Jan 30
Top 5 Websites to host your projects (in 2023):
1/ GitHub Pages

🔗pages.github.com
2/ Netlify

🔗netlify.com
Read 7 tweets
Jan 28
Cool Web-Development mini-projects that are based on DSA concepts (Save or Bookmark it):

The GitHub link is in the last post.
1/ Chat-list

This project helps you to know the algorithm behind WhatsApp messages.
2/ Snake game

This project helps you to understand the working of arrays.
Read 9 tweets
Jan 27
Do you know about CSS blend mode Property? Image
1/ Introduction

The <blend-mode> CSS data type describes how colors should appear when elements overlap.

It is used in the background-blend-mode and mix-blend-mode properties.
2/ Syntax

background-blend-mode:

normal | multiply | screen | overlay | darken | lighten | color-dodge | saturation | color | luminosity;
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 on Twitter!

:(