slidev-theme-neversink 0.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.
- package/.github/workflows/deploy.yml +67 -0
- package/.prettierrc +15 -0
- package/.vscode/settings.json +4 -0
- package/LICENSE +21 -0
- package/README.md +112 -0
- package/assets/nyu_long_black_on_white.svg +41 -0
- package/components/Admonition.vue +80 -0
- package/components/AdmonitionType.vue +56 -0
- package/components/CreditScroll.vue +94 -0
- package/components/SpeechBubble.vue +294 -0
- package/components/StickyNote.vue +71 -0
- package/components/vue3-kawaii/README.md +5 -0
- package/components/vue3-kawaii/components/backpack/BackPack.vue +123 -0
- package/components/vue3-kawaii/components/backpack/backpackpaths.js +17 -0
- package/components/vue3-kawaii/components/browser/Browser.vue +56 -0
- package/components/vue3-kawaii/components/browser/browserpaths.js +9 -0
- package/components/vue3-kawaii/components/cat/Cat.vue +89 -0
- package/components/vue3-kawaii/components/cat/catpaths.js +8 -0
- package/components/vue3-kawaii/components/common/face/Face.vue +95 -0
- package/components/vue3-kawaii/components/common/face/facepaths.js +24 -0
- package/components/vue3-kawaii/components/common/wrapper/Wrapper.vue +24 -0
- package/components/vue3-kawaii/components/creditCard/CreditCard.vue +47 -0
- package/components/vue3-kawaii/components/creditCard/creditcardpaths.js +8 -0
- package/components/vue3-kawaii/components/ghost/Ghost.vue +48 -0
- package/components/vue3-kawaii/components/ghost/ghostpaths.js +8 -0
- package/components/vue3-kawaii/components/iceCream/IceCream.vue +49 -0
- package/components/vue3-kawaii/components/iceCream/icecreampaths.js +9 -0
- package/components/vue3-kawaii/components/mug/Mug.vue +48 -0
- package/components/vue3-kawaii/components/mug/mugpaths.js +7 -0
- package/components/vue3-kawaii/components/planet/Planet.vue +58 -0
- package/components/vue3-kawaii/components/planet/planetpaths.js +7 -0
- package/components/vue3-kawaii/components/speechBubble/SpeechBubbleGuy.vue +63 -0
- package/components/vue3-kawaii/components/speechBubble/speechbubblepaths.js +8 -0
- package/components/vue3-kawaii/utils/getUniqueId.js +10 -0
- package/docs/.vitepress/config.js +75 -0
- package/docs/.vitepress/theme/index.js +50 -0
- package/docs/.vitepress/theme/style.css +145 -0
- package/docs/api-examples.md +49 -0
- package/docs/branding.md +43 -0
- package/docs/colors.md +108 -0
- package/docs/components/admonitions.md +106 -0
- package/docs/components/creditscroll.md +1 -0
- package/docs/components/kawaii.md +26 -0
- package/docs/components/qrcode.md +24 -0
- package/docs/components/speechbubble.md +69 -0
- package/docs/components/stickynote.md +54 -0
- package/docs/components.md +19 -0
- package/docs/contributing.md +5 -0
- package/docs/customizing.md +38 -0
- package/docs/getting-started.md +32 -0
- package/docs/index.md +19 -0
- package/docs/layouts/cover.md +69 -0
- package/docs/layouts/credits.md +111 -0
- package/docs/layouts/default.md +88 -0
- package/docs/layouts/full.md +131 -0
- package/docs/layouts/intro.md +63 -0
- package/docs/layouts/quote.md +51 -0
- package/docs/layouts/section.md +67 -0
- package/docs/layouts/side-title.md +180 -0
- package/docs/layouts/top-title-two-cols.md +171 -0
- package/docs/layouts/top-title.md +103 -0
- package/docs/layouts/two-cols-title.md +273 -0
- package/docs/layouts.md +92 -0
- package/docs/markdown-examples.md +85 -0
- package/docs/markdown.md +87 -0
- package/docs/parts/columnsystem.md +18 -0
- package/docs/parts/layoutpicker.md +73 -0
- package/docs/public/deck.png +0 -0
- package/docs/public/layouts/side-title-12row.svg +27 -0
- package/docs/public/layouts/side-title-is-3.svg +7 -0
- package/docs/public/layouts/side-title-is-6.svg +7 -0
- package/docs/public/layouts/side-title-side.svg +13 -0
- package/docs/public/layouts/two-col-title-12row.svg +31 -0
- package/docs/public/layouts/two-col-title-align.svg +13 -0
- package/docs/public/layouts/two-col-title-is-4.svg +23 -0
- package/docs/public/layouts/two-col-title-is-6.svg +23 -0
- package/docs/public/layouts/two-col-title-titlepos.svg +31 -0
- package/docs/public/screenshots/1.png +0 -0
- package/docs/public/screenshots/10.png +0 -0
- package/docs/public/screenshots/11.png +0 -0
- package/docs/public/screenshots/12.png +0 -0
- package/docs/public/screenshots/13.png +0 -0
- package/docs/public/screenshots/14.png +0 -0
- package/docs/public/screenshots/15.png +0 -0
- package/docs/public/screenshots/16.png +0 -0
- package/docs/public/screenshots/17.png +0 -0
- package/docs/public/screenshots/18.png +0 -0
- package/docs/public/screenshots/19.png +0 -0
- package/docs/public/screenshots/2.png +0 -0
- package/docs/public/screenshots/20.png +0 -0
- package/docs/public/screenshots/21.png +0 -0
- package/docs/public/screenshots/22.png +0 -0
- package/docs/public/screenshots/23.png +0 -0
- package/docs/public/screenshots/24.png +0 -0
- package/docs/public/screenshots/25.png +0 -0
- package/docs/public/screenshots/26.png +0 -0
- package/docs/public/screenshots/27.png +0 -0
- package/docs/public/screenshots/28.png +0 -0
- package/docs/public/screenshots/29.png +0 -0
- package/docs/public/screenshots/3.png +0 -0
- package/docs/public/screenshots/30.png +0 -0
- package/docs/public/screenshots/31.png +0 -0
- package/docs/public/screenshots/32.png +0 -0
- package/docs/public/screenshots/33.png +0 -0
- package/docs/public/screenshots/34.png +0 -0
- package/docs/public/screenshots/35.png +0 -0
- package/docs/public/screenshots/36.png +0 -0
- package/docs/public/screenshots/37.png +0 -0
- package/docs/public/screenshots/38.png +0 -0
- package/docs/public/screenshots/4.png +0 -0
- package/docs/public/screenshots/5.png +0 -0
- package/docs/public/screenshots/6.png +0 -0
- package/docs/public/screenshots/7.png +0 -0
- package/docs/public/screenshots/8.png +0 -0
- package/docs/public/screenshots/9.png +0 -0
- package/example.md +1503 -0
- package/layoutHelper.ts +118 -0
- package/layouts/cover.vue +93 -0
- package/layouts/credits.vue +35 -0
- package/layouts/default.vue +18 -0
- package/layouts/four-cell.vue +210 -0
- package/layouts/full.vue +22 -0
- package/layouts/intro.vue +75 -0
- package/layouts/quote.vue +62 -0
- package/layouts/section.vue +84 -0
- package/layouts/side-title.vue +142 -0
- package/layouts/top-title-two-cols.vue +131 -0
- package/layouts/top-title.vue +63 -0
- package/layouts/two-cols-title.vue +176 -0
- package/layouts/two-cols.vue +141 -0
- package/package.json +54 -0
- package/public/images/photo.png +0 -0
- package/public/images/photo2.png +0 -0
- package/public/images/scatter1.png +0 -0
- package/public/images/scatter1.svg +20 -0
- package/screenshot.md +874 -0
- package/setup/main.ts +45 -0
- package/setup/shiki.ts +14 -0
- package/slide-bottom.vue +107 -0
- package/styles/base.css +240 -0
- package/styles/bubbles.css +4 -0
- package/styles/colors.css +12 -0
- package/styles/index.ts +11 -0
- package/styles/layouts.css +76 -0
- package/styles/stickynote.css +4 -0
- package/uno.config.ts +222 -0
- package/vite.config.ts +16 -0
package/uno.config.ts
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
// uno.config.ts
|
|
2
|
+
import { defineConfig } from 'unocss'
|
|
3
|
+
import presetUno from '@unocss/preset-uno'
|
|
4
|
+
import { colors } from '@unocss/preset-mini'
|
|
5
|
+
import transformerDirectives from '@unocss/transformer-directives'
|
|
6
|
+
|
|
7
|
+
// Tailwind CSS color palette
|
|
8
|
+
const colornames = [
|
|
9
|
+
'slate',
|
|
10
|
+
'gray',
|
|
11
|
+
'zinc',
|
|
12
|
+
'neutral',
|
|
13
|
+
'stone',
|
|
14
|
+
'red',
|
|
15
|
+
'orange',
|
|
16
|
+
'amber',
|
|
17
|
+
'yellow',
|
|
18
|
+
'lime',
|
|
19
|
+
'green',
|
|
20
|
+
'emerald',
|
|
21
|
+
'teal',
|
|
22
|
+
'cyan',
|
|
23
|
+
'sky',
|
|
24
|
+
'blue',
|
|
25
|
+
'indigo',
|
|
26
|
+
'violet',
|
|
27
|
+
'purple',
|
|
28
|
+
'fuchsia',
|
|
29
|
+
'pink',
|
|
30
|
+
'rose',
|
|
31
|
+
'navy',
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
// Color values to include
|
|
35
|
+
const values = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]
|
|
36
|
+
|
|
37
|
+
const prefixes = ['fill-', 'fg-', 'bg-', 'text-', 'color-', 'border-']
|
|
38
|
+
|
|
39
|
+
// Function to generate classes
|
|
40
|
+
const generateColors = (prefixes, colors, values) => {
|
|
41
|
+
const classes = []
|
|
42
|
+
colors.forEach((color) => {
|
|
43
|
+
values.forEach((value) => {
|
|
44
|
+
prefixes.forEach((prefix) => {
|
|
45
|
+
classes.push(`${prefix}${color}-${value}`)
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
return classes
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const generate_color_schemes = (colors) => {
|
|
53
|
+
const schemes = []
|
|
54
|
+
const classes = []
|
|
55
|
+
|
|
56
|
+
schemes.push([
|
|
57
|
+
`neversink-black-scheme`,
|
|
58
|
+
{
|
|
59
|
+
'--neversink-bg-color': colors['black'],
|
|
60
|
+
'--neversink-bg-code-color': colors['gray'][600],
|
|
61
|
+
'--neversink-fg-code-color': colors['white'],
|
|
62
|
+
'--neversink-fg-color': colors['white'],
|
|
63
|
+
'--neversink-text-color': colors['white'],
|
|
64
|
+
'--neversink-border-color': colors['white'],
|
|
65
|
+
'--neversink-highlight-color': '#FFA500',
|
|
66
|
+
},
|
|
67
|
+
])
|
|
68
|
+
classes.push('neversink-black-scheme')
|
|
69
|
+
|
|
70
|
+
schemes.push([
|
|
71
|
+
`neversink-white-scheme`,
|
|
72
|
+
{
|
|
73
|
+
'--neversink-bg-color': colors['white'],
|
|
74
|
+
'--neversink-bg-code-color': colors['gray'][100],
|
|
75
|
+
'--neversink-fg-code-color': colors['black'],
|
|
76
|
+
'--neversink-fg-color': colors['black'],
|
|
77
|
+
'--neversink-text-color': colors['black'],
|
|
78
|
+
'--neversink-border-color': colors['gray'][950],
|
|
79
|
+
'--neversink-highlight-color': '#FFA500',
|
|
80
|
+
},
|
|
81
|
+
])
|
|
82
|
+
classes.push('neversink-white-scheme')
|
|
83
|
+
|
|
84
|
+
schemes.push([
|
|
85
|
+
`neversink-dark-scheme`,
|
|
86
|
+
{
|
|
87
|
+
'--neversink-bg-color': colors['gray'][800],
|
|
88
|
+
'--neversink-bg-code-color': colors['gray'][600],
|
|
89
|
+
'--neversink-fg-code-color': colors['white'],
|
|
90
|
+
'--neversink-fg-color': colors['gray'][100],
|
|
91
|
+
'--neversink-text-color': colors['gray'][100],
|
|
92
|
+
'--neversink-border-color': colors['gray'][100],
|
|
93
|
+
'--neversink-highlight-color': '#FFA500',
|
|
94
|
+
},
|
|
95
|
+
])
|
|
96
|
+
classes.push('neversink-dark-scheme')
|
|
97
|
+
|
|
98
|
+
schemes.push([
|
|
99
|
+
`neversink-light-scheme`,
|
|
100
|
+
{
|
|
101
|
+
'--neversink-bg-color': colors['gray'][100],
|
|
102
|
+
'--neversink-bg-code-color': colors['gray'][200],
|
|
103
|
+
'--neversink-fg-color': colors['gray'][800],
|
|
104
|
+
'--neversink-text-color': colors['gray'][800],
|
|
105
|
+
'--neversink-border-color': colors['gray'][800],
|
|
106
|
+
'--neversink-highlight-color': '#FFA500',
|
|
107
|
+
},
|
|
108
|
+
])
|
|
109
|
+
classes.push('neversink-light-scheme')
|
|
110
|
+
|
|
111
|
+
for (const color of colornames) {
|
|
112
|
+
if (color == 'navy') {
|
|
113
|
+
schemes.push([
|
|
114
|
+
`neversink-navy-scheme`,
|
|
115
|
+
{
|
|
116
|
+
'--neversink-bg-color': '#2a373a',
|
|
117
|
+
'--neversink-bg-code-color': colors['gray'][200],
|
|
118
|
+
'--neversink-fg-color': colors['gray'][300],
|
|
119
|
+
'--neversink-text-color': colors['gray'][300],
|
|
120
|
+
'--neversink-border-color': colors['gray'][300],
|
|
121
|
+
'--neversink-highlight-color': '#FFA500',
|
|
122
|
+
},
|
|
123
|
+
])
|
|
124
|
+
classes.push('neversink-navy-scheme')
|
|
125
|
+
|
|
126
|
+
schemes.push([
|
|
127
|
+
`neversink-navy-light-scheme`,
|
|
128
|
+
{
|
|
129
|
+
'--neversink-bg-color': colors['gray'][50],
|
|
130
|
+
'--neversink-bg-code-color': colors['gray'][400],
|
|
131
|
+
'--neversink-fg-color': '#2a373a',
|
|
132
|
+
'--neversink-text-color': '#2a373a',
|
|
133
|
+
'--neversink-border-color': '#2a373a',
|
|
134
|
+
'--neversink-highlight-color': '#FFA500',
|
|
135
|
+
},
|
|
136
|
+
])
|
|
137
|
+
classes.push('neversink-navy-light-scheme')
|
|
138
|
+
} else {
|
|
139
|
+
// push the normal theme
|
|
140
|
+
schemes.push([
|
|
141
|
+
`neversink-${color}-scheme`,
|
|
142
|
+
{
|
|
143
|
+
'--neversink-bg-color': colors[color][500],
|
|
144
|
+
'--neversink-bg-code-color': colors[color][600],
|
|
145
|
+
'--neversink-fg-code-color': colors[color][100],
|
|
146
|
+
'--neversink-fg-color': colors[color][100],
|
|
147
|
+
'--neversink-text-color': colors[color][100],
|
|
148
|
+
'--neversink-border-color': colors[color][100],
|
|
149
|
+
'--neversink-highlight-color': colors[color][100],
|
|
150
|
+
'--neversink-admon-bg-color': colors[color][500],
|
|
151
|
+
'--neversink-admon-border-color': colors[color][300],
|
|
152
|
+
'--neversink-admon-text-color': colors[color][100],
|
|
153
|
+
},
|
|
154
|
+
])
|
|
155
|
+
classes.push(`neversink-${color}-scheme`)
|
|
156
|
+
|
|
157
|
+
// push the light theme
|
|
158
|
+
schemes.push([
|
|
159
|
+
`neversink-${color}-light-scheme`,
|
|
160
|
+
{
|
|
161
|
+
'--neversink-bg-color': colors[color][100],
|
|
162
|
+
'--neversink-bg-code-color': colors[color][200],
|
|
163
|
+
'--neversink-fg-code-color': colors[color][500],
|
|
164
|
+
'--neversink-fg-color': colors[color][600],
|
|
165
|
+
'--neversink-text-color': colors[color][500],
|
|
166
|
+
'--neversink-border-color': colors[color][500],
|
|
167
|
+
'--neversink-highlight-color': colors[color][500],
|
|
168
|
+
'--neversink-admon-bg-color': colors[color][100],
|
|
169
|
+
'--neversink-admon-border-color': colors[color][300],
|
|
170
|
+
'--neversink-admon-text-color': colors[color][600],
|
|
171
|
+
},
|
|
172
|
+
])
|
|
173
|
+
classes.push(`neversink-${color}-light-scheme`)
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return { classes: classes, schemes: schemes }
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const generate_text_sizes = () => {
|
|
180
|
+
const classes = Array.from({ length: 10 }, (_, i) => `text-${i + 1}xl`)
|
|
181
|
+
classes.push('text-xs')
|
|
182
|
+
classes.push('text-sm')
|
|
183
|
+
classes.push('text-base')
|
|
184
|
+
classes.push('text-lg')
|
|
185
|
+
classes.push('text-xl')
|
|
186
|
+
return classes
|
|
187
|
+
}
|
|
188
|
+
const generateColumns = (max) => {
|
|
189
|
+
return Array.from({ length: max }, (_, i) => `col-span-${i + 1}`)
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const generateRows = (max) => {
|
|
193
|
+
return Array.from({ length: max }, (_, i) => `row-span-${i + 1}`)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const schemes = generate_color_schemes(colors)
|
|
197
|
+
|
|
198
|
+
console.log('Loading Neversink theme uno.config.ts...')
|
|
199
|
+
export default defineConfig({
|
|
200
|
+
// ...UnoCSS options
|
|
201
|
+
presets: [presetUno()],
|
|
202
|
+
rules: [...schemes.schemes],
|
|
203
|
+
safelist: [
|
|
204
|
+
...generateColors(prefixes, colornames, values),
|
|
205
|
+
...generateColumns(13),
|
|
206
|
+
...generateRows(13),
|
|
207
|
+
...generate_text_sizes(),
|
|
208
|
+
...schemes.classes,
|
|
209
|
+
...['text-center', 'text-right', 'text-left', ':root'],
|
|
210
|
+
...[
|
|
211
|
+
'grid',
|
|
212
|
+
'w-full',
|
|
213
|
+
'grid-cols-2',
|
|
214
|
+
'grid-item',
|
|
215
|
+
'grid-cols-1',
|
|
216
|
+
'grid-col-span-1',
|
|
217
|
+
'mt-10',
|
|
218
|
+
'mb-10',
|
|
219
|
+
] /* for the docs */,
|
|
220
|
+
],
|
|
221
|
+
transformers: [transformerDirectives()],
|
|
222
|
+
})
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
//import MarkdownItMagicLink from 'markdown-it-magic-link'
|
|
3
|
+
import { sub } from '@mdit/plugin-sub'
|
|
4
|
+
import Mark from 'markdown-it-mark'
|
|
5
|
+
|
|
6
|
+
console.log('Loading Neversink theme vite.config.ts...')
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
slidev: {
|
|
9
|
+
markdown: {
|
|
10
|
+
markdownItSetup(md) {
|
|
11
|
+
md.use(sub)
|
|
12
|
+
md.use(Mark)
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
})
|