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

Add basic code highlighting. #30

Merged
merged 1 commit into from
Jan 22, 2019
Merged

Add basic code highlighting. #30

merged 1 commit into from
Jan 22, 2019

Conversation

adunkman
Copy link
Member

As mentioned in #27, this implements basic code highlighting styles, based off the login.gov color space. These are pygments compatible class names, which are the standard across every standard syntax highlighter.

Additionally, this PR applies the theme monospace font (Roboto Mono Web) to all code and pre elements for convenience and compatibility with default markdown syntax highlighting.

Here’s what it looks like on the Accordions page:

Screenshot of Accordions documentation page

I didn’t spend an incredible amount of time on this, so open to changes and iterations as we discover what doesn’t work.

@adunkman
Copy link
Member Author

Actually, I think this should be covered in documentation as well, since at least developers.login.gov will be using these code styles. Created #31 to add documentation later.

@adunkman adunkman merged commit cca5641 into master Jan 22, 2019
@adunkman adunkman deleted the code-styles branch January 22, 2019 18:30
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