-
Notifications
You must be signed in to change notification settings - Fork 188
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
Style/custom dark theme #2414
Style/custom dark theme #2414
Conversation
This reverts commit 460ee2e.
The colours seem a bit off, specifically I think the background colour should match the background of OSV.dev / figma design. |
Yeah, you are right. My mistake, I made some assumptions in terms of black/white. I double-checked some of the visible styles on Figma versus the updates and at least those should match now. Styles for tables, search input & search results, code snippet styles are not covered by Figma and unfortunately, I just went with defaults plus this solarised dark theme for code highlight. |
I'm not a big fan of the solarized-dark code theme, on our blog pages we use the chroma 'native' theme: https://xyproto.github.io/splash/docs/native.html It looks like there's a scss version of it here: https://github.com/dwayne/sass-pygments/blob/master/styles/scss/native.scss Can you try using that instead? As for the search input, using the same background colour as the main page (#2A2A2A) should be fine, as the entire background darkens anyway when the search is selected. |
Updates:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Happy with the light background version for tables
Did you mean to ping me? |
Ah sorry, I don't think so, we have someone with the same name internally and @ is getting confused. |
@stvmachine I just realised that the background color of OSV.dev is actually #292929, can you see if you can update the 2A2A2A to 292929? Thanks! |
osv.dev also uses the Overpass font, can you also try switching from the current roboto font to overpass and see how that looks? |
Thanks, just need to rebase/merge this from master and we should be good to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the font is still incorrect, we need to specify the font used in the CSS as well. Also please merge in the master branch to get the PR check to pass.
gcp/appengine/docs/index.html
Outdated
@@ -5,7 +5,7 @@ | |||
<!-- needed for adaptive design --> | |||
<meta charset="utf-8"/> | |||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet"> | |||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Overpass:300,400,700" rel="stylesheet"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to set this font in the CSS, not just adding the resource. I believe it defaulted to roboto because that's the default system font.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Friendly ping on this @stvmachine @G-Rath
Preview
https://stvmachine.github.io/osv.dev/quickstart/
Description
Using a dark theme for the docs as a starting point. Just-the-docs come with a default dark theme.
The updates:
General styles have been updated. More information on the Figma updates: https://www.figma.com/design/Yi1nd5v6iR406zngmscSD3/Open-Source-Vulnerability-(OSV)-Scanner?node-id=0-1&t=ca4V36K9Cf8KrG4O-0
The logo has been updated
Figure 1: Updated logo.
Screenshots