-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
82 lines (54 loc) · 1.44 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* Basic CSS */
/* p, h1 { */
/* background-color: blue; */
/* font-size: 16px; */
/* } */
/*
Tailwind ko use karke hum buhat hi easily and quikly style apply kar
sakhte hein.
Tailwind is a utility first css framework.
Tailwind is hihgly cutomizesable and we also discuss that is a low level
framework.
*/
/* .small-text {
font-size: 18px;
}
.large-text {
font-size: 24px;
}
.extra-small-text {
font-size: 12px;
} */
/*
Advantages
1. No more sili names for css classes and ids
2. Minimum lines of code in css file becsuse your are not writing
custom css.
3. We can mixed multiple utility classes to create custom components.
4. We can make the website responsive and we will discuss the responsive
issues later
5. We can apply style exactly where we want to instead of everywhere.
Because plain css is global in nature so if we make changes in the file
property is changed and all html files link too it.
But with tailwindcss we can use utility classes and make local changes that
will apply only where we want
Next Utilities
tailwind uses pre-defined opiniated and single purpose utility first classes
for styling html elements. According to your requirement.
*/
/* car */
.car-body {
background-color: blue;
height: 100px;
width: 200px;
}
.car-wheel {
background-color: black;
height: 50px;
width: 50px;
}
.car-headlight {
background-color: yellow;
height: 20px;
width: 20px;
}