Rename custom color variables

This commit is contained in:
Carlos Fernandez 2026-05-26 19:04:44 -04:00
parent 6fbccfc543
commit db431f563e
3 changed files with 12 additions and 11 deletions

View file

@ -12,8 +12,8 @@
box-shadow: 0 4px 30px @soft-shadow;
backdrop-filter: blur(9.5px);
outline: 2px solid transparent;
color: @input-text-color;
border: 1px solid @input-border-color;
color: @input-color-text;
border: 1px solid @input-color-border;
transition: all 0.3s ease;
&::placeholder {
@ -28,7 +28,7 @@
&:focus[type='number'] {
background: light-dark(@soft-shadow, @semi-transparent-dark-blue);
box-shadow: none;
outline: 2px solid @input-border-color;
outline: 2px solid @input-color-border;
}
&:disabled[type='text'],

View file

@ -88,7 +88,8 @@
/**
* Override core foundry color variables in theme scopes, and add some new theme specific variants.
* These are intended to be more representative of its use case, so avoid naming these after the color.
* Heavily scoped foundry variables (such as input-border-color, which is defined inside input) instead get a prefix.
* Some foundry variables are heavily scoped and we need to redefine them (https://github.com/foundryvtt/foundryvtt/issues/12893)
* Convention for the redefined ones is --dh-{element}-color-{thing}
*/
@scope (.theme-light) to (.themed) {
.dh-style :scope,
@ -100,8 +101,8 @@
--color-text-emphatic: @dark-blue;
--color-text-subtle: #555;
--dh-input-border-color: @dark;
--dh-input-text-color: @dark;
--dh-input-color-border: @dark;
--dh-input-color-text: @dark;
}
}
@scope (.theme-dark) to (.themed) {
@ -114,8 +115,8 @@
--color-text-emphatic: @golden;
--color-text-subtle: #a29086;
--dh-input-border-color: @beige;
--dh-input-text-color: @beige;
--dh-input-color-border: @beige;
--dh-input-color-text: @beige;
}
}
@ -231,5 +232,5 @@
@color-text-emphatic: var(--color-text-emphatic);
@color-text-primary: var(--color-text-primary);
@color-text-subtle: var(--color-text-subtle);
@input-border-color: var(--dh-input-border-color);
@input-text-color: var(--dh-input-text-color);
@input-color-border: var(--dh-input-color-border);
@input-color-text: var(--dh-input-color-text);

View file

@ -50,7 +50,7 @@
*/
.dh-typography() {
h1 {
--dh-input-text-color: @color-text-emphatic;
--dh-input-color-text: @color-text-emphatic;
font-family: @font-title;
margin: 0;
border: none;