-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* `color` prop for icon * Refactor GridTableOfContents to use icon color prop * `gridTOC` frontmatter data * GridTableOfContents component * Use GridTableOfContents in App * Use $min-font-size in global.scss * Fix styling for grid TOC * Rename GridTableOfContents to QuickLinks * Remove demo data * Fix quick links grid gap * `metaDescription` config for setting meta description tag * Fix _modules link on API references * Inline code styling copied from napari hub * Add custom Pygments code theme * Load scripts and stylesheets from HTML file * Fix styling for copy button * Add comments * Fix theme colors to be a11y friendly * Fix sphinx script loading for pages transitions * Use IconColorProps from #170
- Loading branch information
1 parent
a340f18
commit 15cab12
Showing
15 changed files
with
463 additions
and
97 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
theme/napari/*.html | ||
theme/napari/static | ||
theme.conf | ||
**/*.py |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
from pygments.style import Style | ||
from pygments.token import ( | ||
Comment, | ||
Error, | ||
Generic, | ||
Keyword, | ||
Literal, | ||
Name, | ||
Operator, | ||
Punctuation, | ||
String, | ||
) | ||
|
||
# Pygments style class based on GitHub code style: | ||
# https://git.io/Jz85x | ||
class NapariCodeTheme(Style): | ||
background_color = "#f7f7f7" | ||
|
||
styles = { | ||
Comment: "italic #6f6f6f", | ||
Comment.Multiline: "italic #6f6f6f", | ||
Comment.Preproc: "bold #6f6f6f", | ||
Comment.Single: "italic #6f6f6f", | ||
Comment.Special: "bold italic #6f6f6f", | ||
Error: "bg:#e3d2d2 #a61717", | ||
Generic.Deleted: "bg:#ffdddd #000000", | ||
Generic.Emph: "italic #000000", | ||
Generic.Error: "#990000", | ||
Generic.Heading: "#6f6f6f", | ||
Generic.Inserted: "bg:#ddffdd #000000", | ||
Generic.Output: "#6f6f6f", | ||
Generic.Prompt: "#555555", | ||
Generic.Strong: "bold", | ||
Generic.Subheading: "#6f6f6f", | ||
Generic.Traceback: "#aa0000", | ||
Keyword: "bold #7518a1", | ||
Literal.Number: "#227b81", | ||
Literal.String: "#0074b8", | ||
Name: '#000', | ||
Name.Attribute: "#7518a1", | ||
Name.Builtin: "bold #7518a1", | ||
Name.Class: "bold #5471a0", | ||
Name.Constant: "#7518a1", | ||
Name.Decorator: "bold #3c5d5d", | ||
Name.Entity: "#800080", | ||
Name.Exception: "bold #990000", | ||
Name.Function: "bold #004166", | ||
Name.Label: "bold #990000", | ||
Name.Namespace: "#555555", | ||
Name.Tag: "#000080", | ||
Name.Variable: "#7518a1", | ||
Operator: "#956441", | ||
Punctuation: '#000', | ||
String: "#0074b8", | ||
} |
This file contains 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
Oops, something went wrong.