GreyForest
Publisher: Larger WispThemes in package: 1
A grey theme with natural colors.
A grey theme with natural colors.
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 | #000000ff | — |
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #000080 | — |
| comment | #008000 | — |
| constant.language | #0000ff | — |
| constant.numeric | #09885a | — |
| constant.regexp | #811f3f | — |
| entity.name.tag | #800000 | — |
| entity.name.selector | #800000 | — |
| entity.other.attribute-name | #ff0000 | — |
| 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.attribute.scss, entity.other.attribute-name.scss | #800000 | — |
| invalid | #cd3131 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #800000 | bold |
| markup.italic | — | italic |
| markup.inserted | #09885a | — |
| markup.deleted | #a31515 | — |
| markup.changed | #0451a5 | — |
| punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #0451a5 | — |
| markup.inline.raw.string.markdown, markup.raw.block.markdown, markup.fenced_code.block.markdown | #a31515 | — |
| markup.inline.raw | #800000 | — |
| meta.selector | #800000 | — |
| punctuation.definition.tag | #800000 | — |
| meta.preprocessor | #0000ff | — |
| meta.preprocessor.string | #a31515 | — |
| meta.preprocessor.numeric | #09885a | — |
| meta.structure.dictionary.key.python | #0451a5 | — |
| storage | #0000ff | — |
| storage.type | #0000ff | — |
| storage.modifier | #0000ff | — |
| string | #a31515 | — |
| string.comment.buffered.block.jade, string.quoted.jade, string.interpolated.jade, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.single.xml, string.unquoted.cdata.xml, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, string.quoted.single.handlebars, string.quoted.double.handlebars | #0000ff | — |
| string.regexp | #811f3f | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #0000ff | — |
| meta.template.expression | #000000 | — |
| 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 | #0451a5 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #ff0000 | — |
| support.type.property-name.json | #0451a5 | — |
| keyword | #0000ff | — |
| keyword.control | #0000ff | — |
| keyword.operator | #000000 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | #0000ff | — |
| keyword.other.unit | #09885a | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #800000 | — |
| support.function.git-rebase | #0451a5 | — |
| constant.sha.git-rebase | #09885a | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #000000 | — |
| variable.language | #0000ff | — |
| entity.name.function, support.function, support.constant.handlebars | #795E26 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #267f99 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #267f99 | — |
| keyword.control | #AF00DB | — |
| variable, meta.definition.variable.name, support.variable | #001080 | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #001080 | — |
| 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 | #0451a5 | — |
| 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 | #d16969 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #811f3f | — |
| keyword.operator.quantifier.regexp | #000000 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #ff0000 | — |
| constant.character | #0000ff | — |
| constant.character.escape | #a31515 | — |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #cd3131 | — |
| token.debug-token | #800080 | — |
| entity.name.function,support.type.pthread | #7a040a | bold |
| comment | #606060 | italic |
| constant | #6c71c4 | |
| entity | #176939 | |
| keyword | #7311c4 | bold |
| storage | #407008 | |
| string | #583100 | italic |
| support | #407008 | bold |
| variable | #bd4b00 | bold |
| invalid | #000 | — |
| text source | — | — |
| text.html.ruby source | — | — |
| entity.other.inherited-class | #176939 | italic |
| string.quoted source | #358109 | |
| string constant | #6c71c4 | — |
| string.regexp | #407008 | — |
| string variable | #000 | — |
| support.function | #407008 | |
| support.constant | #176939 | |
| other.preprocessor.c | #407008 | — |
| other.preprocessor.c entity | #176939 | — |
| punctuation.separator.key-value.js | #6c71c4 | — |
| meta.object-literal.key.js | #0b5501 | — |
| entity.name.tag | #bd4b00 | bold |
| entity.other.attribute-name | #176939 | — |
| declaration.tag, declaration.tag entity, meta.tag, meta.tag entity | #000 | — |
| meta.selector.css entity.name.tag | #1abc9c | — |
| meta.selector.css entity.other.attribute-name.id | #176939 | — |
| meta.selector.css entity.other.attribute-name.class | #176939 | — |
| support.type.property-name.css | #407008 | |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #176939 | italic |
| meta.preprocessor.at-rule keyword.control.at-rule | #0b5501 | bold |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #7311c4 | — |
| meta.constructor.argument.css | #7311c4 | — |
| meta.diff, meta.diff.header | #333333 | italic |
| markup.deleted | #333333 | — |
| markup.changed | #333333 | — |
| markup.inserted | #333333 | — |
| sublimelinter.outline.notes | — | — |
| sublimelinter.outline.illegal | — | — |
| sublimelinter.underline.illegal | — | — |
| sublimelinter.outline.warning | #000 | — |
| sublimelinter.underline.warning | — | — |
| sublimelinter.outline.violation | — | — |
| sublimelinter.underline.violation | — | — |
| entity.other.attribute-name.id.html , entity.other.attribute-name.id.pug | #043117 | bold |
| entity.other.attribute-name.html,entity.other.attribute-name.jade | #104201 | italic |
| punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #000 | — |
| keyword.control.at-rule.import.css | #0b5501 | bold |
| variable.other.less | #000 | — |
| entity.other.less.mixin | #bd4b00 | — |
| source.css.less keyword.unit.css | #407008 | — |
| entity.other.attribute-name.angular.html, source.angular.embedded.html | #bd4b00 | — |
| constant.character.entity.html | #407008 | — |
| variable.other.readwrite.instance.coffee | #77290a | — |
| meta.brace.round.coffee,meta.brace.square.coffee | #0b5501 | — |
| punctuation.section.embedded.coffee | #5eebb8 | — |
| variable.assignment.coffee variable.assignment.coffee | #000 | — |
| meta.delimiter.method.period.coffee | #3cadd7 | — |
| meta.brace.curly.coffee | #1abc9c | — |
| meta.tag.sgml.doctype.xml, declaration.sgml.html declaration.doctype, declaration.sgml.html declaration.doctype entity, declaration.sgml.html declaration.doctype string, declaration.xml-processing, declaration.xml-processing entity, declaration.xml-processing string, doctype | #3c444d | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #88036b | — |
| 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}!`;
}