jetbrains_like_theme
Publisher: Douglas LieblThemes in package: 1
Nothing there
Nothing there
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 |
|---|---|---|
| constant.other.php, constant.other.class.php, entity.other.attribute-name.namespace.xml, variable.language.special.self.python, constant.language.python, constant.other.caps.python, variable.other.constant.property.ts, punctuation.definition.constant.elixir, constant.language.symbol.elixir, variable.other.constant.go, constant.language.boolean.true.ts, constant.language.elixir, constant.language.c | #C77DBB | italic |
| variable.object.property.ts | #C77DBB | — |
| punctuation.support.type.property-name.begin.json, support.type.property-name.json, punctuation.support.type.property-name.end.json | #C77DBB | — |
| keyword, keyword.control, keyword.other.type.php, storage.type.function.php, storage.modifier.php, constant.language.php, storage.type.class.php, storage.modifier.implements.php, punctuation.section.embedded.begin.php, storage.type.php, keyword.other.new.php, keyword.other.use.php, keyword.other.namespace.php, storage.modifier.final.php, storage.modifier.extends.php, keyword.other.class.php, keyword.other.use-as.php, storage.type.interface.php, keyword.other.clone.php, keyword.operator.comparison.php, entity.name.tag.yaml, variable.language.dart, storage.modifier.dart, storage.type.class.python, storage.type.function.python, constant.language.dart, storage.type.function.async.python, storage.type.tsx, storage.type.ts, storage.type.js, storage.type.class.ts, storage.type.class.js, variable.language.this.ts, variable.language.this.js, storage.modifier.async.ts, storage.modifier.async.js, storage.type.function.ts, storage.type.function.js, keyword.control.elixir, storage.modifier.ts, storage.modifier.js, storage.type.namespace.ts, storage.type.namespace.js, storage.type.built-in.primitive.c, variable.key.dotenv | #CF8E6D | — |
| variable.language.this.php, variable.other.php, punctuation.definition.variable.php | #ae9cce | — |
| entity.name.function.php, entity.name.function.python, entity.name.function.dart, entity.name.function.tsx, entity.name.function.go, entity.name.function.elixir, entity.name.function.js, entity.name.function.ts | #56A8F5 | — |
| support.function.builtin.python, support.function.magic.python | #56A8F5 | italic |
| meta.method-call.static.php | — | italic |
| string, punctuation.definition.string.begin.php, punctuation.definition.string.end.php, string.quoted.single.php, string.quoted.double.php | #6AAB73 | — |
| comment.line.double-slash.php, punctuation.definition.comment.php, comment.block.documentation.phpdoc.php, comment.line.double-slash.dart, punctuation.definition.comment.xml, comment.block.xml, punctuation.definition.comment.yaml, comment.line.number-sign.yaml, comment.line.number-sign.python, punctuation.definition.comment.python, punctuation.definition.comment.tsx, comment.line.double-slash.tsx, punctuation.definition.comment.ts, comment.line.double-slash.ts, comment.block.documentation.dart, comment.line.double-slash.go, punctuation.definition.comment.go, punctuation.definition.comment.elixir, comment.line.number-sign.elixir, punctuation.definition.comment.c, comment.line.double-slash.c, punctuation.definition.comment.begin.c, punctuation.definition.comment.end.c, comment.block.c, comment.line.dotenv, comment.line.number-sign.dockerfile, punctuation.definition.comment.dockerfile | #7A7E85 | — |
| variable.other, variable.parameter, variable.other.readwrite, variable.other.object, string.unquoted.plain.out.yaml | #d5c5c8 | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal | #2AACB8 | — |
| entity.name.type, support.type, support.class, entity.name.type.class, entity.name.type.interface, entity.other.inherited-class, entity.name.type.enum, entity.name.type.parameter, punctuation.terminator.expression.php, support.other.namespace.php, punctuation.separator.inheritance.php, punctuation.separator.delimiter.php, keyword.operator.class.php, support.class.builtin.php, support.class.php, entity.name.function.php, keyword.operator.string.php, keyword.operator.ternary.php, support.constant.core.php, variable.other.property.php, keyword.operator.arithmetic.elixir, keyword.operator.assignment.elixir, keyword.operator.comparison.elixir, string.unquoted.plain.out.yaml, variable.parameter.function.language.python, variable.parameter.function.language.special.self.python, variable.parameter.function-call.python, keyword.operator.closure.dart, keyword.operator.assignment.dart, keyword.operator.ternary.dart, keyword.operator.arithmetic.dart, keyword.operator.comparison.dart, keyword.operator.logical.dart, variable.other.readwrite.alias.tsx, variable.other.constant.tsx, storage.type.function.tsx, entity.other.attribute-name.tsx, keyword.operator.assignment.tsx, keyword.operator.type.annotation.tsx, keyword.operator.arithmetic.tsx, keyword.operator.spread.tsx, keyword.operator.logical.tsx, variable.other.property.tsx, variable.other.object.tsx, variable.other.object.tsx, variable.other.constant.ts, variable.other.constant.js, variable.other.readwrite.ts, variable.other.readwrite.js, variable.parameter.tsx, variable.other.readwrite.tsx, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.js, variable.other.object.ts, variable.other.object.js, variable.other.object.property.ts, variable.other.object.property.js, variable.parameter.go, variable.other.go, keyword.operator.arithmetic.go, keyword.operator.assignment.go, keyword.operator.type.annotation.ts, keyword.operator.type.annotation.js, variable.parameter.ts, variable.parameter.js, variable.other.property.ts, variable.other.property.js, keyword.operator.assignment.ts, keyword.operator.assignment.js, keyword.operator.type.ts, keyword.operator.type.js, keyword.operator.comparison.ts, keyword.operator.comparison.js, keyword.operator.logical.ts, keyword.operator.logical.js, variable.other.assignment.go, keyword.operator.comparison.go, variable.other.property.go, keyword.operator.address.go, variable.other.readwrite.elixir, keyword.operator.logical.elixir, keyword.operator.assignment.c, keyword.operator.c, variable.parameter.probably.c, keyword.operator.assignment.dotenv | #BCBEC4 | — |
| storage.type.annotation, storage.type.annotation.dart, meta.declaration.annotation, meta.declaration.annotation.dart, keyword.other.phpdoc.php, punctuation.definition.variable.elixir, variable.other.readwrite.module.elixir, punctuation.definition.decorator.python, support.type.python, punctuation.separator.period.python, entity.name.function.decorator.python, entity.other.attribute-name.tsx, entity.name.type.package.go, punctuation.decorator.ts, entity.name.function.ts, entity.name.function.support.go, variable.other.readwrite.module.elixir, variable.other.constant.elixir | #B3AE60 | — |
| entity.name.function.dart, entity.name.function.c | #56A8F5 | — |
| meta.embedded.expression.dart | #BCBEC4 | italic |
| punctuation.definition.tag.xml, entity.name.tag.localname.xml | #D5B778 | — |
| support.class.component.tsx | #c0caf5 | — |
| storage.type.string.go, storage.type.numeric.go, entity.name.function.support.builtin.go, constant.language.null.go | #CC7832 | — |
| entity.name.type.go | #6FAFBD | — |
| comment.documentation.heredoc.elixir | #5F826B | — |
| entity.name.function-call.elixir, entity.name.function.call.local.elixir, entity.name.function.call.dot.elixir | #6FAFBD | italic |
| keyword.operator.other.elixir | #8a4ae0 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.svelte | #d19a66 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.svelte, punctuation.definition.tag.end.svelte | #F75464 | — |
| entity.name.tag.svelte, entity.name.tag.html | #2AACB8 | — |
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}!`;
}