Xiaohaoo IntelliJ Theme
Publisher: xiaohaooThemes in package: 4
VS Code color themes and file icons inspired by IntelliJ IDEA.
VS Code color themes and file icons inspired by IntelliJ IDEA.
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 | #7EC3E6 | — |
| comment.block, comment.line | #7EC3E6 | — |
| comment.block.documentation, comment.line.documentation, comment.block.documentation.go, comment.line.double-slash.documentation | #499936 | italic |
| keyword, storage, storage.type, storage.modifier | #ED864A | — |
| keyword.operator, keyword.operator.expression, storage.type.function | #ED864A | — |
| string, constant.other.symbol, punctuation.definition.string | #54B33E | — |
| constant.character.escape | #ED864A | — |
| invalid.illegal.invalid-string-escape | #6A8759 | — |
| constant.numeric, constant.language.boolean, constant.language.nil, constant.language.null | #33CCFF | bold |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, support.type, support.class | #FFFFFF | — |
| entity.name.type.parameter, variable.other.type.parameter | #37CCCC | bold |
| entity.name.function, meta.function-call entity.name.function | #FFCF40 | — |
| support.function, variable.function | #57AAF7 | — |
| entity.name.function.static | #FFC66D | italic |
| constant.other, variable.other.constant, variable.other.enummember, support.constant, meta.object-literal.key | #ED94FF | italic |
| variable.other.property, variable.other.object.property, support.variable.property | #ED94FF | — |
| variable.other.property.static, support.variable.property.static | #ED94FF | italic |
| variable.parameter | #EBEBEB | — |
| variable.other, source.go variable.other, source.swift variable.other | #FFFFFF | — |
| meta.annotation, storage.type.annotation, entity.name.type.annotation, punctuation.definition.annotation | #A9B837 | — |
| string.regexp, constant.regexp, source.regexp | #42C3D4 | — |
| keyword.operator.regexp, constant.other.character-class.regexp | #E8BF6A | bold |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, punctuation.definition.tag | #ED864A | — |
| entity.name.tag.custom, support.class.component, support.class.component.jsx, support.class.component.tsx | #2FBAA3 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.xml | #0000FF | bold |
| constant.character.entity, constant.character.entity.xml, constant.character.entity.html | #00AAFF | bold |
| support.type.property-name.css | #ED94FF | — |
| support.constant.property-value.css, constant.other.color.rgb-value.css | #00AAFF | bold |
| keyword.other.important.css | #CC7832 | bold |
| variable.css, variable.scss, variable.sass, variable.less | #00AAFF | bold |
| markup.underline.link, string.other.link, meta.link.inline.markdown | #FFCF40 | — |
| markup.bold | #EBEBEB | bold |
| markup.italic | #EBEBEB | italic |
| markup.heading | #ED864A | bold |
| markup.quote | #7EC3E6 | italic |
| markup.inline.raw, markup.fenced_code.block | #FFFFFF | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string | #ED94FF | — |
| entity.name.section.properties, support.type.property-name.properties | #CC7832 | underline |
| keyword.control.directive.velocity, keyword.control.directive | #E8BF6A | bold |
| entity.name.label, constant.other.label | #A9B837 | bold underline |
| invalid, invalid.illegal | #FA3232 | — |
| invalid.deprecated, markup.strikethrough | #E0861F | strikethrough |
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}!`;
}