Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions website/core/PrismThemeDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ import type {ThemeConfig} from '@docusaurus/preset-classic';

const theme: ThemeConfig['prism']['theme'] = {
plain: {
color: '#ffffff',
backgroundColor: '#282c34',
color: 'var(--rn-prism-color)',
backgroundColor: 'var(--rn-prism-background-color)',
},
styles: [
{
types: ['comment', 'prolog', 'doctype', 'cdata'],
style: {
color: '#757575',
color: 'var(--rn-prism-comment-color)',
},
},
{
types: ['punctuation'],
style: {
color: '#ffffff',
color: 'var(--rn-prism-punctuation-color)',
},
},
{
Expand All @@ -34,49 +34,49 @@ const theme: ThemeConfig['prism']['theme'] = {
{
types: ['keyword', 'attr-name'],
style: {
color: '#77b7d7',
color: 'var(--rn-prism-keyword-color)',
},
},
{
types: ['tag', 'operator'],
style: {
color: '#dfab5c',
color: 'var(--rn-prism-tag-color)',
},
},
{
types: ['function', 'class-name'],
style: {
color: '#86d9ca',
color: 'var(--rn-prism-function-color)',
},
},
{
types: ['property', 'selector', 'char', 'builtin', 'url', 'entity'],
style: {
color: '#77b7d7',
color: 'var(--rn-prism-property-color)',
},
},
{
types: ['number', 'constant', 'symbol', 'boolean'],
style: {
color: '#c64640',
color: 'var(--rn-prism-number-color)',
},
},
{
types: ['string', 'regex', 'attr-value'],
style: {
color: '#977cdc',
color: 'var(--rn-prism-string-color)',
},
},
{
types: ['atrule', 'inserted'],
style: {
color: '#86d9ca',
color: 'var(--rn-prism-atrule-color)',
},
},
{
types: ['important', 'variable', 'deleted'],
style: {
color: '#c64640',
color: 'var(--rn-prism-important-color)',
},
},
{
Expand Down
24 changes: 12 additions & 12 deletions website/core/PrismThemeLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ import type {ThemeConfig} from '@docusaurus/preset-classic';

const theme: ThemeConfig['prism']['theme'] = {
plain: {
color: '#24292e',
backgroundColor: '#f6f8fa',
color: 'var(--rn-prism-color)',
backgroundColor: 'var(--rn-prism-background-color)',
},
styles: [
{
types: ['comment', 'prolog', 'doctype', 'cdata'],
style: {
color: '#6a737d',
color: 'var(--rn-prism-comment-color)',
},
},
{
types: ['punctuation'],
style: {
color: '#24292e',
color: 'var(--rn-prism-punctuation-color)',
},
},
{
Expand All @@ -34,49 +34,49 @@ const theme: ThemeConfig['prism']['theme'] = {
{
types: ['keyword', 'attr-name'],
style: {
color: '#d73a49',
color: 'var(--rn-prism-keyword-color)',
},
},
{
types: ['tag', 'operator'],
style: {
color: '#22863a',
color: 'var(--rn-prism-tag-color)',
},
},
{
types: ['function', 'class-name'],
style: {
color: '#6f42c1',
color: 'var(--rn-prism-function-color)',
},
},
{
types: ['property', 'selector', 'char', 'builtin', 'url', 'entity'],
style: {
color: '#005cc5',
color: 'var(--rn-prism-property-color)',
},
},
{
types: ['number', 'constant', 'symbol', 'boolean'],
style: {
color: '#032f62',
color: 'var(--rn-prism-number-color)',
},
},
{
types: ['string', 'regex', 'attr-value'],
style: {
color: '#032f62',
color: 'var(--rn-prism-string-color)',
},
},
{
types: ['atrule', 'inserted'],
style: {
color: '#22863a',
color: 'var(--rn-prism-atrule-color)',
},
},
{
types: ['important', 'variable', 'deleted'],
style: {
color: '#d73a49',
color: 'var(--rn-prism-important-color)',
},
},
{
Expand Down
3 changes: 1 addition & 2 deletions website/src/components/DocsSecondaryNav/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ button.copyPageButton {
.dropdownToggle,
.backLink,
button.copyPageButton {
background-color: color-mix(in srgb, var(--light), black 25%) !important;
background-color: var(--deepdark) !important;
border-color: var(--ifm-hr-border-color) !important;
}

Expand All @@ -198,7 +198,6 @@ button.copyPageButton {
}

.copyPageDropdown {
background-color: var(--ifm-navbar-background-color);
background-color: color-mix(in srgb, var(--light), black 40%) !important;

button[class^="dropdownItem"]:hover {
Expand Down
60 changes: 40 additions & 20 deletions website/src/css/customTheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
--subtle: #6c707b;
--divider: #ececec;
--tintColor: #f7f7f7;
--logo: #087ea4;
--navbar-background: #111317ee;
--navbar-active-item-background: #61dafb11;
--sidebar-active-item-background: #e6f7ff;
Expand All @@ -24,7 +25,6 @@
inset 0 -2px 0 0 var(--ifm-hr-border-color), inset 0 0 1px 1px #fff,
0 1px 2px 1px rgb(30 35 90 / 0.3);
--doc-sidebar-width: 266px !important;
--rn-note-background: rgb(255 229 100 / 0.25);
--docsearch-key-background: none;
--docsearch-searchbox-background: var(--ifm-background-color);
--docsearch-modal-background: var(--ifm-background-color);
Expand All @@ -39,6 +39,19 @@
--docsearch-highlight-color: white;
--docsearch-footer-height: 46px;
--docsearch-soft-primary-color: var(--sidebar-active-item-background);
--rn-note-background: rgb(255 229 100 / 0.25);
--rn-prism-color: #24292e;
--rn-prism-background-color: #fff;
--rn-prism-comment-color: #6a737d;
--rn-prism-punctuation-color: #24292e;
--rn-prism-keyword-color: #d73a49;
--rn-prism-tag-color: #22863a;
--rn-prism-function-color: #6f42c1;
--rn-prism-property-color: #005cc5;
--rn-prism-number-color: #032f62;
--rn-prism-string-color: #032f62;
--rn-prism-atrule-color: #22863a;
--rn-prism-important-color: #d73a49;
--ifm-font-family-base:
"Optimistic Display", system-ui, -apple-system, sans-serif;
--ifm-background-color: white;
Expand Down Expand Up @@ -79,7 +92,6 @@
--ifm-navbar-sidebar-width: 340px;
}

--logo: #087ea4;
--home-hero-floor-background: rgb(236 248 250);
--home-hero-floor-background-bottom: white;
--home-button-primary: #087ea4;
Expand Down Expand Up @@ -138,12 +150,14 @@ html[data-theme="dark"] {
}

--subtle: #858993;
--navbar-background: #20232aee;
--navbar-background: #21242cf2;
--deepdark: #21242c;
--logo: #58c4dc;
--sidebar-active-item-background: #61dafb15;
--key-shadow:
inset 0 -2px 0 0 var(--dark), inset 0 0 1px 1px var(--light),
0 2px 2px 0 rgb(3 4 9 / 0.3);
--ifm-background-color: #1b1b1d;
--ifm-background-color: #19191f;
--ifm-code-background: rgb(255 255 255 / 0.06);
--ifm-toc-border-color: var(--dark);
--ifm-color-emphasis-300: var(--dark);
Expand All @@ -157,9 +171,20 @@ html[data-theme="dark"] {
--docsearch-key-pressed-shadow: inset 0 2px 5px rgb(12 13 20 / 0.4);
--docsearch-modal-shadow: 0 3px 8px 0 #000309;
--docsearch-hit-highlight-color: var(--ifm-color-primary);
--logo: #58c4dc;
--home-hero-floor-background: #151517;
--home-hero-floor-background-bottom: #1b1b1d;
--rn-prism-color: #fff;
--rn-prism-background-color: #121417;
--rn-prism-comment-color: #757575;
--rn-prism-punctuation-color: #fff;
--rn-prism-keyword-color: #77b7d7;
--rn-prism-tag-color: #dfab5c;
--rn-prism-function-color: #86d9ca;
--rn-prism-property-color: #77b7d7;
--rn-prism-number-color: #c64640;
--rn-prism-string-color: #977cdc;
--rn-prism-atrule-color: #86d9ca;
--rn-prism-important-color: #c64640;
--home-hero-floor-background: #1c1e25;
--home-hero-floor-background-bottom: #191921;
--home-button-primary: #58c4dc;
--home-button-primary-text: #1b1b1d;
--home-button-primary-hover: #71d6ec;
Expand All @@ -170,21 +195,21 @@ html[data-theme="dark"] {
--home-hero-devices-border: #404756;
--home-hero-devices-stop: #4a5160;
--home-hero-devices-skeleton-element: #404756;
--home-hero-devices-background: #242426;
--home-hero-devices-background: #1c1e25;
--home-hero-devices-icon: #fff;
--home-hero-devices-icon-border: #404756;
--home-hero-floor: #30363d;
--home-hero-grid-icon-background: #1e2025;
--home-hero-grid-icon: #282c36;
--home-hero-grid-grid: #30363d;
--home-section-top: #1b1b1d;
--home-section-bottom: #111113;
--home-section-top: #1a1a20;
--home-section-bottom: #141419;
--home-secondary-text: #c0c1c4;
--home-feature-background-1: #333049;
--home-feature-background-2: #1c3950;
--home-feature-background-3: #1d413e;
--home-border: #404756;
--home-background: #242426;
--home-background: #1a1a20;
--home-secondary-background: #2c2c2e;
--home-text: #e3e3e3;
--home-code-red: #f46b78;
Expand Down Expand Up @@ -545,15 +570,15 @@ hr {
div[class*="codeBlockContainer"] {
box-shadow: none;
background: none;
border: 1px solid var(--ifm-color-emphasis-300);
border: 1px solid var(--ifm-toc-border-color);
border-radius: var(--ifm-global-radius);

pre {
border-radius: 0 0 var(--ifm-global-radius) var(--ifm-global-radius);
}

button {
border-color: var(--ifm-color-emphasis-300);
border-color: var(--ifm-toc-border-color);
background: var(--ifm-background-color);
}
}
Expand All @@ -574,7 +599,7 @@ hr {
div[class*="codeBlockTitle"] {
color: var(--subtle);
background-color: #f6f8fa;
border-bottom: 1px solid var(--ifm-color-emphasis-300);
border-bottom: 1px solid var(--ifm-toc-border-color);
}

.tabs {
Expand Down Expand Up @@ -624,14 +649,9 @@ html[data-theme="dark"] {
}
}

div[class*="codeBlockContainer"] {
border-color: rgb(225 227 230 / 0.15);
}

div[class*="codeBlockTitle"] {
color: var(--docsearch-muted-color);
background-color: #282c34;
border-bottom-color: rgb(225 227 230 / 0.15);
background-color: var(--deepdark);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion website/src/css/docs-secondary-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ html.plugin-docs {
// Placed before the `[data-version-next]` block so the brand-blue "Next" state
// still wins.
[data-theme="dark"] [class*="versionDropdown"] .navbar__link {
background-color: color-mix(in srgb, var(--light), black 25%);
background-color: var(--deepdark);
border-color: var(--ifm-hr-border-color);

&:hover {
Expand Down