Nightfox Themes for VSCode
Publisher: malhar212Themes in package: 7
A soft, warm dark and light theme family for VS Code, ported from EdenEast/nightfox.nvim. Includes Nightfox, Duskfox, Nordfox, Terafox, Carbonfox, Dayfox and Dawnfox.
A soft, warm dark and light theme family for VS Code, ported from EdenEast/nightfox.nvim. Includes Nightfox, Duskfox, Nordfox, Terafox, Carbonfox, Dayfox and Dawnfox.
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 | #9893a5 | italic |
| variable, string constant.other.placeholder | #575279 | — |
| constant.other.color | #575279 | — |
| invalid, invalid.illegal | #b4637a | — |
| keyword, storage.type, storage.modifier, keyword.operator.word, keyword.operator.new | #907aa9 | — |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #907aa9 | — |
| keyword.operator, punctuation.accessor, punctuation.definition.generic | #56949f | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #295e73 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #295e73 | italic |
| meta.block variable.other | #575279 | — |
| support.other.variable, string.other.link | #575279 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other.zero-index | #d7827e | — |
| constant.language.boolean | #ea9d34 | — |
| constant.numeric, variable.other.constant, entity.name.constant | #ea9d34 | — |
| variable.parameter, meta.function.parameters | #c9709e | italic |
| constant.language, support.function.builtin, variable.language.this | #b4637a | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #618774 | — |
| entity.name.class, entity.name.type.class, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #ea9d34 | italic |
| meta.type, support.type, entity.name.type | #ea9d34 | italic |
| storage.type | #907aa9 | — |
| entity.name.enum | #ea9d34 | italic |
| meta.enum variable.other.readwrite, variable.other.enummember | #56949f | — |
| meta.property.object, variable.object.property, variable.other.object.property | #56949f | — |
| punctuation.definition.typeparameters, meta.type.parameters | #5ca7b4 | — |
| meta.decorator, punctuation.decorator, meta.annotation, storage.type.annotation | #ea9d34 | — |
| entity.name.namespace | #ea9d34 | — |
| keyword.control.directive, punctuation.definition.directive | #ea9d34 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #b4637a | — |
| variable.language | #b4637a | italic |
| entity.name.method.js | #295e73 | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #295e73 | — |
| entity.other.attribute-name | #ea9d34 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #ea9d34 | italic |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #56949f | — |
| source.css entity.other.attribute-name.pseudo-class, punctuation.separator.operator.css | #56949f | — |
| source.css entity.other.attribute-name.class.css | #ea9d34 | — |
| support.type.primitive, entity.name.type.numeric | #907aa9 | — |
| support.type.object, support.constant | #907aa9 | — |
| markup.inserted | #618774 | — |
| markup.deleted | #b4637a | — |
| markup.changed | #ea9d34 | — |
| meta.diff.header.from-file, meta.diff.header.to-file, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff | #295e73 | — |
| string.regexp | #56949f | — |
| constant.character.escape | #625c87 | — |
| *url*, *link*, *uri* | #575279 | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #295e73 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #907aa9 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #295e73 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json support.type.property-name.json | #907aa9 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #575279 | — |
| text.html.markdown markup.inline.raw.markdown | #618774 | — |
| text.html.markdown meta.dummy.line-break | #9893a5 | — |
| markdown.heading, markup.heading.markdown, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #295e73 | — |
| markup.italic | #b4637a | italic |
| markup.bold, markup.bold string | #b4637a | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #b4637a | bold |
| markup.underline | #d7827e | underline |
| markup.quote punctuation.definition.blockquote.markdown | #625c87 | — |
| markup.quote | #625c87 | italic |
| string.other.link.title.markdown | #286983 | — |
| string.other.link.description.title.markdown | #907aa9 | — |
| constant.other.reference.link.markdown | #ea9d34 | — |
| markup.raw.block | #907aa9 | — |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #618774 | — |
| meta.separator.markdown | #56949f | — |
| punctuation.definition.list.begin.markdown, markup.list | #56949f | — |
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}!`;
}