fluorokit 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +181 -2
- package/bin/fluorokit.mjs +50 -0
- package/dist/base.css +201 -0
- package/dist/enter.d.ts +8 -0
- package/dist/enter.js +83 -0
- package/dist/fonts/selawik/LICENSE.txt +91 -0
- package/dist/fonts/selawik/selawk.woff2 +0 -0
- package/dist/fonts/selawik/selawkb.woff2 +0 -0
- package/dist/fonts/selawik/selawkl.woff2 +0 -0
- package/dist/fonts/selawik/selawksb.woff2 +0 -0
- package/dist/fonts/selawik/selawksl.woff2 +0 -0
- package/dist/fonts/selawik.css +38 -0
- package/dist/shiki/blueberry-dark.json +157 -0
- package/dist/shiki/blueberry-light.json +157 -0
- package/dist/shiki/cobalt-dark.json +157 -0
- package/dist/shiki/cobalt-light.json +157 -0
- package/dist/shiki/ink-dark.json +157 -0
- package/dist/shiki/ink-light.json +157 -0
- package/dist/shiki/twilight-dark.json +157 -0
- package/dist/shiki/twilight-light.json +157 -0
- package/dist/structure.css +48 -0
- package/dist/svelte/Pivot.svelte +45 -0
- package/dist/tailwind.css +52 -0
- package/dist/themes/blueberry.css +185 -0
- package/dist/themes/blueberry.scoped.css +274 -0
- package/dist/themes/blueberry.shadcn.css +274 -0
- package/dist/themes/catppuccin.css +155 -0
- package/dist/themes/catppuccin.scoped.css +244 -0
- package/dist/themes/catppuccin.shadcn.css +244 -0
- package/dist/themes/cobalt.css +185 -0
- package/dist/themes/cobalt.scoped.css +274 -0
- package/dist/themes/cobalt.shadcn.css +274 -0
- package/dist/themes/ink.css +185 -0
- package/dist/themes/ink.scoped.css +274 -0
- package/dist/themes/ink.shadcn.css +274 -0
- package/dist/themes/twilight.css +185 -0
- package/dist/themes/twilight.scoped.css +274 -0
- package/dist/themes/twilight.shadcn.css +274 -0
- package/dist/themes/zune.css +76 -0
- package/dist/themes/zune.scoped.css +125 -0
- package/dist/themes/zune.shadcn.css +125 -0
- package/dist/themes.json +855 -0
- package/dist/tools/color.mjs +51 -0
- package/dist/tools/fluoro.mjs +207 -0
- package/dist/tools/presets.mjs +87 -0
- package/dist/tools/theme-css.mjs +133 -0
- package/package.json +70 -4
- package/tokens/structure.json +51 -0
- package/tokens/themes/blueberry.json +157 -0
- package/tokens/themes/catppuccin.json +133 -0
- package/tokens/themes/cobalt.json +157 -0
- package/tokens/themes/ink.json +157 -0
- package/tokens/themes/twilight.json +157 -0
- package/tokens/themes/zune.json +92 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fluorokit-ink-dark",
|
|
3
|
+
"type": "dark",
|
|
4
|
+
"colors": {
|
|
5
|
+
"editor.foreground": "#f3e7ee",
|
|
6
|
+
"editor.background": "#0a0d15"
|
|
7
|
+
},
|
|
8
|
+
"tokenColors": [
|
|
9
|
+
{
|
|
10
|
+
"settings": {
|
|
11
|
+
"foreground": "#f3e7ee"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"scope": [
|
|
16
|
+
"comment",
|
|
17
|
+
"punctuation.definition.comment"
|
|
18
|
+
],
|
|
19
|
+
"settings": {
|
|
20
|
+
"foreground": "#999eab",
|
|
21
|
+
"fontStyle": "italic"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"scope": [
|
|
26
|
+
"punctuation",
|
|
27
|
+
"meta.brace",
|
|
28
|
+
"keyword.operator",
|
|
29
|
+
"meta.embedded punctuation"
|
|
30
|
+
],
|
|
31
|
+
"settings": {
|
|
32
|
+
"foreground": "#bbbdc7"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"scope": [
|
|
37
|
+
"keyword",
|
|
38
|
+
"storage",
|
|
39
|
+
"storage.type",
|
|
40
|
+
"storage.modifier",
|
|
41
|
+
"keyword.operator.new",
|
|
42
|
+
"keyword.operator.expression",
|
|
43
|
+
"keyword.operator.logical.python",
|
|
44
|
+
"variable.language"
|
|
45
|
+
],
|
|
46
|
+
"settings": {
|
|
47
|
+
"foreground": "#faa6ce"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"scope": [
|
|
52
|
+
"string",
|
|
53
|
+
"punctuation.definition.string",
|
|
54
|
+
"markup.inline.raw",
|
|
55
|
+
"markup.inserted"
|
|
56
|
+
],
|
|
57
|
+
"settings": {
|
|
58
|
+
"foreground": "#95e6bb"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"scope": [
|
|
63
|
+
"constant.numeric",
|
|
64
|
+
"constant.language",
|
|
65
|
+
"markup.deleted"
|
|
66
|
+
],
|
|
67
|
+
"settings": {
|
|
68
|
+
"foreground": "#fbbb87"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"scope": [
|
|
73
|
+
"constant.other",
|
|
74
|
+
"constant.character",
|
|
75
|
+
"variable.other.constant",
|
|
76
|
+
"support.constant",
|
|
77
|
+
"variable.other.enummember"
|
|
78
|
+
],
|
|
79
|
+
"settings": {
|
|
80
|
+
"foreground": "#d3aaf3"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"scope": [
|
|
85
|
+
"entity.name.function",
|
|
86
|
+
"support.function",
|
|
87
|
+
"meta.function-call entity.name",
|
|
88
|
+
"markup.heading"
|
|
89
|
+
],
|
|
90
|
+
"settings": {
|
|
91
|
+
"foreground": "#86cff5"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"scope": [
|
|
96
|
+
"entity.name.type",
|
|
97
|
+
"entity.name.class",
|
|
98
|
+
"entity.name.namespace",
|
|
99
|
+
"support.type",
|
|
100
|
+
"support.class",
|
|
101
|
+
"entity.other.inherited-class"
|
|
102
|
+
],
|
|
103
|
+
"settings": {
|
|
104
|
+
"foreground": "#f2d995"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"scope": [
|
|
109
|
+
"entity.name.tag",
|
|
110
|
+
"punctuation.definition.tag"
|
|
111
|
+
],
|
|
112
|
+
"settings": {
|
|
113
|
+
"foreground": "#faa6ce"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"scope": [
|
|
118
|
+
"entity.other.attribute-name",
|
|
119
|
+
"support.type.property-name",
|
|
120
|
+
"meta.object-literal.key",
|
|
121
|
+
"entity.name.tag.yaml",
|
|
122
|
+
"variable.other.property"
|
|
123
|
+
],
|
|
124
|
+
"settings": {
|
|
125
|
+
"foreground": "#86cff5"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"scope": [
|
|
130
|
+
"variable",
|
|
131
|
+
"variable.parameter",
|
|
132
|
+
"variable.other.readwrite"
|
|
133
|
+
],
|
|
134
|
+
"settings": {
|
|
135
|
+
"foreground": "#f3e7ee"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"scope": [
|
|
140
|
+
"markup.bold"
|
|
141
|
+
],
|
|
142
|
+
"settings": {
|
|
143
|
+
"foreground": "#f3e7ee",
|
|
144
|
+
"fontStyle": "bold"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"scope": [
|
|
149
|
+
"markup.italic"
|
|
150
|
+
],
|
|
151
|
+
"settings": {
|
|
152
|
+
"foreground": "#f3e7ee",
|
|
153
|
+
"fontStyle": "italic"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fluorokit-ink-light",
|
|
3
|
+
"type": "light",
|
|
4
|
+
"colors": {
|
|
5
|
+
"editor.foreground": "#212635",
|
|
6
|
+
"editor.background": "#ebedf0"
|
|
7
|
+
},
|
|
8
|
+
"tokenColors": [
|
|
9
|
+
{
|
|
10
|
+
"settings": {
|
|
11
|
+
"foreground": "#212635"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"scope": [
|
|
16
|
+
"comment",
|
|
17
|
+
"punctuation.definition.comment"
|
|
18
|
+
],
|
|
19
|
+
"settings": {
|
|
20
|
+
"foreground": "#666a75",
|
|
21
|
+
"fontStyle": "italic"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"scope": [
|
|
26
|
+
"punctuation",
|
|
27
|
+
"meta.brace",
|
|
28
|
+
"keyword.operator",
|
|
29
|
+
"meta.embedded punctuation"
|
|
30
|
+
],
|
|
31
|
+
"settings": {
|
|
32
|
+
"foreground": "#383d4a"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"scope": [
|
|
37
|
+
"keyword",
|
|
38
|
+
"storage",
|
|
39
|
+
"storage.type",
|
|
40
|
+
"storage.modifier",
|
|
41
|
+
"keyword.operator.new",
|
|
42
|
+
"keyword.operator.expression",
|
|
43
|
+
"keyword.operator.logical.python",
|
|
44
|
+
"variable.language"
|
|
45
|
+
],
|
|
46
|
+
"settings": {
|
|
47
|
+
"foreground": "#bb3080"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"scope": [
|
|
52
|
+
"string",
|
|
53
|
+
"punctuation.definition.string",
|
|
54
|
+
"markup.inline.raw",
|
|
55
|
+
"markup.inserted"
|
|
56
|
+
],
|
|
57
|
+
"settings": {
|
|
58
|
+
"foreground": "#007a44"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"scope": [
|
|
63
|
+
"constant.numeric",
|
|
64
|
+
"constant.language",
|
|
65
|
+
"markup.deleted"
|
|
66
|
+
],
|
|
67
|
+
"settings": {
|
|
68
|
+
"foreground": "#ac4f01"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"scope": [
|
|
73
|
+
"constant.other",
|
|
74
|
+
"constant.character",
|
|
75
|
+
"variable.other.constant",
|
|
76
|
+
"support.constant",
|
|
77
|
+
"variable.other.enummember"
|
|
78
|
+
],
|
|
79
|
+
"settings": {
|
|
80
|
+
"foreground": "#9443c6"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"scope": [
|
|
85
|
+
"entity.name.function",
|
|
86
|
+
"support.function",
|
|
87
|
+
"meta.function-call entity.name",
|
|
88
|
+
"markup.heading"
|
|
89
|
+
],
|
|
90
|
+
"settings": {
|
|
91
|
+
"foreground": "#036eae"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"scope": [
|
|
96
|
+
"entity.name.type",
|
|
97
|
+
"entity.name.class",
|
|
98
|
+
"entity.name.namespace",
|
|
99
|
+
"support.type",
|
|
100
|
+
"support.class",
|
|
101
|
+
"entity.other.inherited-class"
|
|
102
|
+
],
|
|
103
|
+
"settings": {
|
|
104
|
+
"foreground": "#8b6203"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"scope": [
|
|
109
|
+
"entity.name.tag",
|
|
110
|
+
"punctuation.definition.tag"
|
|
111
|
+
],
|
|
112
|
+
"settings": {
|
|
113
|
+
"foreground": "#bb3080"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"scope": [
|
|
118
|
+
"entity.other.attribute-name",
|
|
119
|
+
"support.type.property-name",
|
|
120
|
+
"meta.object-literal.key",
|
|
121
|
+
"entity.name.tag.yaml",
|
|
122
|
+
"variable.other.property"
|
|
123
|
+
],
|
|
124
|
+
"settings": {
|
|
125
|
+
"foreground": "#036eae"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"scope": [
|
|
130
|
+
"variable",
|
|
131
|
+
"variable.parameter",
|
|
132
|
+
"variable.other.readwrite"
|
|
133
|
+
],
|
|
134
|
+
"settings": {
|
|
135
|
+
"foreground": "#212635"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"scope": [
|
|
140
|
+
"markup.bold"
|
|
141
|
+
],
|
|
142
|
+
"settings": {
|
|
143
|
+
"foreground": "#212635",
|
|
144
|
+
"fontStyle": "bold"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"scope": [
|
|
149
|
+
"markup.italic"
|
|
150
|
+
],
|
|
151
|
+
"settings": {
|
|
152
|
+
"foreground": "#212635",
|
|
153
|
+
"fontStyle": "italic"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fluorokit-twilight-dark",
|
|
3
|
+
"type": "dark",
|
|
4
|
+
"colors": {
|
|
5
|
+
"editor.foreground": "#f3e6f6",
|
|
6
|
+
"editor.background": "#1a1436"
|
|
7
|
+
},
|
|
8
|
+
"tokenColors": [
|
|
9
|
+
{
|
|
10
|
+
"settings": {
|
|
11
|
+
"foreground": "#f3e6f6"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"scope": [
|
|
16
|
+
"comment",
|
|
17
|
+
"punctuation.definition.comment"
|
|
18
|
+
],
|
|
19
|
+
"settings": {
|
|
20
|
+
"foreground": "#9d9cb1",
|
|
21
|
+
"fontStyle": "italic"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"scope": [
|
|
26
|
+
"punctuation",
|
|
27
|
+
"meta.brace",
|
|
28
|
+
"keyword.operator",
|
|
29
|
+
"meta.embedded punctuation"
|
|
30
|
+
],
|
|
31
|
+
"settings": {
|
|
32
|
+
"foreground": "#bfb8db"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"scope": [
|
|
37
|
+
"keyword",
|
|
38
|
+
"storage",
|
|
39
|
+
"storage.type",
|
|
40
|
+
"storage.modifier",
|
|
41
|
+
"keyword.operator.new",
|
|
42
|
+
"keyword.operator.expression",
|
|
43
|
+
"keyword.operator.logical.python",
|
|
44
|
+
"variable.language"
|
|
45
|
+
],
|
|
46
|
+
"settings": {
|
|
47
|
+
"foreground": "#faa6ce"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"scope": [
|
|
52
|
+
"string",
|
|
53
|
+
"punctuation.definition.string",
|
|
54
|
+
"markup.inline.raw",
|
|
55
|
+
"markup.inserted"
|
|
56
|
+
],
|
|
57
|
+
"settings": {
|
|
58
|
+
"foreground": "#95e6bb"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"scope": [
|
|
63
|
+
"constant.numeric",
|
|
64
|
+
"constant.language",
|
|
65
|
+
"markup.deleted"
|
|
66
|
+
],
|
|
67
|
+
"settings": {
|
|
68
|
+
"foreground": "#fbbb87"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"scope": [
|
|
73
|
+
"constant.other",
|
|
74
|
+
"constant.character",
|
|
75
|
+
"variable.other.constant",
|
|
76
|
+
"support.constant",
|
|
77
|
+
"variable.other.enummember"
|
|
78
|
+
],
|
|
79
|
+
"settings": {
|
|
80
|
+
"foreground": "#d3aaf3"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"scope": [
|
|
85
|
+
"entity.name.function",
|
|
86
|
+
"support.function",
|
|
87
|
+
"meta.function-call entity.name",
|
|
88
|
+
"markup.heading"
|
|
89
|
+
],
|
|
90
|
+
"settings": {
|
|
91
|
+
"foreground": "#86cff5"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"scope": [
|
|
96
|
+
"entity.name.type",
|
|
97
|
+
"entity.name.class",
|
|
98
|
+
"entity.name.namespace",
|
|
99
|
+
"support.type",
|
|
100
|
+
"support.class",
|
|
101
|
+
"entity.other.inherited-class"
|
|
102
|
+
],
|
|
103
|
+
"settings": {
|
|
104
|
+
"foreground": "#f2d995"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"scope": [
|
|
109
|
+
"entity.name.tag",
|
|
110
|
+
"punctuation.definition.tag"
|
|
111
|
+
],
|
|
112
|
+
"settings": {
|
|
113
|
+
"foreground": "#faa6ce"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"scope": [
|
|
118
|
+
"entity.other.attribute-name",
|
|
119
|
+
"support.type.property-name",
|
|
120
|
+
"meta.object-literal.key",
|
|
121
|
+
"entity.name.tag.yaml",
|
|
122
|
+
"variable.other.property"
|
|
123
|
+
],
|
|
124
|
+
"settings": {
|
|
125
|
+
"foreground": "#86cff5"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"scope": [
|
|
130
|
+
"variable",
|
|
131
|
+
"variable.parameter",
|
|
132
|
+
"variable.other.readwrite"
|
|
133
|
+
],
|
|
134
|
+
"settings": {
|
|
135
|
+
"foreground": "#f3e6f6"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"scope": [
|
|
140
|
+
"markup.bold"
|
|
141
|
+
],
|
|
142
|
+
"settings": {
|
|
143
|
+
"foreground": "#f3e6f6",
|
|
144
|
+
"fontStyle": "bold"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"scope": [
|
|
149
|
+
"markup.italic"
|
|
150
|
+
],
|
|
151
|
+
"settings": {
|
|
152
|
+
"foreground": "#f3e6f6",
|
|
153
|
+
"fontStyle": "italic"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fluorokit-twilight-light",
|
|
3
|
+
"type": "light",
|
|
4
|
+
"colors": {
|
|
5
|
+
"editor.foreground": "#41396f",
|
|
6
|
+
"editor.background": "#ececf5"
|
|
7
|
+
},
|
|
8
|
+
"tokenColors": [
|
|
9
|
+
{
|
|
10
|
+
"settings": {
|
|
11
|
+
"foreground": "#41396f"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"scope": [
|
|
16
|
+
"comment",
|
|
17
|
+
"punctuation.definition.comment"
|
|
18
|
+
],
|
|
19
|
+
"settings": {
|
|
20
|
+
"foreground": "#69687b",
|
|
21
|
+
"fontStyle": "italic"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"scope": [
|
|
26
|
+
"punctuation",
|
|
27
|
+
"meta.brace",
|
|
28
|
+
"keyword.operator",
|
|
29
|
+
"meta.embedded punctuation"
|
|
30
|
+
],
|
|
31
|
+
"settings": {
|
|
32
|
+
"foreground": "#595481"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"scope": [
|
|
37
|
+
"keyword",
|
|
38
|
+
"storage",
|
|
39
|
+
"storage.type",
|
|
40
|
+
"storage.modifier",
|
|
41
|
+
"keyword.operator.new",
|
|
42
|
+
"keyword.operator.expression",
|
|
43
|
+
"keyword.operator.logical.python",
|
|
44
|
+
"variable.language"
|
|
45
|
+
],
|
|
46
|
+
"settings": {
|
|
47
|
+
"foreground": "#bb3080"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"scope": [
|
|
52
|
+
"string",
|
|
53
|
+
"punctuation.definition.string",
|
|
54
|
+
"markup.inline.raw",
|
|
55
|
+
"markup.inserted"
|
|
56
|
+
],
|
|
57
|
+
"settings": {
|
|
58
|
+
"foreground": "#007a44"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"scope": [
|
|
63
|
+
"constant.numeric",
|
|
64
|
+
"constant.language",
|
|
65
|
+
"markup.deleted"
|
|
66
|
+
],
|
|
67
|
+
"settings": {
|
|
68
|
+
"foreground": "#ac4f01"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"scope": [
|
|
73
|
+
"constant.other",
|
|
74
|
+
"constant.character",
|
|
75
|
+
"variable.other.constant",
|
|
76
|
+
"support.constant",
|
|
77
|
+
"variable.other.enummember"
|
|
78
|
+
],
|
|
79
|
+
"settings": {
|
|
80
|
+
"foreground": "#9443c6"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"scope": [
|
|
85
|
+
"entity.name.function",
|
|
86
|
+
"support.function",
|
|
87
|
+
"meta.function-call entity.name",
|
|
88
|
+
"markup.heading"
|
|
89
|
+
],
|
|
90
|
+
"settings": {
|
|
91
|
+
"foreground": "#036eae"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"scope": [
|
|
96
|
+
"entity.name.type",
|
|
97
|
+
"entity.name.class",
|
|
98
|
+
"entity.name.namespace",
|
|
99
|
+
"support.type",
|
|
100
|
+
"support.class",
|
|
101
|
+
"entity.other.inherited-class"
|
|
102
|
+
],
|
|
103
|
+
"settings": {
|
|
104
|
+
"foreground": "#8b6203"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"scope": [
|
|
109
|
+
"entity.name.tag",
|
|
110
|
+
"punctuation.definition.tag"
|
|
111
|
+
],
|
|
112
|
+
"settings": {
|
|
113
|
+
"foreground": "#bb3080"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"scope": [
|
|
118
|
+
"entity.other.attribute-name",
|
|
119
|
+
"support.type.property-name",
|
|
120
|
+
"meta.object-literal.key",
|
|
121
|
+
"entity.name.tag.yaml",
|
|
122
|
+
"variable.other.property"
|
|
123
|
+
],
|
|
124
|
+
"settings": {
|
|
125
|
+
"foreground": "#036eae"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"scope": [
|
|
130
|
+
"variable",
|
|
131
|
+
"variable.parameter",
|
|
132
|
+
"variable.other.readwrite"
|
|
133
|
+
],
|
|
134
|
+
"settings": {
|
|
135
|
+
"foreground": "#41396f"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"scope": [
|
|
140
|
+
"markup.bold"
|
|
141
|
+
],
|
|
142
|
+
"settings": {
|
|
143
|
+
"foreground": "#41396f",
|
|
144
|
+
"fontStyle": "bold"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"scope": [
|
|
149
|
+
"markup.italic"
|
|
150
|
+
],
|
|
151
|
+
"settings": {
|
|
152
|
+
"foreground": "#41396f",
|
|
153
|
+
"fontStyle": "italic"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* fluorokit: spacing, shape, type scale and motion. Generated by scripts/build.mjs. Do not edit by hand. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--fk-space-1: 4px;
|
|
5
|
+
--fk-space-2: 8px;
|
|
6
|
+
--fk-space-3: 12px;
|
|
7
|
+
--fk-space-4: 16px;
|
|
8
|
+
--fk-space-6: 24px;
|
|
9
|
+
--fk-space-8: 32px;
|
|
10
|
+
--fk-space-12: 48px;
|
|
11
|
+
--fk-space-16: 64px;
|
|
12
|
+
--fk-page-margin: 120px;
|
|
13
|
+
|
|
14
|
+
--fk-radius: 0;
|
|
15
|
+
--fk-tile-1: 152px;
|
|
16
|
+
--fk-tile-2: 312px;
|
|
17
|
+
--fk-tile-gap: var(--fk-space-2);
|
|
18
|
+
--fk-bar-edge: 6px;
|
|
19
|
+
--fk-bar-field: 12px;
|
|
20
|
+
--fk-touch-target: 40px;
|
|
21
|
+
|
|
22
|
+
--fk-hero-size: clamp(3.5rem, 11vw, 6rem);
|
|
23
|
+
--fk-hero-leading: 0.917;
|
|
24
|
+
--fk-title-size: clamp(2.5rem, 6vw, 3.5rem);
|
|
25
|
+
--fk-title-leading: 1.071;
|
|
26
|
+
--fk-heading-size: 1.5rem;
|
|
27
|
+
--fk-heading-leading: 1.333;
|
|
28
|
+
--fk-subheading-size: 1.125rem;
|
|
29
|
+
--fk-subheading-leading: 1.333;
|
|
30
|
+
--fk-body-size: 1rem;
|
|
31
|
+
--fk-body-leading: 1.5;
|
|
32
|
+
--fk-small-size: 0.875rem;
|
|
33
|
+
--fk-small-leading: 1.429;
|
|
34
|
+
--fk-label-size: 0.75rem;
|
|
35
|
+
--fk-label-leading: 1.333;
|
|
36
|
+
--fk-overline-size: 0.75rem;
|
|
37
|
+
--fk-overline-leading: 1.333;
|
|
38
|
+
--fk-data-size: 0.875rem;
|
|
39
|
+
--fk-data-leading: 1.429;
|
|
40
|
+
--fk-pivot-size: 2rem;
|
|
41
|
+
--fk-pivot-leading: 1;
|
|
42
|
+
--fk-subpivot-size: 1.15rem;
|
|
43
|
+
|
|
44
|
+
--fk-ease-metro: cubic-bezier(0.1, 0.9, 0.2, 1);
|
|
45
|
+
--fk-enter-offset: 80px;
|
|
46
|
+
--fk-enter-duration: 0.7s;
|
|
47
|
+
--fk-enter-stagger: 60ms;
|
|
48
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<script lang="ts" generics="T extends string">
|
|
2
|
+
// A row of pivot headers: the selected one is solid, the rest are faint.
|
|
3
|
+
// `size` picks the top-level or second-level style. Write the items in
|
|
4
|
+
// lowercase by hand.
|
|
5
|
+
//
|
|
6
|
+
// A click points the next page-enter at the side the new item lies on, so
|
|
7
|
+
// content with .fk-enter slides in from that side. The styles are in
|
|
8
|
+
// fluorokit/base.css.
|
|
9
|
+
import { setEnterDirection } from '../enter.js';
|
|
10
|
+
|
|
11
|
+
let {
|
|
12
|
+
items,
|
|
13
|
+
value = $bindable(),
|
|
14
|
+
size = 'pivot',
|
|
15
|
+
disabled = [],
|
|
16
|
+
scope = null
|
|
17
|
+
}: {
|
|
18
|
+
items: readonly T[];
|
|
19
|
+
value: T;
|
|
20
|
+
size?: 'pivot' | 'subpivot';
|
|
21
|
+
disabled?: readonly T[];
|
|
22
|
+
/** The element that holds the entering content. Default: the root element. */
|
|
23
|
+
scope?: HTMLElement | null;
|
|
24
|
+
} = $props();
|
|
25
|
+
|
|
26
|
+
function select(item: T) {
|
|
27
|
+
if (item === value) return;
|
|
28
|
+
setEnterDirection(items, value, item, scope);
|
|
29
|
+
value = item;
|
|
30
|
+
}
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div class="fk-pivot" class:fk-pivot-sub={size === 'subpivot'} role="tablist">
|
|
34
|
+
{#each items as item (item)}
|
|
35
|
+
<button
|
|
36
|
+
type="button"
|
|
37
|
+
role="tab"
|
|
38
|
+
aria-selected={value === item}
|
|
39
|
+
disabled={disabled.includes(item)}
|
|
40
|
+
onclick={() => select(item)}
|
|
41
|
+
>
|
|
42
|
+
{item}
|
|
43
|
+
</button>
|
|
44
|
+
{/each}
|
|
45
|
+
</div>
|