Stain Theme
Publisher: Utkarsh DhimanThemes in package: 1
Stain theme for vs code
Stain theme for vs code
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #dce3e8 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6A9955 | — |
| constant.language | #f27c38 | italic |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #66b39f | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #F35F6E | — |
| entity.name.tag.css | #F35F6E | — |
| entity.other.attribute-name | #b4d2f1 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #f1c464 | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | #569CD6 | bold |
| markup.heading | #569CD6 | bold |
| markup.italic | — | italic |
| markup.inserted | #66b39f | — |
| markup.deleted | #86EBDEDE | — |
| markup.changed | #569CD6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796E6 | — |
| markup.inline.raw | #86EBDEDE | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #569CD6 | — |
| meta.preprocessor.string | #86EBDEDE | — |
| meta.preprocessor.numeric | #66b39f | — |
| meta.structure.dictionary.key.python | #b4d2f1 | — |
| meta.diff.header | #569CD6 | — |
| storage | #569CD6 | — |
| storage.type | #569CD6 | — |
| storage.modifier, keyword.operator.noexcept | #e49337 | bold |
| string, meta.embedded.assembly | #86EBDEDE | — |
| string.tag | #86EBDEDE | — |
| string.value | #86EBDEDE | — |
| string.regexp | #dd5858 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #569CD6 | — |
| meta.template.expression | #dce3e8 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #b4d2f1 | — |
| keyword | #569CD6 | — |
| keyword.operator | #dce3e8 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #f1c064 | italic |
| keyword.other.unit | #66b39f | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #569CD6 | — |
| support.function.git-rebase | #b4d2f1 | — |
| constant.sha.git-rebase | #66b39f | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #dce3e8 | — |
| variable.language | #569CD6 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #DCDCAA | — |
| entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #F35F6E | — |
| meta.return-type, support.class, support.type, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.java, storage.type.object.array.java, storage.type.token.java, storage.type.groovy, storage.type.generic.groovy, storage.type.object.array.groovy | #70B3FF | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #58a1dd | bold |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #b4d2f1 | — |
| variable.other.enummember | #8cc1f7 | — |
| meta.object-literal.key | #b4d2f1 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #86EBDEDE | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #86EBDEDE | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #dd5858 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #DCDCAA | — |
| keyword.operator.quantifier.regexp | #f1c064 | — |
| constant.character | #569CD6 | — |
| constant.character.escape | #f1c064 | — |
| entity.name.label | #C8C8C8 | — |
| constant.numeric | #49e09a | — |
| entity.name.type | #70B3FF | — |
| entity.name.class | #70B3FF | — |
| support.type | #70B3FF | — |
| support.class | #F35F6E | — |
| entity.name.function | #b791ff | — |
| support.function | #70B3FF | — |
| comment, punctuation.definition.comment, string.comment | #748086 | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #bfdfff | — |
| entity, entity.name | #BE92F0 | — |
| variable.parameter.function | #DCE3E8 | — |
| entity.name.tag | #F35F6E | — |
| storage, storage.type | #F35F6E | italic |
| string, punctuation.definition.string, string punctuation.section.embedded source | #86EBDEDE | — |
| support | #79B8FF | — |
| meta.property-name | #FF798B | — |
| variable, variable.other | #fcfaf7 | — |
| invalid.broken | #FDAEB7 | italic |
| invalid.deprecated | #FDAEB7 | italic |
| invalid.illegal | #FDAEB7 | italic |
| invalid.unimplemented | #FDAEB7 | italic |
| carriage-return | #1E2123 | italic underline |
| message.error | #FDAEB7 | — |
| string source | #DCE3E8 | — |
| string variable | #79B8FF | — |
| source.regexp, string.regexp | #DBEDFF | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #DBEDFF | — |
| string.regexp constant.character.escape | #9EFD83 | bold |
| support.constant | #FF79B8 | — |
| meta.module-reference | #F397FF | — |
| punctuation.definition.list.begin.markdown | #CC7716 | — |
| markup.heading, markup.heading entity.name | #79B8FF | bold |
| markup.quote | #9EFD83 | — |
| markup.italic | #DCE3E8 | italic |
| markup.bold | #DCE3E8 | bold |
| markup.raw | #79B8FF | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #FDAEB7 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #9EFD83 | — |
| markup.changed, punctuation.definition.changed | #CC7716 | — |
| markup.ignored, markup.untracked | #2C3039 | — |
| meta.diff.range | #B392F0 | bold |
| meta.diff.header | #79B8FF | — |
| meta.separator | #79B8FF | bold |
| meta.output | #79B8FF | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #DCE3E8 | — |
| brackethighlighter.unmatched | #FDAEB7 | — |
| constant.other.reference.link, string.other.link | #DBEDFF | underline |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}