@fumadocs/ui 16.2.5

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 (68) hide show
  1. package/LICENSE +21 -0
  2. package/css/base.css +217 -0
  3. package/css/colors/black.css +39 -0
  4. package/css/colors/catppuccin.css +49 -0
  5. package/css/colors/dusk.css +47 -0
  6. package/css/colors/index.css +51 -0
  7. package/css/colors/neutral.css +7 -0
  8. package/css/colors/ocean.css +48 -0
  9. package/css/colors/purple.css +39 -0
  10. package/css/colors/shadcn.css +36 -0
  11. package/css/colors/solar.css +75 -0
  12. package/css/colors/vitepress.css +77 -0
  13. package/css/shiki.css +90 -0
  14. package/dist/cn.d.ts +2 -0
  15. package/dist/cn.d.ts.map +1 -0
  16. package/dist/cn.js +1 -0
  17. package/dist/components/toc/clerk.d.ts +3 -0
  18. package/dist/components/toc/clerk.d.ts.map +1 -0
  19. package/dist/components/toc/clerk.js +76 -0
  20. package/dist/components/toc/default.d.ts +3 -0
  21. package/dist/components/toc/default.d.ts.map +1 -0
  22. package/dist/components/toc/default.js +19 -0
  23. package/dist/components/toc/index.d.ts +11 -0
  24. package/dist/components/toc/index.d.ts.map +1 -0
  25. package/dist/components/toc/index.js +64 -0
  26. package/dist/contexts/i18n.d.ts +50 -0
  27. package/dist/contexts/i18n.d.ts.map +1 -0
  28. package/dist/contexts/i18n.js +55 -0
  29. package/dist/contexts/search.d.ts +61 -0
  30. package/dist/contexts/search.d.ts.map +1 -0
  31. package/dist/contexts/search.js +59 -0
  32. package/dist/contexts/tree.d.ts +15 -0
  33. package/dist/contexts/tree.d.ts.map +1 -0
  34. package/dist/contexts/tree.js +32 -0
  35. package/dist/hooks/use-copy-button.d.ts +3 -0
  36. package/dist/hooks/use-copy-button.d.ts.map +1 -0
  37. package/dist/hooks/use-copy-button.js +27 -0
  38. package/dist/hooks/use-footer-items.d.ts +6 -0
  39. package/dist/hooks/use-footer-items.d.ts.map +1 -0
  40. package/dist/hooks/use-footer-items.js +27 -0
  41. package/dist/hooks/use-is-scroll-top.d.ts +4 -0
  42. package/dist/hooks/use-is-scroll-top.d.ts.map +1 -0
  43. package/dist/hooks/use-is-scroll-top.js +17 -0
  44. package/dist/i18n.d.ts +14 -0
  45. package/dist/i18n.d.ts.map +1 -0
  46. package/dist/i18n.js +16 -0
  47. package/dist/icons.d.ts +49 -0
  48. package/dist/icons.d.ts.map +1 -0
  49. package/dist/icons.js +281 -0
  50. package/dist/link-item.d.ts +78 -0
  51. package/dist/link-item.d.ts.map +1 -0
  52. package/dist/link-item.js +12 -0
  53. package/dist/merge-refs.d.ts +3 -0
  54. package/dist/merge-refs.d.ts.map +1 -0
  55. package/dist/merge-refs.js +12 -0
  56. package/dist/og/next.d.ts +15 -0
  57. package/dist/og/next.d.ts.map +1 -0
  58. package/dist/og/next.js +45 -0
  59. package/dist/typography/index.d.ts +10 -0
  60. package/dist/typography/index.d.ts.map +1 -0
  61. package/dist/typography/index.js +137 -0
  62. package/dist/typography/styles.d.ts +93 -0
  63. package/dist/typography/styles.d.ts.map +1 -0
  64. package/dist/typography/styles.js +433 -0
  65. package/dist/urls.d.ts +6 -0
  66. package/dist/urls.d.ts.map +1 -0
  67. package/dist/urls.js +13 -0
  68. package/package.json +75 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Fuma
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/css/base.css ADDED
@@ -0,0 +1,217 @@
1
+ @import './shiki.css';
2
+ @source '../dist/components/**/*.js';
3
+ @plugin '../dist/typography/index.js';
4
+
5
+ :root {
6
+ --fd-sidebar-drawer-offset: 100%;
7
+ }
8
+
9
+ [dir='rtl'] {
10
+ --fd-sidebar-drawer-offset: -100%;
11
+ }
12
+
13
+ @theme {
14
+ --animate-fd-fade-in: fd-fade-in 300ms ease;
15
+ --animate-fd-fade-out: fd-fade-out 300ms ease;
16
+
17
+ --animate-fd-dialog-in: fd-dialog-in 300ms cubic-bezier(0.16, 1, 0.3, 1);
18
+ --animate-fd-dialog-out: fd-dialog-out 300ms cubic-bezier(0.16, 1, 0.3, 1);
19
+
20
+ --animate-fd-popover-in: fd-popover-in 100ms ease;
21
+ --animate-fd-popover-out: fd-popover-out 100ms ease;
22
+
23
+ --animate-fd-enterFromLeft: fd-enterFromLeft 250ms ease;
24
+ --animate-fd-enterFromRight: fd-enterFromRight 250ms ease;
25
+
26
+ --animate-fd-sidebar-in: fd-sidebar-in 250ms ease;
27
+ --animate-fd-sidebar-out: fd-sidebar-out 250ms ease;
28
+
29
+ --animate-fd-exitToLeft: fd-exitToLeft 250ms ease;
30
+ --animate-fd-exitToRight: fd-exitToRight 250ms ease;
31
+
32
+ @keyframes fd-sidebar-in {
33
+ from {
34
+ transform: translateX(var(--fd-sidebar-drawer-offset));
35
+ }
36
+ }
37
+
38
+ @keyframes fd-sidebar-out {
39
+ to {
40
+ transform: translateX(var(--fd-sidebar-drawer-offset));
41
+ }
42
+ }
43
+
44
+ @keyframes fd-dialog-in {
45
+ from {
46
+ transform: scale(1.06);
47
+ opacity: 0;
48
+ }
49
+ to {
50
+ transform: scale(1);
51
+ }
52
+ }
53
+
54
+ @keyframes fd-dialog-out {
55
+ from {
56
+ transform: scale(1);
57
+ }
58
+ to {
59
+ transform: scale(1.04);
60
+ opacity: 0;
61
+ }
62
+ }
63
+
64
+ @keyframes fd-popover-in {
65
+ from {
66
+ opacity: 0;
67
+ transform: scale(0.9);
68
+ }
69
+ }
70
+
71
+ @keyframes fd-popover-out {
72
+ to {
73
+ opacity: 0;
74
+ transform: scale(0.9);
75
+ }
76
+ }
77
+
78
+ @keyframes fd-fade-in {
79
+ from {
80
+ opacity: 0;
81
+ }
82
+ to {
83
+ opacity: 1;
84
+ }
85
+ }
86
+
87
+ @keyframes fd-fade-out {
88
+ from {
89
+ opacity: 1;
90
+ }
91
+ to {
92
+ opacity: 0;
93
+ }
94
+ }
95
+
96
+ @keyframes fd-enterFromRight {
97
+ from {
98
+ opacity: 0;
99
+ transform: translateX(200px);
100
+ }
101
+ to {
102
+ opacity: 1;
103
+ transform: translateX(0);
104
+ }
105
+ }
106
+
107
+ @keyframes fd-enterFromLeft {
108
+ from {
109
+ opacity: 0;
110
+ transform: translateX(-200px);
111
+ }
112
+ to {
113
+ opacity: 1;
114
+ transform: translateX(0);
115
+ }
116
+ }
117
+
118
+ @keyframes fd-exitToRight {
119
+ from {
120
+ opacity: 1;
121
+ transform: translateX(0);
122
+ }
123
+ to {
124
+ opacity: 0;
125
+ transform: translateX(200px);
126
+ }
127
+ }
128
+
129
+ @keyframes fd-exitToLeft {
130
+ from {
131
+ opacity: 1;
132
+ transform: translateX(0);
133
+ }
134
+ to {
135
+ opacity: 0;
136
+ transform: translateX(-200px);
137
+ }
138
+ }
139
+ }
140
+
141
+ @layer base {
142
+ *,
143
+ ::after,
144
+ ::before,
145
+ ::backdrop,
146
+ ::file-selector-button {
147
+ border-color: var(--color-fd-border, currentColor);
148
+ }
149
+
150
+ body {
151
+ background-color: var(--color-fd-background);
152
+ color: var(--color-fd-foreground);
153
+ }
154
+ }
155
+
156
+ @utility fd-scroll-container {
157
+ &::-webkit-scrollbar {
158
+ width: 5px;
159
+ height: 5px;
160
+ }
161
+
162
+ &::-webkit-scrollbar-thumb {
163
+ border-radius: 5px;
164
+ background: var(--color-fd-border);
165
+ }
166
+
167
+ &::-webkit-scrollbar-track {
168
+ background: transparent;
169
+ }
170
+
171
+ &::-webkit-scrollbar-corner {
172
+ display: none;
173
+ }
174
+ }
175
+
176
+ @utility fd-steps {
177
+ counter-reset: step;
178
+ position: relative;
179
+ @apply pl-6 ml-2 border-l sm:ml-4 sm:pl-7;
180
+ }
181
+
182
+ @utility fd-step {
183
+ &:before {
184
+ background-color: var(--color-fd-secondary);
185
+ color: var(--color-fd-secondary-foreground);
186
+ content: counter(step);
187
+ counter-increment: step;
188
+ justify-content: center;
189
+ align-items: center;
190
+ font-size: 0.875rem;
191
+ line-height: 1.25rem;
192
+ display: flex;
193
+ position: absolute;
194
+ @apply size-8 -start-4 rounded-full;
195
+ }
196
+ }
197
+
198
+ @utility prose-no-margin {
199
+ & > :first-child {
200
+ margin-top: 0;
201
+ }
202
+
203
+ & > :last-child {
204
+ margin-bottom: 0;
205
+ }
206
+ }
207
+
208
+ @variant dark (&:where(.dark, .dark *));
209
+
210
+ /* define/override layout variables */
211
+ @variant layout {
212
+ #nd-docs-layout:has(&),
213
+ #nd-notebook-layout:has(&),
214
+ #nd-home-layout:has(&) {
215
+ @slot;
216
+ }
217
+ }
@@ -0,0 +1,39 @@
1
+ @import './index.css';
2
+
3
+ @theme {
4
+ --color-fd-background: hsl(0, 0%, 98%);
5
+ --color-fd-foreground: hsl(0, 0%, 3.9%);
6
+ --color-fd-muted: hsl(0, 0%, 96.1%);
7
+ --color-fd-muted-foreground: hsl(0, 0%, 45.1%);
8
+ --color-fd-popover: hsl(0, 0%, 100%);
9
+ --color-fd-popover-foreground: hsl(0, 0%, 15.1%);
10
+ --color-fd-card: hsl(0, 0%, 99.7%);
11
+ --color-fd-card-foreground: hsl(0, 0%, 3.9%);
12
+ --color-fd-border: hsla(0, 0%, 60%, 0.2);
13
+ --color-fd-primary: hsl(0, 0%, 9%);
14
+ --color-fd-primary-foreground: hsl(0, 0%, 98%);
15
+ --color-fd-secondary: hsl(0, 0%, 96.1%);
16
+ --color-fd-secondary-foreground: hsl(0, 0%, 9%);
17
+ --color-fd-accent: hsl(0, 0%, 94.1%);
18
+ --color-fd-accent-foreground: hsl(0, 0%, 9%);
19
+ --color-fd-ring: hsl(0, 0%, 63.9%);
20
+ }
21
+
22
+ .dark {
23
+ --color-fd-background: hsl(0, 0%, 2%);
24
+ --color-fd-foreground: hsl(0, 0%, 98%);
25
+ --color-fd-muted: hsl(0, 0%, 8%);
26
+ --color-fd-muted-foreground: hsl(0, 0%, 60%);
27
+ --color-fd-popover: hsl(0, 0%, 4%);
28
+ --color-fd-popover-foreground: hsl(0, 0%, 98%);
29
+ --color-fd-card: hsl(0, 0%, 4%);
30
+ --color-fd-card-foreground: hsl(0, 0%, 98%);
31
+ --color-fd-border: hsl(0, 0%, 50%, 0.2);
32
+ --color-fd-primary: hsl(0, 0%, 98%);
33
+ --color-fd-primary-foreground: hsl(0, 0%, 9%);
34
+ --color-fd-secondary: hsl(0, 0%, 12.9%);
35
+ --color-fd-secondary-foreground: hsl(0, 0%, 98%);
36
+ --color-fd-accent: hsl(0, 0%, 15%);
37
+ --color-fd-accent-foreground: hsl(0, 0%, 100%);
38
+ --color-fd-ring: hsl(0, 0%, 34.9%);
39
+ }
@@ -0,0 +1,49 @@
1
+ @import './index.css';
2
+
3
+ @theme {
4
+ --color-fd-popover: hsl(220, 22%, 92%);
5
+ --color-fd-popover-foreground: hsl(234, 16%, 35%);
6
+ --color-fd-secondary-foreground: hsl(234, 16%, 35%);
7
+ --color-fd-border: hsl(223, 16%, 83%);
8
+ --color-fd-primary: hsl(266, 85%, 58%);
9
+ --color-fd-primary-foreground: hsl(220, 22%, 92%);
10
+ --color-fd-muted: hsl(220, 22%, 92%);
11
+ --color-fd-card: hsl(220, 22%, 92%);
12
+ --color-fd-accent: hsl(223, 16%, 83%);
13
+ --color-fd-accent-foreground: hsl(234, 16%, 35%);
14
+ --color-fd-card-foreground: hsl(234, 16%, 35%);
15
+ --color-fd-muted-foreground: hsl(233, 10%, 47%);
16
+ --color-fd-foreground: hsl(234, 16%, 35%);
17
+ --color-fd-secondary: hsl(220, 22%, 92%);
18
+ --color-fd-background: hsl(220, 23%, 95%);
19
+ --color-fd-ring: hsl(267, 84%, 81%);
20
+ }
21
+
22
+ .dark {
23
+ --color-fd-background: hsl(240, 21%, 15%);
24
+ --color-fd-foreground: hsl(226, 64%, 88%);
25
+ --color-fd-ring: hsl(267, 84%, 81%);
26
+ --color-fd-primary: hsl(267, 84%, 81%);
27
+ --color-fd-popover: hsl(240, 23%, 9%);
28
+ --color-fd-card: hsl(240, 21%, 12%);
29
+ --color-fd-muted: hsl(240, 21%, 12%);
30
+ --color-fd-border: hsl(237, 16%, 23%);
31
+ --color-fd-accent: hsl(237, 16%, 23%);
32
+ --color-fd-secondary: hsl(240, 21%, 12%);
33
+ --color-fd-primary-foreground: hsl(240, 23%, 9%);
34
+ --color-fd-card-foreground: hsl(226, 64%, 88%);
35
+ --color-fd-secondary-foreground: hsl(226, 64%, 88%);
36
+ --color-fd-popover-foreground: hsl(226, 64%, 88%);
37
+ --color-fd-accent-foreground: hsl(226, 64%, 88%);
38
+ --color-fd-muted-foreground: hsl(228, 24%, 72%);
39
+ }
40
+
41
+ #nd-sidebar {
42
+ --color-fd-secondary: hsl(223, 16%, 83%);
43
+ --color-fd-muted: hsl(223, 16%, 83%);
44
+ }
45
+
46
+ .dark #nd-sidebar {
47
+ --color-fd-secondary: hsl(237, 16%, 23%);
48
+ --color-fd-muted: hsl(237, 16%, 23%);
49
+ }
@@ -0,0 +1,47 @@
1
+ @import './index.css';
2
+
3
+ @theme {
4
+ --color-fd-background: hsl(250, 20%, 92%);
5
+ --color-fd-primary: hsl(340, 40%, 48%);
6
+ --color-fd-border: hsl(240, 40%, 90%);
7
+ --color-fd-accent: hsl(250, 30%, 90%);
8
+ --color-fd-accent-foreground: hsl(250, 20%, 20%);
9
+ --color-fd-muted: hsl(240, 30%, 94%);
10
+ --color-fd-muted-foreground: hsl(240, 10%, 50%);
11
+ --color-fd-foreground: hsl(220, 20%, 30%);
12
+ --color-fd-secondary: hsl(250, 40%, 94%);
13
+ --color-fd-secondary-foreground: hsl(240, 40%, 10%);
14
+ --color-fd-card: hsl(250, 20%, 92%);
15
+ --color-fd-card-foreground: hsl(250, 20%, 20%);
16
+ --color-fd-popover-foreground: hsl(250, 40%, 20%);
17
+ --color-fd-popover: hsl(250, 40%, 96%);
18
+ --color-fd-primary-foreground: hsl(240, 80%, 20%);
19
+ --color-fd-ring: hsl(340, 40%, 48%);
20
+ }
21
+
22
+ .dark {
23
+ --color-fd-ring: hsl(340, 100%, 90%);
24
+ --color-fd-primary-foreground: hsl(240, 40%, 4%);
25
+ --color-fd-popover: hsl(240, 20%, 5%);
26
+ --color-fd-popover-foreground: hsl(250, 20%, 90%);
27
+ --color-fd-primary: hsl(340, 100%, 90%);
28
+ --color-fd-border: hsl(220, 15%, 15%);
29
+ --color-fd-background: hsl(220, 15%, 6%);
30
+ --color-fd-foreground: hsl(220, 15%, 87%);
31
+ --color-fd-muted: hsl(220, 20%, 15%);
32
+ --color-fd-muted-foreground: hsl(220, 15%, 60%);
33
+ --color-fd-accent: hsl(250, 20%, 15%);
34
+ --color-fd-secondary: hsl(240, 20%, 15%);
35
+ --color-fd-card-foreground: hsl(240, 15%, 87%);
36
+ --color-fd-card: hsl(240, 20%, 5%);
37
+ --color-fd-secondary-foreground: hsl(250, 20%, 90%);
38
+ --color-fd-accent-foreground: hsl(340, 5%, 90%);
39
+ }
40
+
41
+ #nd-sidebar {
42
+ background-color: hsl(250 20% 90%);
43
+ }
44
+
45
+ .dark #nd-sidebar {
46
+ background-color: hsl(240 20% 5%);
47
+ }
@@ -0,0 +1,51 @@
1
+ @theme {
2
+ --color-fd-background: hsl(0, 0%, 96%);
3
+ --color-fd-foreground: hsl(0, 0%, 3.9%);
4
+ --color-fd-muted: hsl(0, 0%, 96.1%);
5
+ --color-fd-muted-foreground: hsl(0, 0%, 45.1%);
6
+ --color-fd-popover: hsl(0, 0%, 98%);
7
+ --color-fd-popover-foreground: hsl(0, 0%, 15.1%);
8
+ --color-fd-card: hsl(0, 0%, 94.7%);
9
+ --color-fd-card-foreground: hsl(0, 0%, 3.9%);
10
+ --color-fd-border: hsla(0, 0%, 80%, 50%);
11
+ --color-fd-primary: hsl(0, 0%, 9%);
12
+ --color-fd-primary-foreground: hsl(0, 0%, 98%);
13
+ --color-fd-secondary: hsl(0, 0%, 93.1%);
14
+ --color-fd-secondary-foreground: hsl(0, 0%, 9%);
15
+ --color-fd-accent: hsla(0, 0%, 82%, 50%);
16
+ --color-fd-accent-foreground: hsl(0, 0%, 9%);
17
+ --color-fd-ring: hsl(0, 0%, 63.9%);
18
+ --color-fd-overlay: hsla(0, 0%, 0%, 0.2);
19
+ }
20
+
21
+ .dark {
22
+ --color-fd-background: hsl(0, 0%, 7.04%);
23
+ --color-fd-foreground: hsl(0, 0%, 92%);
24
+ --color-fd-muted: hsl(0, 0%, 12.9%);
25
+ --color-fd-muted-foreground: hsla(0, 0%, 70%, 0.8);
26
+ --color-fd-popover: hsl(0, 0%, 11.6%);
27
+ --color-fd-popover-foreground: hsl(0, 0%, 86.9%);
28
+ --color-fd-card: hsl(0, 0%, 9.8%);
29
+ --color-fd-card-foreground: hsl(0, 0%, 98%);
30
+ --color-fd-border: hsla(0, 0%, 40%, 20%);
31
+ --color-fd-primary: hsl(0, 0%, 98%);
32
+ --color-fd-primary-foreground: hsl(0, 0%, 9%);
33
+ --color-fd-secondary: hsl(0, 0%, 12.9%);
34
+ --color-fd-secondary-foreground: hsl(0, 0%, 92%);
35
+ --color-fd-accent: hsla(0, 0%, 40.9%, 30%);
36
+ --color-fd-accent-foreground: hsl(0, 0%, 90%);
37
+ --color-fd-ring: hsl(0, 0%, 54.9%);
38
+ --color-fd-overlay: hsla(0, 0%, 0%, 0.2);
39
+ }
40
+
41
+ @theme static {
42
+ --color-fd-info: oklch(62.3% 0.214 259.815);
43
+ --color-fd-warning: oklch(76.9% 0.188 70.08);
44
+ --color-fd-error: oklch(63.7% 0.237 25.331);
45
+ --color-fd-success: oklch(72.3% 0.219 149.579);
46
+ --color-fd-idea: oklch(70.5% 0.209 60.849);
47
+ --color-fd-diff-remove: rgba(200, 10, 100, 0.12);
48
+ --color-fd-diff-remove-symbol: rgb(230, 10, 100);
49
+ --color-fd-diff-add: rgba(14, 180, 100, 0.1);
50
+ --color-fd-diff-add-symbol: rgb(10, 200, 100);
51
+ }
@@ -0,0 +1,7 @@
1
+ @import './index.css';
2
+
3
+ .dark #nd-sidebar {
4
+ --color-fd-muted: hsl(0, 0%, 16%);
5
+ --color-fd-secondary: hsl(0, 0%, 18%);
6
+ --color-fd-muted-foreground: hsl(0, 0%, 72%);
7
+ }
@@ -0,0 +1,48 @@
1
+ @import './index.css';
2
+
3
+ @theme {
4
+ --color-fd-background: hsl(0, 0%, 98%);
5
+ --color-fd-foreground: hsl(0, 0%, 3.9%);
6
+ --color-fd-muted: hsl(220, 90%, 96.1%);
7
+ --color-fd-muted-foreground: hsl(0, 0%, 45.1%);
8
+ --color-fd-popover: hsl(0, 0%, 98%);
9
+ --color-fd-popover-foreground: hsl(0, 0%, 15.1%);
10
+ --color-fd-card: hsl(220, 50%, 98%);
11
+ --color-fd-card-foreground: hsl(0, 0%, 3.9%);
12
+ --color-fd-border: hsl(220, 50%, 89.8%);
13
+ --color-fd-primary: hsl(210, 80%, 20.2%);
14
+ --color-fd-primary-foreground: hsl(0, 0%, 98%);
15
+ --color-fd-secondary: hsl(220, 90%, 96.1%);
16
+ --color-fd-secondary-foreground: hsl(0, 0%, 9%);
17
+ --color-fd-accent: hsl(220, 50%, 94.1%);
18
+ --color-fd-accent-foreground: hsl(0, 0%, 9%);
19
+ --color-fd-ring: hsl(220, 100%, 63.9%);
20
+ }
21
+
22
+ .dark {
23
+ --color-fd-background: hsl(220, 60%, 8%);
24
+ --color-fd-foreground: hsl(220, 60%, 94.5%);
25
+ --color-fd-muted: hsl(220, 50%, 10%);
26
+ --color-fd-muted-foreground: hsl(220, 30%, 65%);
27
+ --color-fd-popover: hsl(220, 50%, 10%);
28
+ --color-fd-popover-foreground: hsl(220, 60%, 94.5%);
29
+ --color-fd-card: hsla(220, 56%, 15%, 0.4);
30
+ --color-fd-card-foreground: hsl(220, 60%, 94.5%);
31
+ --color-fd-border: hsla(220, 50%, 50%, 0.2);
32
+ --color-fd-primary: hsl(205, 100%, 85%);
33
+ --color-fd-primary-foreground: hsl(0, 0%, 9%);
34
+ --color-fd-secondary: hsl(220, 50%, 20%);
35
+ --color-fd-secondary-foreground: hsl(220, 80%, 90%);
36
+ --color-fd-accent: hsl(220, 40%, 20%);
37
+ --color-fd-accent-foreground: hsl(220, 80%, 90%);
38
+ --color-fd-ring: hsl(205, 100%, 85%);
39
+ }
40
+
41
+ .dark body {
42
+ background-image: linear-gradient(
43
+ rgba(5, 105, 255, 0.15),
44
+ transparent 20rem,
45
+ transparent
46
+ );
47
+ background-repeat: no-repeat;
48
+ }
@@ -0,0 +1,39 @@
1
+ @import './index.css';
2
+
3
+ @theme {
4
+ --color-fd-background: hsl(256, 100%, 96%);
5
+ --color-fd-primary: hsl(270, 100%, 52%);
6
+ --color-fd-border: hsla(270, 40%, 80%, 0.5);
7
+ --color-fd-accent: hsl(270, 40%, 88%);
8
+ --color-fd-accent-foreground: hsl(270, 100%, 20%);
9
+ --color-fd-muted: hsl(256, 60%, 94%);
10
+ --color-fd-muted-foreground: hsl(256, 50%, 50%);
11
+ --color-fd-foreground: hsl(256, 60%, 26%);
12
+ --color-fd-secondary: hsl(270, 60%, 90%);
13
+ --color-fd-secondary-foreground: hsl(256, 60%, 10%);
14
+ --color-fd-card: hsl(256, 60%, 92%);
15
+ --color-fd-card-foreground: hsl(256, 100%, 20%);
16
+ --color-fd-popover-foreground: hsl(256, 100%, 20%);
17
+ --color-fd-popover: hsl(256, 60%, 96%);
18
+ --color-fd-primary-foreground: hsl(270, 100%, 20%);
19
+ --color-fd-ring: hsl(270, 100%, 52%);
20
+ }
21
+
22
+ .dark {
23
+ --color-fd-background: hsl(256, 20%, 6%);
24
+ --color-fd-primary: hsl(270, 100%, 86%);
25
+ --color-fd-border: hsla(270, 50%, 40%, 0.3);
26
+ --color-fd-accent: hsl(256, 23%, 22%);
27
+ --color-fd-accent-foreground: hsl(270, 40%, 86%);
28
+ --color-fd-muted: hsl(256, 23%, 10%);
29
+ --color-fd-foreground: hsl(256, 60%, 90%);
30
+ --color-fd-muted-foreground: hsl(256, 50%, 75%);
31
+ --color-fd-secondary: hsl(270, 23%, 20%);
32
+ --color-fd-secondary-foreground: hsl(256, 60%, 90%);
33
+ --color-fd-card: hsl(256, 23%, 10%);
34
+ --color-fd-card-foreground: hsl(256, 60%, 90%);
35
+ --color-fd-popover-foreground: hsl(256, 60%, 90%);
36
+ --color-fd-popover: hsl(256, 23%, 6%);
37
+ --color-fd-primary-foreground: hsl(256, 60%, 6%);
38
+ --color-fd-ring: hsl(270, 100%, 86%);
39
+ }
@@ -0,0 +1,36 @@
1
+ @import './index.css';
2
+
3
+ :root,
4
+ .dark {
5
+ --color-fd-background: var(--background);
6
+ --color-fd-foreground: var(--foreground);
7
+ --color-fd-muted: var(--muted);
8
+ --color-fd-muted-foreground: var(--muted-foreground);
9
+ --color-fd-popover: var(--popover);
10
+ --color-fd-popover-foreground: var(--popover-foreground);
11
+ --color-fd-card: var(--card);
12
+ --color-fd-card-foreground: var(--card-foreground);
13
+ --color-fd-border: var(--border);
14
+ --color-fd-primary: var(--primary);
15
+ --color-fd-primary-foreground: var(--primary-foreground);
16
+ --color-fd-secondary: var(--secondary);
17
+ --color-fd-secondary-foreground: var(--secondary-foreground);
18
+ --color-fd-accent: var(--accent);
19
+ --color-fd-accent-foreground: var(--accent-foreground);
20
+ --color-fd-ring: var(--ring);
21
+ }
22
+
23
+ #nd-sidebar {
24
+ background-color: var(--sidebar);
25
+ color: var(--sidebar-foreground);
26
+ border-color: var(--sidebar-border);
27
+
28
+ --color-fd-accent: var(--sidebar-accent);
29
+ --color-fd-accent-foreground: var(--sidebar-accent-foreground);
30
+ --color-fd-ring: var(--sidebar-ring);
31
+ --color-fd-primary-foreground: var(--sidebar-primary-foreground);
32
+ }
33
+
34
+ @theme static {
35
+ --color-fd-error: var(--destructive);
36
+ }
@@ -0,0 +1,75 @@
1
+ @import './index.css';
2
+
3
+ @theme {
4
+ --color-fd-primary: oklch(0.487 0.083 262.691);
5
+ --color-fd-article: hsl(0, 0%, 97%);
6
+ }
7
+
8
+ :root {
9
+ letter-spacing: -0.25px;
10
+ }
11
+
12
+ .dark {
13
+ --color-fd-primary: oklch(0.902 0.0461 259.51);
14
+ --color-fd-article: hsl(0, 0%, 7.04%);
15
+ --color-fd-background: hsl(0, 0%, 5.04%);
16
+ }
17
+
18
+ @variant md {
19
+ #nd-docs-layout {
20
+ #nd-page {
21
+ @apply relative md:px-9 xl:px-12;
22
+ }
23
+
24
+ #nd-page:before {
25
+ content: '';
26
+ @apply absolute inset-0 bg-fd-article rounded-xl border shadow-xl m-4 mb-2 -z-1;
27
+ }
28
+
29
+ [data-toc-popover-trigger],
30
+ [data-toc-popover-content] {
31
+ @apply px-4;
32
+ }
33
+
34
+ [data-toc-popover] {
35
+ top: calc(var(--fd-docs-row-1) + 2.5 * var(--spacing));
36
+ @apply mx-4 mt-2.5;
37
+
38
+ header {
39
+ transform-origin: top center;
40
+ @apply border rounded-xl shadow-lg transition-[margin] has-data-[active=true]:-mx-2 has-data-[active=true]:bg-fd-popover/80;
41
+ }
42
+ }
43
+ }
44
+
45
+ #nd-notebook-layout {
46
+ #nd-page {
47
+ @apply relative md:px-9 xl:px-12;
48
+ }
49
+
50
+ #nd-page:before {
51
+ content: '';
52
+ @apply absolute inset-0 bg-fd-article rounded-xl border shadow-xl m-4 mb-2 -z-1;
53
+ }
54
+
55
+ [data-toc-popover-trigger],
56
+ [data-toc-popover-content] {
57
+ @apply px-4;
58
+ }
59
+
60
+ [data-toc-popover] {
61
+ top: calc(var(--fd-docs-row-2) + 2.5 * var(--spacing));
62
+ @apply mx-4 mt-2.5;
63
+
64
+ header {
65
+ transform-origin: top center;
66
+ @apply border rounded-xl shadow-lg transition-[margin] has-data-[active=true]:-mx-2 has-data-[active=true]:bg-fd-popover/80;
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ #nd-sidebar[data-collapsed='false'] {
73
+ border: none;
74
+ @apply bg-fd-background;
75
+ }