aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2022-07-17 23:29:58 -0400
committerFurkan Sahin <furkan-dev@proton.me>2022-07-17 23:29:58 -0400
commite36e01917651ccfff64f948c36ee93d310071991 (patch)
tree8f7e2f19980474689ef626d0f9906d0f1b197cac /README.md
parent79242a197b79e7a3dc5a30925ecd7709093a6866 (diff)
parent99aee9a7281aa9c5794cc062e41384dc3701906d (diff)
Merge pull request #1 from sahinf/tailwind
Tailwind
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 21fe216..bc876e3 100644
--- a/README.md
+++ b/README.md
@@ -117,3 +117,17 @@ typescript-project
If we were to use Svelte (as in this project), then
the `package.json` script would use `rollup` instead
of `node`.
+
+## Tailwind
+
+This project began by mainly utilizing the Svelte UI library named [Svelte Material UI](https://sveltematerialui.com/). As this is the first time I am working with professional-level web development tools (other than a not-so-elegant React project), I began looking into web development philosophy and methodologies. I came across a popular tool named Tailwind that is used by global companies like Github, Netflix, Heroku, Kickstarter, Twitch, and Segment.
+
+Tailwind's utility-first fundamentals favor inline CSS in HTML files over maintaining separate CSS classes for each component. It focuses on building complex components from a constrained set of primitive utilities (the utilities offered by Tailwind through `<div class="">`). Building designs through Tailwind's utilities
+- Saves energy investing class names for everything
+- Reduces the overall CSS complexity of a project
+- Makes changes feel safer (changing a CSS class might unintentionall affect another component that uses this class)
+
+Although it may feel like basically inline css but with shorter text, Tailwind's utility classes provide advantages over inline styles such as
+- Designing with constraints: The predefined design system makes it easier to build visually consistent UI
+- Responsive design: `@media` breakpoints can easily be factored in through the `sm`, `md`, `lg`, `xl`, and `2xl` prefixes
+- Hover, focus, and other states: Inline styles cannot target states like hover or focus, while Tailwind's state variants make it easy through prefixes. \ No newline at end of file