Niketa Theme Light
Publisher: selfrefactorThemes in package: 9
Large collection of handmade light themes
Large collection of handmade light themes
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 |
|---|---|---|
| entity.name.tag | #35647E | underline |
| markup.italic | #2f586f | — |
| text.html.derivative | #2B5065 | — |
| punctuation.accessor.js | #2f586f | — |
| punctuation.accessor.jsx | #2f586f | — |
| punctuation.accessor.ts | #315C74 | — |
| punctuation.accessor.tsx | #2f586f | — |
| source.js | #315C74 | — |
| source.jsx | #2f586f | — |
| source.ts | #2f586f | — |
| source.tsx | #2D546A | — |
| storage.modifier.js | #2f586f | — |
| storage.modifier.jsx | #35647E | — |
| storage.modifier.ts | #2f586f | — |
| storage.modifier.tsx | #336079 | — |
| punctuation.separator.key-value.js | #2f586f | — |
| punctuation.separator.key-value.jsx | #294C60 | — |
| punctuation.separator.key-value.ts | #315C74 | — |
| punctuation.separator.key-value.tsx | #2D546A | — |
| storage.type | #2f586f | — |
| string.quoted.single.js | #35647E | — |
| string.quoted.single.jsx | #2f586f | — |
| string.quoted.single.ts | #2B5065 | — |
| string.quoted.single.tsx | #2f586f | — |
| support.function.dom.js | #35647E | — |
| support.function.dom.jsx | #315C74 | — |
| support.function.dom.ts | #2f586f | — |
| support.function.dom.tsx | #2D546A | — |
| support.variable.property.js | #2f586f | — |
| support.variable.property.jsx | #35647E | — |
| support.variable.property.ts | #315C74 | — |
| support.variable.property.tsx | #315C74 | — |
| variable.language.constructor | #2D546A | underline |
| variable.language.this | #2f586f | — |
| meta.var.expr.js | #a83c56 | — |
| meta.var.expr.jsx | #BD4663 | — |
| meta.var.expr.ts | #a83c56 | — |
| meta.var.expr.tsx | #a83c56 | — |
| keyword | #a83c56 | — |
| expression.ng | #a83c56 | — |
| meta.brace.round.js | #a83c56 | — |
| meta.brace.round.jsx | #B7415E | — |
| meta.brace.round.ts | #a83c56 | — |
| meta.brace.round.tsx | #a83c56 | — |
| constant.language.boolean | #BD4663 | — |
| constant.numeric | #BD4663 | — |
| constant.language.null.js | #B03F5A | — |
| constant.language.null.jsx | #a83c56 | — |
| constant.language.null.ts | #a83c56 | — |
| constant.language.null.tsx | #a83c56 | — |
| entity.name.class | #a83c56 | underline |
| entity.name.function | #a83c56 | underline |
| entity.name.type | #a83c56 | underline |
| markup.heading.markdown | #a83c56 | — |
| punctuation.separator.comma.js | #A03952 | — |
| punctuation.separator.comma.jsx | #a83c56 | — |
| punctuation.separator.comma.ts | #A03952 | — |
| punctuation.separator.comma.tsx | #A03952 | — |
| meta.tag.attributes.js | #a83c56 | — |
| meta.tag.attributes.jsx | #B03F5A | — |
| meta.tag.attributes.ts | #a83c56 | — |
| meta.tag.attributes.tsx | #a83c56 | — |
| support.variable.property.js | #a83c56 | — |
| support.variable.property.jsx | #a83c56 | — |
| support.variable.property.ts | #B03F5A | — |
| support.variable.property.tsx | #a83c56 | — |
| support.type.primitive.js | #99374E | — |
| support.type.primitive.jsx | #A03952 | — |
| support.type.primitive.ts | #A03952 | — |
| support.type.primitive.tsx | #B03F5A | — |
| variable | #91344A | — |
| source.go | #0035F3 | — |
| string.quoted.double.html | #0031df | — |
| keyword.control.import.js | #0031df | — |
| keyword.control.import.jsx | #0038FD | — |
| keyword.control.import.ts | #0031df | — |
| keyword.control.import.tsx | #0031df | — |
| source.json | #0031df | — |
| source.css | #0031df | — |
| variable.parameter | #0031df | — |
| support.function | #0031df | — |
| support.type.object.module.js | #002FD5 | — |
| support.type.object.module.jsx | #002FD5 | — |
| support.type.object.module.ts | #002FD5 | — |
| support.type.object.module.tsx | #002FD5 | — |
| meta.import.js | #0031df | — |
| meta.import.jsx | #0031df | — |
| meta.import.ts | #0031df | — |
| meta.import.tsx | #0031df | — |
| meta.paragraph.markdown | #0031df | — |
| entity.other.attribute-name.js | #0033E9 | — |
| entity.other.attribute-name.jsx | #002AC1 | — |
| entity.other.attribute-name.ts | #002FD5 | — |
| entity.other.attribute-name.tsx | #0031df | — |
| string.quoted.single.js | #002FD5 | — |
| string.quoted.single.jsx | #0031df | — |
| string.quoted.single.ts | #0031df | — |
| string.quoted.single.tsx | #002FD5 | — |
| string.quoted.single.json | #0035F3 | — |
| keyword.control.module.js | #0031df | — |
| keyword.control.module.jsx | #0031df | — |
| keyword.control.module.ts | #0031df | — |
| keyword.control.module.tsx | #0031df | — |
| support.class.promise.js | #0035F3 | — |
| support.class.promise.jsx | #002FD5 | — |
| support.class.promise.ts | #002FD5 | — |
| support.class.promise.tsx | #0031df | — |
| support.type.object.console.js | #002DCB | — |
| support.type.object.console.jsx | #0031df | — |
| support.type.object.console.ts | #0038FD | — |
| support.type.object.console.tsx | #0031df | — |
| support.function.console.js | #002FD5 | — |
| support.function.console.jsx | #0031df | — |
| support.function.console.ts | #002FD5 | — |
| support.function.console.tsx | #0031df | — |
| punctuation.definition.block.js | #002DCB | — |
| punctuation.definition.block.jsx | #0031df | — |
| punctuation.definition.block.ts | #002FD5 | — |
| punctuation.definition.block.tsx | #0031df | — |
| entity.other.ng-binding-name.property.html | #d239a0 | — |
| punctuation.definition.parameters.begin.js | #d239a0 | — |
| punctuation.definition.parameters.begin.jsx | #d239a0 | — |
| punctuation.definition.parameters.begin.ts | #D02F9B | — |
| punctuation.definition.parameters.begin.tsx | #d239a0 | — |
| punctuation.definition.parameters.end.js | #D64DA9 | — |
| punctuation.definition.parameters.end.jsx | #d239a0 | — |
| punctuation.definition.parameters.end.ts | #d239a0 | — |
| punctuation.definition.parameters.end.tsx | #d239a0 | — |
| punctuation.definition.parameters.end.js | #D02F9B | — |
| punctuation.definition.parameters.end.jsx | #d239a0 | — |
| punctuation.definition.parameters.end.ts | #d239a0 | — |
| punctuation.definition.parameters.end.tsx | #d239a0 | — |
| keyword.control.export.js | #D64DA9 | — |
| keyword.control.export.jsx | #C62D94 | — |
| keyword.control.export.ts | #d239a0 | — |
| keyword.control.export.tsx | #d239a0 | — |
| keyword.control.from.js | #d239a0 | — |
| keyword.control.from.jsx | #D443A5 | — |
| keyword.control.from.ts | #D64DA9 | — |
| keyword.control.from.tsx | #d239a0 | — |
| markup.quote | #D02F9B | — |
| meta.tag.js | #d239a0 | — |
| meta.tag.jsx | #D02F9B | — |
| meta.tag.ts | #D02F9B | — |
| meta.tag.tsx | #d239a0 | — |
| meta.parameters.js | #D443A5 | — |
| meta.parameters.jsx | #d239a0 | — |
| meta.parameters.ts | #D64DA9 | — |
| meta.parameters.tsx | #d239a0 | — |
| meta.brace.square.js | #D02F9B | — |
| meta.brace.square.jsx | #D02F9B | — |
| meta.brace.square.ts | #BC2B8D | — |
| meta.brace.square.tsx | #C62D94 | — |
| variable.other.class.js | #d239a0 | — |
| variable.other.class.jsx | #d239a0 | — |
| variable.other.class.ts | #d239a0 | — |
| variable.other.class.tsx | #C62D94 | — |
| constant.other.object.key.js | #D443A5 | — |
| constant.other.object.key.jsx | #d239a0 | — |
| constant.other.object.key.ts | #d239a0 | — |
| constant.other.object.key.tsx | #D443A5 | — |
| keyword.operator.accessor | #d239a0 | — |
| keyword.control.default.js | #D02F9B | — |
| keyword.control.default.jsx | #D02F9B | — |
| keyword.control.default.ts | #d239a0 | — |
| keyword.control.default.tsx | #D956AE | — |
| entity.name.function.method | #BC2B8D | — |
| string.template | #d239a0 | — |
| support.type.property-name.json | #D02F9B | — |
| variable.other.property.js | #BC2B8D | — |
| variable.other.property.jsx | #D02F9B | — |
| variable.other.property.ts | #BC2B8D | — |
| variable.other.property.tsx | #D02F9B | — |
| entity.other.ng-binding-name.outputReplEvent.html | #bb9132 | — |
| entity.other.inherited-class | #bb9132 | — |
| support.constant | #CA9D38 | — |
| punctuation.separator.parameter.js | #B38A30 | — |
| punctuation.separator.parameter.jsx | #bb9132 | — |
| punctuation.separator.parameter.ts | #C39834 | — |
| punctuation.separator.parameter.tsx | #A27D2B | — |
| constant.character | #bb9132 | — |
| constant.language | #bb9132 | — |
| constant.other | #B38A30 | — |
| support.class.builtin.js | #A27D2B | — |
| support.class.builtin.jsx | #B38A30 | — |
| support.class.builtin.ts | #B38A30 | — |
| support.class.builtin.tsx | #bb9132 | — |
| comment | #B38A30 | — |
| markup.italic | #AA842E | — |
| meta.object-literal.key.js | #B38A30 | — |
| meta.object-literal.key.jsx | #bb9132 | — |
| meta.object-literal.key.ts | #bb9132 | — |
| meta.object-literal.key.tsx | #B38A30 | — |
| comment.block.documentation | #bb9132 | — |
| comment.line.double-slash | #bb9132 | — |
| punctuation.accessor.js | #A27D2B | — |
| punctuation.accessor.jsx | #bb9132 | — |
| punctuation.accessor.ts | #B38A30 | — |
| punctuation.accessor.tsx | #bb9132 | — |
| invalid | #B38A30 | underline |
| variable.language | #bb9132 | — |
| storage.modifier.async.js | #bb9132 | — |
| storage.modifier.async.jsx | #bb9132 | — |
| storage.modifier.async.ts | #CA9D38 | — |
| storage.modifier.async.tsx | #bb9132 | — |
| variable.other.object.js | #B38A30 | — |
| variable.other.object.jsx | #bb9132 | — |
| variable.other.object.ts | #A27D2B | — |
| variable.other.object.tsx | #AA842E | — |
| variable.other.readwrite | #bb9132 | — |
| variable.other.readwrite.js | #bb9132 | — |
| variable.other.readwrite.jsx | #bb9132 | — |
| variable.other.readwrite.ts | #CA9D38 | — |
| variable.other.readwrite.tsx | #bb9132 | — |
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}!`;
}