Skip to content

Commit 47d6a80

Browse files
authored
Support theme in announcement bar (#170)
* Support theme in announcement bar * fix formatting * endline
1 parent aad0d4d commit 47d6a80

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

spiceaidocs/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*.ts]
2+
quote_type = single

spiceaidocs/docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const config: Config = {
5858
announcementBar: {
5959
content:
6060
'Spice.ai OSS v0.10 is now available! Rebuilt from the ground up in Rust! 🚀',
61-
backgroundColor: '#fafbfc',
62-
textColor: '#091E42',
61+
backgroundColor: 'var(--announcement-bar-bg)',
62+
textColor: 'var(--announcement-bar-text)',
6363
isCloseable: true,
6464
},
6565
navbar: {

spiceaidocs/src/css/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
--ifm-color-primary-lightest: #3cad6e;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
18+
19+
--announcement-bar-bg: #fafbfc;
20+
--announcement-bar-text: #091E42;
1821
}
1922

2023
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -27,6 +30,9 @@
2730
--ifm-color-primary-lighter: #32d8b4;
2831
--ifm-color-primary-lightest: #4fddbf;
2932
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
33+
34+
--announcement-bar-bg: #000;
35+
--announcement-bar-text: #fff;
3036
}
3137

3238
[data-theme='light'] .DocSearch {

0 commit comments

Comments
 (0)