Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Aug 18, 2025

Summary

The variables like --color-error now are based on our secondary
theming, thus they are less "aggressive" colors. But there are two
usecases for primary based status colors:

  • borders
  • error text messages (e.g. validation errors in forms)

To simplify app changes due to the secondary color theme change this
introduces 3 new variables:

  • --color-text-error this shall be used if text should have error
    status theming and is displayed on normal background (while
    --color-error-text is only for text shown on --color-error similar
    as primary and secondary colors)
  • --color-border-error and --color-border-success those should be
    used for element borders if there is one of those statuses to be
    reported (we use this for validation errors as well as for indicating a
    value was saved)

So basically this follows the previous naming schema:

  • --color-text-... for text on normal backgrounds
  • --color-xyz-text for text on --color-xyz
  • --color-border-... for special borders

Checklist

The variables like `--color-error` now are based on our secondary
theming, thus they are less "aggressive" colors. But there are two
usecases for primary based status colors:
- borders
- error text messages (e.g. validation errors in forms)

To simplify app changes due to the secondary color theme change this
introduces 3 new variables:
- `--color-text-error` this shall be used if text should have error
  status theming and is displayed on normal background (while
  `--color-error-text` is only for text shown on `--color-error` similar
  as primary and secondary colors)
- `--color-border-error` and `--color-border-success` those should be
  used for element borders if there is one of those statuses to be
  reported (we use this for validation errors as well as for indicating a
  value was saved)

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux added this to the Nextcloud 32 milestone Aug 18, 2025
@susnux susnux added enhancement design Design, UI, UX, etc. 3. to review Waiting for reviews labels Aug 18, 2025
Base automatically changed from feat/secondary-status-colors to master August 18, 2025 17:54
@susnux susnux marked this pull request as ready for review August 18, 2025 17:54
@susnux susnux requested review from a team as code owners August 18, 2025 17:54
@susnux susnux requested review from Altahrim, CarlSchwan, artonge, nfebe, skjnldsv and szaimen and removed request for a team and nfebe August 18, 2025 17:54
@susnux susnux added the pending documentation This pull request needs an associated documentation update label Aug 18, 2025
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@skjnldsv skjnldsv merged commit f4c74f5 into master Aug 19, 2025
232 of 244 checks passed
@skjnldsv skjnldsv deleted the feat/status-border-text-colors branch August 19, 2025 08:50
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews design Design, UI, UX, etc. enhancement pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants