@nurvus/ui 0.1.0-alpha.1 → 0.1.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +22 -9
- package/dist/index.js +2 -6
- package/dist/index.js.LICENSE.txt +5 -0
- package/package.json +26 -16
- package/src/components/Button/Button.jsx +7 -9
- package/src/components/Button/Button.md +0 -4
- package/src/components/Button/Button.scss +10 -10
- package/src/components/ButtonGroup/ButtonGroup.jsx +16 -5
- package/src/components/FullPageModal/FullPageModal.jsx +7 -9
- package/src/components/HistoryList/HistoryList.jsx +120 -0
- package/src/components/HistoryList/HistoryList.md +30 -0
- package/src/components/HistoryList/HistoryList.scss +89 -0
- package/src/components/Layout/Layout.jsx +50 -12
- package/src/components/Layout/Layout.scss +12 -0
- package/src/components/Menu/Menu.jsx +15 -4
- package/src/components/Menu/Menu.scss +47 -15
- package/src/components/Panel/Panel.jsx +57 -0
- package/src/components/Panel/Panel.md +23 -0
- package/src/components/Panel/Panel.scss +33 -0
- package/src/components/Progress/Progress.jsx +9 -11
- package/src/components/Progress/Progress.scss +6 -6
- package/src/components/Table/Table.jsx +4 -2
- package/src/components/Table/Table.scss +23 -49
- package/src/components/Tag/Tag.jsx +41 -0
- package/src/components/Tag/Tag.md +13 -0
- package/src/components/Tag/Tag.scss +23 -0
- package/src/components/Text/Text.jsx +48 -18
- package/src/components/Text/Text.md +13 -0
- package/src/components/Text/Text.scss +22 -0
- package/src/components/Title/Title.jsx +38 -41
- package/src/components/Title/Title.scss +3 -2
- package/src/index.js +9 -0
- package/src/styles/theme.scss +497 -0
- package/src/styles/tokens.scss +244 -459
- package/src/styles/type.json +13 -0
- package/src/theme.js +48 -0
- package/src/themes/apollo-white.json +52 -0
- package/src/themes/arcane.json +52 -0
- package/src/themes/dopamine.json +52 -0
- package/src/themes/index.js +22 -0
- package/src/themes/nether-neon.json +52 -0
- package/src/themes/nether.json +52 -0
- package/src/themes/outworld.json +52 -0
- package/src/themes/roles.json +29 -0
- package/src/themes/tokyo-neon.json +52 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"font": {
|
|
3
|
+
"sans": "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
4
|
+
"mono": "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"
|
|
5
|
+
},
|
|
6
|
+
"roles": {
|
|
7
|
+
"display": { "size": "clamp(30px, 4vw, 44px)", "line": "1.08", "weight": "600", "tracking": "-0.02em", "use": "The one big headline on a page." },
|
|
8
|
+
"title": { "size": "22px", "line": "1.3", "weight": "600", "tracking": "-0.01em", "use": "Section headings and panel titles." },
|
|
9
|
+
"body": { "size": "16px", "line": "1.55", "weight": "400", "tracking": "0", "use": "Running text." },
|
|
10
|
+
"caption": { "size": "14px", "line": "1.45", "weight": "400", "tracking": "0", "use": "Labels, captions, table cells, notes." },
|
|
11
|
+
"mono": { "size": "13px", "line": "1.5", "weight": "400", "tracking": "0", "use": "Values: hex codes, tokens, numbers, code." }
|
|
12
|
+
}
|
|
13
|
+
}
|
package/src/theme.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { themes, DEFAULT_THEME } from './themes';
|
|
2
|
+
|
|
3
|
+
/** localStorage key that remembers the chosen theme. */
|
|
4
|
+
export const THEME_STORAGE_KEY = 'nurvus.theme';
|
|
5
|
+
|
|
6
|
+
/** Fired on the themed element (bubbles) after setTheme; detail = the theme. */
|
|
7
|
+
export const THEME_CHANGE_EVENT = 'nurvus:themechange';
|
|
8
|
+
|
|
9
|
+
/** A theme object by id, or undefined. */
|
|
10
|
+
export function getTheme(id) {
|
|
11
|
+
return themes.find((theme) => theme.id === id);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** The theme currently applied to `root` (defaults to <html>). */
|
|
15
|
+
export function currentTheme(root = document.documentElement) {
|
|
16
|
+
return getTheme(root.getAttribute('data-theme')) || getTheme(DEFAULT_THEME);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Apply a theme. Sets data-theme on `root` (default <html>), which swaps every
|
|
21
|
+
* --nv-* custom property underneath it. Pass any element as `root` to theme
|
|
22
|
+
* just that part of the page; themes nest.
|
|
23
|
+
*
|
|
24
|
+
* setTheme('tokyo-neon');
|
|
25
|
+
* setTheme('apollo-white', { root: sidebarEl, persist: false });
|
|
26
|
+
*/
|
|
27
|
+
export function setTheme(id, { root = document.documentElement, persist = true } = {}) {
|
|
28
|
+
const theme = getTheme(id);
|
|
29
|
+
if (!theme) throw new Error(`@nurvus/ui: unknown theme "${id}". Known: ${themes.map((t) => t.id).join(', ')}`);
|
|
30
|
+
root.setAttribute('data-theme', theme.id);
|
|
31
|
+
if (persist) {
|
|
32
|
+
try { window.localStorage.setItem(THEME_STORAGE_KEY, theme.id); } catch (e) { /* storage blocked */ }
|
|
33
|
+
}
|
|
34
|
+
root.dispatchEvent(new CustomEvent(THEME_CHANGE_EVENT, { detail: theme, bubbles: true }));
|
|
35
|
+
return theme;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Apply the saved theme, or `fallback` when nothing (valid) is saved.
|
|
40
|
+
* Call once at startup.
|
|
41
|
+
*/
|
|
42
|
+
export function initTheme(fallback = DEFAULT_THEME, options = {}) {
|
|
43
|
+
let saved = null;
|
|
44
|
+
try { saved = window.localStorage.getItem(THEME_STORAGE_KEY); } catch (e) { /* storage blocked */ }
|
|
45
|
+
return setTheme(getTheme(saved) ? saved : fallback, { persist: false, ...options });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { themes, DEFAULT_THEME };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "apollo-white",
|
|
3
|
+
"name": "Apollo White",
|
|
4
|
+
"mode": "light",
|
|
5
|
+
"status": "demo",
|
|
6
|
+
"order": 1,
|
|
7
|
+
"keywords": "Bright. Refined. Minimal.",
|
|
8
|
+
"summary": "Pure white and quiet greys, with color only where it means something.",
|
|
9
|
+
"description": "Marble in morning light. The chrome steps back into pure white and quiet greys, so color only appears where it means something: blue for what runs, violet for what decides, raspberry for what renders.",
|
|
10
|
+
"bestFor": "Documentation, forms, long reading, daylight work and anything that gets printed.",
|
|
11
|
+
"showcase": {
|
|
12
|
+
"label": "text-subtle",
|
|
13
|
+
"title": "text",
|
|
14
|
+
"tagline": "text-subtle",
|
|
15
|
+
"swatches": [
|
|
16
|
+
"accent",
|
|
17
|
+
"syntax-keyword",
|
|
18
|
+
"syntax-tag",
|
|
19
|
+
"surface",
|
|
20
|
+
"syntax-string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"bg": "#FFFFFF",
|
|
25
|
+
"bg-alt": "#F5F6F8",
|
|
26
|
+
"bg-deep": "#EEF0F4",
|
|
27
|
+
"surface": "#F0F2F5",
|
|
28
|
+
"surface-hover": "#E6E9EF",
|
|
29
|
+
"border": "#E2E5EB",
|
|
30
|
+
"border-strong": "#868E9E",
|
|
31
|
+
"text": "#242938",
|
|
32
|
+
"text-muted": "#4A5163",
|
|
33
|
+
"text-subtle": "#687080",
|
|
34
|
+
"accent": "#245CC7",
|
|
35
|
+
"accent-fill": "#245CC7",
|
|
36
|
+
"on-accent": "#FFFFFF",
|
|
37
|
+
"accent-soft": "rgba(36, 92, 199, 0.10)",
|
|
38
|
+
"selection": "#E5EDFF",
|
|
39
|
+
"cursor": "#245CC7",
|
|
40
|
+
"success": "#168367",
|
|
41
|
+
"warning": "#9A5B00",
|
|
42
|
+
"danger": "#C42B3B",
|
|
43
|
+
"info": "#245CC7",
|
|
44
|
+
"syntax-comment": "#687080",
|
|
45
|
+
"syntax-keyword": "#8952BD",
|
|
46
|
+
"syntax-function": "#245CC7",
|
|
47
|
+
"syntax-tag": "#C44067",
|
|
48
|
+
"syntax-attr": "#9A5B00",
|
|
49
|
+
"syntax-string": "#168367",
|
|
50
|
+
"syntax-number": "#B04A00"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "arcane",
|
|
3
|
+
"name": "Arcane",
|
|
4
|
+
"mode": "dark",
|
|
5
|
+
"status": "demo",
|
|
6
|
+
"order": 7,
|
|
7
|
+
"keywords": "Mystic. Charged. Forbidden.",
|
|
8
|
+
"summary": "Deep violet shadows charged with orchid and magenta.",
|
|
9
|
+
"description": "Knowledge meant for few. Deep violet shadows charged with orchid and magenta, like a spell caught mid-cast. Calm surfaces, then a crackle of color exactly where the power is.",
|
|
10
|
+
"bestFor": "Music and art apps, creative tools and night modes with personality.",
|
|
11
|
+
"showcase": {
|
|
12
|
+
"label": "syntax-keyword",
|
|
13
|
+
"title": "accent",
|
|
14
|
+
"tagline": "text-muted",
|
|
15
|
+
"swatches": [
|
|
16
|
+
"accent",
|
|
17
|
+
"syntax-keyword",
|
|
18
|
+
"accent-fill",
|
|
19
|
+
"syntax-string",
|
|
20
|
+
"syntax-number"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"bg": "#120B1F",
|
|
25
|
+
"bg-alt": "#0E0818",
|
|
26
|
+
"bg-deep": "#0A0612",
|
|
27
|
+
"surface": "#1C1230",
|
|
28
|
+
"surface-hover": "#26193F",
|
|
29
|
+
"border": "#2E2147",
|
|
30
|
+
"border-strong": "#76619F",
|
|
31
|
+
"text": "#ECE3FF",
|
|
32
|
+
"text-muted": "#BFAEE3",
|
|
33
|
+
"text-subtle": "#9381B8",
|
|
34
|
+
"accent": "#C77DFF",
|
|
35
|
+
"accent-fill": "#9D4EDD",
|
|
36
|
+
"on-accent": "#FFFFFF",
|
|
37
|
+
"accent-soft": "rgba(199, 125, 255, 0.16)",
|
|
38
|
+
"selection": "#3A2560",
|
|
39
|
+
"cursor": "#FF4FD8",
|
|
40
|
+
"success": "#7EE8C6",
|
|
41
|
+
"warning": "#FFD166",
|
|
42
|
+
"danger": "#FF4F8B",
|
|
43
|
+
"info": "#7AA2F7",
|
|
44
|
+
"syntax-comment": "#9D8CC2",
|
|
45
|
+
"syntax-keyword": "#FF4FD8",
|
|
46
|
+
"syntax-function": "#C77DFF",
|
|
47
|
+
"syntax-tag": "#FF79C6",
|
|
48
|
+
"syntax-attr": "#E0AAFF",
|
|
49
|
+
"syntax-string": "#7EE8C6",
|
|
50
|
+
"syntax-number": "#FFD166"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "dopamine",
|
|
3
|
+
"name": "Dopamine",
|
|
4
|
+
"mode": "light",
|
|
5
|
+
"status": "demo",
|
|
6
|
+
"order": 2,
|
|
7
|
+
"keywords": "Vivid. Joyful. Addictive.",
|
|
8
|
+
"summary": "Warm cream paper with saturated pink, purple and blue.",
|
|
9
|
+
"description": "Named after the brain's reward chemical. Warm cream paper, then color that wants to be clicked: hot pink for action, electric purple for logic, a confident blue for anything that moves. Every interaction should feel like a small win.",
|
|
10
|
+
"bestFor": "Playful products, onboarding, celebrations, social and anything where delight is the point.",
|
|
11
|
+
"showcase": {
|
|
12
|
+
"label": "accent",
|
|
13
|
+
"title": "accent",
|
|
14
|
+
"tagline": "text-muted",
|
|
15
|
+
"swatches": [
|
|
16
|
+
"accent-fill",
|
|
17
|
+
"syntax-keyword",
|
|
18
|
+
"syntax-function",
|
|
19
|
+
"syntax-number",
|
|
20
|
+
"syntax-string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"bg": "#FFFCF7",
|
|
25
|
+
"bg-alt": "#FFF5EA",
|
|
26
|
+
"bg-deep": "#FDEBDB",
|
|
27
|
+
"surface": "#FFEFE4",
|
|
28
|
+
"surface-hover": "#FFE3D4",
|
|
29
|
+
"border": "#F3DACB",
|
|
30
|
+
"border-strong": "#A67F72",
|
|
31
|
+
"text": "#2B1B3D",
|
|
32
|
+
"text-muted": "#55446A",
|
|
33
|
+
"text-subtle": "#7D6A8F",
|
|
34
|
+
"accent": "#C8186F",
|
|
35
|
+
"accent-fill": "#D81B7A",
|
|
36
|
+
"on-accent": "#FFFFFF",
|
|
37
|
+
"accent-soft": "rgba(216, 27, 122, 0.10)",
|
|
38
|
+
"selection": "#FFD6EC",
|
|
39
|
+
"cursor": "#D81B7A",
|
|
40
|
+
"success": "#0B7A52",
|
|
41
|
+
"warning": "#A35200",
|
|
42
|
+
"danger": "#C71F37",
|
|
43
|
+
"info": "#1A5FD0",
|
|
44
|
+
"syntax-comment": "#76658A",
|
|
45
|
+
"syntax-keyword": "#7B2FF7",
|
|
46
|
+
"syntax-function": "#1A5FD0",
|
|
47
|
+
"syntax-tag": "#C8186F",
|
|
48
|
+
"syntax-attr": "#A35200",
|
|
49
|
+
"syntax-string": "#0B7A52",
|
|
50
|
+
"syntax-number": "#B8400A"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// The NURVUS themes. Each one is a complete, standalone palette: every role
|
|
2
|
+
// token has a value, and no theme inherits from another. Add a theme by adding
|
|
3
|
+
// a JSON file here (see roles.json for what each token is for) and listing it
|
|
4
|
+
// below; tools/build-tokens.js turns them into [data-theme="<id>"] CSS blocks.
|
|
5
|
+
import apolloWhite from './apollo-white.json';
|
|
6
|
+
import dopamine from './dopamine.json';
|
|
7
|
+
import tokyoNeon from './tokyo-neon.json';
|
|
8
|
+
import nether from './nether.json';
|
|
9
|
+
import netherNeon from './nether-neon.json';
|
|
10
|
+
import outworld from './outworld.json';
|
|
11
|
+
import arcane from './arcane.json';
|
|
12
|
+
import roles from './roles.json';
|
|
13
|
+
|
|
14
|
+
/** All themes, in display order (light first). */
|
|
15
|
+
export const themes = [apolloWhite, dopamine, tokyoNeon, nether, netherNeon, outworld, arcane]
|
|
16
|
+
.sort((a, b) => a.order - b.order);
|
|
17
|
+
|
|
18
|
+
/** The theme a page gets with no data-theme attribute at all. */
|
|
19
|
+
export const DEFAULT_THEME = 'apollo-white';
|
|
20
|
+
|
|
21
|
+
/** What each role token is for, and the contrast it must meet. */
|
|
22
|
+
export { roles };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "nether-neon",
|
|
3
|
+
"name": "Nether Neon",
|
|
4
|
+
"mode": "dark",
|
|
5
|
+
"status": "demo",
|
|
6
|
+
"order": 5,
|
|
7
|
+
"keywords": "Deep. Wired. Electric.",
|
|
8
|
+
"summary": "Nether's near-black greys and violet, with the code lit in neon.",
|
|
9
|
+
"description": "Nether with the lights on. The same near-black ground, the same true greys and the same single violet for actions, but the code glows: cyan for what runs, pink for what renders, violet for what decides, lime for what it says.",
|
|
10
|
+
"bestFor": "Code-heavy tools that want Nether's calm chrome without giving up syntax color.",
|
|
11
|
+
"showcase": {
|
|
12
|
+
"label": "text-subtle",
|
|
13
|
+
"title": "syntax-function",
|
|
14
|
+
"tagline": "text",
|
|
15
|
+
"swatches": [
|
|
16
|
+
"accent-fill",
|
|
17
|
+
"syntax-function",
|
|
18
|
+
"syntax-tag",
|
|
19
|
+
"syntax-number",
|
|
20
|
+
"syntax-string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"bg": "#0B0C10",
|
|
25
|
+
"bg-alt": "#0F1015",
|
|
26
|
+
"bg-deep": "#08090C",
|
|
27
|
+
"surface": "#17181F",
|
|
28
|
+
"surface-hover": "#1F2129",
|
|
29
|
+
"border": "#22242D",
|
|
30
|
+
"border-strong": "#5E6272",
|
|
31
|
+
"text": "#E7E9EE",
|
|
32
|
+
"text-muted": "#B4B8C4",
|
|
33
|
+
"text-subtle": "#8B90A0",
|
|
34
|
+
"accent": "#8A89FA",
|
|
35
|
+
"accent-fill": "#504FF6",
|
|
36
|
+
"on-accent": "#FFFFFF",
|
|
37
|
+
"accent-soft": "rgba(110, 109, 248, 0.16)",
|
|
38
|
+
"selection": "#26264A",
|
|
39
|
+
"cursor": "#00F5FF",
|
|
40
|
+
"success": "#5FD08A",
|
|
41
|
+
"warning": "#F5B83D",
|
|
42
|
+
"danger": "#FF6B6B",
|
|
43
|
+
"info": "#00D5FF",
|
|
44
|
+
"syntax-comment": "#8B90A0",
|
|
45
|
+
"syntax-keyword": "#BB9AF7",
|
|
46
|
+
"syntax-function": "#00D5FF",
|
|
47
|
+
"syntax-tag": "#FF4FD8",
|
|
48
|
+
"syntax-attr": "#FF9E64",
|
|
49
|
+
"syntax-string": "#9ECE6A",
|
|
50
|
+
"syntax-number": "#FF9E64"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "nether",
|
|
3
|
+
"name": "Nether",
|
|
4
|
+
"mode": "dark",
|
|
5
|
+
"status": "demo",
|
|
6
|
+
"order": 4,
|
|
7
|
+
"keywords": "Deep. Silent. Absolute.",
|
|
8
|
+
"summary": "Near-black and true greys, with one NURVUS violet accent.",
|
|
9
|
+
"description": "The world below. Near-black ground and true greys with no tint at all, and a single NURVUS violet that only shows up where you act. Nothing glows unless it has to.",
|
|
10
|
+
"bestFor": "Focus modes, long sessions, media and canvases where the content should be the only light in the room.",
|
|
11
|
+
"showcase": {
|
|
12
|
+
"label": "text-subtle",
|
|
13
|
+
"title": "text",
|
|
14
|
+
"tagline": "text-muted",
|
|
15
|
+
"swatches": [
|
|
16
|
+
"accent-fill",
|
|
17
|
+
"accent",
|
|
18
|
+
"text-muted",
|
|
19
|
+
"surface-hover",
|
|
20
|
+
"warning"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"bg": "#0B0C10",
|
|
25
|
+
"bg-alt": "#0F1015",
|
|
26
|
+
"bg-deep": "#08090C",
|
|
27
|
+
"surface": "#17181F",
|
|
28
|
+
"surface-hover": "#1F2129",
|
|
29
|
+
"border": "#22242D",
|
|
30
|
+
"border-strong": "#5E6272",
|
|
31
|
+
"text": "#E7E9EE",
|
|
32
|
+
"text-muted": "#B4B8C4",
|
|
33
|
+
"text-subtle": "#8B90A0",
|
|
34
|
+
"accent": "#8A89FA",
|
|
35
|
+
"accent-fill": "#504FF6",
|
|
36
|
+
"on-accent": "#FFFFFF",
|
|
37
|
+
"accent-soft": "rgba(110, 109, 248, 0.16)",
|
|
38
|
+
"selection": "#26264A",
|
|
39
|
+
"cursor": "#8A89FA",
|
|
40
|
+
"success": "#5FD08A",
|
|
41
|
+
"warning": "#F5B83D",
|
|
42
|
+
"danger": "#FF6B6B",
|
|
43
|
+
"info": "#8A89FA",
|
|
44
|
+
"syntax-comment": "#8B90A0",
|
|
45
|
+
"syntax-keyword": "#A5A4FB",
|
|
46
|
+
"syntax-function": "#F5F6F8",
|
|
47
|
+
"syntax-tag": "#8A89FA",
|
|
48
|
+
"syntax-attr": "#C9CCD6",
|
|
49
|
+
"syntax-string": "#B4B8C4",
|
|
50
|
+
"syntax-number": "#F5B83D"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "outworld",
|
|
3
|
+
"name": "Outworld",
|
|
4
|
+
"mode": "dark",
|
|
5
|
+
"status": "demo",
|
|
6
|
+
"order": 6,
|
|
7
|
+
"keywords": "Alien. Molten. Untamed.",
|
|
8
|
+
"summary": "Plum dusk with molten amber, ember red and an acid green.",
|
|
9
|
+
"description": "A realm under a strange sky. Deep plum dusk lit by molten amber and ember red, with an acid green that doesn't belong to this world. Warm where every other dark theme is cold.",
|
|
10
|
+
"bestFor": "Games, creative tools and launch pages that should feel like stepping somewhere else.",
|
|
11
|
+
"showcase": {
|
|
12
|
+
"label": "syntax-keyword",
|
|
13
|
+
"title": "accent",
|
|
14
|
+
"tagline": "text",
|
|
15
|
+
"swatches": [
|
|
16
|
+
"accent",
|
|
17
|
+
"syntax-function",
|
|
18
|
+
"syntax-tag",
|
|
19
|
+
"syntax-keyword",
|
|
20
|
+
"syntax-string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"bg": "#1A1020",
|
|
25
|
+
"bg-alt": "#140C19",
|
|
26
|
+
"bg-deep": "#0F0913",
|
|
27
|
+
"surface": "#24172A",
|
|
28
|
+
"surface-hover": "#2E1E35",
|
|
29
|
+
"border": "#38253F",
|
|
30
|
+
"border-strong": "#7D6385",
|
|
31
|
+
"text": "#F3E6E0",
|
|
32
|
+
"text-muted": "#CDB7BD",
|
|
33
|
+
"text-subtle": "#9C8496",
|
|
34
|
+
"accent": "#FF8A3D",
|
|
35
|
+
"accent-fill": "#FF8A3D",
|
|
36
|
+
"on-accent": "#1A1020",
|
|
37
|
+
"accent-soft": "rgba(255, 138, 61, 0.14)",
|
|
38
|
+
"selection": "#3E2442",
|
|
39
|
+
"cursor": "#FFB35C",
|
|
40
|
+
"success": "#9BE564",
|
|
41
|
+
"warning": "#FFC857",
|
|
42
|
+
"danger": "#FF5470",
|
|
43
|
+
"info": "#C792EA",
|
|
44
|
+
"syntax-comment": "#A08A99",
|
|
45
|
+
"syntax-keyword": "#C792EA",
|
|
46
|
+
"syntax-function": "#FFB35C",
|
|
47
|
+
"syntax-tag": "#FF6B5B",
|
|
48
|
+
"syntax-attr": "#FFC857",
|
|
49
|
+
"syntax-string": "#9BE564",
|
|
50
|
+
"syntax-number": "#FF8A3D"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bg": { "group": "Surfaces", "use": "Main background: the page, the editor, panels that hold code." },
|
|
3
|
+
"bg-alt": { "group": "Surfaces", "use": "Second background: sidebars, headers, secondary panes." },
|
|
4
|
+
"bg-deep": { "group": "Surfaces", "use": "Deepest background: activity bar, wells, the canvas behind panels." },
|
|
5
|
+
"surface": { "group": "Surfaces", "use": "Element fill: tab bars, status bars, cards, table headers.", "check": { "against": ["bg"], "min": 1, "note": "a step away from bg" } },
|
|
6
|
+
"surface-hover": { "group": "Surfaces", "use": "Element fill on hover or press." },
|
|
7
|
+
"border": { "group": "Surfaces", "use": "Hairlines that separate areas. Decorative, so no contrast minimum." },
|
|
8
|
+
"border-strong": { "group": "Surfaces", "use": "Edges that define a control, like an input box.", "check": { "against": ["bg"], "min": 3 } },
|
|
9
|
+
"text": { "group": "Text", "use": "Body copy and headings.", "check": { "against": ["bg", "surface"], "min": 4.5 } },
|
|
10
|
+
"text-muted": { "group": "Text", "use": "Secondary text: labels, captions, meta.", "check": { "against": ["bg", "surface"], "min": 4.5 } },
|
|
11
|
+
"text-subtle": { "group": "Text", "use": "Placeholders, disabled and hints. Never for anything the reader must read.", "check": { "against": ["bg"], "min": 3 } },
|
|
12
|
+
"accent": { "group": "Accent", "use": "Links, focus rings, active marks and icons.", "check": { "against": ["bg", "surface"], "min": 4.5 } },
|
|
13
|
+
"accent-fill": { "group": "Accent", "use": "Solid fill of primary buttons and active pills.", "check": { "against": ["bg"], "min": 3 } },
|
|
14
|
+
"on-accent": { "group": "Accent", "use": "Text and icons on accent-fill.", "check": { "against": ["accent-fill"], "min": 4.5 } },
|
|
15
|
+
"accent-soft": { "group": "Accent", "use": "Tinted wash behind selected or active rows." },
|
|
16
|
+
"selection": { "group": "Accent", "use": "Background of selected text and code." },
|
|
17
|
+
"cursor": { "group": "Accent", "use": "Text cursor in editors and inputs.", "check": { "against": ["bg"], "min": 3 } },
|
|
18
|
+
"success": { "group": "Status", "use": "Success text, icons and progress.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
19
|
+
"warning": { "group": "Status", "use": "Warnings, and attention marks such as keyframes.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
20
|
+
"danger": { "group": "Status", "use": "Errors and destructive actions.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
21
|
+
"info": { "group": "Status", "use": "Neutral notices and hints.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
22
|
+
"syntax-comment": { "group": "Code", "use": "Comments.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
23
|
+
"syntax-keyword": { "group": "Code", "use": "Keywords: const, return, import, if.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
24
|
+
"syntax-function": { "group": "Code", "use": "Function and component names, CSS selectors.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
25
|
+
"syntax-tag": { "group": "Code", "use": "HTML and JSX tags.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
26
|
+
"syntax-attr": { "group": "Code", "use": "Attributes and CSS properties.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
27
|
+
"syntax-string": { "group": "Code", "use": "Strings.", "check": { "against": ["bg"], "min": 4.5 } },
|
|
28
|
+
"syntax-number": { "group": "Code", "use": "Numbers, units and constants.", "check": { "against": ["bg"], "min": 4.5 } }
|
|
29
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tokyo-neon",
|
|
3
|
+
"name": "Tokyo Neon",
|
|
4
|
+
"mode": "dark",
|
|
5
|
+
"status": "demo",
|
|
6
|
+
"order": 3,
|
|
7
|
+
"keywords": "Electric. Immersive. Futuristic.",
|
|
8
|
+
"summary": "Midnight navy with neon code colors.",
|
|
9
|
+
"description": "Shibuya, 2 a.m.: rain on the glass, the signs still humming. The surfaces sink into deep midnight so the neon can do the talking: cyan for what runs, pink for what renders, violet for what decides.",
|
|
10
|
+
"bestFor": "Code editors, creative tools, dashboards and night work.",
|
|
11
|
+
"showcase": {
|
|
12
|
+
"label": "info",
|
|
13
|
+
"title": "syntax-function",
|
|
14
|
+
"tagline": "text",
|
|
15
|
+
"swatches": [
|
|
16
|
+
"syntax-function",
|
|
17
|
+
"syntax-keyword",
|
|
18
|
+
"syntax-tag",
|
|
19
|
+
"syntax-number",
|
|
20
|
+
"syntax-string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"colors": {
|
|
24
|
+
"bg": "#141625",
|
|
25
|
+
"bg-alt": "#10111F",
|
|
26
|
+
"bg-deep": "#0C0D18",
|
|
27
|
+
"surface": "#191B2E",
|
|
28
|
+
"surface-hover": "#21243B",
|
|
29
|
+
"border": "#262A45",
|
|
30
|
+
"border-strong": "#5D6488",
|
|
31
|
+
"text": "#D6DEFF",
|
|
32
|
+
"text-muted": "#A9B1D6",
|
|
33
|
+
"text-subtle": "#6B728E",
|
|
34
|
+
"accent": "#8A89FA",
|
|
35
|
+
"accent-fill": "#504FF6",
|
|
36
|
+
"on-accent": "#FFFFFF",
|
|
37
|
+
"accent-soft": "rgba(110, 109, 248, 0.16)",
|
|
38
|
+
"selection": "#2A2E52",
|
|
39
|
+
"cursor": "#00F5FF",
|
|
40
|
+
"success": "#9ECE6A",
|
|
41
|
+
"warning": "#E0AF68",
|
|
42
|
+
"danger": "#FF5C8A",
|
|
43
|
+
"info": "#7AA2F7",
|
|
44
|
+
"syntax-comment": "#8A92B2",
|
|
45
|
+
"syntax-keyword": "#BB9AF7",
|
|
46
|
+
"syntax-function": "#00D5FF",
|
|
47
|
+
"syntax-tag": "#FF4FD8",
|
|
48
|
+
"syntax-attr": "#FF9E64",
|
|
49
|
+
"syntax-string": "#9ECE6A",
|
|
50
|
+
"syntax-number": "#FF9E64"
|
|
51
|
+
}
|
|
52
|
+
}
|