Skip to content

Commit 23d6d91

Browse files
authored
Merge pull request #55 from woocommerce/25-01/update-theme
Updated theme for branding changes
2 parents 3bf3118 + 2625a29 commit 23d6d91

File tree

6 files changed

+58
-41
lines changed

6 files changed

+58
-41
lines changed

docusaurus.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// There are various equivalent ways to declare your Docusaurus config.
55
// See: https://docusaurus.io/docs/api/docusaurus-config
66

7-
import {duotoneDark, jettwaveDark, nightOwl, oneDark, themes as prismThemes, vsDark} from 'prism-react-renderer';
7+
import { duotoneDark, jettwaveDark, nightOwl, oneDark, themes as prismThemes, vsDark } from 'prism-react-renderer';
88

99
/** @type {import('@docusaurus/types').Config} */
1010
const config = {
11-
title: 'Easy automated tests for WordPress plugins and themes - QIT',
11+
title: 'Easy automated tests for WooCommerce plugins and themes - QIT',
1212
favicon: 'img/favicon.ico',
1313

1414
// Set the production url of your site here
@@ -43,7 +43,7 @@ const config = {
4343
routeBasePath: '/docs/',
4444
sidebarPath: './sidebars.js',
4545
editUrl:
46-
'https://github.com/woocommerce/qit-documentation/tree/trunk',
46+
'https://github.com/woocommerce/qit-documentation/tree/trunk',
4747
},
4848
theme: {
4949
customCss: './src/css/custom.css',

src/css/custom.css

Lines changed: 51 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #7f54b3;
10-
--ifm-color-primary-dark: #7249a4;
11-
--ifm-color-primary-darker: #6c459b;
12-
--ifm-color-primary-darkest: #59397f;
13-
--ifm-color-primary-light: #8d66bb;
14-
--ifm-color-primary-lighter: #936fbf;
15-
--ifm-color-primary-lightest: #a88bcb;
9+
--ifm-color-primary: #6108ce;
10+
--ifm-color-primary-dark: #5507b6;
11+
--ifm-color-primary-darker: #4b06a3;
12+
--ifm-color-primary-darkest: #3d0584;
13+
--ifm-color-primary-light: #7220d6;
14+
--ifm-color-primary-lighter: #8338de;
15+
--ifm-color-primary-lightest: #a066e6;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1818
}
1919

20-
/* For readability concerns, you should choose a lighter palette in dark mode. */
20+
/* Dark mode */
2121
[data-theme='dark'] {
22-
--ifm-color-primary: #b99dd5;
23-
--ifm-color-primary-dark: #a783ca;
24-
--ifm-color-primary-darker: #9d76c4;
25-
--ifm-color-primary-darkest: #824fb4;
26-
--ifm-color-primary-light: #cbb7e0;
27-
--ifm-color-primary-lighter: #d5c4e6;
28-
--ifm-color-primary-lightest: #f1ebf6;
22+
--ifm-color-primary: #aa7ce2;
23+
--ifm-color-primary-dark: #9a64d7;
24+
--ifm-color-primary-darker: #8c56cd;
25+
--ifm-color-primary-darkest: #7233b6;
26+
--ifm-color-primary-light: #bc96e8;
27+
--ifm-color-primary-lighter: #c8aae9;
28+
--ifm-color-primary-lightest: #e5d3f6;
2929
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
3030
}
3131

@@ -34,16 +34,42 @@
3434
}
3535

3636

37-
[data-theme='light'] .token.qit_command.keyword { color: #e67e22; }
38-
[data-theme='light'] .token.qit_subcommand { color: #d31bc8; }
39-
[data-theme='light'] .token.qit_option.option-name { color: #8e44ad; }
40-
[data-theme='light'] .token.qit_option.option-value { color: #c0392b; }
41-
[data-theme='light'] .token.qit_argument.variable { color: #1737b0 !important; }
37+
[data-theme='light'] .token.qit_command.keyword {
38+
color: #e67e22;
39+
}
40+
41+
[data-theme='light'] .token.qit_subcommand {
42+
color: #d31bc8;
43+
}
44+
45+
[data-theme='light'] .token.qit_option.option-name {
46+
color: #8e44ad;
47+
}
48+
49+
[data-theme='light'] .token.qit_option.option-value {
50+
color: #c0392b;
51+
}
4252

43-
[data-theme='dark'] .token.qit_command.keyword { color: #FFB088 !important; }
44-
[data-theme='dark'] .token.qit_subcommand { color: #FFF; }
45-
[data-theme='dark'] .token.qit_option.option-name { color: #FFF1D6; }
46-
[data-theme='dark'] .token.qit_option.option-value { color: #FFA6B8; }
47-
[data-theme='dark'] .token.qit_argument.variable { color: #89E2FF !important;}
53+
[data-theme='light'] .token.qit_argument.variable {
54+
color: #1737b0 !important;
55+
}
4856

57+
[data-theme='dark'] .token.qit_command.keyword {
58+
color: #FFB088 !important;
59+
}
60+
61+
[data-theme='dark'] .token.qit_subcommand {
62+
color: #FFF;
63+
}
64+
65+
[data-theme='dark'] .token.qit_option.option-name {
66+
color: #FFF1D6;
67+
}
68+
69+
[data-theme='dark'] .token.qit_option.option-value {
70+
color: #FFA6B8;
71+
}
4972

73+
[data-theme='dark'] .token.qit_argument.variable {
74+
color: #89E2FF !important;
75+
}

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function HomepageHeader() {
1717
<Heading as="h1" className="hero__title">
1818
<span>Quality Insights Toolkit, or just QIT.</span>
1919
</Heading>
20-
<p className="hero__subtitle">A testing platform for WordPress plugins and themes.</p>
20+
<p className="hero__subtitle">A testing platform for WooCommerce plugins and themes.</p>
2121
<div className={styles.buttons}>
2222
<Link
2323
className="button button--secondary button--lg"

src/pages/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
text-align: center;
99
position: relative;
1010
overflow: hidden;
11-
background-color: #7f54b3;
11+
background-color: #6108ce;
1212
color: white;
1313
}
1414

@@ -22,4 +22,4 @@
2222
display: flex;
2323
align-items: center;
2424
justify-content: center;
25-
}
25+
}

static/img/favicon.ico

14.6 KB
Binary file not shown.

static/img/logo.svg

Lines changed: 1 addition & 10 deletions
Loading

0 commit comments

Comments
 (0)