Skip to content

Commit c9e080a

Browse files
committed
Updates
1 parent 81a1e46 commit c9e080a

11 files changed

+69
-18
lines changed

asset-manifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": {
3-
"main.css": "/static/css/main.ec124abf.css",
4-
"main.js": "/static/js/main.18571aad.js",
3+
"main.css": "/static/css/main.7f4591e4.css",
4+
"main.js": "/static/js/main.77bdf3e8.js",
55
"static/js/453.f568ff1d.chunk.js": "/static/js/453.f568ff1d.chunk.js",
66
"static/media/border.jpg": "/static/media/border.b7869a9ea7ccd009873c.jpg",
77
"static/media/parchment.png": "/static/media/parchment.c4af92656f29dc66bd67.png",
@@ -10,12 +10,12 @@
1010
"static/media/slick.ttf": "/static/media/slick.c94f7671dcc99dce43e2.ttf",
1111
"static/media/slick.woff": "/static/media/slick.295183786cd8a1389865.woff",
1212
"index.html": "/index.html",
13-
"main.ec124abf.css.map": "/static/css/main.ec124abf.css.map",
14-
"main.18571aad.js.map": "/static/js/main.18571aad.js.map",
13+
"main.7f4591e4.css.map": "/static/css/main.7f4591e4.css.map",
14+
"main.77bdf3e8.js.map": "/static/js/main.77bdf3e8.js.map",
1515
"453.f568ff1d.chunk.js.map": "/static/js/453.f568ff1d.chunk.js.map"
1616
},
1717
"entrypoints": [
18-
"static/css/main.ec124abf.css",
19-
"static/js/main.18571aad.js"
18+
"static/css/main.7f4591e4.css",
19+
"static/js/main.77bdf3e8.js"
2020
]
2121
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en" class="dark"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="alternate" type="application/rss+xml" title="Fezcodex RSS Feed" href="/rss.xml"/><meta name="description" content="codex by fezcode..."/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Arvo&family=Inter&family=Playfair+Display&display=swap" rel="stylesheet"><title>fezcodex</title><script defer="defer" src="/static/js/main.18571aad.js"></script><link href="/static/css/main.ec124abf.css" rel="stylesheet"></head><body class="bg-slate-950"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1+
<!doctype html><html lang="en" class="dark"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="alternate" type="application/rss+xml" title="Fezcodex RSS Feed" href="/rss.xml"/><meta name="description" content="codex by fezcode..."/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Arvo&family=Inter&family=Playfair+Display&display=swap" rel="stylesheet"><title>fezcodex</title><script defer="defer" src="/static/js/main.77bdf3e8.js"></script><link href="/static/css/main.7f4591e4.css" rel="stylesheet"></head><body class="bg-slate-950"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

posts/demystifying-tailwind-css.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,57 @@ Tailwind also makes responsive design easy with prefixes like `sm:`, `md:`, `lg:
8686

8787
During development and when building for production, a tool like **Craco** (which sits on top of Create React App's Webpack configuration) processes your code. It uses **PostCSS** and the Tailwind plugin to scan all your files for Tailwind utility classes. It then generates a minimal CSS file containing *only* the styles corresponding to the classes you've actually used. This ensures that your final application bundle is as small and performant as possible.
8888

89+
90+
## Part 5: Let's Change the Color of Horizontal Rule
91+
You can change the color of an `<hr>` (horizontal rule) element in Tailwind CSS using a couple of common methods:
92+
93+
### 1. Using `border-color` utilities (Most Common)
94+
95+
By default, an `<hr>` element is rendered as a line using its `border-top` or `border-bottom` property. You can directly apply Tailwind's border color utilities to change its color.
96+
97+
```html
98+
<!-- A simple gray HR -->
99+
<hr class="border-gray-300" />
100+
101+
<!-- A red HR -->
102+
<hr class="border-red-500" />
103+
104+
<!-- A thicker, blue HR -->
105+
<hr class="border-t-4 border-blue-500" />
106+
107+
<!-- An HR with a custom color from your config (e.g., primary.400) -->
108+
<hr class="border-primary-400" />
109+
```
110+
111+
**Explanation:**
112+
* `border-gray-300`: Sets the border color to a light gray.
113+
* `border-red-500`: Sets the border color to red.
114+
* `border-t-4`: Makes the top border 4 pixels thick. You can use `border-t`, `border-b`, `border-l`, `border-r` or just `border` for all sides.
115+
* `border-blue-500`: Sets the border color to blue.
116+
* `border-primary-400`: Uses a custom color defined in your `tailwind.config.js` (like the `primary` color you have).
117+
118+
### 2. Using `background-color` utilities with a defined height
119+
120+
Another way is to treat the `<hr>` as a block element with a specific height and then apply a background color. This gives you more control over its appearance, especially if you want a solid block of color rather than just a border line.
121+
122+
```html
123+
<!-- A red HR with a height of 1px -->
124+
<hr class="h-px bg-red-500 border-0" />
125+
126+
<!-- A thicker, blue HR -->
127+
<hr class="h-2 bg-blue-500 border-0" />
128+
129+
<!-- An HR with a custom color from your config -->
130+
<hr class="h-1 bg-primary-400 border-0" />
131+
```
132+
133+
**Explanation:**
134+
* `h-px`: Sets the height to 1 pixel. You can use any height utility (e.g., `h-1`, `h-2`, `h-4`, etc.).
135+
* `bg-red-500`: Sets the background color to red.
136+
* `border-0`: It's important to remove the default border of the `<hr>` when using this method, otherwise, you might see both the border and the background color.
137+
138+
Choose the method that best suits your design needs. The `border-color` method is generally more semantic for an `<hr>`, but the `background-color` method offers more flexibility for solid bars.
139+
89140
## Conclusion
90141

91142
Tailwind CSS provides a powerful and efficient way to build and maintain the UI of the `fezcodex` project. By embracing its utility-first philosophy and leveraging its extensive configuration options, we can rapidly develop consistent, responsive, and performant user interfaces. It streamlines the styling process, allowing developers to focus more on functionality and less on managing complex CSS stylesheets.

rss.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<link>https://fezcode.com</link>
1010
</image>
1111
<generator>RSS for Node</generator>
12-
<lastBuildDate>Wed, 12 Nov 2025 21:36:39 GMT</lastBuildDate>
12+
<lastBuildDate>Wed, 12 Nov 2025 21:51:11 GMT</lastBuildDate>
1313
<atom:link href="https://fezcode.com/rss.xml" rel="self" type="application/rss+xml"/>
14-
<pubDate>Wed, 12 Nov 2025 21:36:39 GMT</pubDate>
14+
<pubDate>Wed, 12 Nov 2025 21:51:11 GMT</pubDate>
1515
<copyright><![CDATA[2025 Ahmed Samil Bulbul]]></copyright>
1616
<language><![CDATA[en]]></language>
1717
<managingEditor><![CDATA[samil.bulbul@gmail.com (Ahmed Samil Bulbul)]]></managingEditor>

static/css/main.7f4591e4.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/main.7f4591e4.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/main.ec124abf.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

static/css/main.ec124abf.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)