-
Notifications
You must be signed in to change notification settings - Fork 4k
Add tint color #2605
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
Add tint color #2605
Conversation
🦋 Changeset detectedLatest commit: 44b2642 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
41511e5
to
1b641c2
Compare
GitBook Preview |
1b641c2
to
32651a9
Compare
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
To make some gray elements (like codeblocks) a bit less harsh.
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-color
remains 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-color
andcontrast-tint
CSS variablestint-color
to set base colour palette (light-*
anddark-*
variables)tint-color
for the header colour of Bold. When Custom is used, the set "Header background" and "Link color” settings take precedence over tint colour.plain-background
Tailwind variant in favour oftint
andno-tint
variants.primary-base
variable in favour oftint-color
Preview
Background: plain
Background: match
Default
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
headerBackgroundColor
andheaderLinkColor
. 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