@trishchuk/coolors-mcp 1.0.0

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 (197) hide show
  1. package/.claude/settings.local.json +39 -0
  2. package/.env +2 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +73 -0
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +71 -0
  5. package/.github/pull_request_template.md +97 -0
  6. package/.github/workflows/ci.yml +127 -0
  7. package/.github/workflows/deploy-docs.yml +56 -0
  8. package/.github/workflows/release.yml +99 -0
  9. package/.mcp.json +12 -0
  10. package/.prettierignore +1 -0
  11. package/CLAUDE.md +201 -0
  12. package/DOCUMENTATION.md +274 -0
  13. package/GEMINI.md +54 -0
  14. package/LICENSE +21 -0
  15. package/README.md +401 -0
  16. package/demo/content_based_color.png +0 -0
  17. package/demo/music-player.html +621 -0
  18. package/demo/podcast-player.html +903 -0
  19. package/dist/bin/coolors-mcp.d.ts +1 -0
  20. package/dist/bin/coolors-mcp.js +154 -0
  21. package/dist/bin/coolors-mcp.js.map +1 -0
  22. package/dist/bin/server.d.ts +1 -0
  23. package/dist/bin/server.js +3292 -0
  24. package/dist/bin/server.js.map +1 -0
  25. package/dist/chunk-IQ7NN26V.js +114 -0
  26. package/dist/chunk-IQ7NN26V.js.map +1 -0
  27. package/dist/chunk-P3ARRKLS.js +1214 -0
  28. package/dist/chunk-P3ARRKLS.js.map +1 -0
  29. package/dist/color/index.d.ts +716 -0
  30. package/dist/color/index.js +153 -0
  31. package/dist/color/index.js.map +1 -0
  32. package/dist/coolors-mcp.d.ts +136 -0
  33. package/dist/coolors-mcp.js +7 -0
  34. package/dist/coolors-mcp.js.map +1 -0
  35. package/docs/.vitepress/cache/deps/@braintree_sanitize-url.js +93 -0
  36. package/docs/.vitepress/cache/deps/@braintree_sanitize-url.js.map +7 -0
  37. package/docs/.vitepress/cache/deps/_metadata.json +127 -0
  38. package/docs/.vitepress/cache/deps/chunk-BUSYA2B4.js +9 -0
  39. package/docs/.vitepress/cache/deps/chunk-BUSYA2B4.js.map +7 -0
  40. package/docs/.vitepress/cache/deps/chunk-JD3CXNQ6.js +12683 -0
  41. package/docs/.vitepress/cache/deps/chunk-JD3CXNQ6.js.map +7 -0
  42. package/docs/.vitepress/cache/deps/chunk-SYPOPCWC.js +9719 -0
  43. package/docs/.vitepress/cache/deps/chunk-SYPOPCWC.js.map +7 -0
  44. package/docs/.vitepress/cache/deps/cytoscape-cose-bilkent.js +4710 -0
  45. package/docs/.vitepress/cache/deps/cytoscape-cose-bilkent.js.map +7 -0
  46. package/docs/.vitepress/cache/deps/cytoscape.js +30278 -0
  47. package/docs/.vitepress/cache/deps/cytoscape.js.map +7 -0
  48. package/docs/.vitepress/cache/deps/dayjs.js +285 -0
  49. package/docs/.vitepress/cache/deps/dayjs.js.map +7 -0
  50. package/docs/.vitepress/cache/deps/debug.js +468 -0
  51. package/docs/.vitepress/cache/deps/debug.js.map +7 -0
  52. package/docs/.vitepress/cache/deps/package.json +3 -0
  53. package/docs/.vitepress/cache/deps/prismjs.js +1466 -0
  54. package/docs/.vitepress/cache/deps/prismjs.js.map +7 -0
  55. package/docs/.vitepress/cache/deps/prismjs_components_prism-bash.js +228 -0
  56. package/docs/.vitepress/cache/deps/prismjs_components_prism-bash.js.map +7 -0
  57. package/docs/.vitepress/cache/deps/prismjs_components_prism-javascript.js +142 -0
  58. package/docs/.vitepress/cache/deps/prismjs_components_prism-javascript.js.map +7 -0
  59. package/docs/.vitepress/cache/deps/prismjs_components_prism-json.js +27 -0
  60. package/docs/.vitepress/cache/deps/prismjs_components_prism-json.js.map +7 -0
  61. package/docs/.vitepress/cache/deps/prismjs_components_prism-python.js +65 -0
  62. package/docs/.vitepress/cache/deps/prismjs_components_prism-python.js.map +7 -0
  63. package/docs/.vitepress/cache/deps/prismjs_components_prism-typescript.js +53 -0
  64. package/docs/.vitepress/cache/deps/prismjs_components_prism-typescript.js.map +7 -0
  65. package/docs/.vitepress/cache/deps/prismjs_components_prism-yaml.js +73 -0
  66. package/docs/.vitepress/cache/deps/prismjs_components_prism-yaml.js.map +7 -0
  67. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +4507 -0
  68. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
  69. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +584 -0
  70. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
  71. package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js +1146 -0
  72. package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js.map +7 -0
  73. package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js +1667 -0
  74. package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js.map +7 -0
  75. package/docs/.vitepress/cache/deps/vitepress___minisearch.js +1814 -0
  76. package/docs/.vitepress/cache/deps/vitepress___minisearch.js.map +7 -0
  77. package/docs/.vitepress/cache/deps/vue.js +344 -0
  78. package/docs/.vitepress/cache/deps/vue.js.map +7 -0
  79. package/docs/.vitepress/components/ClientGrid.vue +125 -0
  80. package/docs/.vitepress/components/CodeBlock.vue +231 -0
  81. package/docs/.vitepress/components/ConfigModal.vue +477 -0
  82. package/docs/.vitepress/components/DiagramModal.vue +528 -0
  83. package/docs/.vitepress/components/TroubleshootingModal.vue +472 -0
  84. package/docs/.vitepress/config.js +162 -0
  85. package/docs/.vitepress/theme/FundingLayout.vue +251 -0
  86. package/docs/.vitepress/theme/Layout.vue +134 -0
  87. package/docs/.vitepress/theme/components/AdBanner.vue +317 -0
  88. package/docs/.vitepress/theme/components/AdPlaceholder.vue +78 -0
  89. package/docs/.vitepress/theme/components/FundingEffects.vue +322 -0
  90. package/docs/.vitepress/theme/components/FundingHero.vue +345 -0
  91. package/docs/.vitepress/theme/components/SupportSection.vue +511 -0
  92. package/docs/.vitepress/theme/custom-app.css +339 -0
  93. package/docs/.vitepress/theme/custom.css +699 -0
  94. package/docs/.vitepress/theme/index.js +25 -0
  95. package/docs/README.md +198 -0
  96. package/docs/concepts/accessibility.md +473 -0
  97. package/docs/concepts/color-spaces.md +222 -0
  98. package/docs/concepts/distance-metrics.md +384 -0
  99. package/docs/concepts/hct.md +261 -0
  100. package/docs/concepts/image-analysis.md +396 -0
  101. package/docs/concepts/material-design.md +306 -0
  102. package/docs/concepts/theme-matching.md +399 -0
  103. package/docs/examples/basic-colors.md +490 -0
  104. package/docs/examples/creating-themes.md +898 -0
  105. package/docs/examples/css-refactoring.md +824 -0
  106. package/docs/examples/image-extraction.md +882 -0
  107. package/docs/getting-started.md +366 -0
  108. package/docs/index.md +190 -0
  109. package/docs/installation.md +157 -0
  110. package/docs/tools/README.md +234 -0
  111. package/docs/tools/accessibility.md +614 -0
  112. package/docs/tools/color-operations.md +374 -0
  113. package/docs/tools/image-extraction.md +624 -0
  114. package/docs/tools/material-design.md +347 -0
  115. package/docs/tools/theme-matching.md +552 -0
  116. package/eslint.config.ts +14 -0
  117. package/examples/theme-matching.md +113 -0
  118. package/jsr.json +7 -0
  119. package/mcp-config.json +8 -0
  120. package/note.md +35 -0
  121. package/package.json +122 -0
  122. package/research_results.md +53 -0
  123. package/src/bin/coolors-mcp.ts +194 -0
  124. package/src/bin/server.ts +61 -0
  125. package/src/color/__tests__/conversions-argb.test.ts +198 -0
  126. package/src/color/__tests__/extract-colors.test.ts +360 -0
  127. package/src/color/__tests__/image-utils.test.ts +242 -0
  128. package/src/color/__tests__/reference-colors.test.ts +278 -0
  129. package/src/color/__tests__/round-trip.test.ts +197 -0
  130. package/src/color/conversions.test.ts +402 -0
  131. package/src/color/conversions.ts +393 -0
  132. package/src/color/dislike/__tests__/dislike-analyzer.test.ts +248 -0
  133. package/src/color/dislike/dislike-analyzer.ts +114 -0
  134. package/src/color/extract-colors.ts +228 -0
  135. package/src/color/hct/__tests__/hct-class.test.ts +232 -0
  136. package/src/color/hct/harmonization.ts +204 -0
  137. package/src/color/hct/hct-class.ts +109 -0
  138. package/src/color/hct/hct-solver.ts +168 -0
  139. package/src/color/hct/index.ts +39 -0
  140. package/src/color/hct/tonal-palette.ts +211 -0
  141. package/src/color/hct/types.ts +88 -0
  142. package/src/color/image-utils.ts +79 -0
  143. package/src/color/index.ts +87 -0
  144. package/src/color/material-theme.ts +157 -0
  145. package/src/color/metrics.test.ts +276 -0
  146. package/src/color/metrics.ts +281 -0
  147. package/src/color/quantize/__tests__/quantizer_celebi.test.ts +195 -0
  148. package/src/color/quantize/lab_point_provider.ts +55 -0
  149. package/src/color/quantize/point_provider.ts +27 -0
  150. package/src/color/quantize/quantizer_celebi.ts +51 -0
  151. package/src/color/quantize/quantizer_celebi_test.ts +71 -0
  152. package/src/color/quantize/quantizer_map.ts +47 -0
  153. package/src/color/quantize/quantizer_wsmeans.ts +232 -0
  154. package/src/color/quantize/quantizer_wu.ts +472 -0
  155. package/src/color/score/__tests__/score.test.ts +224 -0
  156. package/src/color/score/score.ts +175 -0
  157. package/src/color/types.ts +151 -0
  158. package/src/color/utils/color_utils.ts +292 -0
  159. package/src/color/utils/math_utils.ts +145 -0
  160. package/src/color/utils.test.ts +403 -0
  161. package/src/color/utils.ts +315 -0
  162. package/src/constants.ts +5 -0
  163. package/src/coolors-mcp.ts +37 -0
  164. package/src/examples/addition.ts +333 -0
  165. package/src/examples/color-demo.ts +125 -0
  166. package/src/examples/custom-logger.ts +201 -0
  167. package/src/examples/oauth-server.ts +113 -0
  168. package/src/examples/session-context.ts +269 -0
  169. package/src/session.ts +116 -0
  170. package/src/theme/__tests__/matcher.test.ts +180 -0
  171. package/src/theme/__tests__/parser.test.ts +148 -0
  172. package/src/theme/__tests__/refactor.test.ts +224 -0
  173. package/src/theme/index.ts +34 -0
  174. package/src/theme/matcher.ts +395 -0
  175. package/src/theme/parser.ts +392 -0
  176. package/src/theme/refactor.ts +360 -0
  177. package/src/theme/types.ts +152 -0
  178. package/src/tools/__tests__/gradient-generator.test.ts +206 -0
  179. package/src/tools/__tests__/palette-with-locks.test.ts +109 -0
  180. package/src/tools/color-conversion.tool.ts +54 -0
  181. package/src/tools/color-distance.tool.ts +41 -0
  182. package/src/tools/colors.ts +31 -0
  183. package/src/tools/contrast-checker.tool.ts +37 -0
  184. package/src/tools/dislike-analyzer.tool.ts +247 -0
  185. package/src/tools/gradient-generator.tool.ts +250 -0
  186. package/src/tools/image-extraction.tools.ts +289 -0
  187. package/src/tools/index.ts +39 -0
  188. package/src/tools/material-theme.tools.ts +250 -0
  189. package/src/tools/palette-generator.tool.ts +135 -0
  190. package/src/tools/palette-with-locks.tool.ts +221 -0
  191. package/src/tools/registry.ts +142 -0
  192. package/src/tools/simple-tools.ts +37 -0
  193. package/src/tools/theme-matching.tools.ts +334 -0
  194. package/src/types.ts +182 -0
  195. package/src/utils.ts +22 -0
  196. package/tsconfig.json +8 -0
  197. package/vitest.config.js +15 -0
@@ -0,0 +1,511 @@
1
+ <template>
2
+ <div
3
+ class="support-section"
4
+ @mouseenter="handleSectionMouseEnter"
5
+ @mousemove="handleSectionMouseMove"
6
+ @mouseleave="handleSectionMouseLeave"
7
+ ref="sectionRef"
8
+ >
9
+ <div class="support-content">
10
+ <div class="support-header">
11
+ <div class="support-text">
12
+ <h3 class="support-title">Support Coolors MCP</h3>
13
+ <p class="support-description">
14
+ Does coolors-mcp help you?<br><br>Your support helps maintain & improve this open source project.
15
+ </p>
16
+ </div>
17
+ <a
18
+ href="/coolors-mcp/funding"
19
+ class="transparency-link"
20
+ @mouseenter="handleMouseEnter"
21
+ @mousemove="handleMouseMove"
22
+ @mouseleave="handleMouseLeave"
23
+ ref="linkRef"
24
+ >
25
+ <span class="link-text">See how funds are used →</span>
26
+ </a>
27
+ </div>
28
+
29
+ <div class="support-options">
30
+ <a
31
+ href="https://github.com/sponsors/x51xxx"
32
+ target="_blank"
33
+ rel="noopener"
34
+ class="support-button support-button--primary"
35
+ title="Sponsor on GitHub"
36
+ >
37
+ <svg class="support-icon" viewBox="0 0 16 16" fill="currentColor">
38
+ <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/>
39
+ </svg>
40
+ <span class="button-text">Sponsor on GitHub</span>
41
+ </a>
42
+
43
+ </div>
44
+
45
+ <div class="support-benefits">
46
+ <p class="support-benefit">
47
+ <span class="benefit-icon">✓</span>
48
+ <span>Funds testing & development</span>
49
+ </p>
50
+ <p class="support-benefit">
51
+ <span class="benefit-icon">✓</span>
52
+ <span>Keeps the project actively maintained as CLI tools evolve </span>
53
+ </p>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </template>
58
+
59
+ <script setup>
60
+ import { ref } from 'vue'
61
+
62
+ const linkRef = ref(null)
63
+ const sectionRef = ref(null)
64
+
65
+ const handleMouseEnter = (e) => {
66
+ if (!linkRef.value) return
67
+
68
+ const rect = linkRef.value.getBoundingClientRect()
69
+ const x = e.clientX - rect.left
70
+ const percentage = (x / rect.width) * 100
71
+
72
+ linkRef.value.style.setProperty('--mouse-x', `${percentage}%`)
73
+ linkRef.value.classList.add('mouse-over')
74
+ }
75
+
76
+ const handleMouseMove = (e) => {
77
+ if (!linkRef.value) return
78
+
79
+ const rect = linkRef.value.getBoundingClientRect()
80
+ const x = e.clientX - rect.left
81
+ const percentage = (x / rect.width) * 100
82
+
83
+ linkRef.value.style.setProperty('--mouse-x', `${percentage}%`)
84
+ }
85
+
86
+ const handleMouseLeave = () => {
87
+ if (!linkRef.value) return
88
+ // Keep the last mouse position, just remove the hover class
89
+ linkRef.value.classList.remove('mouse-over')
90
+ }
91
+
92
+ const handleSectionMouseEnter = (e) => {
93
+ if (!sectionRef.value) return
94
+
95
+ const rect = sectionRef.value.getBoundingClientRect()
96
+ const x = e.clientX - rect.left
97
+ const y = e.clientY - rect.top
98
+
99
+ sectionRef.value.style.setProperty('--section-mouse-x', `${x}px`)
100
+ sectionRef.value.style.setProperty('--section-mouse-y', `${y}px`)
101
+ sectionRef.value.classList.add('mouse-over')
102
+ }
103
+
104
+ const handleSectionMouseMove = (e) => {
105
+ if (!sectionRef.value) return
106
+
107
+ const rect = sectionRef.value.getBoundingClientRect()
108
+ const x = e.clientX - rect.left
109
+ const y = e.clientY - rect.top
110
+
111
+ sectionRef.value.style.setProperty('--section-mouse-x', `${x}px`)
112
+ sectionRef.value.style.setProperty('--section-mouse-y', `${y}px`)
113
+ }
114
+
115
+ const handleSectionMouseLeave = () => {
116
+ if (!sectionRef.value) return
117
+ // Keep the last mouse position, just remove the hover class
118
+ sectionRef.value.classList.remove('mouse-over')
119
+ }
120
+ </script>
121
+
122
+ <style scoped>
123
+ .support-section {
124
+ --section-mouse-x: 50%;
125
+ --section-mouse-y: 50%;
126
+ margin: 36px 0 24px;
127
+ padding: 24px;
128
+ background: var(--vp-c-bg-soft);
129
+ border: 1px solid var(--vp-c-divider);
130
+ border-radius: 12px;
131
+ max-width: 640px;
132
+ margin-left: auto;
133
+ margin-right: auto;
134
+ position: relative;
135
+ }
136
+
137
+ .support-section::before {
138
+ content: '';
139
+ position: absolute;
140
+ top: 0;
141
+ left: 0;
142
+ right: 0;
143
+ bottom: 0;
144
+ background: radial-gradient(
145
+ 600px circle at var(--section-mouse-x) var(--section-mouse-y),
146
+ rgba(255, 140, 0, 0.06),
147
+ rgba(255, 107, 53, 0.04) 40%,
148
+ transparent 65%
149
+ );
150
+ pointer-events: none;
151
+ transition: opacity 0.6s ease-out;
152
+ opacity: 0;
153
+ border-radius: 12px;
154
+ overflow: hidden;
155
+ }
156
+
157
+ .support-section.mouse-over::before {
158
+ opacity: 1;
159
+ transition: opacity 0.2s ease-in;
160
+ }
161
+
162
+ .support-section:not(.mouse-over)::before {
163
+ transition: opacity 1s ease-out;
164
+ }
165
+
166
+ @keyframes shimmer {
167
+ 0%, 100% { opacity: 1; }
168
+ 50% { opacity: 0.7; }
169
+ }
170
+
171
+ .support-section::after {
172
+ content: '';
173
+ position: absolute;
174
+ top: -2px;
175
+ left: -2px;
176
+ right: -2px;
177
+ bottom: -2px;
178
+ background: radial-gradient(
179
+ 400px circle at var(--section-mouse-x) var(--section-mouse-y),
180
+ rgba(255, 140, 0, 0.3),
181
+ rgba(255, 107, 53, 0.1) 40%,
182
+ transparent 65%
183
+ );
184
+ border-radius: 12px;
185
+ pointer-events: none;
186
+ opacity: 0;
187
+ transition: opacity 0.6s ease-out;
188
+ z-index: -1;
189
+ }
190
+
191
+ .support-section.mouse-over::after {
192
+ opacity: 0.5;
193
+ transition: opacity 0.2s ease-in;
194
+ }
195
+
196
+ .support-section:not(.mouse-over)::after {
197
+ transition: opacity 1s ease-out;
198
+ }
199
+
200
+ .support-content {
201
+ display: flex;
202
+ flex-direction: column;
203
+ gap: 20px;
204
+ position: relative;
205
+ z-index: 1;
206
+ }
207
+
208
+ .support-header {
209
+ display: flex;
210
+ justify-content: space-between;
211
+ align-items: flex-start;
212
+ gap: 16px;
213
+ flex-wrap: wrap;
214
+ }
215
+
216
+ .support-text {
217
+ flex: 1;
218
+ min-width: 200px;
219
+ }
220
+
221
+ .support-title {
222
+ font-size: 1.25rem;
223
+ font-weight: 600;
224
+ margin: 0 0 8px;
225
+ color: var(--vp-c-text-1);
226
+ transition: all 0.3s ease;
227
+ }
228
+
229
+ .support-section.mouse-over .support-title {
230
+ text-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
231
+ }
232
+
233
+ .support-description {
234
+ font-size: 0.95rem;
235
+ color: var(--vp-c-text-2);
236
+ margin: 0;
237
+ line-height: 1.5;
238
+ }
239
+
240
+ .transparency-link {
241
+ --mouse-x: 50%;
242
+ color: var(--vp-c-brand);
243
+ text-decoration: none;
244
+ font-size: 0.9rem;
245
+ font-weight: 500;
246
+ white-space: nowrap;
247
+ align-self: flex-start;
248
+ margin-top: 4px;
249
+ position: relative;
250
+ display: inline-block;
251
+ transition: color 0.3s ease;
252
+ }
253
+
254
+ .link-text {
255
+ position: relative;
256
+ display: inline-block;
257
+ color: var(--vp-c-brand);
258
+ transition: all 0.3s ease;
259
+ }
260
+
261
+ .transparency-link.mouse-over .link-text {
262
+ background: radial-gradient(
263
+ ellipse 150% 100% at var(--mouse-x) 50%,
264
+ #ffee00 0%,
265
+ #ffc700 10%,
266
+ #ffa500 20%,
267
+ #ff8c00 30%,
268
+ #ff6b35 40%,
269
+ var(--vp-c-brand) 60%
270
+ );
271
+ background-size: 150% 100%;
272
+ -webkit-background-clip: text;
273
+ background-clip: text;
274
+ -webkit-text-fill-color: transparent;
275
+ filter: contrast(1.2) brightness(1.1);
276
+ animation: pulse 2s ease-in-out infinite;
277
+ transition: opacity 0.2s ease-in;
278
+ }
279
+
280
+ .transparency-link:not(.mouse-over) .link-text {
281
+ transition: opacity 0.8s ease-out;
282
+ }
283
+
284
+ @keyframes pulse {
285
+ 0%, 100% { filter: contrast(1.2) brightness(1.1); }
286
+ 50% { filter: contrast(1.3) brightness(1.2); }
287
+ }
288
+
289
+ .support-options {
290
+ display: flex;
291
+ gap: 12px;
292
+ justify-content: center;
293
+ flex-wrap: wrap;
294
+ }
295
+
296
+ .support-button {
297
+ display: inline-flex;
298
+ align-items: center;
299
+ gap: 12px;
300
+ padding: 10px 18px;
301
+ border-radius: 8px;
302
+ font-weight: 500;
303
+ text-decoration: none;
304
+ transition: all 0.2s ease;
305
+ font-size: 0.9rem;
306
+ white-space: nowrap;
307
+ }
308
+
309
+ .support-button--primary {
310
+ background: var(--vp-c-brand);
311
+ color: var(--vp-c-white);
312
+ border: 1px solid var(--vp-c-brand);
313
+ }
314
+
315
+ .support-button--primary:hover {
316
+ background: var(--vp-c-brand-dark);
317
+ transform: translateY(-2px);
318
+ box-shadow:
319
+ 0 4px 12px rgba(66, 184, 131, 0.3),
320
+ 0 0 20px rgba(218, 119, 86, 0.4),
321
+ 0 0 30px rgba(71, 150, 227, 0.3),
322
+ 0 0 40px rgba(255, 140, 0, 0.2);
323
+ animation: glow 2s ease-in-out infinite;
324
+ }
325
+
326
+ @keyframes glow {
327
+ 0%, 100% {
328
+ box-shadow:
329
+ 0 4px 12px rgba(66, 184, 131, 0.3),
330
+ 0 0 20px rgba(218, 119, 86, 0.4),
331
+ 0 0 30px rgba(71, 150, 227, 0.3),
332
+ 0 0 40px rgba(255, 140, 0, 0.2);
333
+ }
334
+ 50% {
335
+ box-shadow:
336
+ 0 4px 16px rgba(66, 184, 131, 0.4),
337
+ 0 0 25px rgba(218, 119, 86, 0.5),
338
+ 0 0 35px rgba(71, 150, 227, 0.4),
339
+ 0 0 50px rgba(255, 140, 0, 0.3);
340
+ }
341
+ }
342
+
343
+ .support-button--secondary {
344
+ background: transparent;
345
+ color: var(--vp-c-text-1);
346
+ border: 1px solid var(--vp-c-divider);
347
+ }
348
+
349
+ .support-button--secondary:hover {
350
+ background: var(--vp-c-bg-mute);
351
+ border-color: rgba(255, 140, 0, 0.6);
352
+ transform: translateY(-2px);
353
+ box-shadow:
354
+ 0 0 20px rgba(255, 140, 0, 0.2),
355
+ inset 0 0 20px rgba(255, 140, 0, 0.05);
356
+ }
357
+
358
+ .support-icon {
359
+ width: 18px;
360
+ height: 18px;
361
+ font-size: 18px;
362
+ }
363
+
364
+ .support-benefits {
365
+ display: flex;
366
+ flex-direction: column;
367
+ gap: 8px;
368
+ padding-top: 16px;
369
+ border-top: 1px solid var(--vp-c-divider);
370
+ }
371
+
372
+ .support-benefit {
373
+ display: flex;
374
+ align-items: center;
375
+ gap: 12px;
376
+ font-size: 0.9rem;
377
+ color: var(--vp-c-text-2);
378
+ margin: 0;
379
+ }
380
+
381
+ .benefit-icon {
382
+ color: var(--vp-c-brand);
383
+ font-weight: bold;
384
+ flex-shrink: 0;
385
+ }
386
+
387
+ /* Mobile responsive */
388
+ @media (max-width: 640px) {
389
+ .support-section {
390
+ padding: 20px 16px;
391
+ margin: 24px 0 16px;
392
+ }
393
+
394
+ .support-header {
395
+ flex-direction: column;
396
+ align-items: flex-start;
397
+ gap: 12px;
398
+ }
399
+
400
+ .support-options {
401
+ width: 100%;
402
+ flex-direction: column;
403
+ }
404
+
405
+ .support-button {
406
+ width: 100%;
407
+ justify-content: center;
408
+ }
409
+
410
+ .support-benefits {
411
+ padding-top: 12px;
412
+ }
413
+ }
414
+
415
+ /* Dark theme adjustments */
416
+ html.dark .support-section {
417
+ background: rgba(255, 255, 255, 0.02);
418
+ border-color: rgba(255, 255, 255, 0.08);
419
+ }
420
+
421
+ html.dark .support-section::before {
422
+ background: radial-gradient(
423
+ 600px circle at var(--section-mouse-x) var(--section-mouse-y),
424
+ rgba(255, 140, 0, 0.08),
425
+ rgba(255, 107, 53, 0.05) 40%,
426
+ transparent 65%
427
+ );
428
+ }
429
+
430
+ html.dark .support-section.mouse-over .support-title {
431
+ text-shadow: 0 0 25px rgba(255, 140, 0, 0.4);
432
+ }
433
+
434
+ html.dark .support-button--secondary {
435
+ border-color: rgba(255, 255, 255, 0.1);
436
+ }
437
+
438
+
439
+ html.dark .support-button--primary {
440
+ background: rgba(58, 80, 172, 0.05);
441
+ }
442
+
443
+ /* Light theme adjustments */
444
+ html:not(.dark) .support-button--primary {
445
+ color: #ffffff;
446
+ }
447
+
448
+ html:not(.dark) .support-button--primary:hover {
449
+ color: #000000;
450
+ box-shadow:
451
+ 0 4px 12px rgba(71, 150, 227, 0.5),
452
+ 0 0 25px rgba(218, 119, 86, 0.7),
453
+ 0 0 35px rgba(66, 139, 202, 0.6),
454
+ inset 0 1px 0 rgba(255, 255, 255, 0.3);
455
+ background: linear-gradient(135deg, var(--vp-c-brand-dark) 0%, var(--vp-c-brand) 100%);
456
+ }
457
+
458
+ /* Light mode specific adjustments for mouse effects */
459
+ html:not(.dark) .support-section::before {
460
+ background: radial-gradient(
461
+ 600px circle at var(--section-mouse-x) var(--section-mouse-y),
462
+ rgba(66, 139, 202, 0.08), /* Blue instead of orange */
463
+ rgba(71, 150, 227, 0.05) 40%,
464
+ transparent 65%
465
+ );
466
+ }
467
+
468
+ html:not(.dark) .support-section::after {
469
+ background: radial-gradient(
470
+ 400px circle at var(--section-mouse-x) var(--section-mouse-y),
471
+ rgba(66, 139, 202, 0.15), /* Blue accent */
472
+ rgba(71, 150, 227, 0.08) 40%,
473
+ transparent 65%
474
+ );
475
+ }
476
+
477
+
478
+ html:not(.dark) .transparency-link.mouse-over .link-text {
479
+ background: radial-gradient(
480
+ ellipse 150% 100% at var(--mouse-x) 50%,
481
+ #1e3a8a 0%, /* Very dark blue */
482
+ #1d4ed8 10%, /* Dark blue */
483
+ #1e40af 20%, /* Muted dark blue */
484
+ #0c2a5d 30%, /* Deep navy blue */
485
+ #082f49 40%, /* Midnight blue */
486
+ var(--vp-c-brand) 60%
487
+ );
488
+ background-size: 150% 100%;
489
+ -webkit-background-clip: text;
490
+ background-clip: text;
491
+ -webkit-text-fill-color: transparent;
492
+ filter: contrast(1.2) brightness(1.1);
493
+ animation: pulse 2s ease-in-out infinite;
494
+ transition: opacity 0.2s ease-in;
495
+ }
496
+
497
+ html:not(.dark) .transparency-link:not(.mouse-over) .link-text {
498
+ transition: opacity 0.8s ease-out;
499
+ }
500
+
501
+ html:not(.dark) .support-section.mouse-over .support-title {
502
+ text-shadow: 0 0 20px rgba(66, 139, 202, 0.2); /* Blue shadow */
503
+ }
504
+
505
+ html:not(.dark) .support-button--secondary:hover {
506
+ border-color: rgba(66, 139, 202, 0.6); /* Blue border */
507
+ box-shadow:
508
+ 0 0 20px rgba(66, 139, 202, 0.15),
509
+ inset 0 0 20px rgba(66, 139, 202, 0.03);
510
+ }
511
+ </style>