NiTROUS Theme (Dark)
Publisher: NiTROUS CloudThemes in package: 1
A dark color theme for VS Code inspired by futuristic holo tech, comprised mainly of a purple and blue palette, with pink accents.
A dark color theme for VS Code inspired by futuristic holo tech, comprised mainly of a purple and blue palette, with pink accents.
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, string.quoted.docstring.multi.python | #1f65b3 | italic |
| string | #96c8ff | — |
| constant.numeric | #baffbd | — |
| constant.language | #e862da | — |
| constant.character, constant.other | #eb76df | — |
| variable | — | |
| keyword | #cb7162 | — |
| storage | #7070f0 | |
| storage.type | #9090f3 | |
| meta | #2d90ff | — |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #75ff7a | — |
| variable.other.object.js, variable.other.object.jsx, variable.object.property.js, variable.object.property.jsx | #429bff | — |
| punctuation.definition.parameters | #b5341e | — |
| punctuation.definition.template-expression | #b5341e | — |
| entity.name.class, entity.name.type.class | #e862da | |
| entity | #eb76df | — |
| entity.other.inherited-class, meta.other.inherited-class.php | #6cb1ff | italic |
| entity.name.function - meta.function-call | #39c0ff | |
| variable.parameter | #e54fd6 | |
| entity.name.tag | #e862da | |
| entity.other.attribute-name | #75ff7a | |
| support.function | #75ff7a | |
| support.constant | #39c0ff | |
| support.type, support.class | #e23bd1 | italic |
| support.other.variable | #39c0ff | |
| support.variable.property.dom | #67b3ff | — |
| invalid | #9e0a52 | |
| invalid.deprecated | #00d7e2 | — |
| meta.diff, meta.diff.header | #009af3 | — |
| markup.deleted | #ec107b | — |
| markup.inserted | #b5341e | — |
| markup.changed | #029fcf | — |
| constant.numeric.line-number.find-in-files - match | #e63838 | — |
| entity.name.filename.find-in-files | #e862da | — |
| keyword.other | #a83dff | — |
| meta.property-value, support.constant.property-value, constant.other.color | #fd21ef | — |
| meta.structure.dictionary.json string.quoted.double.json | #FF0081 | — |
| support.type.property-name.json | #8080f1 | |
| meta.structure.dictionary.value.json string.quoted.double.json | #96c8ff | — |
| meta.property-name support.type.property-name | #c0deff | |
| meta.property-value punctuation.separator.key-value | #44a1fd | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #EA00D9 | — |
| support.other.namespace.php | #973dfd | — |
| meta.use | #2fb3ff | |
| variable.other | #75ff7a | |
| keyword.other.phpdoc.php | #35a3fd | |
| variable.parameter.function.coffee | #e862da | |
| variable.parameter.function.language.special.self.python | #e862da | — |
| source.ts entity.name.type | #cb7162 | — |
| source.ts keyword | #ff25f0 | — |
| source.ts punctuation.definition.parameters | #b5341e | — |
| meta.arrow.ts punctuation.definition.parameters | #b5341e | — |
| source.ts storage | #c0deff | — |
| variable.language, entity.name.type.class.ts, entity.name.type.class.tsx | #e862da | — |
| entity.other.inherited-class.ts, entity.other.inherited-class.tsx | #b5341e | — |
| source.js storage.type.function | #9090f3 | — |
| variable.language, entity.name.type.class.js | #3ec8ff | — |
| entity.other.inherited-class.js | #ff15ef | — |
| text.html.vue-html | #75ff7a | — |
| entity.name.section.markdown | #ee89e3 | — |
| string.other.link.title.markdown | #75ff7a | — |
| punctuation.definition.heading.markdown | #b52fa7 | — |
| markup.raw.inline.markdown | #e9e9e9 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #9090f3 | — |
| punctuation.definition.metadata.markdown | #b0b0f7 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #e862da | |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #7070f0 | — |
| markup.bold.markdown, markup.italic.markdown | #9090f3 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.fenced_code.block | #2bceb3 | — |
| fenced_code.block.language, markup.inline.raw.markdown | #e862da | — |
| fenced_code.block.language, markup.inline.raw.markdown | #e862da | — |
| meta.paragraph.markdown | #96c8ff | — |
| markup.raw.block.markdown | #ffffff | — |
| markup.deleted.git_gutter | #e23bd1 | — |
| markup.inserted.git_gutter | #75ff7a | — |
| markup.changed.git_gutter | #0685fc | — |
| meta.template.expression | #18b6ff | — |
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}!`;
}