@velora-cms/design-tokens 0.11.0 → 0.13.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/README.md +5 -1
- package/dist/tailwind-theme.d.ts +1 -0
- package/dist/tailwind-theme.js +1 -0
- package/dist/theme-types.d.ts +1 -0
- package/dist/themes/dark.js +8 -0
- package/dist/tokens.css +12 -0
- package/dist/tokens.js +13 -0
- package/dist/tokens.json +8 -0
- package/dist/types.d.ts +8 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -23,4 +23,8 @@ console.log(tokens.color.primary[500]);
|
|
|
23
23
|
@import "@velora-cms/design-tokens/tokens.css";
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
## Source & support
|
|
27
|
+
|
|
28
|
+
Velora's source is not public. Questions and bug reports:
|
|
29
|
+
[velora-devkit](https://github.com/velora-cms/velora-devkit). Docs at
|
|
30
|
+
https://docs.velora-cms.com. Apache-2.0.
|
package/dist/tailwind-theme.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const tailwindTheme: {
|
|
|
12
12
|
background: Record<"base" | "elevated" | "subtle" | "overlay" | "hover", string>;
|
|
13
13
|
text: Record<"primary" | "secondary" | "tertiary" | "disabled" | "inverse", string>;
|
|
14
14
|
border: Record<"subtle" | "default" | "strong", string>;
|
|
15
|
+
code: Record<"string" | "keyword" | "tag" | "attr" | "comment" | "punctuation", string>;
|
|
15
16
|
};
|
|
16
17
|
fontFamily: {
|
|
17
18
|
sans: string;
|
package/dist/tailwind-theme.js
CHANGED
|
@@ -33,6 +33,7 @@ export const tailwindTheme = {
|
|
|
33
33
|
background: scaleRefs(tokens.color.background, 'color-background'),
|
|
34
34
|
text: scaleRefs(tokens.color.text, 'color-text'),
|
|
35
35
|
border: scaleRefs(tokens.color.border, 'color-border'),
|
|
36
|
+
code: scaleRefs(tokens.color.code, 'color-code'),
|
|
36
37
|
},
|
|
37
38
|
fontFamily: {
|
|
38
39
|
sans: 'var(--font-family-sans)',
|
package/dist/theme-types.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface ThemeColorOverrides {
|
|
|
18
18
|
background?: Partial<VeloraDesignTokens['color']['background']>;
|
|
19
19
|
text?: Partial<VeloraDesignTokens['color']['text']>;
|
|
20
20
|
border?: Partial<VeloraDesignTokens['color']['border']>;
|
|
21
|
+
code?: Partial<VeloraDesignTokens['color']['code']>;
|
|
21
22
|
}
|
|
22
23
|
export interface ThemeTokenOverrides {
|
|
23
24
|
color?: ThemeColorOverrides;
|
package/dist/themes/dark.js
CHANGED
|
@@ -48,6 +48,14 @@ export const darkTheme = {
|
|
|
48
48
|
success: { '100': '#223A1E', '600': '#7FC46E', '700': '#8FD07F' },
|
|
49
49
|
warning: { '100': '#3D3016', '600': '#E0AA4B', '800': '#EABB6A' },
|
|
50
50
|
danger: { '100': '#45201D', '600': '#E8776E', '700': '#F0918A' },
|
|
51
|
+
code: {
|
|
52
|
+
keyword: '#7CC0E8',
|
|
53
|
+
tag: '#9A9DE3',
|
|
54
|
+
string: '#7FC46E',
|
|
55
|
+
attr: '#E0AA4B',
|
|
56
|
+
comment: '#A3A8A6',
|
|
57
|
+
punctuation: '#C5C9C6',
|
|
58
|
+
},
|
|
51
59
|
neutral: {
|
|
52
60
|
'50': '#1F2221',
|
|
53
61
|
'100': '#232625',
|
package/dist/tokens.css
CHANGED
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
--color-border-default: #E1DED5;
|
|
81
81
|
--color-border-subtle: #ECEAE3;
|
|
82
82
|
--color-border-strong: #CFCBC0;
|
|
83
|
+
--color-code-keyword: #1A5E8F;
|
|
84
|
+
--color-code-tag: #4B4FB0;
|
|
85
|
+
--color-code-string: #306626;
|
|
86
|
+
--color-code-attr: #96631A;
|
|
87
|
+
--color-code-comment: #6B6659;
|
|
88
|
+
--color-code-punctuation: #4A463C;
|
|
83
89
|
--spacing-0: 0;
|
|
84
90
|
--spacing-1: 0.25rem;
|
|
85
91
|
--spacing-2: 0.5rem;
|
|
@@ -168,6 +174,12 @@
|
|
|
168
174
|
--color-danger-100: #45201D;
|
|
169
175
|
--color-danger-600: #E8776E;
|
|
170
176
|
--color-danger-700: #F0918A;
|
|
177
|
+
--color-code-keyword: #7CC0E8;
|
|
178
|
+
--color-code-tag: #9A9DE3;
|
|
179
|
+
--color-code-string: #7FC46E;
|
|
180
|
+
--color-code-attr: #E0AA4B;
|
|
181
|
+
--color-code-comment: #A3A8A6;
|
|
182
|
+
--color-code-punctuation: #C5C9C6;
|
|
171
183
|
--color-neutral-50: #1F2221;
|
|
172
184
|
--color-neutral-100: #232625;
|
|
173
185
|
--color-neutral-200: #2C302E;
|
package/dist/tokens.js
CHANGED
|
@@ -117,6 +117,19 @@ export const tokens = {
|
|
|
117
117
|
subtle: '#ECEAE3',
|
|
118
118
|
strong: '#CFCBC0',
|
|
119
119
|
},
|
|
120
|
+
// Code-syntax roles (S195), approved mockup: reuses existing hues
|
|
121
|
+
// (primary-700 / secondary-600 / success-700 / warning-700) for
|
|
122
|
+
// keyword/tag/string/attr so highlighted code stays in the brand
|
|
123
|
+
// palette; comment/punctuation are quiet warm-stone steps between
|
|
124
|
+
// neutral-600 and neutral-700 built for this role specifically.
|
|
125
|
+
code: {
|
|
126
|
+
keyword: '#1A5E8F',
|
|
127
|
+
tag: '#4B4FB0',
|
|
128
|
+
string: '#306626',
|
|
129
|
+
attr: '#96631A',
|
|
130
|
+
comment: '#6B6659',
|
|
131
|
+
punctuation: '#4A463C',
|
|
132
|
+
},
|
|
120
133
|
},
|
|
121
134
|
typography: {
|
|
122
135
|
fontFamily: {
|
package/dist/tokens.json
CHANGED
|
@@ -96,6 +96,14 @@
|
|
|
96
96
|
"default": "#E1DED5",
|
|
97
97
|
"subtle": "#ECEAE3",
|
|
98
98
|
"strong": "#CFCBC0"
|
|
99
|
+
},
|
|
100
|
+
"code": {
|
|
101
|
+
"keyword": "#1A5E8F",
|
|
102
|
+
"tag": "#4B4FB0",
|
|
103
|
+
"string": "#306626",
|
|
104
|
+
"attr": "#96631A",
|
|
105
|
+
"comment": "#6B6659",
|
|
106
|
+
"punctuation": "#4A463C"
|
|
99
107
|
}
|
|
100
108
|
},
|
|
101
109
|
"typography": {
|
package/dist/types.d.ts
CHANGED
|
@@ -39,6 +39,14 @@ export interface VeloraDesignTokens {
|
|
|
39
39
|
subtle: string;
|
|
40
40
|
strong: string;
|
|
41
41
|
};
|
|
42
|
+
code: {
|
|
43
|
+
keyword: string;
|
|
44
|
+
tag: string;
|
|
45
|
+
string: string;
|
|
46
|
+
attr: string;
|
|
47
|
+
comment: string;
|
|
48
|
+
punctuation: string;
|
|
49
|
+
};
|
|
42
50
|
};
|
|
43
51
|
typography: {
|
|
44
52
|
fontFamily: {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velora-cms/design-tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Velora's design token source, generating the Tailwind config and CSS variables consumed by the UI library, admin UI, and plugin UIs.",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.12"
|
|
8
8
|
},
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/velora-cms/velora/issues"
|
|
10
|
+
"url": "https://github.com/velora-cms/velora-devkit/issues"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "dist/index.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
],
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/velora-cms/velora.git"
|
|
21
|
-
"directory": "packages/design-tokens"
|
|
20
|
+
"url": "git+https://github.com/velora-cms/velora-devkit.git"
|
|
22
21
|
},
|
|
22
|
+
"homepage": "https://velora-cms.com",
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|