Polar Theme
Publisher: Sameer RahmanThemes in package: 2
Modern Visual Studio Code themes with clean colors, good contrast, and a comfortable coding experience.
Modern Visual Studio Code themes with clean colors, good contrast, and a comfortable coding experience.
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 | #888888 | — |
| comment.block.documentation, comment.block.documentation variable.other | #888888 | — |
| comment.block.documentation entity.name.type | #43AAF9 | — |
| comment.block.documentation storage.type | #b0b6bd | — |
| string, punctuation.definition.string.template | #62c073 | — |
| constant.numeric | #b0b6bd | — |
| constant.language | #43AAF9 | — |
| constant.character, constant.other | #43AAF9 | — |
| variable.language.this | #43AAF9 | — |
| keyword, keyword.operator.new, storage.modifier.async, keyword.operator.less | #f75f8f | — |
| keyword.operator | #EFEFEF | — |
| punctuation | #EFEFEF | — |
| punctuation.definition.comment | #888888 | — |
| punctuation.definition.tag | #b0b6bd | — |
| string.quoted punctuation.definition.string | #62c073 | — |
| string.regexp, string.regexp punctuation.definition.string | #62c073 | — |
| storage | #43AAF9 | — |
| storage.type | #f75f8f | — |
| entity.name.class | #43AAF9 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function, support.function.builtin.python, meta.function-call.generic.python | #bf7af0 | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.relational, keyword.operator.increment, keyword.operator.decrement, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary, keyword.operator.expression | #43AAF9 | — |
| variable.parameter | #b0b6bd | — |
| source.css.scss, source.css | #62c073 | — |
| entity.other.attribute-name | #bf7af0 | — |
| support.function, support.variable.dom | #b0b6bd | — |
| support.constant | #43AAF9 | — |
| support.type | #b0b6bd | — |
| support.class | #62c073 | — |
| invalid | #E34234 | — |
| invalid.deprecated | #E34234 | — |
| invalid.illegal | #b0b6bd | — |
| meta.diff, meta.diff.header | #718493 | — |
| markup.deleted | #E61F44 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #b0b6bd | — |
| constant.numeric.line-number.find-in-files - match | — | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #B0BEC5 | — |
| meta.property-value, support.constant.property-value, constant.other.color | #9FBDE0 | — |
| meta.property-value punctuation.separator.key-value | #b0b6bd | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #f75f8f | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #62c073 | — |
| variable.other | #b0b6bd | — |
| meta.object-literal.key | #f75f8f | — |
| variable.parameter.function.coffee | #9FBDE0 | — |
| markup.deleted.git_gutter | #E61F44 | — |
| markup.inserted.git_gutter | — | — |
| markup.changed.git_gutter | #b0b6bd | — |
| meta.template.expression | #9FBDE0 | — |
| variable.other.constant.property, keyword.operator.ternary, keyword.operator.expression.typeof | #B267E6 | — |
| entity.name.type, support.type.python | #b0b6bd | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| entity.name.tag.tsx, entity.name.tag.js.jsx, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.script.html.vue, entity.name.tag.template.html.vue, entity.name.tag.style.html.vue, entity.name.tag.style.html.vue, entity.name.tag.script.html, entity.name.tag.template.html, entity.name.tag.style.html, entity.name.tag.block.any.html | #62c073 | — |
| support.class.component.tsx, support.class.component.jsx | #62c073 | — |
| support.type.primitive.tsx, support.type.primitive.ts | #bf7af0 | — |
| storage.modifier.tsx | #f75f8f | — |
| entity.other.inherited-class.tsx | #b0b6bd | — |
| meta.object.member variable.other.readwrite.tsx | #b0b6bd | — |
| meta.structure.dictionary.json string.quoted.double.json | #b0b6bd | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #62c073 | — |
| meta.structure.dictionary.json, punctuation.definition.string | #62c073 | — |
| meta.structure.dictionary.json, support.type.property-name.json | #f75f8f | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.list.begin.mdx, punctuation.definition.list.end.markdown, punctuation.definition.list.end.mdx, punctuation.definition.quote.begin.markdown, punctuation.definition.quote.begin.mdx, punctuation.definition.quote.end.markdown, punctuation.definition.quote.end.mdx, meta.separator.markdown, meta.separator.mdx, markup.inline.raw.string.markdown, markup.raw.code.text.mdx | #b0b6bd | — |
| entity.name.section.markdown, entity.name.section.mdx | #43AAF9 | — |
| punctuation.definition.heading.markdown, punctuation.definition.heading.mdx | #f75f8f | — |
| markup.raw.inline.markdown, markup.raw.inline.mdx | #9FBDE0 | — |
| punctuation.definition.bold.markdown, punctuation.definition.bold.mdx, punctuation.definition.italic.markdown, punctuation.definition.italic.mdx, punctuation.definition.entity | #f75f8f | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.begin.mdx, punctuation.definition.string.end.markdown, punctuation.definition.string.end.mdx | #f75f8f | — |
| punctuation.definition.metadata.markdown, punctuation.definition.metadata.mdx | #f75f8f | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, string.other.link.destination.mdx, meta.image.inline.markdown, meta.image.inline.mdx | #f75f8f | — |
| markup.bold.markdown, string.other.strong.asterisk.mdx, markup.italic.markdown, markup.italic.mdx | #f75f8f | — |
| markup.italic.markdown, markup.italic.mdx | — | — |
| markup.bold.markdown, markup.bold.mdx | — | — |
| markup.raw.block.markdown, markup.raw.block.mdx | #9FBDE0 | — |
| keyword.other.rust | #B267E6 | — |
| keyword.other.fn.rust | #f75f8f | — |
| punctuation.section.embedded.begin.php, keyword.other.class.php | #f75f8f | — |
| support.class.php | #b0b6bd | — |
| meta.use.php | #62c073 | — |
| keyword.other.definition.ini | #43AAF9 | — |
| support.type.primitive.prisma | #b0b6bd | — |
| support.constant.constant.prisma | #f75f8f | — |
| variable.language.relations.prisma | #62c073 | — |
| entity.name.tag.yaml | #f75f8f | — |
| storage.type.java | #b0b6bd | — |
| keyword.other.package.java, keyword.other.import.java | #f75f8f | — |
| storage.modifier.package.java | #b0b6bd | — |
| storage.modifier.import.java | #b0b6bd | — |
| punctuation.separator.java | #EFEFEF | — |
| meta.tag.xml | #43AAF9 | — |
| keyword.other.declaration-specifier.swift, keyword.other.declaration-specifier.accessibility.swift | #f75f8f | — |
| support.type.swift, meta.function-result.swift, variable.language.swift, keyword.operator.custom.infix.swift | #43AAF9 | — |
| variable.parameter.function.swift | #b0b6bd | — |
| entity.name.function.swift | #43AAF9 | — |
| variable.parameter.function.swift, meta.parameter-clause.swift | #b0b6bd | — |
| support.function.go | #43AAF9 | — |
| keyword.operator.address.go, keyword.operator.pointer.go | #43AAF9 | — |
| keyword.channel.go | #B267E6 | — |
| storage.type.numeric.go, storage.type.string.go, storage.type.error.go, storage.type.boolean.go, storage.type.byte.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.complex.go | #b0b6bd | — |
| entity.name.tag.astro | #f75f8f | — |
| support.class.component.astro | #f75f8f | — |
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}!`;
}