Feature/tomorrow night eighties style#3142
Open
Trung6405 wants to merge 8 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds the Tomorrow Night Eighties colour scheme as a built-in Pygments style.
Previously, the style was only available as a third-party package (tomorrow-pygments). This meant tools like HTTPie required an extra dependency to use it.
Changes
pygments/styles/tomorrow_night_eighties.py, ported from tomorrow-pygments by MozMorris, based on the original theme by Chris Kempsonpygments/styles/_mapping.pyto register the style astomorrow-night-eighties(regenerated viatox -e mapfiles)tests/contrast/min_contrasts.jsonwith the style's minimum contrast ratio of 4.6 (regenerated viascripts/update_contrasts.py)Testing
tox -e mapfilespassespytest tests/contrast/test_contrasts.pypassesResult
The Tomorrow Night Eighties theme is now available as a built-in style, no extra dependencies needed.
Fixes #960