Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
This PR adds support for the new tint colour customisation setting. It is meant as an additional way to theme your docs by subtly colouring various elements of your theme, such as the background or header. The
primary-colorremains in use for primary navigation elements such as links and buttons.This first PR aims to swap the properties used in colour calculations without introducing big visual changes. In future PRs will propose new ways of using tint in various places. There are no changes for sites that have not opted into the Tint setting.
tint-colorandcontrast-tintCSS variablestint-colorto set base colour palette (light-*anddark-*variables)tint-colorfor the header colour of Bold. When Custom is used, the set "Header background" and "Link color” settings take precedence over tint colour.plain-backgroundTailwind variant in favour oftintandno-tintvariants.primary-basevariable in favour oftint-colorPreview
Background: plainBackground: matchDefault
No changes with tint off. If tint is enabled, we colour the bg slightly with the tint color (primary color or custom color)
Bold
No changes with tint off. If tint is enabled, we colour the bg slightly and header strongly with the tint color. The links are always set to a contrast of the tint color.
Contrast
No changes with tint off. If tint is enabled, we colour only the bg slightly. Header stays contrasting.
Custom
No changes with tint off – we use the custom-set
headerBackgroundColorandheaderLinkColor. If tint is enabled, we colour only the bg slightly. The custom header colours stay in place. We aim to eventually clean up these options, favouring tint over custom-set header colours.Resolves RND-5670