Olive Dream Theme
Publisher: lilinThemes in package: 2
A calm, natural, premium sage-green VS Code theme for creative developers, AI builders and designers.
A calm, natural, premium sage-green VS Code theme for creative developers, AI builders and designers.
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 | #A3A98C | italic |
| string, string.quoted, string.template, punctuation.definition.string | #9A8B65 | — |
| constant.numeric, constant.language, constant.character, constant.other | #C49A4A | — |
| constant.language.boolean, constant.language.null | #C49A4A | — |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression | #68784A | — |
| keyword.operator, keyword.operator.relational, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical | #68784A | — |
| storage, storage.type, storage.modifier | #68784A | — |
| entity.name.function, support.function, variable.function, meta.function-call.method, meta.function-call.generic | #75985A | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, support.type.primitive | #68784A | — |
| variable, variable.other, variable.other.readwrite, variable.other.object.property | #3B4129 | — |
| variable.parameter, variable.other.constant, meta.definition.variable.name | #3B4129 | — |
| variable.language, variable.language.self, variable.language.special, variable.language.this | #68784A | — |
| constant.language.import, entity.name.import, variable.import, support.type.module, support.module | #75985A | — |
| meta.decorator, punctuation.decorator, storage.type.annotation, meta.annotation | #C49A4A | — |
| punctuation, punctuation.definition, meta.brace, punctuation.separator, punctuation.terminator | #6E7554 | — |
| string.regexp, constant.other.character-class, string.regexp constant.character.escape | #9A8B65 | — |
| markup.heading, markup.heading.setext | #68784A | bold |
| markup.bold | #3B4129 | bold |
| markup.italic | — | italic |
| markup.underline.link, string.other.link | #75985A | — |
| markup.inline.raw, markup.raw, fenced_code.block | #9A8B65 | — |
| entity.name.tag, meta.tag entity.name.tag, punctuation.definition.tag | #75985A | — |
| entity.other.attribute-name, entity.other.attribute-name.class, entity.other.attribute-name.id | #89986D | — |
| support.type.property-name, support.type.property-name.css, meta.attribute-selector.css entity.other.attribute-name.class, meta.attribute-selector.css entity.other.attribute-name.id | #68784A | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #68784A | — |
| invalid, invalid.illegal | #B5564A | — |
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 | #7E8A6A | italic |
| string, string.quoted, string.template, punctuation.definition.string | #D8C9A0 | — |
| constant.numeric, constant.language, constant.character, constant.other | #E0B85E | — |
| constant.language.boolean, constant.language.null | #E0B85E | — |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression | #A8BE84 | — |
| keyword.operator, keyword.operator.relational, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical | #A8BE84 | — |
| storage, storage.type, storage.modifier | #A8BE84 | — |
| entity.name.function, support.function, variable.function, meta.function-call.method, meta.function-call.generic | #9CC47E | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, support.type.primitive | #B8CE92 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object.property | #E6E2CC | — |
| variable.parameter, variable.other.constant, meta.definition.variable.name | #E6E2CC | — |
| variable.language, variable.language.self, variable.language.special, variable.language.this | #A8BE84 | — |
| constant.language.import, entity.name.import, variable.import, support.type.module, support.module | #9CC47E | — |
| meta.decorator, punctuation.decorator, storage.type.annotation, meta.annotation | #E0B85E | — |
| punctuation, punctuation.definition, meta.brace, punctuation.separator, punctuation.terminator | #8A9372 | — |
| string.regexp, constant.other.character-class, string.regexp constant.character.escape | #D8C9A0 | — |
| markup.heading, markup.heading.setext | #A8BE84 | bold |
| markup.bold | #E6E2CC | bold |
| markup.italic | — | italic |
| markup.underline.link, string.other.link | #9CC47E | — |
| markup.inline.raw, markup.raw, fenced_code.block | #D8C9A0 | — |
| entity.name.tag, meta.tag entity.name.tag, punctuation.definition.tag | #9CC47E | — |
| entity.other.attribute-name, entity.other.attribute-name.class, entity.other.attribute-name.id | #B8CE92 | — |
| support.type.property-name, support.type.property-name.css, meta.attribute-selector.css entity.other.attribute-name.class, meta.attribute-selector.css entity.other.attribute-name.id | #A8BE84 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #A8BE84 | — |
| invalid, invalid.illegal | #E08A7A | — |
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}!`;
}