@nurvus/ui 0.1.0-alpha.10 → 0.1.0-alpha.12

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.
Files changed (128) hide show
  1. package/README.md +26 -11
  2. package/dist/index.js +1 -1
  3. package/dist/nurvus.css +14 -0
  4. package/dist/respawn.js +2 -0
  5. package/dist/respawn.js.LICENSE.txt +5 -0
  6. package/dist/theme.js +1 -0
  7. package/dist/themes/all.css +231 -0
  8. package/dist/themes/apollo-white.css +33 -0
  9. package/dist/themes/apollo-white.json +52 -0
  10. package/dist/themes/arcane.css +33 -0
  11. package/dist/themes/arcane.json +52 -0
  12. package/dist/themes/dopamine.css +33 -0
  13. package/dist/themes/dopamine.json +52 -0
  14. package/dist/themes/nether-neon.css +33 -0
  15. package/dist/themes/nether-neon.json +52 -0
  16. package/dist/themes/nether.css +33 -0
  17. package/dist/themes/nether.json +52 -0
  18. package/dist/themes/outworld.css +33 -0
  19. package/dist/themes/outworld.json +52 -0
  20. package/dist/themes/roles.json +29 -0
  21. package/dist/themes/tokyo-neon.css +33 -0
  22. package/dist/themes/tokyo-neon.json +52 -0
  23. package/dist/types/components/Button/Button.d.ts +19 -0
  24. package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +12 -0
  25. package/dist/types/components/FullPageModal/FullPageModal.d.ts +15 -0
  26. package/dist/types/components/HistoryList/HistoryList.d.ts +40 -0
  27. package/dist/types/components/Layout/Layout.d.ts +27 -0
  28. package/dist/types/components/Link/Link.d.ts +9 -0
  29. package/dist/types/components/Menu/Menu.d.ts +35 -0
  30. package/dist/types/components/Panel/Panel.d.ts +19 -0
  31. package/dist/types/components/Progress/Progress.d.ts +15 -0
  32. package/dist/types/components/Table/Table.d.ts +25 -0
  33. package/dist/types/components/Tag/Tag.d.ts +15 -0
  34. package/dist/types/components/Text/Text.d.ts +28 -0
  35. package/dist/types/components/Title/Title.d.ts +288 -0
  36. package/dist/types/constants.d.ts +5 -0
  37. package/dist/types/index.d.ts +30 -0
  38. package/dist/types/respawn/Button.d.ts +16 -0
  39. package/dist/types/respawn/ButtonGroup.d.ts +8 -0
  40. package/dist/types/respawn/FullPageModal.d.ts +32 -0
  41. package/dist/types/respawn/HistoryList.d.ts +36 -0
  42. package/dist/types/respawn/Layout.d.ts +22 -0
  43. package/dist/types/respawn/Link.d.ts +12 -0
  44. package/dist/types/respawn/Menu.d.ts +33 -0
  45. package/dist/types/respawn/Panel.d.ts +15 -0
  46. package/dist/types/respawn/Progress.d.ts +15 -0
  47. package/dist/types/respawn/Table.d.ts +22 -0
  48. package/dist/types/respawn/Tag.d.ts +11 -0
  49. package/dist/types/respawn/Text.d.ts +19 -0
  50. package/dist/types/respawn/Title.d.ts +14 -0
  51. package/dist/types/respawn/index.d.ts +33 -0
  52. package/dist/types/respawn/spawn.d.ts +50 -0
  53. package/dist/types/respawn/update.d.ts +13 -0
  54. package/dist/types/spacing.d.ts +8 -0
  55. package/dist/types/theme.d.ts +32 -0
  56. package/dist/types/themes/index.d.ts +45 -0
  57. package/package.json +42 -12
  58. package/src/components/Button/Button.md +5 -5
  59. package/src/components/Button/Button.tsx +44 -0
  60. package/src/components/ButtonGroup/ButtonGroup.tsx +23 -0
  61. package/src/components/FullPageModal/FullPageModal.scss +9 -5
  62. package/src/components/FullPageModal/FullPageModal.tsx +74 -0
  63. package/src/components/HistoryList/{HistoryList.jsx → HistoryList.tsx} +46 -59
  64. package/src/components/Layout/Layout.md +4 -4
  65. package/src/components/Layout/Layout.scss +14 -47
  66. package/src/components/Layout/Layout.tsx +56 -0
  67. package/src/components/Link/Link.scss +9 -9
  68. package/src/components/Link/Link.tsx +23 -0
  69. package/src/components/Menu/Menu.tsx +90 -0
  70. package/src/components/Panel/{Panel.jsx → Panel.tsx} +18 -27
  71. package/src/components/Progress/Progress.md +5 -5
  72. package/src/components/Progress/Progress.tsx +36 -0
  73. package/src/components/Table/Table.tsx +59 -0
  74. package/src/components/Tag/Tag.tsx +36 -0
  75. package/src/components/Text/Text.md +13 -0
  76. package/src/components/Text/Text.scss +6 -0
  77. package/src/components/Text/Text.tsx +54 -0
  78. package/src/components/Title/Title.tsx +42 -0
  79. package/src/constants.ts +6 -0
  80. package/src/css.ts +16 -0
  81. package/src/global.d.ts +3 -0
  82. package/src/index.ts +40 -0
  83. package/src/respawn/Button.ts +31 -0
  84. package/src/respawn/ButtonGroup.ts +19 -0
  85. package/src/respawn/FullPageModal.ts +125 -0
  86. package/src/respawn/HistoryList.ts +100 -0
  87. package/src/respawn/Layout.ts +44 -0
  88. package/src/respawn/Link.ts +24 -0
  89. package/src/respawn/Menu.ts +86 -0
  90. package/src/respawn/Panel.ts +36 -0
  91. package/src/respawn/Progress.ts +29 -0
  92. package/src/respawn/Table.ts +54 -0
  93. package/src/respawn/Tag.ts +25 -0
  94. package/src/respawn/Text.ts +35 -0
  95. package/src/respawn/Title.ts +30 -0
  96. package/src/respawn/index.ts +57 -0
  97. package/src/respawn/spawn.ts +155 -0
  98. package/src/respawn/update.ts +49 -0
  99. package/src/spacing.ts +23 -0
  100. package/src/styles/theme.scss +6 -197
  101. package/src/styles/type.json +35 -5
  102. package/src/theme.ts +92 -0
  103. package/src/themes/css/all.css +231 -0
  104. package/src/themes/css/apollo-white.css +33 -0
  105. package/src/themes/css/arcane.css +33 -0
  106. package/src/themes/css/dopamine.css +33 -0
  107. package/src/themes/css/nether-neon.css +33 -0
  108. package/src/themes/css/nether.css +33 -0
  109. package/src/themes/css/outworld.css +33 -0
  110. package/src/themes/css/tokyo-neon.css +33 -0
  111. package/src/themes/index.ts +61 -0
  112. package/src/themes/roles.json +1 -1
  113. package/src/app.js +0 -29
  114. package/src/components/Button/Button.jsx +0 -59
  115. package/src/components/ButtonGroup/ButtonGroup.jsx +0 -28
  116. package/src/components/FullPageModal/FullPageModal.jsx +0 -106
  117. package/src/components/Layout/Layout.jsx +0 -68
  118. package/src/components/Link/Link.jsx +0 -39
  119. package/src/components/Menu/Menu.jsx +0 -120
  120. package/src/components/Progress/Progress.jsx +0 -56
  121. package/src/components/Table/Table.jsx +0 -94
  122. package/src/components/Tag/Tag.jsx +0 -41
  123. package/src/components/Text/Text.jsx +0 -54
  124. package/src/components/Title/Title.jsx +0 -48
  125. package/src/constants.js +0 -3
  126. package/src/index.js +0 -20
  127. package/src/theme.js +0 -48
  128. package/src/themes/index.js +0 -22
@@ -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,33 @@
1
+ /* GENERATED by tools/build-tokens.js from src/themes/*.json. Do not edit. */
2
+ /* Dopamine: Vivid. Joyful. Addictive. (light, demo) */
3
+ [data-theme="dopamine"] {
4
+ color-scheme: light;
5
+ --nv-theme-id: dopamine;
6
+ --nv-bg: #FFFCF7;
7
+ --nv-bg-alt: #FFF5EA;
8
+ --nv-bg-deep: #FDEBDB;
9
+ --nv-surface: #FFEFE4;
10
+ --nv-surface-hover: #FFE3D4;
11
+ --nv-border: #F3DACB;
12
+ --nv-border-strong: #A67F72;
13
+ --nv-text: #2B1B3D;
14
+ --nv-text-muted: #55446A;
15
+ --nv-text-subtle: #7D6A8F;
16
+ --nv-accent: #C8186F;
17
+ --nv-accent-fill: #D81B7A;
18
+ --nv-on-accent: #FFFFFF;
19
+ --nv-accent-soft: rgba(216, 27, 122, 0.10);
20
+ --nv-selection: #FFD6EC;
21
+ --nv-cursor: #D81B7A;
22
+ --nv-success: #0B7A52;
23
+ --nv-warning: #A35200;
24
+ --nv-danger: #C71F37;
25
+ --nv-info: #1A5FD0;
26
+ --nv-syntax-comment: #76658A;
27
+ --nv-syntax-keyword: #7B2FF7;
28
+ --nv-syntax-function: #1A5FD0;
29
+ --nv-syntax-tag: #C8186F;
30
+ --nv-syntax-attr: #A35200;
31
+ --nv-syntax-string: #0B7A52;
32
+ --nv-syntax-number: #B8400A;
33
+ }
@@ -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,33 @@
1
+ /* GENERATED by tools/build-tokens.js from src/themes/*.json. Do not edit. */
2
+ /* Nether Neon: Deep. Wired. Electric. (dark, demo) */
3
+ [data-theme="nether-neon"] {
4
+ color-scheme: dark;
5
+ --nv-theme-id: nether-neon;
6
+ --nv-bg: #0B0C10;
7
+ --nv-bg-alt: #0F1015;
8
+ --nv-bg-deep: #08090C;
9
+ --nv-surface: #17181F;
10
+ --nv-surface-hover: #1F2129;
11
+ --nv-border: #22242D;
12
+ --nv-border-strong: #5E6272;
13
+ --nv-text: #E7E9EE;
14
+ --nv-text-muted: #B4B8C4;
15
+ --nv-text-subtle: #8B90A0;
16
+ --nv-accent: #8A89FA;
17
+ --nv-accent-fill: #504FF6;
18
+ --nv-on-accent: #FFFFFF;
19
+ --nv-accent-soft: rgba(110, 109, 248, 0.16);
20
+ --nv-selection: #26264A;
21
+ --nv-cursor: #00F5FF;
22
+ --nv-success: #5FD08A;
23
+ --nv-warning: #F5B83D;
24
+ --nv-danger: #FF6B6B;
25
+ --nv-info: #00D5FF;
26
+ --nv-syntax-comment: #8B90A0;
27
+ --nv-syntax-keyword: #BB9AF7;
28
+ --nv-syntax-function: #00D5FF;
29
+ --nv-syntax-tag: #FF4FD8;
30
+ --nv-syntax-attr: #FF9E64;
31
+ --nv-syntax-string: #9ECE6A;
32
+ --nv-syntax-number: #FF9E64;
33
+ }
@@ -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,33 @@
1
+ /* GENERATED by tools/build-tokens.js from src/themes/*.json. Do not edit. */
2
+ /* Nether: Deep. Silent. Absolute. (dark, demo) */
3
+ [data-theme="nether"] {
4
+ color-scheme: dark;
5
+ --nv-theme-id: nether;
6
+ --nv-bg: #0B0C10;
7
+ --nv-bg-alt: #0F1015;
8
+ --nv-bg-deep: #08090C;
9
+ --nv-surface: #17181F;
10
+ --nv-surface-hover: #1F2129;
11
+ --nv-border: #22242D;
12
+ --nv-border-strong: #5E6272;
13
+ --nv-text: #E7E9EE;
14
+ --nv-text-muted: #B4B8C4;
15
+ --nv-text-subtle: #8B90A0;
16
+ --nv-accent: #8A89FA;
17
+ --nv-accent-fill: #504FF6;
18
+ --nv-on-accent: #FFFFFF;
19
+ --nv-accent-soft: rgba(110, 109, 248, 0.16);
20
+ --nv-selection: #26264A;
21
+ --nv-cursor: #8A89FA;
22
+ --nv-success: #5FD08A;
23
+ --nv-warning: #F5B83D;
24
+ --nv-danger: #FF6B6B;
25
+ --nv-info: #8A89FA;
26
+ --nv-syntax-comment: #8B90A0;
27
+ --nv-syntax-keyword: #A5A4FB;
28
+ --nv-syntax-function: #F5F6F8;
29
+ --nv-syntax-tag: #8A89FA;
30
+ --nv-syntax-attr: #C9CCD6;
31
+ --nv-syntax-string: #B4B8C4;
32
+ --nv-syntax-number: #F5B83D;
33
+ }
@@ -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,33 @@
1
+ /* GENERATED by tools/build-tokens.js from src/themes/*.json. Do not edit. */
2
+ /* Outworld: Alien. Molten. Untamed. (dark, demo) */
3
+ [data-theme="outworld"] {
4
+ color-scheme: dark;
5
+ --nv-theme-id: outworld;
6
+ --nv-bg: #1A1020;
7
+ --nv-bg-alt: #140C19;
8
+ --nv-bg-deep: #0F0913;
9
+ --nv-surface: #24172A;
10
+ --nv-surface-hover: #2E1E35;
11
+ --nv-border: #38253F;
12
+ --nv-border-strong: #7D6385;
13
+ --nv-text: #F3E6E0;
14
+ --nv-text-muted: #CDB7BD;
15
+ --nv-text-subtle: #9C8496;
16
+ --nv-accent: #FF8A3D;
17
+ --nv-accent-fill: #FF8A3D;
18
+ --nv-on-accent: #1A1020;
19
+ --nv-accent-soft: rgba(255, 138, 61, 0.14);
20
+ --nv-selection: #3E2442;
21
+ --nv-cursor: #FFB35C;
22
+ --nv-success: #9BE564;
23
+ --nv-warning: #FFC857;
24
+ --nv-danger: #FF5470;
25
+ --nv-info: #C792EA;
26
+ --nv-syntax-comment: #A08A99;
27
+ --nv-syntax-keyword: #C792EA;
28
+ --nv-syntax-function: #FFB35C;
29
+ --nv-syntax-tag: #FF6B5B;
30
+ --nv-syntax-attr: #FFC857;
31
+ --nv-syntax-string: #9BE564;
32
+ --nv-syntax-number: #FF8A3D;
33
+ }
@@ -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": "Disabled controls, large text and decoration. Not for text people need to read: WCAG asks 4.5:1 for normal-size text, and this role only has to reach 3:1.", "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,33 @@
1
+ /* GENERATED by tools/build-tokens.js from src/themes/*.json. Do not edit. */
2
+ /* Tokyo Neon: Electric. Immersive. Futuristic. (dark, demo) */
3
+ [data-theme="tokyo-neon"] {
4
+ color-scheme: dark;
5
+ --nv-theme-id: tokyo-neon;
6
+ --nv-bg: #141625;
7
+ --nv-bg-alt: #10111F;
8
+ --nv-bg-deep: #0C0D18;
9
+ --nv-surface: #191B2E;
10
+ --nv-surface-hover: #21243B;
11
+ --nv-border: #262A45;
12
+ --nv-border-strong: #5D6488;
13
+ --nv-text: #D6DEFF;
14
+ --nv-text-muted: #A9B1D6;
15
+ --nv-text-subtle: #6B728E;
16
+ --nv-accent: #8A89FA;
17
+ --nv-accent-fill: #504FF6;
18
+ --nv-on-accent: #FFFFFF;
19
+ --nv-accent-soft: rgba(110, 109, 248, 0.16);
20
+ --nv-selection: #2A2E52;
21
+ --nv-cursor: #00F5FF;
22
+ --nv-success: #9ECE6A;
23
+ --nv-warning: #E0AF68;
24
+ --nv-danger: #FF5C8A;
25
+ --nv-info: #7AA2F7;
26
+ --nv-syntax-comment: #8A92B2;
27
+ --nv-syntax-keyword: #BB9AF7;
28
+ --nv-syntax-function: #00D5FF;
29
+ --nv-syntax-tag: #FF4FD8;
30
+ --nv-syntax-attr: #FF9E64;
31
+ --nv-syntax-string: #9ECE6A;
32
+ --nv-syntax-number: #FF9E64;
33
+ }
@@ -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
+ }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export type ButtonSize = 'extra-large' | 'large' | 'medium' | 'small' | 'mini';
3
+ export type ButtonType = 'primary' | 'secondary';
4
+ export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
5
+ /** Size of the button. */
6
+ size?: ButtonSize;
7
+ /** Look: primary (filled with the accent) or secondary (quiet). Not the HTML type attribute. */
8
+ type?: ButtonType;
9
+ /** Content to render inside the button. */
10
+ children?: React.ReactNode;
11
+ /** Custom class name. */
12
+ className?: string;
13
+ }
14
+ /**
15
+ * A button. Any other prop (onClick, disabled, aria-*) goes on the `<button>`,
16
+ * and a ref reaches it too.
17
+ */
18
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
19
+ export default Button;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** The Buttons to join. */
4
+ children?: React.ReactNode;
5
+ /** Custom class name. */
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Joins Buttons into one row: square corners where they meet, rounded at the
10
+ * two outer ends. Any other prop goes on the wrapping `<div>`.
11
+ */
12
+ export default function ButtonGroup({ className, ...restProps }: ButtonGroupProps): React.ReactElement;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface FullPageModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
3
+ /** Shows the modal (animates in), or hides it (animates out). */
4
+ visible?: boolean;
5
+ /** Title in the modal's header. */
6
+ title?: React.ReactNode;
7
+ /** Buttons at the right of the header, e.g. Close. */
8
+ headerActions?: React.ReactNode;
9
+ /** The modal's content. */
10
+ children?: React.ReactNode;
11
+ /** Custom class name. */
12
+ className?: string;
13
+ }
14
+ /** Shows additional content over the whole screen, rendered into `<body>`. */
15
+ export default function FullPageModal({ children, className, headerActions, title, visible, ...restProps }: FullPageModalProps): React.ReactElement;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ export interface HistoryStep {
3
+ /** Unique id: keys the row. */
4
+ id: string | number;
5
+ /** What the step did. */
6
+ label: React.ReactNode;
7
+ /** A second line. */
8
+ detail?: React.ReactNode;
9
+ /** When it happened, as a timestamp in ms. */
10
+ time?: number;
11
+ }
12
+ export interface HistoryListProps extends React.OlHTMLAttributes<HTMLOListElement> {
13
+ /** Every step, OLDEST first. */
14
+ steps: HistoryStep[];
15
+ /**
16
+ * How many steps are applied: step N (1-based) is current when N === index,
17
+ * and 0 means everything is undone.
18
+ */
19
+ index: number;
20
+ /** Called with the step number to jump to (0 = the start row). */
21
+ onJump?: (step: number) => void;
22
+ /** Label of the bottom row, the state before any step. */
23
+ startLabel?: React.ReactNode;
24
+ /** Second line of the bottom row. */
25
+ startDetail?: React.ReactNode;
26
+ /** Formats a step's `time` for its row. Defaults to the locale time with seconds. */
27
+ formatTime?: (time: number) => React.ReactNode;
28
+ /** Custom class name. */
29
+ className?: string;
30
+ }
31
+ /**
32
+ * Undo history as a list (Photoshop's History panel): every step newest
33
+ * first with its number, what it did and when, the current step marked, the
34
+ * undone steps faded above it, and a "start" row at the bottom. Clicking any
35
+ * row jumps to that step.
36
+ *
37
+ * Purely presentational: the app owns the history and passes `steps` (oldest
38
+ * first) plus `index`, the number of steps currently applied.
39
+ */
40
+ export default function HistoryList({ className, formatTime, index, onJump, startDetail, startLabel, steps, ...restProps }: HistoryListProps): React.ReactElement | null;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { Spacing, LegacySpacing } from '../../spacing';
3
+ export type { Spacing, LegacySpacing };
4
+ export interface LayoutProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ /** `block` stacks the children top to bottom; `flex` puts them in a row. */
6
+ display?: 'block' | 'flex';
7
+ /** With `display="flex"`: `column` stacks the children instead of a row. */
8
+ flexDirection?: 'row' | 'column';
9
+ /** Space between the children, in px, from the 4px grid: 0, 2, 4, 8, 12, 16, 24, 32, 48 or 64. The old values (10, 13, 20, 30, 40) still work: they snap to the grid, with a console warning. */
10
+ itemSpacing?: Spacing | LegacySpacing;
11
+ /** With `display="flex"`: how the children line up across the row (CSS `align-items`). */
12
+ alignItems?: 'flex-start' | 'center' | 'flex-end';
13
+ /** With `display="flex"`: how the children spread along the row (CSS `justify-content`). */
14
+ justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between';
15
+ /** `block` makes every child `display: block` (e.g. links stacked one per line). */
16
+ itemDisplay?: 'block';
17
+ /** What to lay out. */
18
+ children?: React.ReactNode;
19
+ /** Custom class name. */
20
+ className?: string;
21
+ }
22
+ /**
23
+ * Stacks its children in a column (`block`) or a row (`flex`) with even
24
+ * space between them, from the 4px spacing grid. Any other prop goes on the
25
+ * wrapping `<div>`.
26
+ */
27
+ export default function Layout({ alignItems, className, display, flexDirection, justifyContent, itemDisplay, itemSpacing, ...restProps }: LayoutProps): React.ReactElement;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
+ /** Content to render. */
4
+ children?: React.ReactNode;
5
+ /** Custom class name. */
6
+ className?: string;
7
+ }
8
+ /** A link in the theme's accent color. Any other prop (href, target…) goes on the `<a>`. */
9
+ export default function Link({ children, className, ...restProps }: LinkProps): React.ReactElement;