SENA ADSO Theme
Publisher: eusebio suarezThemes in package: 1
Una extensión creada desde el SENA para el SENA, usando los colores representativos de ADSO en el SENA.
Una extensión creada desde el SENA para el SENA, usando los colores representativos de ADSO en el SENA.
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 | #5c7554 | italic bold |
| string | #4caf50 | — |
| keyword, storage.type | #7ad053 | |
| variable, meta.definition.variable.name | #f5b37c | — |
| entity.name.function, support.function | #6bbd6e | — |
| constant.numeric | #0a93b0 | — |
| entity.name.type, support.class | #76b668 | — |
| punctuation, meta.brace, meta.delimiter | #0a93b0 | — |
| entity.name.tag.html, entity.name.tag.jsx, entity.name.tag.js, entity.name.tag.ts, entity.name.tag.tsx | #7ad053 | — |
| entity.other.attribute-name.html | #53d0b9 | |
| string.quoted.double.html, string.quoted.single.html | #f5b37c | |
| comment.block.html | #5c7554 | italic |
| meta.tag.sgml.doctype.html | #af4c95 | bold |
| support.type.property-name.css, support.type.property-name.scss | #0a93b0 | italic |
| constant.numeric.css, constant.other.color.rgb-value.css, constant.other.unit.css, keyword.other.unit.css | #f5b37c | — |
| constant.other.color.css | #33aa67 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.class.css, entity.name.tag.css | #7ad053 | bold |
| entity.other.pseudo-class.css, entity.other.pseudo-element.css | #72c26b | italic |
| support.function.misc.css | #56a355 | — |
| variable.other.custom-property.css | #b5e0a7 | italic |
| storage.modifier.java, storage.modifier.ts, storage.modifier.kotlin, storage.modifier | #0a93b0 | bold |
| keyword.declaration.class, keyword.declaration.interface, keyword.control, keyword.other | #0caece | bold |
| entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.tsx | #53d0b9 | |
| string.quoted.double.html, string.quoted.single.html, string.quoted.double.jsx, string.quoted.single.jsx, string.quoted.double.js, string.quoted.single.js, string.quoted.double.ts, string.quoted.single.ts, string.quoted.double.tsx, string.quoted.single.tsx | #f5b37c | |
| comment.block.html, comment.block.jsx, comment.block.js, comment.block.ts, comment.block.tsx | #5c7554 | italic |
| meta.tag.sgml.doctype.html, punctuation.definition.tag.jsx, punctuation.definition.tag.js, punctuation.definition.tag.ts, punctuation.definition.tag.tsx | #af4c95 | bold |
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}!`;
}