DotDev Theme
Publisher: dotdev-dotdevThemes in package: 1
DotDev is a dark theme for Visual Studio Code designed for developer productivity.
DotDev is a dark theme for Visual Studio Code designed for developer productivity.
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, punctuation.definition.comment | #CCCCCC | italic |
| string, string.quoted.double, string.quoted.single | #00FF00 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof | #BB66FF | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison | #CCCCCC | — |
| entity.name.function, meta.function-call, support.function, variable.function | #FFFF00 | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.other.inherited-class, support.class, support.type | #BB66FF | — |
| variable, variable.other, variable.other.readwrite, variable.other.constant | #99DDFF | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #B3B3FF | — |
| constant.numeric, constant.language, constant.character, constant.other | #00FFCC | — |
| punctuation.definition.template-expression, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #00FFCC | — |
| storage, storage.type, storage.modifier | #BB66FF | — |
| support.constant, support.variable | #00CCFF | — |
| invalid, invalid.illegal | #FF00FF | — |
| entity.other.attribute-name | #BB66FF | — |
| entity.name.tag, meta.tag.sgml, punctuation.definition.tag | #BB66FF | — |
| entity.other.attribute-name.html, entity.other.attribute-name.id.html, entity.other.attribute-name.class.html | #BB66FF | — |
| support.type.property-name, support.type.vendored.property-name | #BB66FF | — |
| support.constant.property-value | #00FF00 | — |
| keyword.other.unit | #FFFF00 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.id.scss | #00CCFF | — |
| source.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json support.type.property-name.json | #F0DDFF | — |
| source.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json support.type.property-name.json | #E0BBFF | — |
| source.json meta.structure.dictionary.value.json support.type.property-name.json | #D099FF | — |
| source.json support.type.property-name.json | #BB66FF | — |
| string.quoted.double.json | #00FF00 | — |
| markup.heading, entity.name.section.markdown, heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown, markup.heading.markdown, punctuation.definition.heading.markdown | #BB66FF | bold |
| markup.bold | #99DDFF | bold |
| markup.italic | #E6E6E6 | italic |
| markup.underline.link, string.other.link.markdown | #00CCFF | — |
| markup.inline.raw, markup.raw.block | #00FF00 | — |
| markup.quote | #CCCCCC | italic |
| string.regexp | #FFCC00 | — |
| constant.character.escape | #FF00FF | — |
| punctuation.section.embedded, punctuation.section.embedded.begin, punctuation.section.embedded.end | #FF00FF | — |
| variable.parameter | #00CCFF | italic |
| constant.language.null, constant.language.undefined, constant.language.boolean | #BB66FF | — |
| meta.decorator, meta.decorator punctuation.decorator | #EE00FF | italic |
| markup.inserted | #00CC00 | — |
| markup.deleted | #FF0099 | — |
| markup.changed | #FFCC00 | — |
| variable.other.php, punctuation.definition.variable.php | #BB66FF | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #EE00FF | italic |
| string.quoted.docstring.multi.python | #CCCCCC | italic |
| string.template | #00FF00 | — |
| meta.embedded.line.js punctuation.section.embedded, meta.embedded.line.js punctuation.section.embedded.begin, meta.embedded.line.js punctuation.section.embedded.end, string.template meta.embedded.line punctuation.section.embedded, string.template punctuation.section.embedded, string.template.js punctuation.definition.template-expression, string.template.js punctuation.definition.template-expression.begin, string.template.js punctuation.definition.template-expression.end, meta.template.expression punctuation.definition.template-expression, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts | #FF00FF | — |
| punctuation.definition.template-expression, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js, meta.template.expression.js | #FF00FF | — |
| entity.name.type.ts, entity.name.type.tsx, support.type.primitive.ts, support.type.primitive.tsx | #BB66FF | — |
| entity.name.tag.tsx, entity.name.tag.jsx | #BB66FF | — |
| entity.other.attribute-name.tsx, entity.other.attribute-name.jsx | #BB66FF | — |
| punctuation.attribute-shorthand.bind.html.vue, punctuation.attribute-shorthand.event.html.vue | #BB66FF | — |
| entity.name.tag.yaml | #BB66FF | — |
| support.type.property-name.toml | #BB66FF | — |
| variable.other.shell | #BB66FF | — |
| keyword.other.sql, keyword.other.DDL.sql, keyword.other.DML.sql | #BB66FF | — |
| support.function.aggregate.sql | #00CCFF | — |
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}!`;
}