NightLion Aptana (DevStyle)
Publisher: Matthew SheldonThemes in package: 1
A port of the NightLion Aptana Theme from DevStyle. This is a part of the "DarkestDark" extension of the Eclipse IDE, but not a part of the VS Code set of themes.
A port of the NightLion Aptana Theme from DevStyle. This is a part of the "DarkestDark" extension of the Eclipse IDE, but not a part of the VS Code set of 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.namespace.java, entity.name.type.package.java, storage.modifier.package.java, entity.name.type.enum, support.type.enum, meta.path, entity.name.namespace | #E2E2E2 | |
| keyword, storage.type.primitive, storage.modifier, storage.modifier.java, storage.modifier.extends, storage.modifier.implements, variable.language.this, variable.language.super, keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.exception, keyword.control.import, keyword.operator.instanceof, keyword.operator.instanceof.java | #8DCBE2 | bold |
| storage.modifier.import, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.import.python, keyword.control.flow.python, meta.import, meta.export | #8DCBE2 | bold |
| punctuation.definition.parameters, punctuation.section.parameters, punctuation.definition.arguments, punctuation.section.arguments, meta.brace.round, meta.brace.square, punctuation.definition.group | #FFFFFF | |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.logical, keyword.operator.relational, keyword.operator.unary, keyword.operator.increment, keyword.operator.decrement, keyword.operator.comparison, keyword.operator.ternary, keyword.control.ternary, punctuation.section, punctuation.separator, punctuation.terminator, punctuation.separator.comma, punctuation.definition.generic.begin, punctuation.definition.generic.end, meta.operator, meta.brace, meta.bracket | #F0EFD0 | |
| comment.block | #73879B | italic |
| comment.line, comment.line.double-slash, comment.line.number-sign, comment.line.percentage | #7F9F7F | italic |
| comment.block.documentation, comment.block.javadoc, comment.block.javadoc.java, comment.documentation | #B3B5AF | italic |
| keyword.other.documentation, keyword.other.documentation.javadoc, keyword.other.documentation.javadoc.java, storage.type.class.doxygen, entity.name.tag.documentation | #CC9393 | bold |
| comment.block.documentation.other.tag.html, entity.name.tag.html.documentation | #9393CC | italic |
| comment.block.documentation.other.javadoc.link, comment.block.documentation.other.javadoc.code, markup.underline.link.documentation, markup.inline.raw.documentation | #A893CC | italic |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, markup.raw.block.markdown | #D4C4A9 | |
| markup.bold.markdown entity.name.function, markup.bold.markdown support.function | #DCDCAA | bold |
| markup.italic.markdown variable.parameter, markup.italic.markdown entity.name.variable | #9CDCFE | italic |
| markup.bold.markdown entity.name.type, markup.bold.markdown support.type | #4EC9B0 | bold |
| markup.inline.raw.markdown, markup.inline.raw.string.markdown | #D4C4A9 | |
| markup.underline.link.markdown, string.other.link.title.markdown, string.other.link.description.markdown | #4daafc | |
| markup.bold.markdown, markup.bold.markdown entity.name.function, markup.bold.markdown entity.name.method, markup.bold.markdown support.function | #DCDCAA | bold |
| markup.italic.markdown, variable.parameter, variable.other | #9CDCFE | italic |
| markup.inline.raw.markdown meta.function-call, markup.inline.raw.markdown entity.name.function, markup.inline.raw.markdown support.function, meta.function-call.markdown, entity.name.function.markdown | #DCDCAA | |
| markup.heading.markdown, markup.heading.1.markdown, markup.heading.2.markdown, markup.heading.3.markdown, markup.heading.4.markdown, markup.heading.5.markdown, markup.heading.6.markdown | #DCDCAA | bold |
| storage.type.annotation, punctuation.definition.annotation, meta.annotation, entity.name.type.annotation | #808080 | italic |
| meta.annotation variable.other.object.property.java, variable.other.object.property.java | #808080 | italic |
| comment.todo, comment.other.radar, comment.other.todo, comment.other.fixme, comment.other.changed, comment.other.note, comment.other.hack, comment.other.bug, keyword.todo | #ACC1AC | bold italic underline |
| keyword.control.flow.python, keyword.control.conditional.python, keyword.control.exception.python, keyword.control.repeat.python, keyword.operator.logical.python, storage.type.function.python, storage.type.class.python, keyword.control.import.python | #8DCBE2 | bold |
| support.function.builtin.python, support.function.magic.python | #DFBE95 | |
| entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, entity.name.decorator.python, meta.decorator.python | #808080 | italic |
| constant.character.format.placeholder.other.python, meta.format.brace.python | #EAB882 | bold |
| storage.type.go, storage.type.primitive.go, storage.type.boolean.go, storage.type.numeric.go, storage.type.string.go, storage.type.error.go, storage.type.uintptr.go, storage.type.rune.go, storage.type.byte.go, storage.type.bool.go, storage.type source.go, entity.name.type.go, support.type.builtin.go, keyword.type.go | #8DCBE2 | bold |
| variable.other.go, variable.other.property.go, variable.other.assignment.go, variable.parameter.go, entity.name.variable.go, meta.definition.variable.go | #D4C4A9 | |
| variable.other.import.go, variable.other.import.usage.go | #93A2CC | italic |
| variable.other.constant.go | #53DCCD | |
| keyword.control.go, keyword.function.go, keyword.var.go, keyword.const.go, keyword.type.go, keyword.package.go, keyword.import.go, keyword.interface.go, keyword.struct.go, storage.modifier.go | #8DCBE2 | bold |
| entity.name.function.go, support.function.builtin.go | #DFBE95 | |
| entity.name.type.go, entity.name.type.struct.go, entity.name.type.interface.go | #CAE682 | |
| constant.language.nil.go, constant.language.iota.go | #8DCBE2 | bold |
| keyword.control.coq, keyword.declaration.coq, storage.type.declaration.coq, entity.name.command.coq, keyword.other.definition.coq, keyword.other.theorem.coq, keyword.other.lemma.coq, keyword.other.proof.coq, keyword.other.qed.coq, keyword.other.inductive.coq, keyword.other.fixpoint.coq, keyword.other.coinductive.coq | #8DCBE2 | bold |
| keyword.tactic.coq, entity.name.tactic.coq, support.function.tactic.coq, keyword.other.tactic.coq | #DFBE95 | |
| storage.type.coq, entity.name.type.coq, support.type.coq, keyword.type.prop.coq, keyword.type.type.coq, keyword.type.set.coq | #CAE682 | |
| keyword.operator.logical.coq, keyword.other.forall.coq, keyword.other.exists.coq, keyword.other.fun.coq, keyword.other.match.coq, keyword.other.with.coq, keyword.other.end.coq, keyword.other.if.coq, keyword.other.then.coq, keyword.other.else.coq | #8DCBE2 | bold |
| constant.language.coq, entity.name.constructor.coq, support.constant.coq, constant.other.coq | #53DCCD | |
| variable.other.coq, entity.name.variable.coq, meta.binding.coq | #D4C4A9 | |
| meta.annotation.coq, entity.name.tag.coq, punctuation.definition.annotation.coq | #808080 | italic |
| keyword.operator.coq | #FFFFFF | |
| source.coq | #D4C4A9 | |
| string.quoted.docstring, string.quoted.docstring.multi.python, string.quoted.docstring.single.python, string.quoted.triple.docstring.python, string.docstring | #B3B5AF | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, string.interpolated, string.regexp | #CC9393 | — |
| constant.character.escape, constant.other.placeholder | #EAB882 | bold |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.decimal, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #EAB882 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #8DCBE2 | bold |
| entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.struct, support.type, support.class, meta.type, entity.other.inherited-class, storage.type.object, storage.type.generic, source.java entity.name.type, source.java support.type, entity.name.type.class.java, storage.type.java, entity.name.class, entity.name.interface | #CAE682 | — |
| entity.name.function.deprecated, entity.name.method.deprecated | #E2E2E2 | italic strikethrough |
| entity.name.function, entity.name.method, support.function, meta.function-call.generic, meta.method-call | #DFBE95 | — |
| variable, variable.other, variable.parameter, entity.name.variable, support.variable, meta.definition.variable, source.java variable.parameter, source.java variable.other | #D4C4A9 | — |
| variable.object.property, meta.object-literal.key, support.type.property-name | #B3B784 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #8DCBE2 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #CAE682 | — |
| support.type.property-name.css | #B3B784 | — |
| entity.name.tag.html, entity.name.tag.xml | #CAE682 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml | #B3B784 | — |
| *.deprecated, entity.name.function.deprecated, entity.name.method.deprecated, variable.deprecated | #E2E2E2 | italic strikethrough |
| invalid, invalid.illegal, invalid.deprecated | #F85149 | underline |
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}!`;
}