Light version of Oceanic Next
Publisher: CalveinThemes in package: 1
Oceanic Next Light theme for VSCode for better looking UI
Oceanic Next Light theme for VSCode for better looking UI
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #343d46 | — |
| comment, punctuation.definition.comment | #a7adba | — |
| variable | #343d46 | — |
| keyword, storage.type, storage.modifier | #c594c5 | — |
| keyword.operator, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #5fb3b3 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #eb606b | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, meta.block-level | #6699cc | — |
| support.other.variable, string.other.link | #f2777a | — |
| constant.numeric, constant.language, support.constant, constant.character, variable.parameter, keyword.other.unit | #f99157 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #99c794 | normal |
| entity.name.class, entity.name.type.class, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter | #fac863 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #ec5f67 | — |
| variable.language | #ec5f67 | italic |
| entity.name.method.js | #1b2b34 | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #1b2b34 | — |
| entity.other.attribute-name | #bb80b3 | — |
| markup.inserted | #99c794 | — |
| markup.deleted | #ec5f67 | — |
| markup.changed | #bb80b3 | — |
| string.regexp | #5fb3b3 | — |
| constant.character.escape | #5fb3b3 | — |
| *url*, *link*, *uri* | — | underline |
| constant.numeric.line-number.find-in-files - match | #ab7967 | — |
| entity.name.filename.find-in-files | #99c794 | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #6699cc | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #ec5f67 | italic |
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}!`;
}