vscode-theme-varlet
Publisher: haoziqaqThemes in package: 1
A vscode theme for varlet
A vscode theme for varlet
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, string.comment | #758575dd | — |
| delimiter.bracket, delimiter, invalid.illegal.character-not-allowed-here.html, keyword.operator.rest, keyword.operator.spread, keyword.operator.type.annotation, keyword.operator.relational, keyword.operator.assignment, meta.brace, meta.tag.block.any.html, meta.tag.inline.any.html, meta.tag.structure.input.void.html, meta.type.annotation, meta.embedded.block.github-actions-expression, storage.type.function.arrow, keyword.operator.type, meta.objectliteral.ts, punctuation | #888 | — |
| constant.numeric, number, constant.language.boolean, constant.language, meta.module-reference, markup.raw, meta.diff.header, meta.separator, meta.output, support.type.primitive, entity.name.type, entity.name.tag, tag.html, keyword, storage.type.class.jsdoc, support | #9bb5ff | — |
| markup.heading, markup.heading entity.name | #9bb5ff | bold |
| constant, entity.name.constant, variable.language, meta.definition.variable, support.constant, punctuation.definition.string, punctuation.support.type.property-name, support.type.property-name.json | #E6B491 | — |
| entity.name.function, entity.other.attribute-name, invalid.deprecated.entity.other.attribute-name.html, entity, entity.name | #A1C4EE | — |
| storage, storage.type, support.type.builtin, constant.language.undefined, constant.language.null | #fdbcaf | — |
| text.html.derivative, storage.modifier.package, storage.modifier.import, storage.type.java, variable.parameter.function | #dbd7caee | — |
| markup.italic | #dbd7caee | italic |
| markup.bold | #dbd7caee | bold |
| string, string punctuation.section.embedded source, attribute.value | #F5918E | — |
| property, meta.property-name, meta.object-literal.key, entity.name.tag.yaml, attribute.name | #E6B491 | — |
| variable, identifier | #d0c8ca | — |
| namespace | #db889a | — |
| keyword.operator, keyword.operator.assignment.compound, meta.var.expr.ts, entity.other.attribute-name.html.vue | #AFA5F0 | — |
| invalid.deprecated, invalid.illegal, invalid.unimplemented, invalid.broken, message.error | #fdaeb7 | italic |
| carriage-return | #24292e | italic underline |
| string variable | #FEECD0 | — |
| source.regexp, string.regexp | #DEC8D8 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition, constant.other.reference.link, string.other.link, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #c98a7d | — |
| string.regexp constant.character.escape | #e6cc77 | — |
| keyword.other.unit | #cb7676 | — |
| punctuation.definition.list.begin.markdown | #E6B491 | — |
| markup.quote | #ADC3FF | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #fdaeb7 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #B8D0FF | — |
| markup.changed, punctuation.definition.changed | #ffab70 | — |
| markup.ignored, markup.untracked | #2f363d | — |
| meta.diff.range | #b392f0 | bold |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #d1d5da | — |
| brackethighlighter.unmatched | #fdaeb7 | — |
| markup.underline.link.markdown | #dedcd590 | underline |
| type.identifier | #7f8ac7 | — |
| invalid.illegal.unrecognized-tag.html | — | normal |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}