Greybird Theme
Publisher: Roman BolovintsevThemes in package: 1
Visual Studio Code light theme for those who don't like bright colors and a lot of colored syntax highlighting and prefer shades of gray in interfaces.
Visual Studio Code light theme for those who don't like bright colors and a lot of colored syntax highlighting and prefer shades of gray in interfaces.
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, comment.block.preprocessor, comment.documentation, comment.block.documentation | #999 | — |
| invalid.illegal | #f00 | — |
| variable, variable.other, variable.parameter | #2842c5 | — |
| keyword, storage | #303030 | bold |
| keyword.operator | #303030 | normal |
| string | #447544 | — |
| keyword.operator.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, keyword.operator.negation.regexp, keyword.operator.or.regexp, string.regexp.arbitrary-repetition.php | #9933dd | bold |
| string.regexp | #bb33dd | — |
| entity.name.function.php, keyword.other.class.php, variable.other.property.php, support.function.string.php, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, meta.embedded.line.php support.class.php | #303030 | normal |
| string.regexp.single-quoted.php, string.regexp.double-quoted.php | #447544 | — |
| meta.function-call.php string.regexp.single-quoted.php, meta.function-call.php string.regexp.double-quoted.php | #bb33dd | — |
| keyword.operator.ternary.php, keyword.other.use.php, keyword.other.function.use.php, keyword.other.use-as.php, keyword.other.namespace.php, keyword.other.clone.php, storage.type.class.php, storage.type.trait.php, storage.modifier.php, storage.modifier.extends.php, storage.modifier.implements.php, storage.modifier.abstract.php, storage.modifier.final.php, storage.type.interface.php, storage.type.function.php, storage.type.php, storage.type.const.php, keyword.control.import.include.php, keyword.control.exception.php, keyword.control.exception.catch.php, keyword.other.new.php, keyword.control.return.php, keyword.control.yield.php, keyword.control.foreach.php, keyword.control.for.php, keyword.control.do.php, keyword.control.while.php, keyword.control.if.php, keyword.control.else.php, keyword.control.elseif.php, keyword.control.endif.php, keyword.control.endfor.php, keyword.control.endforeach.php, keyword.control.endwhile.php, keyword.operator.logical.php, keyword.operator.type.php, keyword.control.break.php, keyword.control.continue.php, storage.modifier.reference.php, support.function.construct.php, support.function.construct.output.php, keyword.control.exit.php, keyword.control.die.php, keyword.control.switch.php, keyword.control.case.php, keyword.control.default.php, constant.language.php | #303030 | bold |
| keyword.other.phpdoc.php, keyword.other.array.phpdoc.php | #999 | bold |
| meta.other.type.phpdoc.php keyword.other.type.php, comment.block.documentation.phpdoc.php storage.modifier.php | #999 | normal |
| variable.other.php, variable.other.class.php, variable.other.global.php, variable.other.global.safer.php, variable.language.this.php | #2842c5 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #333 | bold |
| keyword.operator.error-control.php | #bb33dd | bold |
| string.quoted.double.sql keyword, string.quoted.single.sql keyword, string.quoted.double.sql keyword.operator, string.quoted.single.sql keyword.operator, string.quoted.double.sql constant.numeric.sql, string.quoted.single.sql constant.numeric.sql, string.quoted.double.sql support.function.table.sql, string.quoted.single.sql support.function.table.sql, string.quoted.double.sql support.function.mysql.sql, string.quoted.single.sql support.function.mysql.sql, source.sql.embedded.php | #447544 | normal |
| meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity.name.tag, meta.tag.metadata.doctype.html, meta.tag.metadata.doctype.html entity.name.tag | #006ab1 | normal |
| entity.name.tag, meta.attribute.checked.html, meta.attribute.selected.html, meta.attribute.multiple.html, meta.attribute.readonly.html, meta.attribute.disabled.html | #303030 | bold |
| keyword.other.unit | #303030 | normal |
| entity.other.attribute-name.id.css, entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.class.css, entity.other.attribute-name.pseudo-class.css | #447544 | normal |
| support.type.property-name.media.css, support.type.property-name.css | #2842c5 | normal |
| keyword.control.at-rule.media.css, keyword.other.important.css | #303030 | bold |
| support.constant.media.css | #303030 | italic |
| meta.object-literal.key.js | #006ab1 | normal |
| variable.other.object.js, variable.other.constant.js, variable.other.readwrite.js, variable.other.readwrite.alias.js, variable.parameter.js, meta.definition.variable.js entity.name.function.js | #2842c5 | normal |
| variable.other.object.property.js, variable.other.property.js, variable.other.constant.property.js | #303030 | normal |
| storage.type.js, storage.type.function.js, storage.modifier.async.js, variable.language.this.js, keyword.control.import.js, keyword.control.from.js, keyword.control.as.js, constant.language.import-export-all.js, keyword.control.conditional.js, keyword.control.loop.js, keyword.operator.expression.instanceof.js, keyword.operator.expression.typeof.js, keyword.operator.expression.of.js, keyword.operator.expression.in.js, constant.language.json, constant.language.null.js, constant.language.boolean.true.js, constant.language.boolean.false.js, constant.language.undefined.js, keyword.operator.new.js, keyword.operator.logical.js, keyword.control.switch.js, keyword.control.with.js, keyword.control.flow.js, keyword.control.trycatch.js, storage.type.class.js, support.class.js, support.class.builtin.js | #303030 | bold |
| storage.type.class.jsdoc | #999 | bold |
| variable.other.jsdoc | #999 | normal |
| source.go | #2842c5 | normal |
| entity.name.package.go, entity.name.type.package.go, string.quoted.rune.go | #fb35d3 | normal |
| entity.name.function.go, support.function.go, support.function.builtin.go, entity.name.type.go, punctuation.definition.begin.bracket.round.go, punctuation.definition.end.bracket.round.go, punctuation.definition.begin.bracket.curly.go, punctuation.definition.end.bracket.curly.go, punctuation.definition.imports.begin.bracket.round.go, punctuation.definition.imports.end.bracket.round.go, punctuation.definition.bracket.square.go, punctuation.definition.begin.bracket.square.go, punctuation.definition.end.bracket.square.go, punctuation.other.comma.go, punctuation.other.period.go, punctuation.terminator.go, keyword.operator.assignment.go, keyword.operator.comparison.go, keyword.operator.increment.go, punctuation.other.colon.go, entity.name.function.support.go | #303030 | normal |
| constant.numeric.decimal.go | #303030 | normal |
| constant.language.go, support.function.builtin.go, keyword.operator.address.go, keyword.operator.logical.go, constant.language.null.go, constant.language.boolean.go, entity.name.function.support.builtin.go, entity.name.type.any.go | #303030 | bold |
| entity.name.tag.yaml | #2842c5 | normal |
| variable.other.alias.yaml, entity.name.type.anchor.yaml | #C586C0 | normal |
| punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #C586C0 | bold |
| support.type.property-name.json | #006ab1 | normal |
| support.function.builtin.shell, keyword.operator.logical.shell | #303030 | bold |
| meta.scope.case-pattern.shell | #447544 | normal |
| punctuation.separator.pipe-sign.shell, punctuation.definition.case-pattern.shell | #303030 | normal |
| punctuation.definition.evaluation.parens.begin.shell, punctuation.definition.evaluation.parens.end.shell | #303030 | normal |
| support.function.table.sql | #447544 | normal |
| constant.numeric.sql | #2842c5 | normal |
| support.function.mysql.sql | #303030 | bold |
| keyword.other.special-method.dockerfile | #303030 | bold |
| entity.name.section.markdown, punctuation.definition.heading.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.table.markdown, punctuation.separator.table.markdown, meta.separator.markdown | #303030 | bold |
| markup.inline.raw.string.markdown | #447544 | normal |
| markup.underline.link.markdown | #0078d4 | normal |
| markup.bold.markdown | #303030 | bold |
| markup.italic.markdown | #303030 | italic |
| markup.strikethrough.markdown | #303030 | strikethrough |
| punctuation.definition.markdown, fenced_code.block.language.markdown | #286228 | bold |
| comment.block.documentation.cs string.quoted.double.cs | #999 | normal |
| entity.name.tag.localname.cs | #999 | bold |
| entity.name.variable.local.cs, entity.name.variable.parameter.cs, keyword.other.this.cs | #2842c5 | normal |
| variable.other.object.property.cs | #303030 | normal |
| #303030 | bold | |
| punctuation.separator.hash.cs, keyword.preprocessor, entity.name.variable.preprocessor.symbol.cs | #3592d2 | bold |
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}!`;
}