Happy Hipster
Publisher: Vlad ZadvornyThemes in package: 1
A dark VS Code theme based on your orange, lime, cyan and graphite palette.
A dark VS Code theme based on your orange, lime, cyan and graphite palette.
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #DDDDDD | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6F8A36 | — |
| comment.block.documentation | — | italic |
| constant.language | #FF6942 | — |
| constant.numeric | #DDDD03 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #B2DC56 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #B2DC56 | — |
| entity.name.tag.css | #FCB13F | — |
| entity.other.attribute-name | #DDDDDD | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #FCB13F | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | #FF6942 | bold |
| markup.heading | #FF6942 | bold |
| markup.italic | — | italic |
| markup.inserted | #B2DC56 | — |
| markup.deleted | #B2DC56 | — |
| markup.changed | #FF6942 | — |
| beginning.punctuation.definition.quote.markdown | #6F8A36 | — |
| beginning.punctuation.definition.list.markdown | #6796E6 | — |
| markup.inline.raw | #B2DC56 | — |
| meta.selector | #FCB13F | — |
| punctuation.definition.tag | #FCB13F | — |
| meta.preprocessor | #FF6942 | — |
| meta.preprocessor.string | #B2DC56 | — |
| meta.preprocessor.numeric | #B2DC56 | — |
| meta.structure.dictionary.key.python | #4CC9E2 | — |
| meta.diff.header | #FF6942 | — |
| storage | #FF6942 | — |
| storage.type | #FF6942 | — |
| storage.modifier | #FF6942 | — |
| string | #B2DC56 | — |
| string.tag | #B2DC56 | — |
| string.value | #B2DC56 | — |
| string.regexp | #D16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, keyword.other.substitution.begin, keyword.other.substitution.end, punctuation.section.embedded | #FCB13F | — |
| meta.template.expression | #DDDDDD | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #4CC9E2 | — |
| keyword | #FF6942 | — |
| keyword.control | #FF6942 | — |
| keyword.operator | #DDDDDD | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof | #FF6942 | — |
| keyword.operator.comparison, keyword.operator.assignment, keyword.operator.relational, keyword.operator.ternary, keyword.operator.logical, keyword.operator.logical.python, meta.tag.inline.any, meta.tag.metadata.script.html, meta.tag.other.html, meta.tag.block.any.html, meta.tag.structure.any.html, keyword.operator.arithmetic | #FCB13F | — |
| keyword.other.unit | #B2DC56 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #FF6942 | — |
| support.function.git-rebase | #4CC9E2 | — |
| constant.sha.git-rebase | #B2DC56 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #DDDDDD | — |
| variable.language | #FF6942 | — |
| entity.name.function, support.function, support.constant.handlebars | #DDDD03 | — |
| meta.return-type, support.class, entity.name.type, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #4CC9E2 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4CC9E2 | — |
| support.type | #B2DC56 | — |
| keyword.control | #FCB13F | — |
| variable, meta.definition.variable.name, support.variable | #4CC9E2 | — |
| meta.object-literal.key | #4CC9E2 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #B2DC56 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #B2DC56 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #D16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #DDDD03 | — |
| keyword.operator.quantifier.regexp | #FCB13F | — |
| constant.character | #FF6942 | — |
| constant.character.escape | #FCB13F | — |
| variable.parameter.graphql | #FCB13F | — |
| keyword.operator.nulltype.graphql | #4CC9E2 | — |
| storage.modifier.async, keyword.control.flow | #FF6942 | — |
| source.env | #B2DC56 | — |
| punctuation.separator.key-value | #DDDDDD | — |
| punctuation.separator.key-value.html | #FCB13F | — |
| source.python | #4CC9E2 | — |
| punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.separator.period.python, punctuation.separator.element.python, punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.definition.inheritance.begin.python, punctuation.definition.inheritance.end.python, punctuation.separator.arguments.python, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python, punctuation.separator.parameters.python, punctuation.separator.dict.python, punctuation.definition.dict.begin.python, punctuation.definition.dict.end.python | #DDDDDD | — |
| support.function.builtin.python, support.type.python | #DDDD03 | — |
| keyword.control.flow.python, punctuation.section.class.begin.python, punctuation.section.function.begin.python | #FCB13F | — |
| keyword.control.module.elixir, keyword.control.elixir | #FF6942 | — |
| keyword.operator.other.elixir, variable.other.constant.elixir | #FCB13F | — |
| source.elixir | #4CC9E2 | — |
| punctuation.section.array.elixir, punctuation.separator.object.elixir, punctuation.separator.method.elixir, punctuation.section.function.elixir, punctuation.section.scope.elixir | #DDDDDD | — |
| constant.other.symbol.elixir, keyword.operator.other.elixir | #B2DC56 | — |
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}!`;
}