diff --git a/site/components/Features.tsx b/site/components/Features.tsx index d1679550..76032116 100644 --- a/site/components/Features.tsx +++ b/site/components/Features.tsx @@ -38,7 +38,7 @@ const features: { title: string; description: string; icon: string }[] = [ export default function Features() { return (
-

How Portal.JS works?

+

How Portal.JS works?

Portal.JS is built in JavaScript and React on top of the popular Next.js framework, assuming a "decoupled" approach where the frontend is a @@ -55,7 +55,7 @@ export default function Features() {

-

+

{feature.title}

diff --git a/site/components/MDXPage.tsx b/site/components/MDXPage.tsx index b710bd6c..739e2fbd 100644 --- a/site/components/MDXPage.tsx +++ b/site/components/MDXPage.tsx @@ -11,7 +11,7 @@ export default function MDXPage({ source, frontMatter }) { }; return ( -
+
{/* Default layout */} diff --git a/site/components/NavItem.tsx b/site/components/NavItem.tsx index 88d4dd93..1fc597e2 100644 --- a/site/components/NavItem.tsx +++ b/site/components/NavItem.tsx @@ -29,12 +29,12 @@ export default function NavItem({ item }) { {Object.prototype.hasOwnProperty.call(item, "href") ? ( {item.name} ) : ( -
+
{item.name}
)} diff --git a/site/lib/markdown.mjs b/site/lib/markdown.mjs index 4a571c24..97536a58 100644 --- a/site/lib/markdown.mjs +++ b/site/lib/markdown.mjs @@ -12,6 +12,7 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings"; import rehypeKatex from "rehype-katex"; import rehypeSlug from "rehype-slug"; import rehypePrismPlus from "rehype-prism-plus"; +import * as tw from "../tailwind.config"; import { serialize } from "next-mdx-remote/serialize"; @@ -65,7 +66,7 @@ const parse = async function (source, format, scope) { "svg", { xmlns: "http:www.w3.org/2000/svg", - fill: "#ab2b65", + fill: tw.theme.extend.colors.secondary.DEFAULT, viewBox: "0 0 20 20", className: "w-5 h-5", }, diff --git a/site/tailwind.config.js b/site/tailwind.config.js index ba6dcb1c..3fc8cabd 100644 --- a/site/tailwind.config.js +++ b/site/tailwind.config.js @@ -32,12 +32,12 @@ module.exports = { dark: colors.slate[950], }, primary: { - DEFAULT: colors.gray[700], - dark: colors.gray[300], + DEFAULT: colors.gray[800], + dark: colors.gray[100], }, secondary: { - DEFAULT: "", - dark: "", + DEFAULT: "#60a5fa", + dark: "#60a5fa", }, }, },