feat: a couple small improvements

This commit is contained in:
TheodorTomas
2026-02-04 14:15:35 +08:00
parent 9fbe32c6ab
commit dc9251950c
2 changed files with 11 additions and 2 deletions
@@ -115,7 +115,16 @@ export const ThemeStyling = ({
// Headlines & Descriptions (Using Brand/Accent)
form.setValue("elementHeadlineColor.light", derivedAccentText, { shouldDirty: true });
form.setValue("elementDescriptionColor.light", derivedAccentText, { shouldDirty: true });
form.setValue(
"elementDescriptionColor.light",
mixColor(derivedAccentText, "#ffffff", 0.3) ?? derivedAccentText,
{ shouldDirty: true }
);
form.setValue(
"elementUpperLabelColor.light",
mixColor(derivedAccentText, "#ffffff", 0.5) ?? derivedAccentText,
{ shouldDirty: true }
);
// 2. Buttons
form.setValue("buttonBgColor.light", brandColor, { shouldDirty: true });
+1 -1
View File
@@ -399,7 +399,7 @@ describe("addCustomThemeToDom", () => {
expect(variables["--fb-button-padding-x"]).toBe("20px");
expect(variables["--fb-button-padding-y"]).toBe("10px");
// Inputs
expect(variables["--fb-input-color"]).toBe("#input-text");
expect(variables["--fb-input-text-color"]).toBe("#input-text");
expect(variables["--fb-input-border-radius"]).toBe("4px");
expect(variables["--fb-input-height"]).toBe("40px");
expect(variables["--fb-input-font-size"]).toBe("14px");