Skip to content

docs: default color mode follows the OS from 9.5 (#7132)#7278

Open
florent-leborgne wants to merge 3 commits into
mainfrom
docs-issue-7132-darkmode-default
Open

docs: default color mode follows the OS from 9.5 (#7132)#7278
florent-leborgne wants to merge 3 commits into
mainfrom
docs-issue-7132-darkmode-default

Conversation

@florent-leborgne

@florent-leborgne florent-leborgne commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

This PR addresses #7132. Kibana 9.5 changes the registered default of the theme:darkMode setting from disabled (light) to system, so a user with no saved color-mode preference now follows their OS color scheme, and System is pre-selected in the appearance selector. The dark-mode how-to still described light as the default, which is now inaccurate.

  • cloud-account/dark-mode.md:
    • Revised the intro to drop the "default light appearance" claim, and added a short introductory sentence with two version-tagged bullets describing the default color mode (stack: ga 9.5 + serverless: ga follows the OS with System pre-selected; stack: ga 9.0-9.4 preserves the prior light default). Removed the "default" wording from the Light option so the version-scoped bullet now carries it.
    • Scoped the Space default option to serverless: unavailable, since that option is filtered out of the appearance selector in serverless, and linked it to the specific theme:darkMode advanced setting rather than a generic reference.

Facts verified against the implementation PR elastic/kibana#273826 and source at HEAD (theme.ts, appearance_modal.tsx, user_profile.tsx). Serverless filtering of Space default confirmed in appearance_modal.tsx (colorModeOptions.filter(({ id }) => id !== 'space_default') when isServerless).

Companion PR

The issue also flags the missing default on the Kibana advanced settings reference (theme:darkMode). That reference is generated from a YAML file in the elastic/kibana repo, so it's handled in a separate PR: elastic/kibana#277021 (documents the system default from 9.5, disabled before). The setting is already annotated as unavailable in serverless.

Resolves

Closes #7132


AI-generated draft — created with Claude Opus 4.8.
Review all generated content for factual accuracy before merging.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

…de (#7132)

Co-authored-by: Cursor <cursoragent@cursor.com>
…de setting (#7132)

Co-authored-by: Cursor <cursoragent@cursor.com>
florent-leborgne added a commit to elastic/kibana that referenced this pull request Jul 8, 2026
## Summary

The `theme:darkMode` advanced setting reference (in
`docs/reference/advanced-settings-space.yml`) doesn't document a default
value. As of 9.5 the registered default changed from `disabled` to
`system` (see #273826 / #242973), so a user with no saved color-mode
preference now follows their OS color scheme.

This PR adds the default to the setting description using the
automated-settings per-version defaults idiom (inline `{applies_to}`
badges in a bulleted list):

* `stack: ga 9.5` — defaults to `system`
* `stack: ga 9.0-9.4` — defaults to `disabled` (preserved cumulatively)

The companion user-facing how-to update is in elastic/docs-content#7278.

### Verification

Code: Default change verified against #273826
(`src/core/packages/ui-settings/server-internal/src/settings/theme.ts` →
`getDefaultDarkModeValue` returns `'system'` for dist builds).

Rendered docs:
<img width="755" height="500" alt="image"
src="https://github.com/user-attachments/assets/c81b79a9-2097-492d-8df5-832418041f84"
/>


---

> **AI-generated draft** — created with Claude Opus 4.8. Review for
accuracy before merging.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>
@florent-leborgne florent-leborgne marked this pull request as ready for review July 8, 2026 16:01
@florent-leborgne florent-leborgne requested a review from a team as a code owner July 8, 2026 16:01
- **Space default**: Sets the color mode to the value defined in the [Space settings](kibana://reference/advanced-settings.md#kibana-general-settings)
- {applies_to}`serverless: unavailable` **Space default**: Sets the color mode to the value of the [`theme:darkMode`](kibana://reference/advanced-settings.md#theme-darkmode) advanced setting for the space.

:::{admonition} Deprecated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just wondering if the deprecation admonition here means there should also be deprecated badge in the applies_to for Space default?

@yetanothertw yetanothertw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you!
I've left a small comment for your consideration. I'm not sure whether or not the Space defaults item needs another applies_to for stack with a deprecated state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kibana defaults to System color mode for new users

2 participants