From cc5e07b60b58db317b7bc92a67bcfccff5d62fb3 Mon Sep 17 00:00:00 2001 From: Rubin Bajracharya Date: Wed, 17 Jul 2024 14:32:50 +0545 Subject: [PATCH] fix: typo in theme template causing blank color values. (#4315) Typo fix to get proper value when pressing copy code in theme customizer section. Link for Issue: https://github.com/shadcn-ui/ui/issues/4314 --- apps/www/components/theme-customizer.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/www/components/theme-customizer.tsx b/apps/www/components/theme-customizer.tsx index 95bfcdf9f6..1efa5c5797 100644 --- a/apps/www/components/theme-customizer.tsx +++ b/apps/www/components/theme-customizer.tsx @@ -636,11 +636,11 @@ const BASE_STYLES_WITH_VARIABLES = ` --input: <%- colors.light["input"] %>; --ring: <%- colors.light["ring"] %>; --radius: <%- radius %>rem; - --chart-1: <%- colors.light["chart1"] %>; - --chart-2: <%- colors.light["chart2"] %>; - --chart-3: <%- colors.light["chart3"] %>; - --chart-4: <%- colors.light["chart4"] %>; - --chart-5: <%- colors.light["chart5"] %>; + --chart-1: <%- colors.light["chart-1"] %>; + --chart-2: <%- colors.light["chart-2"] %>; + --chart-3: <%- colors.light["chart-3"] %>; + --chart-4: <%- colors.light["chart-4"] %>; + --chart-5: <%- colors.light["chart-5"] %>; } .dark { @@ -663,11 +663,11 @@ const BASE_STYLES_WITH_VARIABLES = ` --border: <%- colors.dark["border"] %>; --input: <%- colors.dark["input"] %>; --ring: <%- colors.dark["ring"] %>; - --chart-1: <%- colors.dark["chart1"] %>; - --chart-2: <%- colors.dark["chart2"] %>; - --chart-3: <%- colors.dark["chart3"] %>; - --chart-4: <%- colors.dark["chart4"] %>; - --chart-5: <%- colors.dark["chart5"] %>; + --chart-1: <%- colors.dark["chart-1"] %>; + --chart-2: <%- colors.dark["chart-2"] %>; + --chart-3: <%- colors.dark["chart-3"] %>; + --chart-4: <%- colors.dark["chart-4"] %>; + --chart-5: <%- colors.dark["chart-5"] %>; } } `