Lavender — Linear Theme
Publisher: ZhaoJiSenThemes in package: 6
A near-black VS Code color theme built around Linear's design system — deep canvas (#010102), a four-step surface ladder, and the signature lavender-blue accent.
A near-black VS Code color theme built around Linear's design system — deep canvas (#010102), a four-step surface ladder, and the signature lavender-blue accent.
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 | #62666d | italic |
| variable, string constant.other.placeholder | #d0d6e0 | — |
| variable.parameter, meta.function.parameters, variable.parameter.function-call | #d0d6e0 | italic |
| variable.other.property, support.variable.property, meta.object-literal.key, variable.other.object.property | #7bb0ff | — |
| variable.language, variable.language.this, keyword.other.this | #828fff | italic |
| variable.other.constant, constant.other, constant.other.caps, variable.other.enummember, constant.other.enum, entity.name.constant | #4cc9d4 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity, constant.language.nil | #e08c5a | — |
| constant.character.escape, constant.other.character-class.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #e08c5a | — |
| string, string.quoted, punctuation.definition.string, string.template | #68cc9a | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression, punctuation.definition.interpolation.begin, punctuation.definition.interpolation.end, punctuation.section.interpolation, punctuation.definition.interpolation | #828fff | — |
| keyword, keyword.control, keyword.other, keyword.control.flow | #828fff | italic |
| storage, storage.type, storage.modifier, keyword.declaration | #828fff | italic |
| keyword.operator, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.assignment, punctuation.accessor | #9aa0b3 | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function, meta.function-call | #e3b341 | — |
| entity.name.function.member, meta.definition.method entity.name.function | #e3b341 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, entity.name.type.interface, entity.name.type.alias, entity.name.type.struct, entity.name.type.enum, meta.type.annotation entity.name.type | #7bb0ff | — |
| entity.name.namespace, entity.name.module, support.module, entity.name.scope-resolution, entity.name.type.namespace | #8a8f98 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.template, entity.name.tag.script, entity.name.tag.style | #828fff | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.tag.html | #5a6b8c | — |
| support.class.component, entity.name.tag.namespace, meta.tag.custom | #7bb0ff | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #e3b341 | italic |
| meta.attribute string.quoted, string.quoted.double.html, string.quoted.single.html | #68cc9a | — |
| entity.other.attribute-name.vue.directive, meta.directive.vue, entity.other.attribute-name.vue, punctuation.attribute-shorthand.bind.html.vue, punctuation.attribute-shorthand.event.html.vue, punctuation.separator.key-value.html.vue | #d98ad9 | italic |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, storage.type.annotation, meta.attribute | #d98ad9 | italic |
| punctuation, punctuation.separator, punctuation.terminator, meta.brace, punctuation.section | #8a8f98 | — |
| support.constant, support.variable, support.type.builtin | #7bb0ff | — |
| entity.name.package.go, keyword.package.go, keyword.import.go | #828fff | italic |
| entity.name.tag.go, support.type.builtin.go | #7bb0ff | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #e08c5a | italic |
| entity.name.function.macro.rust, support.function.macro.rust, meta.macro.rust | #d98ad9 | — |
| meta.attribute.rust, punctuation.definition.attribute.rust | #d98ad9 | italic |
| keyword.control.directive, punctuation.definition.directive, meta.preprocessor | #d98ad9 | italic |
| storage.type.built-in.c, storage.type.built-in.cpp, storage.type.cs, keyword.type.cs | #828fff | italic |
| meta.interpolation.cs, entity.name.type.class.cs, support.type.cs | #7bb0ff | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name | #7bb0ff | — |
| support.constant.property-value.css, keyword.other.unit, constant.numeric.css, support.constant.property-value.scss | #e08c5a | — |
| variable.css, variable.argument.css, support.type.custom-property.name.css, variable.other.custom-property, punctuation.definition.custom-property.css | #4cc9d4 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.scss | #e3b341 | — |
| entity.name.tag.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #828fff | italic |
| variable.scss, variable.less, variable.other.less, entity.name.function.scss, keyword.control.at-rule.css | #d98ad9 | — |
| keyword.control.at-rule, punctuation.definition.keyword.css | #828fff | italic |
| support.type.property-name.json, support.type.property-name.toml, entity.name.tag.yaml | #7bb0ff | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #828fff | bold |
| markup.bold | #f7f8f8 | bold |
| markup.italic | #d0d6e0 | italic |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #7bb0ff | underline |
| markup.inline.raw, markup.raw.block | #68cc9a | — |
| markup.quote | #8a8f98 | italic |
| markup.list punctuation.definition.list.begin, beginning.punctuation.definition.list | #5e6ad2 | — |
| markup.inserted | #27a644 | — |
| markup.deleted | #eb5757 | — |
| markup.changed | #e3b341 | — |
| invalid, invalid.illegal | #eb5757 | — |
| invalid.deprecated | #e3b341 | strikethrough |
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}!`;
}