diff --git a/src/components/content.tsx b/src/components/content.tsx
index 2f0478fab..26bb51d74 100644
--- a/src/components/content.tsx
+++ b/src/components/content.tsx
@@ -12,6 +12,19 @@ function startsWithVowel(string: string) {
return ["a", "e", "i", "o", "u"].includes(string[0]);
}
+function utilityToThemeKeyColorPrefix(utility: string) {
+ switch (utility) {
+ case "decoration":
+ return "text-decoration";
+ case "bg":
+ return "background";
+ case "shadow":
+ return "box-shadow";
+ default:
+ return utility;
+ }
+}
+
function htmlSnippet({
elementName,
attributes,
@@ -450,6 +463,8 @@ export function CustomizingYourThemeColors({
element?: string;
elementAttributes?: Record{primaryUtility}
by using{" "}
+ --{utilityToThemeKeyColorPrefix(primaryUtility)}-color-*
in your theme.
+