Sunset Theme For Go and Python
Publisher: kackerThemes in package: 1
Customized for Go and Python language with enhanced Swagger/OpenAPI support, Dark theme that suits personal tastes, need enable settings 'ui.semanticTokens': true
Customized for Go and Python language with enhanced Swagger/OpenAPI support, Dark theme that suits personal tastes, need enable settings 'ui.semanticTokens': true
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.line.number-sign.python, source.python | #9CA6B0 | — |
| storage.type.function.async.python, meta.function.python, source.python | #FF8EBE | — |
| meta.attribute.python, source.python | #BDDB9E | — |
| entity.name.function.decorator.python | #67B7A4 | — |
| punctuation.definition.dict.begin.python, punctuation.definition.begin.bracket.square.go, punctuation.definition.end.bracket.square.go, punctuation.definition.imports.end.bracket.round.go, punctuation.definition.imports.begin.bracket.round.go, punctuation.separator.element.python, punctuation.separator.dict.python, punctuation.separator.period.python, punctuation.other.period.go, punctuation.other.colon.go, punctuation.other.comma.go, source.python | #939293 | — |
| string.quoted.multi.python, string.quoted.docstring.multi.python, source.python | #FCBD60 | — |
| keyword.control.import.python, source.python | #FF8EBE | — |
| variable.parameter.function.language.special.self.python | #9CA6B0 | |
| variable.parameter.function.language.special.cls.python | #9CA6B0 | — |
| variable.parameter.python | #FC9867 | — |
| entity.name.type.class.python | #FFE4B5 | — |
| entity.name.function.python | #BDDB9E | — |
| support.function.magic.python, support.variable.magic.python | #9ED1FB | — |
| support.function.builtin.python | #9ED1FB | — |
| meta.function-call.generic.python | #FF6188 | — |
| constant.numeric.dec.python | #0edfb6 | — |
| punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.definition.dict.begin.python, punctuation.definition.dict.end.python, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.definition.inheritance.begin.python, punctuation.definition.inheritance.end.python, punctuation.definition.string.end.python, punctuation.definition.string.begin.python, meta.function.parameters.python, meta.function.python, source.python | #939293 | — |
| keyword.operator.assignment.python, punctuation.separator.annotation.result.python, keyword.operator.comparison.python, punctuation.separator.colon.python, punctuation.section.function.begin.python, punctuation.section.class.begin.python, keyword.operator.arithmetic.python, punctuation.section.function.lambda.begin.python | #ee9089 | — |
| constant.language.python | #67B7A4 | — |
| variable.other.python | #FAFFF0 | — |
| string.quoted.single.python, string.quoted.double.python | #FCBD60 | — |
| storage.type, storage.type.function.python, meta.function.python, source.python, storage.type.class.python, meta.class.python, keyword.control.flow.python | #FF8EBE | — |
| string.quoted.single.python, source.python | #FCBD60 | — |
| source.python | #FFF | — |
| storage.type.string.go, source.go.custom | #ff6188 | — |
| entity.name.tag.go | #67B7A4 | — |
| variable.parameter.receiver.go, source.go | #9CA6B0 | — |
| variable.other.property.public.go, source.go | #BDDB9E | — |
| variable.other.property.private.go, source.go | #E36C74 | — |
| variable.language.err.go, source.go | #97B8D5 | |
| keyword.package.go, keyword.control.import.go, keyword.control.go, keyword.channel.go, keyword.const.go, keyword.var.go, keyword.function.go, keyword.interface.go, keyword.map.go, keyword.struct.go, keyword.type.go | #FF8EBE | — |
| keyword.operator.address.go, keyword.operator.channel.go, keyword.operator.decrement.go, keyword.operator.increment.go, keyword.operator.comparison.go, keyword.operator.logical.go, keyword.operator.arithmetic.go, keyword.operator.arithmetic.bitwise.go, keyword.operator.ellipsis.go | #EE9089 | — |
| keyword.operator.assignment.go | #EE9089 | — |
| punctuation.definition.string.begin.go, punctuation.definition.string.end.go, string.quoted.double.go, source.go | #FCBD60 | — |
| punctuation.definition.begin.bracket.curly.go, punctuation.definition.end.bracket.curly.go, punctuation.definition.begin.bracket.round.go, punctuation.definition.end.bracket.round.go, source.go | #939293 | — |
| variable.other.assignment.go, source.go | #FAFFF0 | — |
| variable.other.go, source.go | #FAFFF0 | — |
| entity.name.function.support.go, source.go | #FF6188 | — |
| string.quoted.raw.go, source.go | #9CA6B0 | — |
| variable.other.property.go, source.go | #BDDB9E | — |
| comment.line.double-slash.go, comment.line.double-slash.js, meta.structure.dictionary.json.comments, meta.structure.dictionary.value.json.comments, meta.structure.dictionary.json.comments, comment.line.number-sign.toml, comment.line.number-sign.yaml, comment.line.number-sign.dockerfile, comment.line.sharp.http | #9CA6B0 | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #FF5370 | — |
| keyword, storage.type, storage.modifier | #C792EA | — |
| keyword.control, constant.other.color, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #89DDFF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f07178 | — |
| meta.block variable.other | #f07178 | — |
| support.other.variable, string.other.link | #f07178 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #F78C6C | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #B2CCD6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| variable.language | #FF5370 | italic |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #C792EA | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.sass keyword.control | #82AAFF | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFCB6B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F78C6C | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5370 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #82AAFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C3E88D | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
| support.type.property-name.toml, meta.entry.toml, source.toml | #FF8EBE | — |
| string.quoted.single.basic.line.toml | #FCBD60 | — |
| punctuation.eq.toml, meta.entry.toml, source.toml | #EE9089 | — |
| support.type.property-name.table.toml, meta.table.toml, source.toml | #BDDB9E | — |
| constant.numeric.integer.toml, source.toml | #0edfb6 | — |
| const.language.http, http.requestline, source.http | #FAFFF0 | — |
| http.headers, source.http | #f2d0ff | — |
| string.quoted.double.json | #FFCB6B | — |
| constant.numeric.json | #0edfb6 | — |
| support.type.property-name.json | #BDDB9E | — |
| punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json | #939293 | — |
| storage.type.annotation.router.go | #99c76a | bold |
| variable.parameter.router.go | #F78C6C | italic |
| string.unquoted.router.go | #FCFCFA | — |
| keyword.control.http-method.router.go | #FF6188 | bold |
| variable.parameter.name.swagger.go | #F78C6C | |
| storage.type.parameter.swagger.go | #f2d0ff | |
| storage.type.primitive.swagger.go | #ffe4b5 | |
| constant.language.boolean.swagger.go | #FF6188 | |
| string.quoted.double.swagger.go | #FCBD60 | |
| string.unquoted.description.swagger.go | #9CA6B0 | — |
| constant.numeric.status-code.swagger.go | #F78C6C | bold |
| keyword.control.content-type.swagger.go | #F2D0FF |
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}!`;
}