FleetOneDark
Publisher: Dominik GawlikThemes in package: 1
Idea Fleet Inspired Theme
Idea Fleet Inspired Theme
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, string.comment | #676F7D | — |
| string, string.template | #E5D97B | — |
| constant.numeric | #C678DD | — |
| string.embedded.begin, string.embedded.end, punctuation.definition.template-expression, punctuation.section.embedded | #C678DD | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, source.elixir.embedded, punctuation.separator, punctuation.accessor, meta.brace | #ABB2BF | — |
| constant.language | #56B6C2 | — |
| constant.character, constant.other | #56B6C2 | — |
| variable.language | #E06C75 | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #E06C75 | — |
| keyword.operator | #E06C75 | — |
| storage | #E06C75 | — |
| storage.type | #56B6C2 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #61AFEF | — |
| variable.other.object, variable.other.constant, variable.other.global, variable.other.readwrite.class, variable.other.readwrite.instance, variable.other.readwrite.batchfile, variable.readwrite, variable.readwrite.other.block | #61AFEF | — |
| variable.other, variable.other.property, variable.other.block | #ABB2BF | — |
| entity.other.inherited-class | #98C379 | — |
| storage.modifier.import, storage.modifier.package | #61AFEF | — |
| entity.name.function, support.function | #98C379 | — |
| variable.parameter, entity.name.variable.parameter, parameter.variable | #D19A66 | italic |
| entity.name.function-call | #ABB2BF | — |
| function.support.builtin, function.support.core | #98C379 | — |
| entity.name.tag, entity.name.tag.class.js | #E06C75 | — |
| entity.name.tag.class, entity.name.tag.id | #56B6C2 | — |
| entity.other.attribute-name | #98C379 | — |
| support.constant | #56B6C2 | — |
| support.type, support.variable | #56B6C2 | — |
| support.dictionary.json | #3FCADC | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #ABB2BF | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.scss, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-element.sass | #56B6C2 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #98C379 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56B6C2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #E5C07B | — |
| unit.css, unit.scss, unit.less, unit.sass | #C678DD | — |
| function.css, function.scss, function.less, function.sass | #56B6C2 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| support.type.property-name.json | #43DCF0 | — |
| string.detected-link | #61AFEF | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #E06C75 | — |
| markup.inserted | #98C379 | — |
| markup.changed | #E5C07B | — |
| constant.numeric.line-number.find-in-files - match | #56B6C2A0 | — |
| entity.name.filename.find-in-files | #E5C07B | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.heading.markdown | #676F7D | — |
| punctuation.definition.italic.markdown | — | italic |
| markup.underline.link.markdown | #61AFEF | — |
| markup.bold.markdown | — | bold |
| markup.heading.markdown | #E06C75 | bold |
| markup.quote.markdown | #98C379 | — |
| meta.separator.markdown | #C678DD | bold |
| markup.inline.raw, markup.raw.block.markdown | #56B6C2 | — |
| punctuation.definition.list_item.markdown | #FFFFFF | bold |
| punctuation.* | #C9C9C9 | bold |
| comment, string.comment | #C9C9C9 | — |
| string, string.template | #D3C770 | — |
| constant.numeric | #D3C770 | — |
| string.embedded.begin, string.embedded.end, punctuation.definition.template-expression, punctuation.section.embedded | #F7F7F7 | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, source.elixir.embedded, punctuation.separator, punctuation.accessor, meta.brace | #F7F7F7 | — |
| constant.language | #ADE668 | — |
| constant.character, constant.other | #ADE668 | — |
| variable.language | #ADE668 | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #F7F7F7 | underline |
| keyword.operator | #F7F7F7 | bold |
| storage | #F7F7F7 | underline |
| storage.type | #F7F7F7 | underline |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #43DCF0 | — |
| variable.other.readwrite.*, variable.other.property.* | #ADE668 | — |
| variable.other, variable.other.property, variable.other.block, variable.other.readwrite.js, variable.other.constant.js, variable.js, entity.name.variable.js | #ADE668 | — |
| variable.other.readwrite.js, variable.other.constant.js, variable.other.object.js, variable.other.assignment.js, meta.definition.variable.js variable.other.readwrite.js | #ADE668 | — |
| variable, variable.other.local, variable.other.global, meta.var.expr, variable.other.readwrite | #ADE668 | — |
| entity.other.inherited-class | #0E87A9 | — |
| storage.modifier.import, storage.modifier.package | #43DCF0 | — |
| entity.name.function, support.function | #43DCF0 | — |
| variable.parameter, entity.name.variable.parameter, parameter.variable | #F7F7F7 | bold |
| entity.name.function-call | #F7F7F7 | bold underline |
| function.support.builtin, function.support.core | #F7F7F7 | bold underline |
| entity.name.tag, entity.name.tag.class.js | #ADE668 | — |
| entity.name.tag.class, entity.name.tag.id | #ADE668 | — |
| entity.other.attribute-name | #ADE668 | — |
| support.constant | #ADE668 | — |
| support.type, support.variable | #ADE668 | — |
| invalid | #F0752E | — |
| invalid.deprecated | #F0752E | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}