sunshine
Publisher: leon-0606Themes in package: 1
A theme for protected you eye
A theme for protected you eye
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 | #999999 | — |
| string | #1794FAF0 | — |
| constant.numeric | #0025F5 | — |
| constant.language | #DE5CFF | — |
| constant.character, constant.other | #AE81FF | — |
| variable | — | — |
| source.sass, meta.selector.sass, entity.other.attribute-name.class.sass | #1794FAF0 | — |
| source.sass, meta.selector.sass, entity.other.attribute-name.id.sass | #1794FAF0 | — |
| source.sass meta.property-list.sass meta.property-name.sass support.type.property-name.sass | #FF6708F0 | — |
| source.sass, meta.selector.sass, entity.name.tag.sass | #FF0000 | — |
| source.sass meta.property-list.sass meta.property-value.sass constant.other.color.rgb-value.sass | #D4D4D4 | — |
| keyword | #FF3333 | bold |
| storage | #EB5086 | |
| storage.type | #0088FF | italic bold |
| entity.name.class | #85C70C | underline |
| entity.other.inherited-class | #507806 | italic underline |
| entity.name.function | #1DA11D | bold |
| variable.parameter | #FF960D | italic |
| entity.name.tag | #F92672 | |
| entity.other.attribute-name | #A6E22E | |
| support.function | #FFCD03 | |
| support.constant | #57C8ED | |
| support.type, support.class | #124CFA | italic |
| support.other.variable | #1C1C1C | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| entity.other.attribute-name.html | #F77C00 | — |
| keyword.operator.js | #5ECFFF | — |
| source.js | #050505 | — |
| comment.js | #C2C2C2 | — |
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}!`;
}