Skip to content
Open
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
9 changes: 1 addition & 8 deletions src/_help/customization-options/color-logo-meta-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,13 @@ You can safely customize the style of your doc portal using these CSS variables:
| `--heading-font-family` | the font family used for headings (h1, h2, h3, ...). If none is defined, the global font family is used |
| `--code-font-family` | the font family used for code blocks and examples |
| `--doc-base-color` | the primary color, used for links, buttons and verb pills. Can also be set in the documentation or hub settings |
| `--doc-soft-color` | the soft tint used for the active navigation entry, selection, labels and chips |
| `--doc-soft-color` | the soft tint used for the active navigation entry, labels and chips |

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cf comment in semantic.css

/* Text selection. Not --pn-accent-soft: customers override its
  --doc-soft-color for chip backgrounds, not for selections. */
--pn-selection: color-mix(in srgb, var(--pn-accent), transparent 70%);

| `--text-color` | the color used for body text |
| `--title-color` | the color used for headings |
| `--page-background-color` | the page background color |
| `--page-background` | the full page background. Also accepts a gradient |
| `--code-background-color` | the background color of code blocks and examples, dark in both themes |
| `--code-text-color` | the text color of code blocks and examples, dark in both themes |
| `--doc-font-size` | the global font size. The default value is 14px |
| `--code-font-size` | the font size used on code blocks and examples. The default value is 12px |
| `--nav-font-size` | the font size used on side and top navigation bars. The default value is 14px |
| `--doc-font-weight` | the default font weight. The default value is 500 |
| `--nav-font-weight` | the font weight used on side and top navigation bars. The default value is 500 |
| `--logo-width` | the logo width, if the default width doesn't fit your logo |
| `--logo-height` | the logo height, if the default height doesn't fit your logo |

### How overrides are applied

Expand Down
19 changes: 8 additions & 11 deletions src/_help/customization-options/embed-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,14 @@ You can safely style your documentation using the following CSS variables:
- `--font-family`: the global font family;
- `--heading-font-family`: the font family used for headings (h1, h2, h3, ...). If none is defined, the `--font-family` is displayed;
- `--code-font-family`: the font used for code blocks and examples;
- `--doc-font-size`: the global font size. The default value is 14px;
- `--code-font-size`: the font size used on code blocks and examples. The default value is 12px;
- `--nav-font-size`: the font size used on side and top navigation bars. The default value is 14px;
- `--doc-font-weight`: the default font weight. The default value is 500;
- `--nav-font-weight`: the font weight used on side and top navigation bars. The default value is 500;
- `--logo-width`: logo width, if the default width doesn't fit your logo width;
- `--logo-height`: logo height, if the default height doesn't fit your logo height;
- `--doc-success-color`: the color used for success messages;
- `--doc-error-color`: the color used for error messages;
- `--doc-warning-color`: the color used for warning messages;
- `--doc-warning-light-color`: the color used for warning messages with a lighter background;
- `--doc-base-color`: the primary color, used for links, buttons and verb pills. Can also be set in the documentation or hub settings;
- `--doc-soft-color`: the soft tint used for the active navigation entry, labels and chips;
- `--text-color`: the color used for body text;
- `--title-color`: the color used for headings;
- `--page-background-color`: the page background color;
- `--page-background`: the full page background. Also accepts a gradient;
- `--code-background-color`: the background color of code blocks and examples, dark in both themes;
- `--code-text-color`: the text color of code blocks and examples, dark in both themes;

You may also override styles using your own custom CSS, but keep in mind:

Expand Down