Skip to content

Commit 491d626

Browse files
Updated theme-colors to match main site for consistency
1 parent 846abd6 commit 491d626

File tree

2 files changed

+63
-49
lines changed

2 files changed

+63
-49
lines changed

_quarto.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ website:
1717
navbar:
1818
logo: "assets/images/turing-logo.svg"
1919
logo-href: https://turinglang.org/
20-
background: "#073c44"
21-
foreground: "#ffffff"
20+
# background: "#073c44"
21+
# foreground: "#ffffff"
2222
left:
2323
- href: getting-started/
2424
text: Get Started
@@ -117,10 +117,10 @@ website:
117117
- developers/inference/implementing-samplers/index.qmd
118118

119119
page-footer:
120-
background: "#073c44"
120+
#background: "#073c44"
121121
left: |
122-
Turing is created by <a href="http://mlg.eng.cam.ac.uk/hong/" target="_blank">Hong Ge</a>, and lovingly maintained by the <a href="https://github.com/TuringLang/Turing.jl/graphs/contributors" target="_blank">core team</a> of volunteers. <br>
123-
The contents of this website are © 2024 under the terms of the <a href="https://github.com/TuringLang/Turing.jl/blob/main/LICENCE" target="_blank">MIT License</a>.
122+
Turing is created by <a href="http://mlg.eng.cam.ac.uk/hong/" target="_blank">Hong Ge</a>, and maintained by the <a href="/team" target="_blank">core team of developers</a>. <br>
123+
© 2025 under the terms of the <a href="https://github.com/TuringLang/Turing.jl/blob/master/LICENCE" target="_blank">MIT License</a>.
124124
125125
right:
126126
- icon: twitter

theming/theme-dark.scss

Lines changed: 58 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,50 @@
55
$theme: "cosmo" !default;
66

77
// Manually-added colors
8-
9-
$background-nav: #192222;
10-
$background-body: #131818;
11-
$foreground: #1bb3ac;
12-
$links:#2aa198;
8+
$background-nav: #22272e;
9+
$background-body: #1c2128;
10+
$foreground: #ffffff;
11+
$links: #34b8bf;
1312
$links-hover: #31dce6;
14-
$code-background-color: #172424;
13+
$code-background-color: #22272e;
1514
$li: #bcbcbc;
15+
$text-muted: #848d97;
1616

1717
// Quarto default colors
18+
// Updated gray-900, teal, and cyan to match the main site's theme.
1819

19-
$white: #ffffff !default;
20+
$white: #ffffff !default;
2021
$gray-100: #f8f9fa !default;
2122
$gray-200: #e9ecef !default;
2223
$gray-300: #dee2e6 !default;
2324
$gray-400: #ced4da !default;
2425
$gray-500: #adb5bd !default;
2526
$gray-600: #868e96 !default;
2627
$gray-700: #495057 !default;
27-
$gray-800: #373a3c !default;
28-
$gray-900: #212529 !default;
29-
$black: #000000 !default;
30-
31-
$indigo: #6610f2 !default;
32-
$purple: #613d7c !default;
33-
$pink: #e83e8c !default;
34-
$red: #ff0039 !default;
35-
$orange: #f0ad4e !default;
36-
$yellow: #ff7518 !default;
37-
$green: #3fb618 !default;
38-
$teal: #20c997 !default;
39-
$cyan: #9954bb !default;
40-
41-
$primary: $links-hover !default;
42-
$secondary: $gray-800 !default;
43-
$success: $green !default;
44-
$info: $cyan !default;
45-
$warning: $yellow !default;
46-
$danger: $red !default;
47-
$light: $gray-100 !default;
48-
$dark: $gray-800 !default;
49-
50-
$min-contrast-ratio: 2.6 !default;
28+
$gray-800: #22272e !default;
29+
$gray-900: #1c2128 !default; // Updated from #212529
30+
$black: #000000 !default;
31+
32+
$indigo: #6610f2 !default;
33+
$purple: #613d7c !default;
34+
$pink: #e83e8c !default;
35+
$red: #ff0039 !default;
36+
$orange: #f0ad4e !default;
37+
$yellow: #ff7518 !default;
38+
$green: #3fb618 !default;
39+
$teal: #4DB6AC !default; // Updated from #20c997
40+
$cyan: #39d3d7 !default; // Updated from #9954bb
41+
42+
$primary: $links-hover !default;
43+
$secondary: $gray-800 !default;
44+
$success: $green !default;
45+
$info: $cyan !default;
46+
$warning: $yellow !default;
47+
$danger: $red !default;
48+
$light: $gray-100 !default;
49+
$dark: $gray-800 !default;
50+
51+
$min-contrast-ratio: 2.6 !default;
5152

5253
// Options
5354

@@ -56,20 +57,20 @@ $enable-rounded: false !default;
5657
// Fonts
5758

5859
// stylelint-disable-next-line value-keyword-case
59-
$font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
60-
$headings-font-weight: 400 !default;
60+
$font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
61+
$headings-font-weight: 400 !default;
6162

6263
// Tables
6364

64-
$table-color: initial !default;
65+
$table-color: initial !default;
6566

6667
// Alerts
6768

68-
$alert-border-width: 0 !default;
69+
$alert-border-width: 0 !default;
6970

7071
// Progress bars
7172

72-
$progress-height: .5rem !default;
73+
$progress-height: .5rem !default;
7374

7475

7576
// Custom tweaks for Quarto-Cosmo
@@ -81,23 +82,35 @@ $footer-fg: $foreground;
8182
$body-color: $white;
8283
$body-bg: $background-body;
8384

84-
a, pre code {
85+
/*-- scss:rules --*/
86+
87+
pre code {
8588
color: $links !important;
8689
}
8790

8891
pre {
8992
color: $foreground !important;
9093
}
91-
a:hover {
92-
color: $links-hover !important;
94+
95+
a {
96+
color: $links;
97+
98+
&:hover {
99+
color: $links-hover !important;
100+
}
93101
}
94102

95-
code, p code, ol code, li code, h1 code {
103+
code,
104+
p code,
105+
ol code,
106+
li code,
107+
h1 code {
96108
background-color: $code-background-color !important;
97109
color: $links;
98110
}
99111

100-
.cell, .anchored code {
112+
.cell,
113+
.anchored code {
101114
background-color: $code-background-color !important;
102115
color: $links;
103116
}
@@ -110,7 +123,7 @@ li {
110123
color: $li !important;
111124
}
112125

113-
.menu-text:hover {
126+
.menu-text:hover {
114127
color: $links-hover !important;
115128
}
116129

@@ -122,9 +135,10 @@ p {
122135
color: #6c757d !important;
123136
}
124137

125-
.ansi-bright-black-fg{
138+
.ansi-bright-black-fg {
126139
color: $foreground !important;
127140
}
141+
128142
::selection {
129143
color: $links-hover;
130144
background: $background-nav;
@@ -134,4 +148,4 @@ p {
134148
.tooltip {
135149
--bs-tooltip-color: $black !important;
136150
--bs-tooltip-bg: $white !important;
137-
}
151+
}

0 commit comments

Comments
 (0)