@nyxwire/palette 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 +21 -0
- package/README.md +143 -2
- package/dist/css/abyss.css +116 -0
- package/dist/css/lumen.css +116 -0
- package/dist/css/nocturne.css +116 -0
- package/dist/css/palette.css +334 -0
- package/dist/css/twilight.css +116 -0
- package/dist/docs/foundations/accessibility.md +71 -0
- package/dist/docs/foundations/color-roles.md +114 -0
- package/dist/docs/foundations/effects-motion.md +150 -0
- package/dist/docs/foundations/flavors.md +156 -0
- package/dist/docs/foundations/icons.md +45 -0
- package/dist/docs/foundations/palette.md +180 -0
- package/dist/docs/foundations/spacing-elevation.md +168 -0
- package/dist/docs/foundations/typography.md +80 -0
- package/dist/docs/index.md +78 -0
- package/dist/docs/manifest.json +51 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +2154 -0
- package/dist/on-accent.d.ts +2 -0
- package/dist/on-accent.js +4 -0
- package/dist/palette.d.ts +138 -0
- package/dist/palette.js +145 -0
- package/dist/palette.json +4622 -0
- package/dist/roles.d.ts +133 -0
- package/dist/roles.js +61 -0
- package/package.json +57 -3
package/dist/roles.d.ts
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export declare const semanticRoles: {
|
|
2
|
+
readonly canvas: "base";
|
|
3
|
+
readonly 'canvas-subtle': "mantle";
|
|
4
|
+
readonly 'canvas-sunken': "crust";
|
|
5
|
+
readonly panel: "surface0";
|
|
6
|
+
readonly 'panel-hover': "surface1";
|
|
7
|
+
readonly 'panel-active': "surface2";
|
|
8
|
+
readonly fg: "text";
|
|
9
|
+
readonly 'fg-muted': "subtext1";
|
|
10
|
+
readonly 'fg-subtle': "subtext0";
|
|
11
|
+
readonly 'fg-faint': "overlay2";
|
|
12
|
+
readonly 'fg-disabled': "overlay1";
|
|
13
|
+
readonly line: "overlay0";
|
|
14
|
+
readonly 'line-strong': "overlay1";
|
|
15
|
+
readonly 'line-bright': "overlay2";
|
|
16
|
+
readonly primary: "indigo";
|
|
17
|
+
readonly secondary: "synth";
|
|
18
|
+
readonly tertiary: "ice";
|
|
19
|
+
readonly info: "arc";
|
|
20
|
+
readonly success: "matrix";
|
|
21
|
+
readonly warning: "volt";
|
|
22
|
+
readonly danger: "alarm";
|
|
23
|
+
readonly ring: "indigo";
|
|
24
|
+
readonly link: "iris";
|
|
25
|
+
};
|
|
26
|
+
export type SemanticRole = keyof typeof semanticRoles;
|
|
27
|
+
export declare const syntaxRoles: {
|
|
28
|
+
readonly keyword: {
|
|
29
|
+
readonly color: "flux";
|
|
30
|
+
};
|
|
31
|
+
readonly storage: {
|
|
32
|
+
readonly color: "synth";
|
|
33
|
+
};
|
|
34
|
+
readonly modifier: {
|
|
35
|
+
readonly color: "synth";
|
|
36
|
+
};
|
|
37
|
+
readonly string: {
|
|
38
|
+
readonly color: "matrix";
|
|
39
|
+
};
|
|
40
|
+
readonly number: {
|
|
41
|
+
readonly color: "flare";
|
|
42
|
+
};
|
|
43
|
+
readonly constant: {
|
|
44
|
+
readonly color: "flare";
|
|
45
|
+
};
|
|
46
|
+
readonly boolean: {
|
|
47
|
+
readonly color: "alarm";
|
|
48
|
+
};
|
|
49
|
+
readonly null: {
|
|
50
|
+
readonly color: "alarm";
|
|
51
|
+
};
|
|
52
|
+
readonly function: {
|
|
53
|
+
readonly color: "arc";
|
|
54
|
+
};
|
|
55
|
+
readonly method: {
|
|
56
|
+
readonly color: "arc";
|
|
57
|
+
};
|
|
58
|
+
readonly type: {
|
|
59
|
+
readonly color: "volt";
|
|
60
|
+
};
|
|
61
|
+
readonly class: {
|
|
62
|
+
readonly color: "volt";
|
|
63
|
+
};
|
|
64
|
+
readonly interface: {
|
|
65
|
+
readonly color: "volt";
|
|
66
|
+
};
|
|
67
|
+
readonly enum: {
|
|
68
|
+
readonly color: "volt";
|
|
69
|
+
};
|
|
70
|
+
readonly namespace: {
|
|
71
|
+
readonly color: "volt";
|
|
72
|
+
};
|
|
73
|
+
readonly variable: {
|
|
74
|
+
readonly color: "text";
|
|
75
|
+
};
|
|
76
|
+
readonly parameter: {
|
|
77
|
+
readonly color: "iris";
|
|
78
|
+
};
|
|
79
|
+
readonly property: {
|
|
80
|
+
readonly color: "ice";
|
|
81
|
+
};
|
|
82
|
+
readonly tag: {
|
|
83
|
+
readonly color: "synth";
|
|
84
|
+
};
|
|
85
|
+
readonly attribute: {
|
|
86
|
+
readonly color: "circuit";
|
|
87
|
+
};
|
|
88
|
+
readonly operator: {
|
|
89
|
+
readonly color: "circuit";
|
|
90
|
+
};
|
|
91
|
+
readonly punctuation: {
|
|
92
|
+
readonly color: "overlay2";
|
|
93
|
+
};
|
|
94
|
+
readonly comment: {
|
|
95
|
+
readonly color: "overlay2";
|
|
96
|
+
readonly fontStyle: "italic";
|
|
97
|
+
};
|
|
98
|
+
readonly regex: {
|
|
99
|
+
readonly color: "circuit";
|
|
100
|
+
};
|
|
101
|
+
readonly escape: {
|
|
102
|
+
readonly color: "synth";
|
|
103
|
+
};
|
|
104
|
+
readonly decorator: {
|
|
105
|
+
readonly color: "synth";
|
|
106
|
+
};
|
|
107
|
+
readonly 'markup-heading': {
|
|
108
|
+
readonly color: "indigo";
|
|
109
|
+
};
|
|
110
|
+
readonly 'markup-link': {
|
|
111
|
+
readonly color: "iris";
|
|
112
|
+
};
|
|
113
|
+
readonly inserted: {
|
|
114
|
+
readonly color: "matrix";
|
|
115
|
+
};
|
|
116
|
+
readonly deleted: {
|
|
117
|
+
readonly color: "alarm";
|
|
118
|
+
};
|
|
119
|
+
readonly changed: {
|
|
120
|
+
readonly color: "volt";
|
|
121
|
+
};
|
|
122
|
+
readonly 'editor-bg': {
|
|
123
|
+
readonly color: "crust";
|
|
124
|
+
};
|
|
125
|
+
readonly selection: {
|
|
126
|
+
readonly color: "indigo";
|
|
127
|
+
readonly opacity: 0.3;
|
|
128
|
+
};
|
|
129
|
+
readonly 'line-highlight': {
|
|
130
|
+
readonly color: "surface0";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
export type SyntaxRoleName = keyof typeof syntaxRoles;
|
package/dist/roles.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export const semanticRoles = {
|
|
2
|
+
canvas: 'base',
|
|
3
|
+
'canvas-subtle': 'mantle',
|
|
4
|
+
'canvas-sunken': 'crust',
|
|
5
|
+
panel: 'surface0',
|
|
6
|
+
'panel-hover': 'surface1',
|
|
7
|
+
'panel-active': 'surface2',
|
|
8
|
+
fg: 'text',
|
|
9
|
+
'fg-muted': 'subtext1',
|
|
10
|
+
'fg-subtle': 'subtext0',
|
|
11
|
+
'fg-faint': 'overlay2',
|
|
12
|
+
'fg-disabled': 'overlay1',
|
|
13
|
+
line: 'overlay0',
|
|
14
|
+
'line-strong': 'overlay1',
|
|
15
|
+
'line-bright': 'overlay2',
|
|
16
|
+
primary: 'indigo',
|
|
17
|
+
secondary: 'synth',
|
|
18
|
+
tertiary: 'ice',
|
|
19
|
+
info: 'arc',
|
|
20
|
+
success: 'matrix',
|
|
21
|
+
warning: 'volt',
|
|
22
|
+
danger: 'alarm',
|
|
23
|
+
ring: 'indigo',
|
|
24
|
+
link: 'iris',
|
|
25
|
+
};
|
|
26
|
+
export const syntaxRoles = {
|
|
27
|
+
keyword: { color: 'flux' },
|
|
28
|
+
storage: { color: 'synth' },
|
|
29
|
+
modifier: { color: 'synth' },
|
|
30
|
+
string: { color: 'matrix' },
|
|
31
|
+
number: { color: 'flare' },
|
|
32
|
+
constant: { color: 'flare' },
|
|
33
|
+
boolean: { color: 'alarm' },
|
|
34
|
+
null: { color: 'alarm' },
|
|
35
|
+
function: { color: 'arc' },
|
|
36
|
+
method: { color: 'arc' },
|
|
37
|
+
type: { color: 'volt' },
|
|
38
|
+
class: { color: 'volt' },
|
|
39
|
+
interface: { color: 'volt' },
|
|
40
|
+
enum: { color: 'volt' },
|
|
41
|
+
namespace: { color: 'volt' },
|
|
42
|
+
variable: { color: 'text' },
|
|
43
|
+
parameter: { color: 'iris' },
|
|
44
|
+
property: { color: 'ice' },
|
|
45
|
+
tag: { color: 'synth' },
|
|
46
|
+
attribute: { color: 'circuit' },
|
|
47
|
+
operator: { color: 'circuit' },
|
|
48
|
+
punctuation: { color: 'overlay2' },
|
|
49
|
+
comment: { color: 'overlay2', fontStyle: 'italic' },
|
|
50
|
+
regex: { color: 'circuit' },
|
|
51
|
+
escape: { color: 'synth' },
|
|
52
|
+
decorator: { color: 'synth' },
|
|
53
|
+
'markup-heading': { color: 'indigo' },
|
|
54
|
+
'markup-link': { color: 'iris' },
|
|
55
|
+
inserted: { color: 'matrix' },
|
|
56
|
+
deleted: { color: 'alarm' },
|
|
57
|
+
changed: { color: 'volt' },
|
|
58
|
+
'editor-bg': { color: 'crust' },
|
|
59
|
+
selection: { color: 'indigo', opacity: 0.3 },
|
|
60
|
+
'line-highlight': { color: 'surface0' },
|
|
61
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyxwire/palette",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Nyxwire's indigo neon palette: four flavors of 24 colors as hex, RGB, HSL and OKLCH, in JavaScript, JSON and CSS.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"nyxwire",
|
|
7
|
+
"design-system",
|
|
8
|
+
"palette",
|
|
9
|
+
"colors",
|
|
10
|
+
"design-tokens",
|
|
11
|
+
"oklch",
|
|
12
|
+
"dark-mode"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://nyxwire.dissidence.ovh/foundations/palette/",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/fmauNeko/nyxwire/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/fmauNeko/nyxwire.git",
|
|
21
|
+
"directory": "packages/palette"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"author": "Florian Maunier",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"**/*.css"
|
|
31
|
+
],
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./palette.json": "./dist/palette.json",
|
|
38
|
+
"./css": "./dist/css/palette.css",
|
|
39
|
+
"./css/*": "./dist/css/*"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/culori": "^4",
|
|
44
|
+
"@types/node": "^26",
|
|
45
|
+
"apca-w3": "0.1.9",
|
|
46
|
+
"culori": "4.0.2",
|
|
47
|
+
"typescript": "6.0.3",
|
|
48
|
+
"vitest": "5.1.0"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsc -p tsconfig.build.json && node scripts/build.ts && node ../agent-docs/src/run.ts",
|
|
55
|
+
"check": "node scripts/check.ts",
|
|
56
|
+
"preview": "node scripts/preview.ts",
|
|
57
|
+
"test": "vitest run",
|
|
58
|
+
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
59
|
+
}
|
|
6
60
|
}
|