🔵 Dark Blue Theme
Publisher: ttrodriguesThemes in package: 1
VS Code Dark Blue theme
VS Code Dark Blue 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 |
|---|---|---|
| variable.other.property.ts, variable.other.property.js | #dda083 | — |
| comment, punctuation.definition.comment, string.quoted.docstring.multi, comment.block.documentation source | #5C6370 | italic |
| keyword, storage, variable.language.super, variable.language.this, variable.language.special | #C678DD | — |
| string, punctuation.definition.string | #98C379 | — |
| constant, keyword.other.unit, variable.other.constant, variable.other.enummember | #E5C07B | — |
| entity.name.function, support.function, punctuation.definition.decorator, punctuation.decorator, meta.function-call.generic | #61AFEF | — |
| entity.name.type, entity.other.inherited-class, support.class | #E5C07B | — |
| meta.type.annotation, meta.type.parameters, support.type.primitive, support.type.builtin, support.type.exception | #E5C07B | — |
| punctuation.accessor, keyword.operator.logical, keyword.operator.comparison, keyword.operator.increment, keyword.operator.decrement, keyword.operator.assignment, keyword.operator.relational, keyword.operator.ternary, keyword.operator.arithmetic, keyword.operator.rest, keyword.operator.spread, keyword.operator.type, keyword.operator.optional, keyword.operator.combinator, keyword.operator.pattern, keyword.operator.or, keyword.operator.quantifier, keyword.operator.bitwise | #56B6C2 | — |
| punctuation, keyword.operator.type.annotation, meta.brace | #ABB2BF | — |
| variable, entity.name, support.variable | #E06C75 | — |
| meta.object-literal.key | #98C379 | — |
| punctuation.definition.directive.cpp, keyword.other.using.directive.cpp | #C678DD | — |
| entity.name.scope-resolution.parameter.cpp, entity.name.scope-resolution.cpp, entity.name.scope-resolution.function.call.cpp, entity.name.scope-resolution.template.call.cpp, entity.name.scope-resolution.function.definition.cpp | #E5C07B | — |
| punctuation.definition.keyword.css, punctuation.definition.keyword.scss, keyword.operator.logical.and.media.css, keyword.operator.logical.and.media.scss, keyword.operator.logical.scss | #C678DD | — |
| support.constant.property-value.css, support.constant.vendored.property-value.css, support.constant.color.w3c-standard-color-name.css, support.constant.font-name.css, punctuation.definition.constant.css, entity.other.attribute-name.css, entity.other.attribute-name.attribute.scss | #D19A66 | — |
| keyword.operator.css, keyword.operator.scss | #56B6C2 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #E06C75 | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #E5C07B | — |
| meta.property-value.css | #E06C75 | — |
| support.type.map.key.scss, entity.other.keyframe-offset.css, meta.property-name.css, entity.other.attribute-name.scss, support.type.property-name.media.css | #98C379 | — |
| meta.attribute-selector.scss | #98C379 | — |
| variable.parameter.url.css, variable.parameter.url.scss | #ABB2BF | — |
| punctuation.whitespace.comment | #5C6370 | italic |
| support.type.graphql, support.type.location.graphql, support.type.enum.graphql, entity.scalar.graphql | #E5C07B | — |
| punctuation.or.graphql, keyword.operator.nulltype.graphql, punctuation.assignment.graphql | #56B6C2 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.localname.xml, entity.other.attribute-name.namespace.xml | #D19A66 | italic |
| entity.other.attribute-name.js, entity.other.attribute-name.tsx | #D19A66 | italic |
| support.constant.json.js, support.constant.json.jsx, support.constant.json.ts, support.constant.json.tsx, support.constant.math.js, support.constant.math.jsx, support.constant.math.ts, support.constant.math.tsx | #E5C07B | — |
| support.type.object.module.js, support.type.object.module.jsx, support.type.object.module.ts, support.type.object.module.tsx | #51B4C3 | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.js, punctuation.section.embedded.end.tsx | #BE5046 | — |
| variable.other.constant.js, variable.other.constant.jsx, variable.other.constant.ts, variable.other.constant.tsx | #E5C07B | — |
| string.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #E06C75 | — |
| punctuation.definition.heading.markdown | #E06C75 | — |
| markup.italic.markdown, punctuation.definition.italic.markdown | #C678DD | italic |
| markup.bold.markdown, punctuation.definition.bold.markdown | #D19A66 | bold |
| punctuation.definition.raw.markdown, markup.inline.raw.string.markdown, punctuation.definition.markdown, fenced_code.block.language.markdown | #98C379 | — |
| punctuation.definition.list.begin.markdown | #E06C75 | — |
| markup.quote.markdown, punctuation.definition.quote.begin.markdown | — | italic |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #56B6C2 | — |
| fenced_code.block.language.markdown | — | italic |
| keyword.operator.python, keyword.operator.unpacking.arguments.python, punctuation.separator.period.python | #56B6C2 | — |
| keyword.operator.logical.python | #C678DD | — |
| support.type.python | #E5C07B | — |
| source.python | #E06C75 | — |
| constant.other.table-name.sql, constant.other.database-name.sql | #ABB2BF | — |
| keyword.operator.math.sql, keyword.operator.star.sql | #56B6C2 | — |
| keyword.key.toml, entity.other.attribute-name.table.toml, entity.other.attribute-name.table.array.toml | #E06C75 | — |
| keyword.control.flow.block-scalar.folded.yaml, keyword.control.flow.block-scalar.literal.yaml, storage.modifier.chomping-indicator.yaml | #56B6C2 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| comment, entity.other.attribute-name, keyword, markup.underline.link, storage.modifier, storage.type, string.url, variable.language.super, variable.language.this | — | italic |
| entity.other.attribute-name | #8395c7 | — |
| source.diff meta.diff.header.to-file, source.diff markup.inserted.diff, source.diff punctuation.definition.to-file.diff, source.diff punctuation.definition.inserted.diff | #98C379 | — |
| source.diff punctuation.definition.from-file.diff, source.diff meta.diff.header.from-file, source.diff markup.deleted.diff, source.diff punctuation.definition.deleted.diff | #E06C75 | — |
| source.diff meta.diff.header.command | #28A9FF | — |
| source.diff punctuation.definition.range.diff, source.diff meta.diff.range.unified | #FF7135 | — |
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}!`;
}