@graphysdk/theme-solarized 0.0.0-stage → 0.1.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/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+ # License
2
+
3
+ This software is available under any of the following licenses, at your option,
4
+ depending on which one's conditions you meet:
5
+
6
+ - **PolyForm Noncommercial 1.0.0** — for noncommercial use (personal,
7
+ charitable, educational, research, government).
8
+ See [licenses/PolyForm-NonCommercial-1.0.0.md](licenses/PolyForm-NonCommercial-1.0.0.md)
9
+
10
+ - **PolyForm Small Business 1.0.0** — free commercial use for organizations
11
+ under the size thresholds defined in the license.
12
+ See [licenses/PolyForm-Small-Business-1.0.0.md](licenses/PolyForm-Small-Business-1.0.0.md)
13
+
14
+ - **PolyForm Free Trial 1.0.0** — a 32-day evaluation for anyone else.
15
+ See [licenses/PolyForm-Free-Trial-1.0.0.md](licenses/PolyForm-Free-Trial-1.0.0.md)
16
+
17
+ For commercial use beyond these terms, contact [hello@graphy.dev](mailto:hello@graphy.dev) or visit [https://graphy.dev](https://graphy.dev).
18
+
19
+ ## Third-party notices
20
+
21
+ The theme's colours are the Solarized palette by Ethan Schoonover, used under the MIT licence.
22
+ See [licenses/Solarized-MIT.md](licenses/Solarized-MIT.md)
package/README.md CHANGED
@@ -1,3 +1,62 @@
1
- # Temporary Holding Version
1
+ # @graphysdk/theme-solarized
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > **Beta.** This theme is on a `0.x` version line: a minor release may change its look. Use a caret range (`^0.1.0`) to take only patches.
4
+
5
+ A Solarized theme for the Graphy charting SDK, for light and dark schemes.
6
+
7
+ Learn more at [graphy.dev](https://graphy.dev).
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install @graphysdk/theme-solarized @graphysdk/react
13
+ ```
14
+
15
+ Requires React 19. Its only peer is `@graphysdk/react`.
16
+
17
+ ## Usage
18
+
19
+ Pass the theme to `createGraphyKit` and import its fonts once. Every graph drawn through the kit's `GraphProvider` takes the theme; specs are written as usual.
20
+
21
+ ```tsx
22
+ import { createGraphyKit, GraphRenderer } from '@graphysdk/react';
23
+ import { solarized } from '@graphysdk/theme-solarized';
24
+ import '@graphysdk/theme-solarized/fonts.css';
25
+
26
+ const kit = createGraphyKit({ theme: solarized });
27
+
28
+ const spec = kit.pipe(
29
+ kit.createSpec({ x: 'quarter', y: 'revenue', color: 'region' }),
30
+ kit.geom.bar({ position: 'dodge' }),
31
+ kit.scale.x(),
32
+ kit.scale.y()
33
+ );
34
+
35
+ export function Revenue({ data }) {
36
+ return (
37
+ <kit.GraphProvider spec={spec} data={data}>
38
+ <GraphRenderer />
39
+ </kit.GraphProvider>
40
+ );
41
+ }
42
+ ```
43
+
44
+ A spec's own `styles()`, scales and `config()` sit above the theme, so a graph can still change anything. The theme is drawn for a graph about 600 pixels wide; `style.graph({ textScale: 1.5 })` scales its type for a larger one.
45
+
46
+ The theme is drawn for both schemes: pass `colorScheme="light"` or `colorScheme="dark"` to the provider to pick one.
47
+
48
+ `fonts.css` loads Source Code Pro from Google Fonts, in weights 400, 500 and 600. To host the font yourself, leave the import out and load a family named `Source Code Pro` before the first graph is drawn.
49
+
50
+ ## Docs
51
+
52
+ - [Solarized](https://docs.graphy.dev/sdk-next/themes/solarized)
53
+
54
+ ## Feedback
55
+
56
+ This theme is released early to hear what works. Tell us on [Discord](https://discord.gg/yGmYCjkSr).
57
+
58
+ ## Licence
59
+
60
+ This package is available under PolyForm Noncommercial, Small Business, or a 32-day Free Trial. Free Trial is local or internal evaluation only — it does not cover a public page. See [what you can do under the trial](https://docs.graphy.dev/licence/evaluation).
61
+
62
+ For a commercial licence, [talk to us](https://graphy.dev/license).
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=require("@graphysdk/react");var a={base03:"#002b36",base02:"#073642",base01:"#586e75",base00:"#657b83",base0:"#839496",base1:"#93a1a1",base2:"#eee8d5",base3:"#fdf6e3"},o={yellow:"#b58900",orange:"#cb4b16",red:"#dc322f",magenta:"#d33682",violet:"#6c71c4",blue:"#268bd2",cyan:"#2aa198",green:"#859900"},t={background:{light:a.base3,dark:a.base03},raised:{light:a.base2,dark:a.base02},strong:{light:a.base02,dark:a.base2},text:{light:a.base01,dark:a.base1},axis:{light:a.base1,dark:a.base01},guideFill:{light:"rgba(88, 110, 117, 0.1)",dark:"rgba(147, 161, 161, 0.12)"}},n="'Source Code Pro', ui-monospace, 'SF Mono', Menlo, monospace",s=[o.blue,o.orange,o.cyan,o.magenta,o.green,o.violet,o.yellow,o.red],l=["#dcc96b",o.cyan,"#1b5a85"],r={textColor:t.strong},i={textColor:t.text},d={tokens:{graphBackground:t.background,graphBorder:t.raised,geom:o.blue,geomBorder:t.axis,textPrimary:t.strong,textSecondary:t.text,ruleLine:t.text,gridLine:t.raised,hoverAffordance:t.background,hoverGuideFill:t.guideFill,hoverGuideLine:t.axis,tooltipBackground:t.raised,tooltipBorder:t.axis,tooltipPrimaryRow:t.guideFill,annotationShape:o.yellow,annotationArrow:t.text,differenceLabelBackground:t.raised},defaults:[e.style.graph({strokeWidth:1,cornerRadius:4,fontFamily:n,padding:20}),e.style.geom({shadow:"none"},{state:"hovered"}),e.style.geom.bar({stroke:t.background,strokeWidth:1,cornerRadius:2}),e.style.geom.bar({stroke:t.text,shadow:"none"},{state:"hovered"}),e.style.geom.line({strokeWidth:1.5,dashArray:[],lineCap:"round",lineJoin:"round"}),e.style.geom.area({fillAlpha:.3,strokeWidth:1.5,dashArray:[],lineCap:"round",lineJoin:"round"}),e.style.geom.point({size:9,stroke:t.background,strokeWidth:1}),e.style.geom.point({stroke:t.text},{state:"hovered"}),e.style.geom.tile({cornerRadius:2,stroke:t.background,strokeWidth:1}),e.style.geom.tile({stroke:t.text,shadow:"none"},{state:"hovered"}),e.style.geom.rule({strokeWidth:1,dashArray:[4,3]}),e.style.geom.rule.label({...i,fontWeight:500,fontSize:11.5}),e.style.gridLine({dashArray:[]}),e.style.gridLine.x({strokeWidth:0}),e.style.gridLine.y({strokeWidth:1}),e.style.panelBorder({strokeWidth:0}),e.style.panelBorder.bottom({stroke:t.axis,strokeWidth:1,dashArray:[]}),e.style.tickLine({strokeWidth:0}),e.style.tickLabel({...i,fontWeight:400,fontSize:11.5,lineHeight:1}),e.style.axisLabel({...i,fontWeight:500,fontSize:11.5,lineHeight:1}),e.style.heading({...r}),e.style.heading.h1({fontWeight:600,fontSize:18,lineHeight:1.25}),e.style.heading.h2({...i,fontWeight:400,fontSize:13,lineHeight:1.4}),e.style.caption({...i,fontWeight:400,fontSize:11.5}),e.style.source({...i,fontWeight:400,fontSize:11.5}),e.style.source.link({...i,fontWeight:400,fontSize:11.5}),e.style.dataLabel({...r,fontWeight:500,fontSize:11.5,fill:"transparent"}),e.style.legendItem({...i,fontWeight:400,fontSize:12,fill:"transparent",stroke:"transparent"}),e.style.directLabel({fontWeight:600,fontSize:12}),e.style.tooltip({strokeWidth:1,cornerRadius:3,paddingInline:10,paddingBlock:8,shadow:"none"}),e.style.legend.popover({strokeWidth:1,cornerRadius:3,shadow:"none"}),e.style.tooltip.heading({...r,fontWeight:600,fontSize:12,lineHeight:1.3}),e.style.tooltip.label({...r,fontWeight:400,fontSize:12,lineHeight:1.4}),e.style.tooltip.value({...r,fontWeight:600,fontSize:12,lineHeight:1.4}),e.style.annotation.text({...r,fill:t.raised,stroke:t.axis,strokeWidth:1,cornerRadius:3,paddingInline:8,paddingBlock:4,fontSize:12,lineHeight:1.3}),e.style.annotation.shape({fillAlpha:.2,stroke:o.yellow,strokeWidth:1}),e.style.annotation.arrow({strokeWidth:1.5,dashArray:[]}),e.style.annotation.pinnedNumber({stroke:t.background,shadow:"none"}),e.style.annotation.pinnedNumber.label({...r,fill:t.raised,stroke:t.axis,shadow:"none"}),e.style.annotation.comment({stroke:t.background,shadow:"none"}),e.style.annotation.comment.label({...r,fill:t.raised,stroke:t.axis,shadow:"none"}),e.style.annotation.differenceArrow({stroke:t.text,strokeWidth:1.5}),e.style.annotation.differenceArrow.label({...r,stroke:t.axis,strokeWidth:1,cornerRadius:3,fontSize:11.5}),e.style.panelBorder.bottom({strokeWidth:0},{coord:"polar"})]},g={name:"solarized",styles:d,palette:s,colormap:l};exports.solarized=g;
@@ -0,0 +1 @@
1
+ export { solarized } from './solarized';
package/dist/index.mjs ADDED
@@ -0,0 +1,289 @@
1
+ import { style as e } from "@graphysdk/react";
2
+ var a = {
3
+ base03: "#002b36",
4
+ base02: "#073642",
5
+ base01: "#586e75",
6
+ base00: "#657b83",
7
+ base0: "#839496",
8
+ base1: "#93a1a1",
9
+ base2: "#eee8d5",
10
+ base3: "#fdf6e3"
11
+ }, t = {
12
+ yellow: "#b58900",
13
+ orange: "#cb4b16",
14
+ red: "#dc322f",
15
+ magenta: "#d33682",
16
+ violet: "#6c71c4",
17
+ blue: "#268bd2",
18
+ cyan: "#2aa198",
19
+ green: "#859900"
20
+ }, o = {
21
+ background: {
22
+ light: a.base3,
23
+ dark: a.base03
24
+ },
25
+ raised: {
26
+ light: a.base2,
27
+ dark: a.base02
28
+ },
29
+ strong: {
30
+ light: a.base02,
31
+ dark: a.base2
32
+ },
33
+ text: {
34
+ light: a.base01,
35
+ dark: a.base1
36
+ },
37
+ axis: {
38
+ light: a.base1,
39
+ dark: a.base01
40
+ },
41
+ guideFill: {
42
+ light: "rgba(88, 110, 117, 0.1)",
43
+ dark: "rgba(147, 161, 161, 0.12)"
44
+ }
45
+ }, n = "'Source Code Pro', ui-monospace, 'SF Mono', Menlo, monospace", d = [
46
+ t.blue,
47
+ t.orange,
48
+ t.cyan,
49
+ t.magenta,
50
+ t.green,
51
+ t.violet,
52
+ t.yellow,
53
+ t.red
54
+ ], s = [
55
+ "#dcc96b",
56
+ t.cyan,
57
+ "#1b5a85"
58
+ ], r = { textColor: o.strong }, i = { textColor: o.text }, l = {
59
+ tokens: {
60
+ graphBackground: o.background,
61
+ graphBorder: o.raised,
62
+ geom: t.blue,
63
+ geomBorder: o.axis,
64
+ textPrimary: o.strong,
65
+ textSecondary: o.text,
66
+ ruleLine: o.text,
67
+ gridLine: o.raised,
68
+ hoverAffordance: o.background,
69
+ hoverGuideFill: o.guideFill,
70
+ hoverGuideLine: o.axis,
71
+ tooltipBackground: o.raised,
72
+ tooltipBorder: o.axis,
73
+ tooltipPrimaryRow: o.guideFill,
74
+ annotationShape: t.yellow,
75
+ annotationArrow: o.text,
76
+ differenceLabelBackground: o.raised
77
+ },
78
+ defaults: [
79
+ e.graph({
80
+ strokeWidth: 1,
81
+ cornerRadius: 4,
82
+ fontFamily: n,
83
+ padding: 20
84
+ }),
85
+ e.geom({ shadow: "none" }, { state: "hovered" }),
86
+ e.geom.bar({
87
+ stroke: o.background,
88
+ strokeWidth: 1,
89
+ cornerRadius: 2
90
+ }),
91
+ e.geom.bar({
92
+ stroke: o.text,
93
+ shadow: "none"
94
+ }, { state: "hovered" }),
95
+ e.geom.line({
96
+ strokeWidth: 1.5,
97
+ dashArray: [],
98
+ lineCap: "round",
99
+ lineJoin: "round"
100
+ }),
101
+ e.geom.area({
102
+ fillAlpha: 0.3,
103
+ strokeWidth: 1.5,
104
+ dashArray: [],
105
+ lineCap: "round",
106
+ lineJoin: "round"
107
+ }),
108
+ e.geom.point({
109
+ size: 9,
110
+ stroke: o.background,
111
+ strokeWidth: 1
112
+ }),
113
+ e.geom.point({ stroke: o.text }, { state: "hovered" }),
114
+ e.geom.tile({
115
+ cornerRadius: 2,
116
+ stroke: o.background,
117
+ strokeWidth: 1
118
+ }),
119
+ e.geom.tile({
120
+ stroke: o.text,
121
+ shadow: "none"
122
+ }, { state: "hovered" }),
123
+ e.geom.rule({
124
+ strokeWidth: 1,
125
+ dashArray: [4, 3]
126
+ }),
127
+ e.geom.rule.label({
128
+ ...i,
129
+ fontWeight: 500,
130
+ fontSize: 11.5
131
+ }),
132
+ e.gridLine({ dashArray: [] }),
133
+ e.gridLine.x({ strokeWidth: 0 }),
134
+ e.gridLine.y({ strokeWidth: 1 }),
135
+ e.panelBorder({ strokeWidth: 0 }),
136
+ e.panelBorder.bottom({
137
+ stroke: o.axis,
138
+ strokeWidth: 1,
139
+ dashArray: []
140
+ }),
141
+ e.tickLine({ strokeWidth: 0 }),
142
+ e.tickLabel({
143
+ ...i,
144
+ fontWeight: 400,
145
+ fontSize: 11.5,
146
+ lineHeight: 1
147
+ }),
148
+ e.axisLabel({
149
+ ...i,
150
+ fontWeight: 500,
151
+ fontSize: 11.5,
152
+ lineHeight: 1
153
+ }),
154
+ e.heading({ ...r }),
155
+ e.heading.h1({
156
+ fontWeight: 600,
157
+ fontSize: 18,
158
+ lineHeight: 1.25
159
+ }),
160
+ e.heading.h2({
161
+ ...i,
162
+ fontWeight: 400,
163
+ fontSize: 13,
164
+ lineHeight: 1.4
165
+ }),
166
+ e.caption({
167
+ ...i,
168
+ fontWeight: 400,
169
+ fontSize: 11.5
170
+ }),
171
+ e.source({
172
+ ...i,
173
+ fontWeight: 400,
174
+ fontSize: 11.5
175
+ }),
176
+ e.source.link({
177
+ ...i,
178
+ fontWeight: 400,
179
+ fontSize: 11.5
180
+ }),
181
+ e.dataLabel({
182
+ ...r,
183
+ fontWeight: 500,
184
+ fontSize: 11.5,
185
+ fill: "transparent"
186
+ }),
187
+ e.legendItem({
188
+ ...i,
189
+ fontWeight: 400,
190
+ fontSize: 12,
191
+ fill: "transparent",
192
+ stroke: "transparent"
193
+ }),
194
+ e.directLabel({
195
+ fontWeight: 600,
196
+ fontSize: 12
197
+ }),
198
+ e.tooltip({
199
+ strokeWidth: 1,
200
+ cornerRadius: 3,
201
+ paddingInline: 10,
202
+ paddingBlock: 8,
203
+ shadow: "none"
204
+ }),
205
+ e.legend.popover({
206
+ strokeWidth: 1,
207
+ cornerRadius: 3,
208
+ shadow: "none"
209
+ }),
210
+ e.tooltip.heading({
211
+ ...r,
212
+ fontWeight: 600,
213
+ fontSize: 12,
214
+ lineHeight: 1.3
215
+ }),
216
+ e.tooltip.label({
217
+ ...r,
218
+ fontWeight: 400,
219
+ fontSize: 12,
220
+ lineHeight: 1.4
221
+ }),
222
+ e.tooltip.value({
223
+ ...r,
224
+ fontWeight: 600,
225
+ fontSize: 12,
226
+ lineHeight: 1.4
227
+ }),
228
+ e.annotation.text({
229
+ ...r,
230
+ fill: o.raised,
231
+ stroke: o.axis,
232
+ strokeWidth: 1,
233
+ cornerRadius: 3,
234
+ paddingInline: 8,
235
+ paddingBlock: 4,
236
+ fontSize: 12,
237
+ lineHeight: 1.3
238
+ }),
239
+ e.annotation.shape({
240
+ fillAlpha: 0.2,
241
+ stroke: t.yellow,
242
+ strokeWidth: 1
243
+ }),
244
+ e.annotation.arrow({
245
+ strokeWidth: 1.5,
246
+ dashArray: []
247
+ }),
248
+ e.annotation.pinnedNumber({
249
+ stroke: o.background,
250
+ shadow: "none"
251
+ }),
252
+ e.annotation.pinnedNumber.label({
253
+ ...r,
254
+ fill: o.raised,
255
+ stroke: o.axis,
256
+ shadow: "none"
257
+ }),
258
+ e.annotation.comment({
259
+ stroke: o.background,
260
+ shadow: "none"
261
+ }),
262
+ e.annotation.comment.label({
263
+ ...r,
264
+ fill: o.raised,
265
+ stroke: o.axis,
266
+ shadow: "none"
267
+ }),
268
+ e.annotation.differenceArrow({
269
+ stroke: o.text,
270
+ strokeWidth: 1.5
271
+ }),
272
+ e.annotation.differenceArrow.label({
273
+ ...r,
274
+ stroke: o.axis,
275
+ strokeWidth: 1,
276
+ cornerRadius: 3,
277
+ fontSize: 11.5
278
+ }),
279
+ e.panelBorder.bottom({ strokeWidth: 0 }, { coord: "polar" })
280
+ ]
281
+ }, h = {
282
+ name: "solarized",
283
+ styles: l,
284
+ palette: d,
285
+ colormap: s
286
+ };
287
+ export {
288
+ h as solarized
289
+ };
@@ -0,0 +1,14 @@
1
+ import { Theme } from '@graphysdk/react';
2
+ /**
3
+ * Graphs in the Solarized palette by Ethan Schoonover: a cream background in the light scheme and a
4
+ * deep teal one in the dark, a quiet grid in the raised tone, thin strokes and flat shapes. Groups take
5
+ * the eight accents in both schemes, blue, orange and cyan first. Drawn for both schemes: the host's
6
+ * `colorScheme` decides which.
7
+ *
8
+ * The face is Source Code Pro. Import `@graphysdk/theme-solarized/fonts.css` once to load it.
9
+ *
10
+ * @example
11
+ * const kit = createGraphyKit({ theme: solarized });
12
+ * <kit.GraphProvider spec={spec} data={data} colorScheme="dark" />
13
+ */
14
+ export declare const solarized: Theme;
@@ -0,0 +1,66 @@
1
+ import { Stylesheet } from '@graphysdk/react';
2
+ /** The eight base tones of Solarized, darkest first. */
3
+ export declare const SOLARIZED_BASES: {
4
+ readonly base03: "#002b36";
5
+ readonly base02: "#073642";
6
+ readonly base01: "#586e75";
7
+ readonly base00: "#657b83";
8
+ readonly base0: "#839496";
9
+ readonly base1: "#93a1a1";
10
+ readonly base2: "#eee8d5";
11
+ readonly base3: "#fdf6e3";
12
+ };
13
+ /** The eight accents of Solarized, which sit as far from the light background as from the dark one. */
14
+ export declare const SOLARIZED_ACCENTS: {
15
+ readonly yellow: "#b58900";
16
+ readonly orange: "#cb4b16";
17
+ readonly red: "#dc322f";
18
+ readonly magenta: "#d33682";
19
+ readonly violet: "#6c71c4";
20
+ readonly blue: "#268bd2";
21
+ readonly cyan: "#2aa198";
22
+ readonly green: "#859900";
23
+ };
24
+ /** What each scheme draws with: the light scheme reads the tones from one end, the dark from the other. */
25
+ export declare const SOLARIZED_COLORS: {
26
+ readonly background: {
27
+ readonly light: "#fdf6e3";
28
+ readonly dark: "#002b36";
29
+ };
30
+ readonly raised: {
31
+ readonly light: "#eee8d5";
32
+ readonly dark: "#073642";
33
+ };
34
+ readonly strong: {
35
+ readonly light: "#073642";
36
+ readonly dark: "#eee8d5";
37
+ };
38
+ readonly text: {
39
+ readonly light: "#586e75";
40
+ readonly dark: "#93a1a1";
41
+ };
42
+ readonly axis: {
43
+ readonly light: "#93a1a1";
44
+ readonly dark: "#586e75";
45
+ };
46
+ readonly guideFill: {
47
+ readonly light: "rgba(88, 110, 117, 0.1)";
48
+ readonly dark: "rgba(147, 161, 161, 0.12)";
49
+ };
50
+ };
51
+ /**
52
+ * The order groups take their colours in. Warm follows cool, so two neighbours in a stack or a legend
53
+ * differ in hue as far as the accents allow.
54
+ */
55
+ export declare const SOLARIZED_PALETTE: readonly string[];
56
+ /**
57
+ * For a colour that stands for a number: from a pale yellow through cyan to a deep blue. Neither end
58
+ * is a background tone, so the lowest and the highest tile both show in either scheme.
59
+ */
60
+ export declare const SOLARIZED_COLORMAP: readonly string[];
61
+ /**
62
+ * The Solarized look: the background tone of the scheme, a solid grid in the raised tone, a thin line
63
+ * under the plot, and flat shapes in the accents with no shadow. Every colour that differs by scheme
64
+ * is a light and dark pair.
65
+ */
66
+ export declare const solarizedStyles: Stylesheet;
package/fonts.css ADDED
@@ -0,0 +1,2 @@
1
+ /* Source Code Pro, the face the theme's stylesheet names. Import this once, before the first graph is measured. */
2
+ @import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600&display=swap');
@@ -0,0 +1,93 @@
1
+ # PolyForm Free Trial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/free-trial/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the software
14
+ to do everything you might do with the software that would
15
+ otherwise infringe the licensor's copyright in it for any
16
+ permitted purpose. However, you may only make changes or
17
+ new works based on the software according to [Changes and New
18
+ Works License](#changes-and-new-works-license), and you may
19
+ not distribute copies of the software.
20
+
21
+ ## Changes and New Works License
22
+
23
+ The licensor grants you an additional copyright license to
24
+ make changes and new works based on the software for any
25
+ permitted purpose.
26
+
27
+ ## Patent License
28
+
29
+ The licensor grants you a patent license for the software that
30
+ covers patent claims the licensor can license, or becomes able
31
+ to license, that you would infringe by using the software.
32
+
33
+ ## Fair Use
34
+
35
+ You may have "fair use" rights for the software under the
36
+ law. These terms do not limit them.
37
+
38
+ ## Free Trial
39
+
40
+ Use to evaluate whether the software suits a particular
41
+ application for less than 32 consecutive calendar days, on
42
+ behalf of you or your company, is use for a permitted purpose.
43
+
44
+ ## No Other Rights
45
+
46
+ These terms do not allow you to sublicense or transfer any of
47
+ your licenses to anyone else, or prevent the licensor from
48
+ granting licenses to anyone else. These terms do not imply
49
+ any other licenses.
50
+
51
+ ## Patent Defense
52
+
53
+ If you make any written claim that the software infringes or
54
+ contributes to infringement of any patent, your patent license
55
+ for the software granted under these terms ends immediately. If
56
+ your company makes such a claim, your patent license ends
57
+ immediately for work on behalf of your company.
58
+
59
+ ## Violations
60
+
61
+ If you violate any of these terms, or do anything with the
62
+ software not covered by your licenses, all your licenses
63
+ end immediately.
64
+
65
+ ## No Liability
66
+
67
+ _**As far as the law allows, the software comes as is, without
68
+ any warranty or condition, and the licensor will not be liable
69
+ to you for any damages arising out of these terms or the use
70
+ or nature of the software, under any kind of legal claim.**_
71
+
72
+ ## Definitions
73
+
74
+ The **licensor** is the individual or entity offering these
75
+ terms, and the **software** is the software the licensor makes
76
+ available under these terms.
77
+
78
+ **You** refers to the individual or entity agreeing to these
79
+ terms.
80
+
81
+ **Your company** is any legal entity, sole proprietorship,
82
+ or other kind of organization that you work for, plus all
83
+ organizations that have control over, are under the control of,
84
+ or are under common control with that organization. **Control**
85
+ means ownership of substantially all the assets of an entity,
86
+ or the power to direct its management and policies by vote,
87
+ contract, or otherwise. Control can be direct or indirect.
88
+
89
+ **Your licenses** are all the licenses granted to you for the
90
+ software under these terms.
91
+
92
+ **Use** means anything you do with the software requiring one
93
+ of your licenses.
@@ -0,0 +1,131 @@
1
+ # PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the
14
+ software to do everything you might do with the software
15
+ that would otherwise infringe the licensor's copyright
16
+ in it for any permitted purpose. However, you may
17
+ only distribute the software according to [Distribution
18
+ License](#distribution-license) and make changes or new works
19
+ based on the software according to [Changes and New Works
20
+ License](#changes-and-new-works-license).
21
+
22
+ ## Distribution License
23
+
24
+ The licensor grants you an additional copyright license
25
+ to distribute copies of the software. Your license
26
+ to distribute covers distributing the software with
27
+ changes and new works permitted by [Changes and New Works
28
+ License](#changes-and-new-works-license).
29
+
30
+ ## Notices
31
+
32
+ You must ensure that anyone who gets a copy of any part of
33
+ the software from you also gets a copy of these terms or the
34
+ URL for them above, as well as copies of any plain-text lines
35
+ beginning with `Required Notice:` that the licensor provided
36
+ with the software. For example:
37
+
38
+ > Required Notice: Copyright Graphy Technologies Ltd. (https://graphy.dev)
39
+
40
+ ## Changes and New Works License
41
+
42
+ The licensor grants you an additional copyright license to
43
+ make changes and new works based on the software for any
44
+ permitted purpose.
45
+
46
+ ## Patent License
47
+
48
+ The licensor grants you a patent license for the software that
49
+ covers patent claims the licensor can license, or becomes able
50
+ to license, that you would infringe by using the software.
51
+
52
+ ## Noncommercial Purposes
53
+
54
+ Any noncommercial purpose is a permitted purpose.
55
+
56
+ ## Personal Uses
57
+
58
+ Personal use for research, experiment, and testing for
59
+ the benefit of public knowledge, personal study, private
60
+ entertainment, hobby projects, amateur pursuits, or religious
61
+ observance, without any anticipated commercial application,
62
+ is use for a permitted purpose.
63
+
64
+ ## Noncommercial Organizations
65
+
66
+ Use by any charitable organization, educational institution,
67
+ public research organization, public safety or health
68
+ organization, environmental protection organization,
69
+ or government institution is use for a permitted purpose
70
+ regardless of the source of funding or obligations resulting
71
+ from the funding.
72
+
73
+ ## Fair Use
74
+
75
+ You may have "fair use" rights for the software under the
76
+ law. These terms do not limit them.
77
+
78
+ ## No Other Rights
79
+
80
+ These terms do not allow you to sublicense or transfer any of
81
+ your licenses to anyone else, or prevent the licensor from
82
+ granting licenses to anyone else. These terms do not imply
83
+ any other licenses.
84
+
85
+ ## Patent Defense
86
+
87
+ If you make any written claim that the software infringes or
88
+ contributes to infringement of any patent, your patent license
89
+ for the software granted under these terms ends immediately. If
90
+ your company makes such a claim, your patent license ends
91
+ immediately for work on behalf of your company.
92
+
93
+ ## Violations
94
+
95
+ The first time you are notified in writing that you have
96
+ violated any of these terms, or done anything with the software
97
+ not covered by your licenses, your licenses can nonetheless
98
+ continue if you come into full compliance with these terms,
99
+ and take practical steps to correct past violations, within
100
+ 32 days of receiving notice. Otherwise, all your licenses
101
+ end immediately.
102
+
103
+ ## No Liability
104
+
105
+ _**As far as the law allows, the software comes as is, without
106
+ any warranty or condition, and the licensor will not be liable
107
+ to you for any damages arising out of these terms or the use
108
+ or nature of the software, under any kind of legal claim.**_
109
+
110
+ ## Definitions
111
+
112
+ The **licensor** is the individual or entity offering these
113
+ terms, and the **software** is the software the licensor makes
114
+ available under these terms.
115
+
116
+ **You** refers to the individual or entity agreeing to these
117
+ terms.
118
+
119
+ **Your company** is any legal entity, sole proprietorship,
120
+ or other kind of organization that you work for, plus all
121
+ organizations that have control over, are under the control of,
122
+ or are under common control with that organization. **Control**
123
+ means ownership of substantially all the assets of an entity,
124
+ or the power to direct its management and policies by vote,
125
+ contract, or otherwise. Control can be direct or indirect.
126
+
127
+ **Your licenses** are all the licenses granted to you for the
128
+ software under these terms.
129
+
130
+ **Use** means anything you do with the software requiring one
131
+ of your licenses.
@@ -0,0 +1,121 @@
1
+ # PolyForm Small Business License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/small-business/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the
14
+ software to do everything you might do with the software
15
+ that would otherwise infringe the licensor's copyright
16
+ in it for any permitted purpose. However, you may
17
+ only distribute the software according to [Distribution
18
+ License](#distribution-license) and make changes or new works
19
+ based on the software according to [Changes and New Works
20
+ License](#changes-and-new-works-license).
21
+
22
+ ## Distribution License
23
+
24
+ The licensor grants you an additional copyright license
25
+ to distribute copies of the software. Your license
26
+ to distribute covers distributing the software with
27
+ changes and new works permitted by [Changes and New Works
28
+ License](#changes-and-new-works-license).
29
+
30
+ ## Notices
31
+
32
+ You must ensure that anyone who gets a copy of any part of
33
+ the software from you also gets a copy of these terms or the
34
+ URL for them above, as well as copies of any plain-text lines
35
+ beginning with `Required Notice:` that the licensor provided
36
+ with the software. For example:
37
+
38
+ > Required Notice: Copyright Graphy Technologies Ltd. (https://graphy.dev)
39
+
40
+ ## Changes and New Works License
41
+
42
+ The licensor grants you an additional copyright license to
43
+ make changes and new works based on the software for any
44
+ permitted purpose.
45
+
46
+ ## Patent License
47
+
48
+ The licensor grants you a patent license for the software that
49
+ covers patent claims the licensor can license, or becomes able
50
+ to license, that you would infringe by using the software.
51
+
52
+ ## Fair Use
53
+
54
+ You may have "fair use" rights for the software under the
55
+ law. These terms do not limit them.
56
+
57
+ ## Small Business
58
+
59
+ Use of the software for the benefit of your company is use for
60
+ a permitted purpose if your company has fewer than 100 total
61
+ individuals working as employees and independent contractors,
62
+ and less than 1,000,000 USD (2019) total revenue in the prior
63
+ tax year. Adjust this revenue threshold for inflation according
64
+ to the United States Bureau of Labor Statistics' consumer price
65
+ index for all urban consumers, U.S. city average, for all items,
66
+ not seasonally adjusted, with 1982–1984=100 reference base.
67
+
68
+ ## No Other Rights
69
+
70
+ These terms do not allow you to sublicense or transfer any of
71
+ your licenses to anyone else, or prevent the licensor from
72
+ granting licenses to anyone else. These terms do not imply
73
+ any other licenses.
74
+
75
+ ## Patent Defense
76
+
77
+ If you make any written claim that the software infringes or
78
+ contributes to infringement of any patent, your patent license
79
+ for the software granted under these terms ends immediately. If
80
+ your company makes such a claim, your patent license ends
81
+ immediately for work on behalf of your company.
82
+
83
+ ## Violations
84
+
85
+ The first time you are notified in writing that you have
86
+ violated any of these terms, or done anything with the software
87
+ not covered by your licenses, your licenses can nonetheless
88
+ continue if you come into full compliance with these terms,
89
+ and take practical steps to correct past violations, within
90
+ 32 days of receiving notice. Otherwise, all your licenses
91
+ end immediately.
92
+
93
+ ## No Liability
94
+
95
+ _**As far as the law allows, the software comes as is, without
96
+ any warranty or condition, and the licensor will not be liable
97
+ to you for any damages arising out of these terms or the use
98
+ or nature of the software, under any kind of legal claim.**_
99
+
100
+ ## Definitions
101
+
102
+ The **licensor** is the individual or entity offering these
103
+ terms, and the **software** is the software the licensor makes
104
+ available under these terms.
105
+
106
+ **You** refers to the individual or entity agreeing to these
107
+ terms.
108
+
109
+ **Your company** is any legal entity, sole proprietorship,
110
+ or other kind of organization that you work for, plus all
111
+ organizations that have control over, are under the control of,
112
+ or are under common control with that organization. **Control**
113
+ means ownership of substantially all the assets of an entity,
114
+ or the power to direct its management and policies by vote,
115
+ contract, or otherwise. Control can be direct or indirect.
116
+
117
+ **Your licenses** are all the licenses granted to you for the
118
+ software under these terms.
119
+
120
+ **Use** means anything you do with the software requiring one
121
+ of your licenses.
@@ -0,0 +1,23 @@
1
+ # Solarized
2
+
3
+ The colours of this theme are the Solarized palette by Ethan Schoonover, used under the MIT licence below.
4
+
5
+ Copyright (c) 2011 Ethan Schoonover
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,82 @@
1
1
  {
2
2
  "name": "@graphysdk/theme-solarized",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "author": "Graphy",
4
+ "description": "Solarized theme for the Graphy charting SDK (beta)",
5
+ "homepage": "https://docs.graphy.dev/sdk-next/themes/solarized",
6
+ "license": "SEE LICENSE IN LICENSE.md",
7
+ "keywords": [
8
+ "graphy",
9
+ "chart",
10
+ "react",
11
+ "visualization",
12
+ "grammar-of-graphics",
13
+ "theme",
14
+ "solarized"
15
+ ],
16
+ "version": "0.1.0",
17
+ "type": "module",
18
+ "sideEffects": [
19
+ "*.css"
20
+ ],
21
+ "types": "./dist/index.d.ts",
22
+ "files": [
23
+ "dist",
24
+ "fonts.css",
25
+ "src/fonts.css.d.ts",
26
+ "LICENSE.md",
27
+ "licenses",
28
+ "README.md"
29
+ ],
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/index.mjs",
34
+ "require": "./dist/index.cjs"
35
+ },
36
+ "./fonts.css": {
37
+ "types": "./src/fonts.css.d.ts",
38
+ "default": "./fonts.css"
39
+ }
40
+ },
41
+ "peerDependencies": {
42
+ "react": "^19.0.0",
43
+ "@graphysdk/react": "^1.9.0-beta.1791447671234"
44
+ },
45
+ "devDependencies": {
46
+ "@testing-library/react": "^16.3.1",
47
+ "@types/react": "^19.2.14",
48
+ "@types/react-dom": "^19.2.3",
49
+ "react": "^19.2.4",
50
+ "react-dom": "^19.2.4",
51
+ "rollup-plugin-node-externals": "^8.1.1",
52
+ "vite": "^8.1.5",
53
+ "vite-plugin-dts": "^4.5.4",
54
+ "vitest": "^4.1.11",
55
+ "@graphysdk/react": "1.9.0-beta.1791447671234",
56
+ "@graphytools/eslint-config": "0.0.1",
57
+ "@graphytools/vitest-config": "1.0.0",
58
+ "@graphytools/typescript-config": "0.0.1",
59
+ "@graphysdk/viz-engine": "1.8.0"
60
+ },
61
+ "publishConfig": {
62
+ "access": "public"
63
+ },
64
+ "lint-staged": {
65
+ "*.{ts,tsx,js,jsx,json,css,md}": [
66
+ "prettier --write"
67
+ ],
68
+ "*.{ts,tsx}": [
69
+ "eslint --max-warnings=0 --fix"
70
+ ]
71
+ },
72
+ "scripts": {
73
+ "build": "vite build",
74
+ "test": "vitest run",
75
+ "test:watch": "TZ=utc vitest",
76
+ "lint": "eslint . --max-warnings 0",
77
+ "lint:fix": "eslint . --fix",
78
+ "format": "prettier --write .",
79
+ "format:check": "prettier --check .",
80
+ "typecheck": "tsc --noEmit"
81
+ }
6
82
  }
@@ -0,0 +1,2 @@
1
+ // Loads the fonts when imported; it exports nothing.
2
+ export {};