From 351d571d68a8ce4b23594d675806c3ab0fc3e17b Mon Sep 17 00:00:00 2001 From: Sithumli Nanayakkara Date: Thu, 5 Feb 2026 16:32:52 +0530 Subject: [PATCH 01/15] chore: remove shikiConfig from markdown settings and update table styles for better integration with prose --- astro.config.mjs | 4 ---- template/astro.config.mjs | 4 ---- template/src/components/Table.astro | 6 +++--- template/src/components/Tabs.astro | 10 +++++----- template/src/styles/global.css | 20 +++++++++++--------- 5 files changed, 19 insertions(+), 25 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index ea33506..4b68305 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -32,9 +32,5 @@ export default defineConfig({ ], markdown: { rehypePlugins: [rehypeSlug], - shikiConfig: { - theme: 'github-dark', - wrap: true, - }, }, }); \ No newline at end of file diff --git a/template/astro.config.mjs b/template/astro.config.mjs index 9abaec9..2336e0a 100644 --- a/template/astro.config.mjs +++ b/template/astro.config.mjs @@ -30,9 +30,5 @@ export default defineConfig({ ], markdown: { rehypePlugins: [rehypeSlug], - shikiConfig: { - theme: 'github-dark', - wrap: true, - }, }, }); \ No newline at end of file diff --git a/template/src/components/Table.astro b/template/src/components/Table.astro index 0f51607..5ad9314 100644 --- a/template/src/components/Table.astro +++ b/template/src/components/Table.astro @@ -4,10 +4,10 @@ import type { TableProps } from '@/types'; const { headers, rows, striped = true } = Astro.props as TableProps; --- -
+
- + {headers.map((header, i) => ( )} diff --git a/template/src/components/Tabs.astro b/template/src/components/Tabs.astro index 935260f..d9225f4 100644 --- a/template/src/components/Tabs.astro +++ b/template/src/components/Tabs.astro @@ -23,8 +23,8 @@ const tabsId = id || `tabs-${hashString(labels.join('-'))}`; 'rounded-t-lg', 'focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-inset', index === defaultIndex - ? 'text-primary-600 dark:text-white bg-gray-100 dark:bg-gray-800' - : 'text-gray-700 dark:text-gray-400 bg-transparent hover:text-gray-900 dark:hover:text-gray-200', + ? 'text-white bg-gray-800' + : 'text-gray-400 bg-transparent hover:text-gray-200', ]} data-tab-index={index} aria-selected={index === defaultIndex} @@ -40,7 +40,7 @@ const tabsId = id || `tabs-${hashString(labels.join('-'))}`; })}
@@ -52,8 +52,8 @@ const tabsId = id || `tabs-${hashString(labels.join('-'))}`; if ((window as any).__tabsInitialized) return; (window as any).__tabsInitialized = true; - const TAB_ACTIVE_CLASSES = ['text-primary-600', 'dark:text-white', 'bg-gray-100', 'dark:bg-gray-800']; - const TAB_INACTIVE_CLASSES = ['text-gray-700', 'dark:text-gray-400']; + const TAB_ACTIVE_CLASSES = ['text-white', 'bg-gray-800']; + const TAB_INACTIVE_CLASSES = ['text-gray-400', 'bg-transparent']; function activateTab(container: Element, index: number) { const tabs = Array.from(container.querySelectorAll('.tab-button')) as HTMLElement[]; diff --git a/template/src/styles/global.css b/template/src/styles/global.css index b9f62b3..da194d4 100644 --- a/template/src/styles/global.css +++ b/template/src/styles/global.css @@ -104,26 +104,27 @@ html, body { margin: 2rem 0; } -:where(article.prose) table { +/* Exclude custom Table component from prose table styles */ +:where(article.prose) table:not(.text-sm) { width: 100%; border-collapse: collapse; margin: 1.5rem 0; } -:where(article.prose) th, -:where(article.prose) td { +:where(article.prose) th:not(.text-sm th), +:where(article.prose) td:not(.text-sm td) { border: 1px solid rgb(229 231 235); padding: 0.75rem; text-align: left; } -:where(article.prose) th { +:where(article.prose) th:not(.text-sm th) { background: rgb(249 250 251); font-weight: 600; color: rgb(17 24 39); } -:where(article.prose) td { +:where(article.prose) td:not(.text-sm td) { color: rgb(55 65 81); } @@ -190,17 +191,18 @@ html, body { border-color: rgb(55 65 81); } -:where(html.dark article.prose) th, -:where(html.dark article.prose) td { +/* Exclude custom Table component from prose table styles in dark mode */ +:where(html.dark article.prose) th:not(.text-sm th), +:where(html.dark article.prose) td:not(.text-sm td) { border-color: rgb(55 65 81); } -:where(html.dark article.prose) th { +:where(html.dark article.prose) th:not(.text-sm th) { background: rgb(31 41 55); color: rgb(243 244 246); } -:where(html.dark article.prose) td { +:where(html.dark article.prose) td:not(.text-sm td) { color: rgb(209 213 219); } From 4e72e7ac1acc697651fea811df4707fe0b85f034 Mon Sep 17 00:00:00 2001 From: Sithumli Nanayakkara Date: Thu, 5 Feb 2026 21:45:37 +0530 Subject: [PATCH 02/15] chore: adjust step line height and fix CSS selector for last step --- template/src/components/Step.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/src/components/Step.astro b/template/src/components/Step.astro index 791b014..e74d8f6 100644 --- a/template/src/components/Step.astro +++ b/template/src/components/Step.astro @@ -6,7 +6,7 @@ const { title } = Astro.props as StepProps;
-
+

{title}

@@ -16,7 +16,7 @@ const { title } = Astro.props as StepProps;
From ebbcbe237bb982a7904f7044caa9aedf9d7b407b Mon Sep 17 00:00:00 2001 From: Sithumli Nanayakkara Date: Thu, 5 Feb 2026 21:49:33 +0530 Subject: [PATCH 03/15] chore: update icon size and margin in Button component for better alignment --- template/src/components/Button.astro | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/template/src/components/Button.astro b/template/src/components/Button.astro index 3002a9e..89b7a71 100644 --- a/template/src/components/Button.astro +++ b/template/src/components/Button.astro @@ -23,11 +23,11 @@ const Tag = href ? 'a' : 'button'; class:list={['btn', `btn-${variant}`, className]} > {icon && iconPosition === 'left' && ( - + )} {icon && iconPosition === 'right' && ( - + )} @@ -45,6 +45,15 @@ const Tag = href ? 'a' : 'button'; font-weight: 500; border-radius: 9999px; transition: all 0.2s ease; + text-decoration: none; + border: none; + cursor: pointer; + white-space: nowrap; + } + + .btn iconify-icon { + display: inline-flex; + flex-shrink: 0; } .btn-primary { From e2991ce2049a287930f09a360ee4c68a7663a29e Mon Sep 17 00:00:00 2001 From: Sithumli Nanayakkara Date: Thu, 5 Feb 2026 21:53:29 +0530 Subject: [PATCH 04/15] chore: remove unused iconify-icon imports from multiple components --- template/src/components/BlogCard.astro | 4 ---- template/src/components/BottomNav.astro | 4 ---- template/src/components/Button.astro | 4 ---- template/src/components/DocNav.astro | 4 ---- template/src/components/FlipCard.astro | 4 ---- template/src/components/Footer.astro | 4 ---- template/src/components/Header.astro | 4 ---- template/src/components/ReadTime.astro | 4 ---- template/src/layouts/BaseLayout.astro | 1 + 9 files changed, 1 insertion(+), 32 deletions(-) diff --git a/template/src/components/BlogCard.astro b/template/src/components/BlogCard.astro index bc3d07a..7e6938a 100644 --- a/template/src/components/BlogCard.astro +++ b/template/src/components/BlogCard.astro @@ -27,7 +27,3 @@ const { title, description, date, readTime = DEFAULTS.BLOG_CARD.readTime, image,
- - diff --git a/template/src/components/BottomNav.astro b/template/src/components/BottomNav.astro index 2585382..fa1ad22 100644 --- a/template/src/components/BottomNav.astro +++ b/template/src/components/BottomNav.astro @@ -128,7 +128,3 @@ const defaultFallbackLinks: NavTarget[] = fallbackLinks || [
)}
- - diff --git a/template/src/components/Button.astro b/template/src/components/Button.astro index 89b7a71..f351eb8 100644 --- a/template/src/components/Button.astro +++ b/template/src/components/Button.astro @@ -127,7 +127,3 @@ const Tag = href ? 'a' : 'button'; inset 0 1px 0 rgba(255, 255, 255, 0.15); } - - diff --git a/template/src/components/DocNav.astro b/template/src/components/DocNav.astro index a537f9d..1fff8b0 100644 --- a/template/src/components/DocNav.astro +++ b/template/src/components/DocNav.astro @@ -37,7 +37,3 @@ const { prev, next } = Astro.props;
)} - - diff --git a/template/src/components/FlipCard.astro b/template/src/components/FlipCard.astro index 86d16d8..9bdd725 100644 --- a/template/src/components/FlipCard.astro +++ b/template/src/components/FlipCard.astro @@ -193,7 +193,3 @@ const { title, description, icon } = Astro.props as Props; z-index: 1; } - - diff --git a/template/src/components/Footer.astro b/template/src/components/Footer.astro index 16f655d..ff09cc9 100644 --- a/template/src/components/Footer.astro +++ b/template/src/components/Footer.astro @@ -29,7 +29,3 @@ const currentYear = new Date().getFullYear();
- - diff --git a/template/src/components/Header.astro b/template/src/components/Header.astro index 79248de..733814f 100644 --- a/template/src/components/Header.astro +++ b/template/src/components/Header.astro @@ -92,10 +92,6 @@ const navLinks = NAV_LINKS; - - diff --git a/template/src/layouts/BaseLayout.astro b/template/src/layouts/BaseLayout.astro index 63d251a..2ed1b70 100644 --- a/template/src/layouts/BaseLayout.astro +++ b/template/src/layouts/BaseLayout.astro @@ -22,6 +22,7 @@ const siteTitle = SITE_TITLE; +
{header} @@ -21,7 +21,7 @@ const { headers, rows, striped = true } = Astro.props as TableProps; {rowIndex !== 0 && !striped && (
-
+