Pirate Flat Theme
Publisher: PinperepetteThemes in package: 1
A simple flat theme for pirates.
A simple flat theme for pirates.
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 |
|---|---|---|
| — | #F8F8F2 | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #F8F8F2 | — |
| source.python keyword.operator.logical.python | #C678DD | — |
| source.python variable.parameter | #D19A66 | — |
| source.python constant.other | #ABB2BF | — |
| source.python constant | #D19A66 | — |
| constant.character.format.placeholder.other.python storage | #D19A66 | — |
| support.variable.magic.python | #E06C75 | — |
| meta.function.parameters.python | #D19A66 | — |
| punctuation.separator.annotation.python | #ABB2BF | — |
| punctuation.separator.parameters.python | #ABB2BF | — |
| comment | #88846f | — |
| string | #E6DB74 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92672 | — |
| variable.language | #4cd964 | — |
| variable.other.member | #4cd964 | — |
| variable.parameter.function | #a5adb7 | — |
| comment, punctuation.definition.comment | #5c6370 | — |
| meta.function.c | #ef5b67 | — |
| keyword.control.cpp | #e5c07bff | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #abb2bfff | — |
| entity.name.variable.field.cs | #E06C75 | — |
| source.cs keyword.operator | #ABB2BF | — |
| variable.other.readwrite.cs | #ABB2BF | — |
| variable.other.object.cs | #ABB2BF | — |
| variable.other.object.property.cs | #ABB2BF | — |
| entity.name.variable.property.cs | #61AFEF | — |
| storage.type.cs | #E5C07B | — |
| keyword.other.unsafe.rust | #C678DD | — |
| entity.name.type.rust | #56B6C2 | — |
| storage.modifier.lifetime.rust | #ABB2BF | — |
| entity.name.lifetime.rust | #D19A66 | — |
| storage.type.core.rust | #56B6C2 | — |
| meta.attribute.rust | #D19A66 | — |
| storage.class.std.rust | #56B6C2 | — |
| variable.other.constant.js | #e5c07bff | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #ffcc00 | — |
| support.constant.color.w3c-standard-color-name.css,entity.other.attribute-name.class.css | #ffcc00 | — |
| support.type.vendored.property-name.css | #56b6c2ff | — |
| support.constant.property-value.css | #ABB2BF | — |
| punctuation.definition.constant.css | #D19A66 | — |
| punctuation.separator.key-value.scss | #E06C75 | — |
| punctuation.definition.constant.scss | #D19A66 | — |
| meta.property-list.scss punctuation.separator.key-value.scss | #ABB2BF | — |
| punctuation.definition.variable.shell | #E06C75 | — |
| punctuation.separator.key-value.ts, punctuation.separator.key-value.js, punctuation.separator.key-value.tsx | #56B6C2 | — |
| source.js.embedded.html keyword.operator, source.ts.embedded.html keyword.operator | #56B6C2 | — |
| variable.other.readwrite.js, variable.other.readwrite.ts, variable.other.readwrite.tsx | #ABB2BF | — |
| support.variable.dom.js, support.variable.dom.ts | #E06C75 | — |
| support.variable.property.dom.js, support.variable.property.dom.ts | #E06C75 | — |
| meta.template.expression.js punctuation.definition, meta.template.expression.ts punctuation.definition | #BE5046 | — |
| source.ts punctuation.definition.typeparameters, source.js punctuation.definition.typeparameters, source.tsx punctuation.definition.typeparameters | #ABB2BF | — |
| source.ts punctuation.definition.block, source.js punctuation.definition.block, source.tsx punctuation.definition.block | #ABB2BF | — |
| source.ts punctuation.separator.comma, source.js punctuation.separator.comma, source.tsx punctuation.separator.comma | #ABB2BF | — |
| support.variable.property.js, support.variable.property.ts, support.variable.property.tsx | #E06C75 | — |
| keyword.control.default.js, keyword.control.default.ts, keyword.control.default.tsx | #E06C75 | — |
| keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #C678DD | — |
| keyword.operator.expression.of.js, keyword.operator.expression.of.ts, keyword.operator.expression.of.tsx | #C678DD | — |
| meta.brace.round.js, meta.array-binding-pattern-variable.js, meta.brace.square.js, meta.brace.round.ts, meta.array-binding-pattern-variable.ts, meta.brace.square.ts, meta.brace.round.tsx, meta.array-binding-pattern-variable.tsx, meta.brace.square.tsx | #ABB2BF | — |
| source.js punctuation.accessor, source.ts punctuation.accessor, source.tsx punctuation.accessor | #ABB2BF | — |
| punctuation.terminator.statement.js, punctuation.terminator.statement.ts, punctuation.terminator.statement.tsx | #ABB2BF | — |
| meta.array-binding-pattern-variable.js variable.other.readwrite.js, meta.array-binding-pattern-variable.ts variable.other.readwrite.ts, meta.array-binding-pattern-variable.tsx variable.other.readwrite.tsx | #D19A66 | — |
| source.js support.variable, source.ts support.variable, source.tsx support.variable | #E06C75 | — |
| variable.other.constant.property.js, variable.other.constant.property.ts, variable.other.constant.property.tsx | #D19A66 | — |
| keyword.operator.new.ts, keyword.operator.new.j, keyword.operator.new.tsx | #C678DD | — |
| source.ts keyword.operator, source.tsx keyword.operator | #56B6C2 | — |
| punctuation.separator.parameter.js, punctuation.separator.parameter.ts, punctuation.separator.parameter.tsx | #ABB2BF | — |
| constant.language.import-export-all.js, constant.language.import-export-all.ts | #E06C75 | — |
| constant.language.import-export-all.jsx, constant.language.import-export-all.tsx | #56B6C2 | — |
| keyword.control.as.js, keyword.control.as.ts, keyword.control.as.jsx, keyword.control.as.tsx | #ABB2BF | — |
| variable.other.readwrite.alias.js, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.tsx | #E06C75 | — |
| variable.other.constant.js, variable.other.constant.ts, variable.other.constant.jsx, variable.other.constant.tsx | #D19A66 | — |
| meta.export.default.js variable.other.readwrite.js, meta.export.default.ts variable.other.readwrite.ts | #E06C75 | — |
| source.js meta.template.expression.js punctuation.accessor, source.ts meta.template.expression.ts punctuation.accessor, source.tsx meta.template.expression.tsx punctuation.accessor | #98C379 | — |
| source.js meta.import-equals.external.js keyword.operator, source.jsx meta.import-equals.external.jsx keyword.operator, source.ts meta.import-equals.external.ts keyword.operator, source.tsx meta.import-equals.external.tsx keyword.operator | #ABB2BF | — |
| entity.name.type.module.js,entity.name.type.module.ts,entity.name.type.module.jsx,entity.name.type.module.tsx | #98C379 | — |
| meta.class.js,meta.class.ts,meta.class.jsx,meta.class.tsx | #ABB2BF | — |
| meta.definition.property.js variable, meta.definition.property.ts variable, meta.definition.property.jsx variable, meta.definition.property.tsx variable | #ABB2BF | — |
| meta.type.parameters.js support.type, meta.type.parameters.jsx support.type, meta.type.parameters.ts support.type, meta.type.parameters.tsx support.type | #ABB2BF | — |
| source.js meta.tag.js keyword.operator, source.jsx meta.tag.jsx keyword.operator, source.ts meta.tag.ts keyword.operator, source.tsx meta.tag.tsx keyword.operator | #ABB2BF | — |
| meta.tag.js punctuation.section.embedded, meta.tag.jsx punctuation.section.embedded, meta.tag.ts punctuation.section.embedded, meta.tag.tsx punctuation.section.embedded | #ABB2BF | — |
| meta.array.literal.js variable, meta.array.literal.jsx variable, meta.array.literal.ts variable, meta.array.literal.tsx variable | #E5C07B | — |
| support.type.object.module.js, support.type.object.module.jsx, support.type.object.module.ts, support.type.object.module.tsx | #E06C75 | — |
| constant.language.json | #56B6C2 | — |
| variable.other.constant.object.js, variable.other.constant.object.jsx, variable.other.constant.object.ts, variable.other.constant.object.tsx | #D19A66 | — |
| storage.type.property.js, storage.type.property.jsx, storage.type.property.ts, storage.type.property.tsx | #56B6C2 | — |
| meta.template.expression.js string.quoted punctuation.definition, meta.template.expression.jsx string.quoted punctuation.definition, meta.template.expression.ts string.quoted punctuation.definition, meta.template.expression.tsx string.quoted punctuation.definition | #98C379 | — |
| meta.template.expression.js string.template punctuation.definition.string.template, meta.template.expression.jsx string.template punctuation.definition.string.template, meta.template.expression.ts string.template punctuation.definition.string.template, meta.template.expression.tsx string.template punctuation.definition.string.template | #98C379 | — |
| keyword.operator.expression.in.js, keyword.operator.expression.in.jsx, keyword.operator.expression.in.ts, keyword.operator.expression.in.tsx | #C678DD | — |
| variable.other.object.js, variable.other.object.ts | #ABB2BF | — |
| meta.object-literal.key.js, meta.object-literal.key.ts | #E06C75 | — |
| punctuation.definition.template-expression.begin.js,punctuation.definition.template-expression.end.js | #ef5b67 | — |
| support.module.node.js,support.type.object.module.js,support.module.node.js | #e5c07bff | — |
| variable.other.readwrite.js,meta.object-literal.key.js,support.variable.property.js,support.variable.object.process.js | #4cd964 | — |
| support.constant.json.js | #ffcc00 | — |
| punctuation.definition.comment | #5C6370 | — |
| none | #A6B2C0 | — |
| keyword.operator | #abb2bf | — |
| keyword | #ef5b67 | — |
| variable | #4cd964 | — |
| variable.other.readwrite | #d0d0d0 | — |
| token.package.keyword | #a15ebb | — |
| token.package | #abb2bf | — |
| entity.name.function,variable.function,meta.function-call.generic.python,support.function.any-method | #5ac8fa | — |
| entity.name.type.namespace | #e5c07b | — |
| support.class, entity.name.type.class | #e5c07b | — |
| entity.name.class.identifier.namespace.type | #e5c07b | — |
| entity.name.class | #61afef | — |
| entity.name.type | #e5c07b | — |
| keyword.control | #ef5b67 | — |
| control.elements, keyword.operator.less | #d19a66 | — |
| storage | #c678dd | — |
| support.function | #FFB900 | — |
| support.type.property-name | #abb2bf | — |
| support.constant.property-value | #abb2bf | — |
| support.constant.font-name | #d19a66 | — |
| meta.tag | #abb2bf | — |
| string, entity.other.inherited-class | #4cd964 | — |
| constant.other.symbol | #4cd964 | — |
| constant.numeric | #d19a66 | — |
| none | #d19a66 | — |
| none | #d19a66 | — |
| constant | #d19a66 | — |
| punctuation.definition.constant | #d19a66 | — |
| entity.name.tag | #e06c75 | — |
| entity.other.attribute-name | #d19a66 | — |
| entity.other.attribute-name.id | #61afefff | — |
| meta.selector | #c678dd | — |
| none | #D2945D | — |
| keyword.other.unit | #d19a66 | — |
| string.regexp | #57B6C2 | — |
| constant.character.escape | #57B6C2 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| function.parameter | #d19a66 | — |
| rgb-value | #56B6C2 | — |
| inline-color-decoration rgb-value | #d19a66 | — |
| less rgb-value | #d19a66 | — |
| var.this.js,var.this.ts,variable.language.this.js | #e5c07bff | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| comment.block.documentation | #5c6370 | — |
| markup.heading | #3193c6ff | bold |
| markup.bold | #05ad97ff | bold |
| markup.italic | #05ad97ff | italic |
| markup.quote | #ffcc00 | |
| markup.list.unnumbered | #ef5b67 | |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| markup.quote | #F92672 | — |
| markup.list | #E6DB74 | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #FD971F | |
| markup.heading | #A6E22E | — |
| markup.heading.setext | #A6E22E | bold |
| markup.heading.markdown | — | bold |
| markup.quote.markdown | #75715E | italic |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown,string.other.link.description.markdown | #AE81FF | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #E6DB74 | — |
| markup.italic.markdown | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #f8f8f2 | — |
| punctuation.definition.list.begin.markdown | #A6E22E | — |
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}!`;
}