Skip to content

Conversation

@SupremeMuhit
Copy link

@SupremeMuhit SupremeMuhit commented Jan 26, 2026

I added a custom theme selector; to check, visit https://supremefmhy.pages.dev/ or https://suprememuhit.github.io/edit.

Introduces a CustomColorSelector component and integrates it into the ColorPicker, allowing users to define and persist custom link, text, and background colors for the site theme. Updates dependencies to include tinycolor2 and its types for color manipulation.
Introduces a 'custom' display mode for themes, allowing users to define and persist their own color schemes. Updates ColorPicker and ThemeDropdown to support the custom mode, including UI logic to prevent switching from custom to default modes without explicit action. Enhances themeHandler to register and apply custom themes from localStorage, manage previous mode restoration, and apply additional CSS variables for custom backgrounds.
Cleaned up ColorPicker.vue and ThemeDropdown.vue by removing unused variables and functions related to theme state. This improves code clarity and maintainability.
@anwar123-oss
Copy link

Great boi

The @click.self handler was removed from the modal overlay, so clicking the overlay no longer closes the CustomColorSelector modal.
@nbats nbats marked this pull request as draft January 26, 2026 12:50
@nbats
Copy link
Collaborator

nbats commented Jan 26, 2026

image

Adjusted the lightening values for card backgrounds in custom themes from 5/8 to 10/15 to improve visual distinction between cards and the main background.
@nbats
Copy link
Collaborator

nbats commented Jan 26, 2026

alright that seems to of been fixed now, if anyone finds any other problems with this please let us know

@ViVi-Vibes
Copy link

When changing the text hex it doesn't change it for the buttons text in the theme customizer, so setting a bright link color makes it hard to read.

image

Exclude the 'custom' theme from preset theme options in ColorPicker.vue and correct button text color assignments for custom themes. In CustomColorSelector.vue, update button styles to reflect selected custom colors dynamically, enhancing the user experience when previewing and applying custom color selections.
@SupremeMuhit
Copy link
Author

SupremeMuhit commented Jan 27, 2026

@ViVi-Vibes fixed, cheak: https://supremefmhy.pages.dev/
Thanks for reporting, report again if you find bugs.

Bump Vue dependency to 3.5.0 in package.json. Add SCSS preprocessor option to VitePress config for modern compiler API. Refactor UnoCSS config to use kebab-case CSS property names for consistency.
Regenerated pnpm-lock.yaml to reflect updated dependencies.
@ViVi-Vibes
Copy link

This Text remains inconsistent, and can't be changed, so changing to a darker background would make it invisible.

image

@ViVi-Vibes
Copy link

Also a idea if it could be implemented.

image

@ClaraIsCute
Copy link
Contributor

f3234b9b-730d-4c66-9a6e-8f310913ce26

Issues created by a FMHY Discord server member.

Replaces the description paragraph's class-based text color with an inline style using the CSS variable '--vp-c-text-1' for improved consistency with theming.
Introduces computed warnings for low contrast between link/text and background colors based on WCAG AA standards. Displays warning messages in the UI when contrast ratios fall below 4.5:1 to improve accessibility awareness.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants