diff --git a/app/globals.css b/app/globals.css
index 8998ba2..17612e6 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -4,13 +4,13 @@
@layer base {
* {
- @apply text-white
+ @apply text-white box-border
}
body {
@apply dark:bg-mixed-100 bg-primary-600
}
input {
- @apply py-2 px-4 rounded-full dark:bg-mixed-200 dark:bg-mixed-600 placeholder:text-dark-500
+ @apply py-2 px-4 rounded-full dark:bg-mixed-200 bg-mixed-600 placeholder:text-dark-500
}
h1,h2,h3,h4,h5,h6 {
@apply font-bold
@@ -32,10 +32,10 @@
}
.btn-primary {
- @apply bg-primary-500 py-4 px-6 text-mixed-100 rounded-full font-bold text-lg
+ @apply dark:bg-primary-500 bg-primary-100 py-4 px-6 dark:text-mixed-100 text-white rounded-full font-bold text-lg
}
.btn-secondary {
- @apply text-primary-500 py-4 px-6 font-bold text-lg
+ @apply dark:text-primary-500 text-primary-100 py-4 px-6 font-bold text-lg
}
.p {
@apply py-1
diff --git a/components/tcmd/index.tsx b/components/tcmd/index.tsx
index 5792bd6..89d669b 100644
--- a/components/tcmd/index.tsx
+++ b/components/tcmd/index.tsx
@@ -186,7 +186,8 @@ const renderInlineToken = (l: Line) => {
case "anchor":
return (
{token.content}
@@ -217,7 +218,7 @@ const renderInlineToken = (l: Line) => {
preferredEdge="bottom"
className="cursor-pointer"
>
-
+
{token.content}
diff --git a/lib/tcmd/tokenizeInline.ts b/lib/tcmd/tokenizeInline.ts
index 85b4760..ac53c42 100644
--- a/lib/tcmd/tokenizeInline.ts
+++ b/lib/tcmd/tokenizeInline.ts
@@ -94,12 +94,27 @@ export const inlineTokens: {
{
rx: /(? s.rx.test(label));
+
+ if (style) label = label.replace(style.rx, "");
+
tokens.push({
content: label,
type: "anchor",
data: {
href,
+ style,
},
start,
end,
diff --git a/test.md b/test.md
index 26bd0aa..43b0b3a 100644
--- a/test.md
+++ b/test.md
@@ -35,6 +35,9 @@ placerat. Auctor urna nunc id cursus metus aliquam eleifend.
ornare lectus sit amet est placerat. Auctor urna nunc id cursus metus
aliquam eleifend.
+[```button Learn More](#)
+[```cta Learn More](#)
+
]]
[[