Hauptmenü

Styling ab v38

Begonnen von Beatrice Müller, 16.11.2026 15:46:10

⏪ vorheriges - nächstes ⏩

Beatrice Müller

Ab v38 bitte die colors.less nicht mehr bind-mounten, nur noch custom.less! 

Die colors.less ist nur noch readonly zu betrachten, um zu schauen, welche Farbvariablen vorhanden sind und ggf. mit welchen Werten.
Anstatt die Farben direkt in der colors.less anzupassen, fügt man nun lediglich einen Block in der custom.less ein, der die Variablen überschreibt.
Außerdem sind die Werte nun als RGB anzugeben und nicht als Hexadezimalwerte.

Hier mal ein kleines Beispiel:
.kix-default-colors {
    --primary-1: 70, 82, 50;
}
 
#kix-header {
  background: rgb(var(--primary-1)) !important;
  color: rgb(var(--secondary-6)) !important;
}


Sollte nach dem Update das Frontend folgenden Fehler werfen:
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at write_ (node:_http_outgoing:1077:11)
at ServerResponse.write (node:_http_outgoing:1026:15)
at Readable.ondata (node:internal/streams/readable:1093:24)
at Readable.emit (node:events:514:20)
at addChunk (node:internal/streams/readable:605:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:556:3)
at Readable.push (node:internal/streams/readable:436:5)
at Readable.write (/opt/kix/node_modules/marko/dist/node_modules/@internal/create-readable/index.js:27:12)
at flush (/opt/kix/node_modules/marko/dist/runtime/html/BufferedWriter.js:41:21)
at BufferedWriter.end (/opt/kix/node_modules/marko/dist/runtime/html/BufferedWriter.js:29:7)
at AsyncStream._doFinish (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:419:20)
at AsyncStream._handleChildDone (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:490:14)
at AsyncStream.end (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:475:19)
at /opt/kix/node_modules/marko/dist/core-tags/components/preferred-script-location-tag.js:21:16
at next (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:582:9)
at /opt/kix/node_modules/marko/dist/core-tags/core/await/reorderer-renderer.js:47:7
at next (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:582:9)
at /opt/kix/node_modules/marko/dist/core-tags/components/init-components-tag.js:50:9
at next (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:582:9)
at AsyncStream._emitLast (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:587:9)
at AsyncStream._handleChildDone (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:500:14)
at AsyncStream.end (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:475:19)
at AsyncStream.error (/opt/kix/node_modules/marko/dist/runtime/html/AsyncStream.js:647:12)
at /opt/kix/node_modules/@lasso/marko-taglib/taglib/slot-tag.js:140:20
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)

muss die colors.less aus der docker-compse.yml entfernt werden.

Danach die Umgebung neu starten den die Frontend-Applikation neu bauen:
docker exec kix-frontend-1 npm run application-prebuild