vscode-fxpw-theme
Publisher: fxpwThemes in package: 1
theme for vs code
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 |
|---|---|---|
| punctuation.definition.comment.python, punctuation.definition.comment.toml, comment.line.number-sign.python, comment.line.number-sign.toml, punctuation.definition.comment.js, comment.line.double-slash.js, comment.line.double-slash.ts, comment.line.double-slash.cpp, comment.line.double-slash.rust, comment.block.css, comment.line.double-dash.lua, comment.block.lua, comment.line.number-sign.ini, comment.line.number-sign.dockerfile, comment.line.number-sign.makefile, comment.line.number-sign.shell, comment.block.php, comment.line.double-slash.php, comment.block.scss, comment.block.html, punctuation.definition.comment.php, comment.line.scss, punctuation.definition.comment.ts, comment.block.documentation.ts, comment.line.number-sign.yaml, punctuation.definition.comment.yaml | #317b1e | bold |
| meta.preprocessor.include.cpp, entity.name.scope-resolution.cpp, entity.name.scope-resolution.parameter.cpp, entity.name.section.group-title.ini | #ffa200 | bold |
| entity.name.function.python, entity.name.function.js, variable.other.readwrite.ts, entity.name.function.definition.cpp, entity.name.function.call.cpp, entity.name.function.member.cpp, support.function.transform.css, meta.property-value.css, variable.parameter.keyframe-list.css, entity.name.function.lua, support.function.any-method.lua, meta.scope.function-call.makefile, entity.name.function.php, entity.name.command.shell, entity.name.function.ts, entity.name.function.rust, entity.name.function.macro.rust | #f2e986 | — |
| variable.language.python, variable.parameter.function.language.special.self.python, variable.language.this.js, variable.language.this.ts, variable.language.this.php, variable.language.special.shell | #569cd6 | bold |
| variable.parameter.function.language.python, variable.parameter.js, variable.parameter.cpp, support.type.property-name.media.css, variable.parameter | #139dc4 | |
| variable.parameter.cpp | #69a8ba | |
| variable.other, meta.body.function.definition.cpp, entity.other.attribute-name.html, entity.other.attribute-name.pseudo-element.css, variable.css, variable.scss, variable.object.property.ts, meta.attribute-selector.scss, support.constant.color.current.css, support.type.property-name.toml | #1efd7fe4 | |
| variable.other.property.python, constant.other.color.rgb-value.hex.css | #2b75ff | |
| variable.global.lua, meta.scope.prerequisites.makefile, entity.other.attribute-name.namespace.xml | #2b75ff | |
| constant.numeric.float, constant.numeric.dec, constant.numeric.decimal.js, constant.numeric.decimal.rust, constant.numeric.float.rust, constant.numeric.decimal.php, constant.numeric.decimal.cpp, constant.numeric.decimal.ts, constant.numeric.float.cpp, constant.numeric.css, constant.numeric.integer.shell, constant.numeric.integer.toml, constant.numeric.decimal.toml | #00ff00 | |
| storage.type.class, storage.type.function.python, storage.type.function.ts, storage.type.built-in.primitive.python, keyword, storage.type.class.python, storage.type.function.python, punctuation.separator.continuation.line.python, keyword.control.flow.python, storage.type.function.async.python, storage.type.js, storage.type.ts, storage.modifier.async.js, storage.modifier.async.ts, storage.type.function.js, storage.type.function.ts, constant.language.boolean.true.js, constant.language.boolean.false.js, constant.language.boolean.true.ts, constant.language.boolean.false.ts, constant.language.null.js, constant.language.null.ts, constant.language.undefined.js, constant.language.undefined.ts, constant.language.json, punctuation.separator.comma.js, punctuation.separator.comma.ts, storage.type.modifier.access.public.cpp, storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.private.cpp, storage.modifier.specifier.const.cpp, storage.modifier.extends.php, storage.modifier.virtual.cpp, storage.modifier.export.shell, storage.modifier.specifier.functional.post-parameters.const.cpp, storage.modifier.specifier.functional.pre-parameters.virtual.cpp, storage.modifier.specifier.functional.post-parameters.override.cpp, storage.modifier.specifier.functional.pre-parameters.override.cpp, storage.type.template.cpp, storage.type.template.argument.typename.cpp, punctuation.separator.key-value.html, punctuation.separator.dictionary.key-value, entity.other.keyframe-offset.css, punctuation.separator.list.comma.css, support.function.lua, punctuation.separator.key-value.ini, punctuation.separator.key-value.makefile, punctuation.definition.variable.makefile, punctuation.definition.variable.shell, variable.language.makefile, storage.modifier.php, storage.modifier.ts, storage.type.php, storage.type.function.php, constant.language.php, support.function.funchand.php, support.function.builtin.shell, entity.name.tag.reference.scss, punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.terminator.rule.scss, meta.property-value.scss, punctuation.separator.key-value.scss, storage.type.function.shell, storage.type.interface.ts, storage.type.enum.ts, support.type.primitive.ts, support.type.builtin.ts, storage.type.namespace.ts, entity.name.namespace.rust, keyword.operator.logical.lua, meta.directive.custom.blade, entity.name.function.blade, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, support.function.construct.begin.blade, support.function.construct.end.blade, storage.type.property.ts, punctuation.separator.key-value.mapping.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.attribute-shorthand.event.html.vue | #b950d6 | bold |
| variable.other.env, keyword.other.definition.ini, punctuation.terminator.statement.js, punctuation.terminator.statement.ts, punctuation.terminator.statement.cpp, entity.name.function.definition.special.constructor.cpp, entity.name.function.definition.special.member.destructor.cpp, punctuation.terminator.rule.css, entity.name.type.namespace.php, entity.name.type.struct.rust, entity.name.type.enum.rust, entity.name.type.module.ts, support.other.namespace.php, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, entity.name.tag.yaml, constant.language.import-export-all.ts, meta.method.declaration.ts | #ff0000 | — |
| entity.name.type.class.python, entity.name.type.class.js, entity.name.type.class.ts, source.python, source.html, source.js, source.cpp, function.lua, source.lua, source.makefile, variable.other.object.js, entity.name.type.class.cpp, entity.name.type.cpp, entity.name.type.enum.ts, storage.type.built-in.primitive.cpp, support.constant.property-value.css, support.constant.color.w3c-standard-color-name.css, support.function.misc.css, support.function.misc.scss, support.constant.font-name.css, entity.other.attribute-name.id.css, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.pseudo-class.css, entity.name.method.lua, source.ini, source.rust, entity.name.function.target.makefile, support.function.shell.makefile, support.function.construct.php, support.class.php, entity.name.type.class.php, entity.other.inherited-class.php, entity.other.inherited-class.ts, source.yaml, entity.name.type.interface.ts, entity.name.type.numeric.rust, entity.name.type.ts, entity.name.type.rust, punctuation.accessor.ts, punctuation.accessor.js, punctuation.separator.key-value.js, punctuation.separator.key-value.ts, source.github-actions-workflow | #4EC9B0 | bold |
| support.type.property-name.json, support.type.property-name.css, meta.property-name.scss, string.quoted.single.python, string.quoted.single.js, string.template.js, string.template.ts, string.quoted.double.dockerfile, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.double.shell, string.quoted.double.ts, string.quoted.double.rust, string.quoted.single.scss, string.quoted.single.ts, string.unquoted.argument.shell, string.quoted.single.ts, string.quoted.single.basic.line.toml, string.quoted.double.ts, string.unquoted.plain.out.yaml, string.unquoted.plain.in.yaml, string.unquoted.block.yaml, string.quoted.single.github-actions-expression | #ffffff | — |
| string.quoted.double.json, string.quoted.double.python, string.quoted.double.jinja | #37d297 | — |
| punctuation.definition.decorator.python, punctuation.definition.table.inline.toml | #ffe605 | bold |
| storage.type.string.python, constant.character.format.placeholder.other.python | #ff00d4 | — |
| punctuation.separator.annotation, entity.name.tag.template.html.vue, entity.name.tag.script.html.vue, entity.name.tag.style.html.vue | #ff00d4 | bold |
| constant.character.escape | #f6ff00 | — |
| constant.character.format | #e44141 | — |
| punctuation.definition.string.end.python, punctuation.definition.string.begin.python, punctuation.definition.string.end.js, punctuation.definition.string.begin.js, punctuation.definition.string.begin.html.vue, punctuation.definition.string.end.html.vue, punctuation.definition.string.template.begin.js, punctuation.definition.string.template.end.js, string.quoted.double.js, string.quoted.double.cpp, string.quoted.double.html, string.quoted.double.lua, meta.scope.recipe.makefile, meta.scope.case-clause-body.shell, string.quoted.double.php, string.quoted.single.php | #ffffff | bold |
| invalid.python | #ff0000 | — |
| entity.name.tag.html, entity.name.tag.localname.xml, punctuation.definition.entity.css | #ffb700 | — |
| text.html.derivative, support.type.exception.python, text.html.jinja, text.html.php | #ff0000 | — |
| meta.function-call.generic.python | #f2e986 | bold |
| entity.name.tag.css, entity.name.tag.xml, entity.other.attribute-name.class.css, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml | #00fff2 | — |
| punctuation.definition.tag.end.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.xml | #00fff2 | — |
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}!`;
}