Shinobi Black
Publisher: Sanjay BaskarThemes in package: 1
A premium OLED black VS Code theme with vibrant syntax highlighting. Handcrafted for long coding sessions.
A premium OLED black VS Code theme with vibrant syntax highlighting. Handcrafted for long coding sessions.
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, comment.block, comment.block.documentation, comment.line, punctuation.definition.comment | #8B949E | italic |
| string, string.quoted, string.quoted.double, string.quoted.single, string.quoted.triple, string.template, string.quoted.other | #B277FA | — |
| constant.character.escape, constant.character.escape.backslash, constant.other.placeholder | #89DDFF | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, string.template meta.template.expression | #F14E95 | — |
| string.regexp, string.regexp.js, string.regexp.ts | #89DDFF | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary, constant.numeric.decimal | #FFCB6B | — |
| constant.language, constant.language.boolean, constant.language.boolean.true, constant.language.boolean.false, constant.language.null, constant.language.nullptr, constant.language.undefined, keyword.other.nullptr.cpp, constant.language.python, constant.language.java | #C3E88D | — |
| variable.other.constant, variable.other.enummember, constant.other, constant.other.caps | #FFCB6B | — |
| keyword, keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.trycatch, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.new, keyword.control.default, keyword.control.switch, keyword.control.directive, keyword.other.using, keyword.other.namespace, keyword.other.package, keyword.other.import, keyword.operator.new, keyword.operator.delete, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.expression.void, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.delete, keyword.operator.expression.keyof, keyword.operator.sizeof, keyword.other.unit | #F14E95 | — |
| storage, storage.modifier, storage.modifier.async, storage.modifier.static, storage.modifier.access, storage.type.function, storage.type.class, storage.type.struct, storage.type.enum, storage.type.interface, storage.type.namespace, storage.type.template, keyword.other.typedef, keyword.other.typename | #F14E95 | — |
| entity.name.type, entity.name.type.class, entity.name.type.struct, entity.name.type.interface, entity.name.type.enum, entity.name.type.type-parameter, entity.name.type.module, entity.name.type.namespace, entity.name.type.alias, entity.other.inherited-class, support.type, support.class, support.class.builtin, support.type.builtin, support.other.namespace, meta.return-type, entity.name.type.class.python, entity.name.type.class.java, entity.name.type.class.cpp | #4BC6F7 | — |
| storage.type.primitive, storage.type.primitive.cpp, storage.type.built-in, storage.type.built-in.cpp, storage.type.built-in.primitive, support.type.primitive, support.type.primitive.cpp, keyword.type, keyword.type.cpp, storage.type.java, storage.type.cs, storage.type.numeric.go, storage.type.boolean.go, storage.type.string.go, storage.type.byte.go, storage.type.error.go | #4BC6F7 | — |
| entity.name.type.type-parameter, storage.modifier.array.bracket, storage.modifier.array.bracket.cpp, meta.type.parameters, punctuation.definition.typeparameters | #4BC6F7 | — |
| entity.name.function, entity.name.function.member, entity.name.function.decorator, support.function, support.function.builtin, support.function.magic, meta.function-call, meta.function-call.generic, meta.method-call, variable.function | #B277FA | — |
| entity.name.function.constructor, meta.function.constructor, support.function.constructor | #B277FA | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.property, meta.object-literal.key | #EAEAEA | — |
| variable.parameter, variable.parameter.function, meta.parameter | #EAEAEA | italic |
| variable.language, variable.language.this, variable.language.self, variable.language.cls, variable.language.super, variable.language.special.self | #FFA500 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.decrement, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest, keyword.operator.type.annotation, keyword.operator.optional, keyword.operator.key-value, keyword.operator.accessor | #89DDFF | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.section, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.definition.array, punctuation.definition.tag, punctuation.definition.string, punctuation.separator.comma, punctuation.separator.colon, punctuation.terminator.statement, meta.brace.round, meta.brace.square, meta.brace.curly | #C8C8C8 | — |
| meta.decorator, meta.decorator entity.name.function, entity.name.function.decorator, entity.name.function.decorator.python, punctuation.decorator, storage.type.annotation, storage.type.annotation.java, punctuation.definition.annotation, meta.annotation, meta.annotation.java | #FFCB6B | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FFCB6B | italic |
| keyword.control.directive, keyword.control.directive.include, keyword.control.directive.define, keyword.control.directive.ifdef, keyword.control.directive.ifndef, keyword.control.directive.endif, keyword.control.directive.conditional, meta.preprocessor, punctuation.definition.directive, keyword.other.preprocessor | #FF5370 | — |
| entity.name.function.preprocessor, entity.name.other.preprocessor.macro, meta.preprocessor.macro | #4BC6F7 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.js, entity.name.tag.tsx, support.class.component, support.class.component.tsx, support.class.component.jsx | #F14E95 | — |
| string.quoted.double.html, string.quoted.single.html | #B277FA | — |
| constant.character.entity, constant.character.entity.html, punctuation.definition.entity | #89DDFF | — |
| support.type.property-name, support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name | #4BC6F7 | — |
| support.constant.property-value, support.constant.property-value.css, constant.other.color.rgb-value, meta.property-value | #EAEAEA | — |
| entity.name.tag.css, entity.name.tag.scss, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #F14E95 | — |
| variable.css, variable.scss, variable.argument.css, variable.other.less | #FFA500 | — |
| support.function.misc.css, support.function.misc.scss, support.function.transform.css, support.function.calc.css, support.function.url.css | #B277FA | — |
| support.type.property-name.json, support.type.property-name.json.comments | #4BC6F7 | — |
| string.quoted.double.json, string.quoted.double.json.comments | #B277FA | — |
| markup.heading, markup.heading.setext, entity.name.section.markdown, punctuation.definition.heading.markdown | #F14E95 | bold |
| markup.bold, punctuation.definition.bold.markdown | #FFCB6B | bold |
| markup.italic, punctuation.definition.italic.markdown | #C3E88D | italic |
| markup.underline.link, markup.underline.link.markdown, string.other.link.title.markdown, string.other.link.description.markdown | #4BC6F7 | — |
| markup.inline.raw, markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #B277FA | — |
| markup.quote, markup.quote.markdown | #8B949E | italic |
| punctuation.definition.list.begin.markdown, markup.list | #FFCB6B | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, keyword.other.create.sql, keyword.other.data-integrity.sql, keyword.other.LUW.sql, keyword.other.alias.sql, keyword.other.order.sql | #F14E95 | — |
| support.function.aggregate.sql, support.function.scalar.sql, support.function.string.sql, support.function.datetime.sql | #B277FA | — |
| storage.type.sql, support.type.sql | #4BC6F7 | — |
| constant.other.database-name.sql, constant.other.table-name.sql | #EAEAEA | — |
| support.function.magic.python, support.variable.magic.python | #B277FA | italic |
| meta.fstring, constant.character.format.placeholder.other.python | #89DDFF | — |
| storage.modifier.import.java, storage.modifier.package.java | #8B949E | — |
| entity.name.type.interface, entity.name.type.alias, entity.name.type.interface.ts, entity.name.type.alias.ts | #4BC6F7 | — |
| variable.other.enummember, variable.other.enummember.ts | #FFCB6B | — |
| entity.name.label, entity.name.label.cpp, punctuation.separator.label | #FFA500 | — |
| entity.name.namespace, entity.name.type.module, entity.name.type.namespace, entity.name.scope-resolution, support.other.namespace | #4BC6F7 | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #4BC6F7 | — |
| invalid, invalid.illegal | #FF5370 | underline |
| invalid.deprecated | #FFCB6B | 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}!`;
}