Fengshui Theme
Publisher: osminoginThemes in package: 1
Fengshui color scheme.
Fengshui color scheme.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #303030 | — |
| text, source | #bbbbbb | — |
| comment | #60708060 | — |
| keyword.operator.class, constant.other, source.php.embedded.line | #CED1CF | |
| variable | #ccbbaa | — |
| constant.numeric.octal.interpolation.php, constant.numeric.hex.interpolation.php, constant.character.escape.interpolation.php | #6F7533 | |
| variable.interpolation | #6F7533 | — |
| variable.interpolation.punctuation | #455623 | — |
| variable | #ccbbaa | — |
| support.other.variable, string.other.link, string.regexp, entity.name.tag, entity.other.attribute-name, meta.tag, declaration.tag | #CC8888 | — |
| constant.numeric, constant.language, support.constant, constant.character, variable.parameter, punctuation.section.embedded, keyword.other.unit | #D6A26F | |
| entity.name.namespace | #D78E94 | |
| entity.name.class, entity.name.type.class, support.type, support.class | #DBB66D | |
| entity.other.inherited-class | #CA9228 | — |
| string, constant.other.symbol, markup.heading | #B5BD68 | |
| keyword.operator, constant.other.color | #8ABEB7 | — |
| entity.name.function, meta.function-call, support.function, keyword.other.special-method, meta.block-level | #81A2BE | |
| meta.function-call.static | #4D7495 | |
| keyword, storage, storage.type, entity.name.tag.css | #B294BB | |
| invalid | #CED2CF | |
| meta.separator | #CED2CF | — |
| invalid.deprecated | #CED2CF | |
| markup.inserted.diff, markup.deleted.diff, meta.diff.header.to-file, meta.diff.header.from-file | #FFFFFF | — |
| markup.inserted.diff, meta.diff.header.to-file | #718c00 | — |
| markup.deleted.diff, meta.diff.header.from-file | #c82829 | — |
| meta.diff.header.from-file, meta.diff.header.to-file | #FFFFFF | — |
| meta.diff.range | #3e999f | italic |
| markup.bold.markdown | #B5A77D | |
| markup.italic.markdown | #9CB086 | italic |
| markup.underline.link.markdown | #76BAD3 | |
| markup.raw.inline.markdown | #AE80CA | |
| markup.raw.yaml.front-matter, punctuation.definition.metadata.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.raw.markdown, punctuation.definition.fenced.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.heading.markdown | #585858 | |
| variable.language.fenced.markdown | #686868 | |
| markup.deleted.git_gutter | #8B1F1F | — |
| markup.inserted.git_gutter | #63872C | — |
| markup.changed.git_gutter | #4E48AA | — |
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}!`;
}