summaryrefslogtreecommitdiff
path: root/tailwindcss
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-07-05 23:13:49 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-07-05 23:13:49 +0530
commit504045fb23fa75a520a4d2665aea7d423db1fe14 (patch)
treeaff27e3257be3fc3fba84deb707580f737446f33 /tailwindcss
parentb4dffb4306c0b53f2e98ee02edc94ec8db004ea7 (diff)
Tailwind CSS sample project README updated
Diffstat (limited to 'tailwindcss')
-rw-r--r--tailwindcss/02-vite/README2
1 files changed, 1 insertions, 1 deletions
diff --git a/tailwindcss/02-vite/README b/tailwindcss/02-vite/README
index cdce85a..04e2bd8 100644
--- a/tailwindcss/02-vite/README
+++ b/tailwindcss/02-vite/README
@@ -9,7 +9,7 @@ What Tailwind CSS features are used:
Other important aspects of this project:
- JavaScript local storage is used to permanently store the set theme by the user. This is not always required and Tailwind CSS can automatically pick the theme set at OS level.
- - Font size increas and decress does not use Tailwind CSS. JavaScript has been used to set the root element's font size. That changes the size of all components in the page. Why? (Hint: Think about how the rem unit works)
+ - Font size increas and decress does not use Tailwind CSS. JavaScript has been used to set the root element's font size. That changes the size of all components in the page. Why? (Hint: Think about how the rem unit works). Sizes applied by Tailwind are usually relative. That means even after styling elements with Tailwind, those sizes increase or decrease relative to root element font size.
Try this sample project: