/** * Syntax highlighting for log files using PatternFly color system * Automatically adapts to light/dark themes */ .pf-v6-c-log-viewer__text { /* ================= Log Levels ================= */ // ERROR/FATAL/FAIL - use PatternFly danger color .token.error, .token.log-level-error { color: var(--pf-t--global--color--status--danger--default); font-weight: 700; } // WARN - use PatternFly warning color .token.warning, .token.log-level-warn { color: var(--pf-t--global--color--status--warning--default); font-weight: 600; } // INFO - use PatternFly info color .token.info, .token.log-level-info { color: var(--pf-t--global--color--status--info--default); } // DEBUG/TRACE - use PatternFly disabled text color .token.comment, .token.log-level-debug { color: var(--pf-t--global--text--color--disabled); font-style: italic; } // PASSED/SUCCESS - use PatternFly success color .token.success, .token.result { color: var(--pf-t--global--color--status--success--default); font-weight: 600; } /* ================= URLs and Links ================= */ a.token { color: var(--pf-t--global--text--color--link--default); text-decoration: underline; cursor: pointer; } /* ================= Files ================= */ .token.mime-type, .token.filename, .token.file-path { color: var(--pf-t--global--color--nonstatus--blue--300); } /* ================= Date and Time ================= */ .token.date, .token.time { color: var(--pf-t--global--color--nonstatus--teal--hover); } /* ================= Strings ================= */ .token.string { color: var(--pf-t--global--color--nonstatus--green--300); } /* ================= Operators and Punctuation ================= */ .token.operator { color: var(--pf-t--global--text--color--subtle); } .token.punctuation { color: var(--pf-t--global--text--color--disabled); } /* ================= Exceptions and Stacktraces ================= */ .token.exception, .token.javastacktrace { color: var(--pf-t--global--color--status--danger--hover); .token.keyword { color: var(--pf-t--global--color--status--danger--300); font-weight: 600; } .token.function { color: var(--pf-t--global--color--status--danger--hover); } .token.punctuation { color: var(--pf-t--global--color--status--danger--300); } } /* ================= Key-Value Pairs and CLI Arguments ================= */ // key=value pairs and CLI args - use PatternFly orange for keys (good contrast in both light/dark modes) .token.key-value, .token.cli-arg { .token.key, .token.attr-name { color: var(--pf-t--global--color--nonstatus--orange--300); font-weight: 500; } .token.operator { color: var(--pf-t--global--text--color--subtle); } .token.value, .token.attr-value { color: var(--pf-t--global--text--color--subtle); } } /* ================= Identifiers and Constants ================= */ .token.constant, .token.ip-address, .token.mac-address, .token.domain, .token.uuid { color: var(--pf-t--global--color--nonstatus--purple--300); } .token.hash { color: var(--pf-t--global--color--nonstatus--yellow--300); font-family: monospace; } .token.pid { color: var(--pf-t--global--color--nonstatus--teal--300); } // Generic numbers (not dates/times) .token.number { color: var(--pf-t--global--color--nonstatus--teal--300); } /* ================= Booleans ================= */ .token.boolean { color: var(--pf-t--global--color--nonstatus--blue--300); font-weight: 600; } /* ================= Separators ================= */ .token.separator { color: var(--pf-t--global--icon--color--disabled); opacity: 0.6; } }