-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpinecone.config.js
73 lines (66 loc) · 1.74 KB
/
pinecone.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { colorish, defineConfig } from 'pinecone-cli'
import { roles } from '@rose-pine/palette'
const palette = {}
Object.keys(roles).map((role) => {
const currentRole = roles[role]
// Add Rosé Pine palette.
palette[role] = {
main: currentRole.main.alpha?.hex ?? currentRole.main.hex,
moon: currentRole.moon.alpha?.hex ?? currentRole.moon.hex,
dawn: currentRole.dawn.alpha?.hex ?? currentRole.dawn.hex,
}
// Add translucent variations.
palette[`${role}/50`] = {
main: colorish(currentRole.main.hex, 0.5),
moon: colorish(currentRole.moon.hex, 0.5),
dawn: colorish(currentRole.dawn.hex, 0.5),
}
palette[`${role}/30`] = {
main: colorish(currentRole.main.hex, 0.3),
moon: colorish(currentRole.moon.hex, 0.3),
dawn: colorish(currentRole.dawn.hex, 0.3),
}
palette[`${role}/20`] = {
main: colorish(currentRole.main.hex, 0.2),
moon: colorish(currentRole.moon.hex, 0.2),
dawn: colorish(currentRole.dawn.hex, 0.2),
}
palette[`${role}/15`] = {
main: colorish(currentRole.main.hex, 0.15),
moon: colorish(currentRole.moon.hex, 0.15),
dawn: colorish(currentRole.dawn.hex, 0.15),
}
})
export default defineConfig({
options: {
source: './themes/_pinecone-color-theme.json',
output: './themes',
prefix: '$',
includeNonItalicVariants: true,
},
variants: {
main: {
name: 'Rosé Pine',
type: 'dark',
},
moon: {
name: 'Rosé Pine Moon',
type: 'dark',
},
dawn: {
name: 'Rosé Pine Dawn',
type: 'light',
},
},
colors: {
shadow: colorish(palette.surface, 0.3),
transparent: '#0000',
onPrimary: palette.base,
primary: palette.rose,
primaryHover: colorish(palette.rose, 0.9),
onSecondary: palette.base,
secondary: palette.iris,
secondaryHover: colorish(palette.iris, 0.9),
...palette,
},
})