Skip to content

Commit

Permalink
Use system font and primary purple, same as wagtail admin style
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalvino authored and lb- committed Aug 18, 2022
1 parent db1b229 commit cb2c510
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 257 deletions.
5 changes: 3 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
Welcome to "Sphinx Wagtail theme" documentation!
================================================

.. image:: https://raw.githubusercontent.com/wagtail/sphinx_wagtail_theme/main/img/screenshot.png
:alt: Sphinx Wagtail theme screenshot
This is the Sphinx theme used for the official Wagtail docs. All Wagtail-related
projects are welcome and encouraged to also use this theme! To see what this
theme looks like, checkout our :doc:`examples <examples/index>`.

.. toctree::
:maxdepth: 2
Expand Down
96 changes: 0 additions & 96 deletions fonts/source-code-pro/LICENSE.txt

This file was deleted.

Binary file removed fonts/source-code-pro/SourceCodePro-Bold.ttf.woff2
Binary file not shown.
Binary file not shown.
Binary file removed fonts/source-code-pro/SourceCodePro-It.ttf.woff2
Binary file not shown.
Binary file not shown.
96 changes: 0 additions & 96 deletions fonts/source-sans/LICENSE.txt

This file was deleted.

Binary file removed fonts/source-sans/SourceSans3-Bold.ttf.woff2
Binary file not shown.
Binary file removed fonts/source-sans/SourceSans3-BoldIt.ttf.woff2
Binary file not shown.
Binary file removed fonts/source-sans/SourceSans3-It.ttf.woff2
Binary file not shown.
Binary file removed fonts/source-sans/SourceSans3-Regular.ttf.woff2
Binary file not shown.
Binary file removed img/screenshot.png
Binary file not shown.
56 changes: 0 additions & 56 deletions sass/_fonts.scss

This file was deleted.

53 changes: 49 additions & 4 deletions sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $gray-900: #212121;
$black: #000;

$teal: #007d7e;
$indigo: #251657;
$indigo: #2e1f5e;
$bright-green: #3beccd;
$bright-green-700: color.adjust($bright-green, $lightness: -15%);
$bright-green-900: color.adjust($bright-green, $lightness: -30%);
Expand Down Expand Up @@ -86,9 +86,54 @@ $base16-base0F: #ff5370;
// Fonts
// --------------------------------------------------

$font-family-sans-serif: "Source Sans 3", sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
$font-family-monospace: "Source Code Pro", monospace;
$font-family-sans-serif:
// iOS Safari, macOS Safari, macOS Firefox
"-apple-system",
// macOS Chrome
"BlinkMacSystemFont",
// Windows - for all browsers on Windows 7+ (putting Segoe UI before system-ui ensures Segoe UI will be rendered for different languages)
"Segoe UI",
"system-ui",
// Targets Android and newer Chrome OS. (If Roboto is installed on your windows computer Segoe UI will take precedence.)
"Roboto",
// A common fallback font for older macOS
"Helvetica Neue",
// Very old Windows versions (special shout-out to whoever is using windows 95)
"Arial",
// A last resort if all else fails, just give us something without serifs :)
sans-serif,
// All the emojis πŸ‘‹πŸ™‚
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji";

$font-family-monospace:
// iOS Safari, MacOS Safari
"ui-monospace",
"Menlo",
"Monaco",
// Windows,
"Cascadia Mono",
"Segoe UI Mono",
// Linux
"Roboto Mono",
"Oxygen Mono",
"Ubuntu Monospace",
// Android
"Source Code Pro",
// Firefox
"Fira Mono",
// Last resort Android/others
"Droid Sans Mono",
"Courier New",
monospace,
// All the emojis πŸ‘‹πŸ™‚
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji";

$font-weight-bold: 700;

$h1-font-size: 2em;
Expand Down
3 changes: 0 additions & 3 deletions sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
@import "../node_modules/@fortawesome/fontawesome-free/scss/variables";
@import "../node_modules/bootstrap/scss/bootstrap";

// fonts
@import "fonts";

// components
@import "component_admotion";
@import "component_figure";
Expand Down

0 comments on commit cb2c510

Please sign in to comment.