Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow user-interactive color changes in customization doc #256

Merged
merged 6 commits into from
May 10, 2023

Conversation

2bndy5
Copy link
Collaborator

@2bndy5 2bndy5 commented May 5, 2023

I revised the list of color scheme, primary and accent options, so users can click on the "badge" (actually a styled inline literal) to dynamically test the supported values. The corresponding example code-block's content is also dynamically adjusted accordingly. Similar to upstream's doc, the color changes do not persist after page (re)load.

docs/customization.rst Outdated Show resolved Hide resolved
@2bndy5 2bndy5 force-pushed the live-color-customization branch 2 times, most recently from 75c1f57 to 06963ef Compare May 7, 2023 08:25
2bndy5 added 3 commits May 7, 2023 01:33
I revised the list of color schemes, primary and accent options , so users can click on the "badge" (actually a styled inline literal) to test the supported values. The corresponding example code-block's content is also adjusted accordingly.
@2bndy5 2bndy5 force-pushed the live-color-customization branch from 06963ef to 45991e0 Compare May 7, 2023 08:34
docs/conf.py Show resolved Hide resolved
docs/customization.rst Outdated Show resolved Hide resolved
Copy link
Owner

@jbms jbms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks great!

@2bndy5 2bndy5 merged commit 60e2466 into main May 10, 2023
47 checks passed
@2bndy5 2bndy5 deleted the live-color-customization branch May 10, 2023 06:59
2bndy5 added a commit that referenced this pull request May 15, 2023
This a follow up to #256 that orders the colors as they are listed in the CSS bundle (according to hue).

The original ordering was a bit chaotic because it was grabbing the color names from rules specifically for hyperlink elements. But, by only grabbing the color names from rules that define the fg/bg color vars, we get the originally expected results.
2bndy5 added a commit that referenced this pull request May 18, 2023
This a follow up to #256 that orders the colors as they are listed in the CSS bundle (according to hue).
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.

None yet

2 participants