Digital Rust
Publisher: Kat SuricataThemes in package: 1
Digital Rust is a warm, tech-dystopian color theme inspired by corrupted hardware and failing systems.
Digital Rust is a warm, tech-dystopian color theme inspired by corrupted hardware and failing systems.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #AC6D4A | italic |
| comment.block.documentation, comment.block.documentation punctuation.definition.comment | #AC6D4A | italic |
| string, punctuation.definition.string string, string.quoted, string.unquoted | #8FA667 | — |
| punctuation.definition.string, punctuation.definition.template-expression, punctuation.definition.heredoc | #D7968C | — |
| source string.interpolated, string.quoted.double.interpolated, meta.interpolation, constant.character.escape | #8FA667 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, constant.other.placeholder, meta.embedded.line | #D7968C | — |
| string.regexp, constant.other.character-class.regexp | #8FA667 | — |
| keyword.operator.quantifier.regexp, punctuation.definition.character-class.regexp, punctuation.section.regexp, punctuation.section.regexp.begin, punctuation.section.regexp.end | #D7968C | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float | #D78556 | — |
| constant.language, constant.character, constant.other, variable.language, keyword.other.this, keyword.other.self, support.constant.language, variable.other.constant | #D3AE6E | — |
| keyword, storage, storage.modifier, keyword.control, keyword.operator.word | #CF8175 | — |
| storage.type, storage.type.class, storage.type.namespace, entity.name.type, entity.name.class, entity.name.namespace, entity.name.module, support.type, entity.name.enum | #6FA5A0 | — |
| entity.other.inherited-class, entity.name.trait, entity.name.impl, support.type.trait | #6FA5A0 | — |
| entity.name.lifetime, storage.modifier.lifetime, variable.language.lifetime | #6FA5A0 | italic |
| variable.other.generic, variable.other.type, entity.name.type.parameter, support.type.variable | #6FA5A0 | italic |
| meta.annotation, meta.decorator, storage.type.annotation, entity.other.attribute-name.annotation, punctuation.definition.annotation | #6FA5A0 | italic |
| entity.name.function, meta.function-call entity.name.function, variable.function, support.function.any-method, support.function.macro, entity.name.function.macro | #D4A759 | — |
| variable.parameter, meta.function.parameters variable.other.readwrite, function.parameter | #F7EAE8 | — |
| variable, variable.other, variable.other.readwrite, meta.object-literal entity.name, meta.attribute, support.variable | #F7EAE8 | — |
| variable.other.property, variable.other.member, support.variable.property, variable.other.object | #F7EAE8 | — |
| support.function, support.class, support.constant, support.other.namespace, support.type.property-name | #A07E43 | — |
| constant.other.enum, variable.other.constant, entity.name.constant, support.constant.enum, support.constant.variant, constant.other.symbol | #D3AE6E | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, meta.function.return-type, meta.function.parameters punctuation.separator | #D7968C | — |
| punctuation, punctuation.accessor, punctuation.separator, punctuation.terminator, punctuation.section, punctuation.definition.parameters, punctuation.definition.arguments, meta.brace, meta.bracket | #D7968C | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end, punctuation.section.block.html, punctuation.definition.block | #D7968C | — |
| entity.name.tag, entity.name.tag.block.any.html, entity.name.tag.inline.any.html, meta.tag.metadata.html | #6FA5A0 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #D7968C | — |
| entity.other.attribute-name, meta.tag punctuation.separator, support.type.attribute-name | #A07E43 | — |
| meta.tag string.quoted, meta.attribute-with-value string.quoted | #8FA667 | — |
| comment.block.html, comment.block.xml, comment.block.documentation.html | #AC6D4A | italic |
| markup.heading, markup.heading entity.name | #CF8175 | bold |
| punctuation.definition.heading.markdown, markup.heading punctuation.definition.heading | #D7968C | — |
| markup.bold, punctuation.definition.bold.markdown | #F7EAE8 | bold |
| markup.italic, punctuation.definition.italic.markdown | #F7EAE8 | italic |
| markup.bold markup.italic, markup.italic markup.bold | #F7EAE8 | bold italic |
| markup.inline.raw, markup.inline.raw string, markup.fenced_code, markup.raw.block.fenced.markdown source | #8FA667 | — |
| punctuation.definition.fenced.markdown, variable.language.fenced.markdown | #D7968C | — |
| markup.quote, punctuation.definition.blockquote.markdown | #EFD5D1 | italic |
| markup.list, punctuation.definition.list_item.markdown, markup.list.numbered, markup.list.unnumbered | #D7968C | — |
| markup.hr, markup.horizontal_rule, meta.separator.markdown, punctuation.definition.thematic-break.markdown | #691B0F | — |
| markup.underline.link, meta.link.inline.markdown, markup.link, string.other.link.title.markdown | #E7C0BA | underline |
| markup.underline.link markup.link.url, meta.link.markdown constant.other.reference.link, meta.link string.other.link.description | #A07E43 | — |
| support.type.property-name, support.type.property-name.json, meta.object-literal.key, meta.mapping.key, meta.structure.dictionary.json string.quoted.double.json > punctuation.definition.string, entity.name.section.toml | #6FA5A0 | — |
| punctuation.separator.dictionary.key-value, punctuation.separator.array, punctuation.definition.dictionary, punctuation.definition.sequence, punctuation.separator.key-value | #D7968C | — |
| entity.name.tag.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.separator.key-value.mapping.yaml, punctuation.definition.anchor.yaml | #6FA5A0 | — |
| source.css entity.name.tag, source.sass entity.name.tag, source.scss entity.name.tag | #F7EAE8 | — |
| source.css entity.other.attribute-name.class, source.css entity.other.attribute-name.id, source.scss entity.other.attribute-name.class, source.scss entity.other.attribute-name.id, source.sass entity.other.attribute-name.class, source.sass entity.other.attribute-name.id | #6FA5A0 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-element.scss, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-element.sass | #A07E43 | — |
| meta.attribute-selector.css, meta.attribute-selector punctuation.definition.string | #A07E43 | — |
| support.type.property-name.css, support.type.property-name.sass, support.type.property-name.scss | #A07E43 | — |
| support.constant.property-value.css, support.constant.property-value.sass, support.constant.property-value.scss, keyword.other.css, keyword.other.sass, keyword.other.scss | #D3AE6E | — |
| keyword.other.unit, keyword.other.unit.css, keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.rem.css, keyword.other.unit.percentage.css, keyword.other.unit.sass, keyword.other.unit.scss | #A07E43 | — |
| constant.other.color, constant.other.rgb-value, constant.other.color.rgb-value, support.constant.color, support.constant.color.w3c-standard, constant.other.color.sass, constant.other.color.scss, support.constant.color.sass, support.constant.color.scss | #D78556 | — |
| source.css string, source.scss string, source.sass string | #8FA667 | — |
| keyword.control.at-rule, keyword.control.at-rule.media, keyword.control.at-rule.keyframes | #CF8175 | — |
| comment.line.shebang, comment.line.shebang punctuation.definition.comment | #AC6D4A | italic |
| source.shell meta.function-call support.function, source.shell entity.name.command, source.makefile entity.name.function | #D4A759 | — |
| source.shell constant.other.option, source.shell punctuation.definition.parameter | #CF8175 | — |
| source.shell variable.other, source.shell punctuation.definition.variable, variable.language.shell | #F7EAE8 | — |
| string.unquoted.heredoc, string.interpolated.heredoc | #8FA667 | — |
| punctuation.definition.heredoc, entity.name.tag.heredoc, keyword.operator.heredoc | #D7968C | — |
| source.sql keyword, source.sql keyword.other, source.sql keyword.operator | #CF8175 | — |
| source.sql support.function, source.sql entity.name.function | #D4A759 | — |
| source.sql storage.type, source.sql support.type, source.sql entity.name.type | #6FA5A0 | — |
| meta.diff, meta.diff.header, entity.name.filename | #D4A759 | — |
| meta.diff.range, meta.separator.diff, punctuation.definition.range.diff | #8791B0 | — |
| markup.inserted, markup.inserted.diff, meta.diff.header.from-file | #F7EAE8 | — |
| markup.deleted, markup.deleted.diff, meta.diff.header.to-file | #E7C0BA | — |
| markup.changed, markup.changed.diff | #F7EAE8 | — |
| markup.inserted.diff punctuation.definition.inserted | #8FA667 | — |
| markup.deleted.diff punctuation.definition.deleted | #BF5747 | — |
| markup.error, invalid.illegal, message.error | #BF5747 | underline |
| markup.warning, message.warning | #D4A759 | underline |
| markup.info, message.info | #6FA5A0 | — |
| invalid, invalid.illegal | #BF5747 | — |
| invalid.deprecated, markup.strike, markup.deleted.diff.old | #CF8175 | strikethrough |
| constant.numeric.line-number.find-in-files - match | #D3AE6E | — |
| keyword.control.directive, punctuation.definition.directive, meta.preprocessor | #CF8175 | — |
| entity.name.function.preprocessor, entity.name.constant.preprocessor, support.constant.macro | #D3AE6E | — |
| variable.parameter.preprocessor | #F7EAE8 | italic |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}