Nothing OS Theme
Publisher: xexefeThemes in package: 5
A minimal, high-contrast theme inspired by Nothing OS design language with signature red accents and dot-matrix aesthetics
A minimal, high-contrast theme inspired by Nothing OS design language with signature red accents and dot-matrix aesthetics
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, punctuation.definition.comment | #555555 | italic |
| string, string.quoted, string.template, string.interpolated | #AAAAAA | — |
| constant.character.escape, string.regexp | #D71921 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #D71921 | — |
| constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #D71921 | — |
| variable, variable.other, variable.other.readwrite | #FFFFFF | — |
| variable.other.property, variable.other.object.property | #CCCCCC | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof | #D71921 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, punctuation.separator | #888888 | — |
| storage, storage.type, storage.modifier | #D71921 | — |
| entity.name.function, meta.function-call, support.function | #FFFFFF | — |
| variable.parameter, meta.parameters, meta.function.parameters | #CCCCCC | — |
| entity.name.class, entity.name.type.class, support.class, entity.other.inherited-class | #FFFFFF | bold |
| entity.name.type.interface | #CCCCCC | — |
| entity.name.type, support.type, support.type.primitive | #CCCCCC | — |
| punctuation, punctuation.definition, punctuation.definition.tag, punctuation.definition.string, punctuation.accessor, punctuation.terminator | #666666 | — |
| punctuation.definition.block, punctuation.section, meta.brace | #888888 | — |
| entity.name.tag, meta.tag | #D71921 | — |
| entity.other.attribute-name | #FFFFFF | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FFFFFF | — |
| support.type.property-name.css | #CCCCCC | — |
| support.constant.property-value.css, meta.property-value.css | #AAAAAA | — |
| keyword.other.unit.css | #D71921 | — |
| support.type.property-name.json | #FFFFFF | — |
| heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown, markup.heading | #FFFFFF | bold |
| markup.bold | #FFFFFF | bold |
| markup.italic | #CCCCCC | italic |
| markup.underline.link | #D71921 | — |
| markup.inline.raw, markup.fenced_code.block | #AAAAAA | — |
| markup.quote | #666666 | italic |
| punctuation.definition.list | #D71921 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #D71921 | — |
| entity.name.module, variable.import, variable.other.module | #CCCCCC | — |
| meta.decorator, punctuation.decorator | #D71921 | — |
| string.regexp | #D71921 | — |
| invalid, invalid.illegal | #FFFFFF | — |
| invalid.deprecated | #888888 | strikethrough |
| markup.inserted, punctuation.definition.inserted | #50FA7B | — |
| markup.deleted, punctuation.definition.deleted | #D71921 | — |
| markup.changed, punctuation.definition.changed | #FFAA00 | — |
| entity.name.tag.yaml | #FFFFFF | — |
| keyword.key.toml | #FFFFFF | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.special.shell | #FFFFFF | — |
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}!`;
}