@lessonkit/themes 0.3.1 → 0.4.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.
@@ -0,0 +1,187 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "entries": [
4
+ {
5
+ "tokenPath": "colors.background",
6
+ "cssVariable": "--lk-color-background",
7
+ "type": "color",
8
+ "required": true,
9
+ "description": "Page and shell background"
10
+ },
11
+ {
12
+ "tokenPath": "colors.foreground",
13
+ "cssVariable": "--lk-color-foreground",
14
+ "type": "color",
15
+ "required": true,
16
+ "description": "Primary text color"
17
+ },
18
+ {
19
+ "tokenPath": "colors.primary",
20
+ "cssVariable": "--lk-color-primary",
21
+ "type": "color",
22
+ "required": true,
23
+ "description": "Brand and interactive accent"
24
+ },
25
+ {
26
+ "tokenPath": "colors.muted",
27
+ "cssVariable": "--lk-color-muted",
28
+ "type": "color",
29
+ "required": true,
30
+ "description": "Secondary text and hints"
31
+ },
32
+ {
33
+ "tokenPath": "colors.border",
34
+ "cssVariable": "--lk-color-border",
35
+ "type": "color",
36
+ "required": true,
37
+ "description": "Borders and dividers"
38
+ },
39
+ {
40
+ "tokenPath": "colors.panel",
41
+ "cssVariable": "--lk-color-panel",
42
+ "type": "color",
43
+ "required": true,
44
+ "description": "Card and panel surfaces"
45
+ },
46
+ {
47
+ "tokenPath": "colors.danger",
48
+ "cssVariable": "--lk-color-danger",
49
+ "type": "color",
50
+ "required": true,
51
+ "description": "Errors and high-risk states"
52
+ },
53
+ {
54
+ "tokenPath": "colors.success",
55
+ "cssVariable": "--lk-color-success",
56
+ "type": "color",
57
+ "required": true,
58
+ "description": "Success and positive feedback"
59
+ },
60
+ {
61
+ "tokenPath": "colors.warning",
62
+ "cssVariable": "--lk-color-warning",
63
+ "type": "color",
64
+ "required": true,
65
+ "description": "Warnings and caution states"
66
+ },
67
+ {
68
+ "tokenPath": "colors.extra.*",
69
+ "cssVariable": "--lk-color-extra-{key}",
70
+ "type": "color-extra",
71
+ "required": false,
72
+ "description": "Optional extension colors (non-stable until 1.0)"
73
+ },
74
+ {
75
+ "tokenPath": "spacing.xs",
76
+ "cssVariable": "--lk-space-xs",
77
+ "type": "spacing",
78
+ "required": true,
79
+ "description": "Extra-small spacing"
80
+ },
81
+ {
82
+ "tokenPath": "spacing.sm",
83
+ "cssVariable": "--lk-space-sm",
84
+ "type": "spacing",
85
+ "required": true,
86
+ "description": "Small spacing"
87
+ },
88
+ {
89
+ "tokenPath": "spacing.md",
90
+ "cssVariable": "--lk-space-md",
91
+ "type": "spacing",
92
+ "required": true,
93
+ "description": "Medium spacing"
94
+ },
95
+ {
96
+ "tokenPath": "spacing.lg",
97
+ "cssVariable": "--lk-space-lg",
98
+ "type": "spacing",
99
+ "required": true,
100
+ "description": "Large spacing"
101
+ },
102
+ {
103
+ "tokenPath": "spacing.xl",
104
+ "cssVariable": "--lk-space-xl",
105
+ "type": "spacing",
106
+ "required": true,
107
+ "description": "Extra-large spacing"
108
+ },
109
+ {
110
+ "tokenPath": "typography.fontFamily",
111
+ "cssVariable": "--lk-font-family",
112
+ "type": "typography",
113
+ "required": true,
114
+ "description": "Base font stack"
115
+ },
116
+ {
117
+ "tokenPath": "typography.fontSizeBase",
118
+ "cssVariable": "--lk-font-size-base",
119
+ "type": "typography",
120
+ "required": true,
121
+ "description": "Base font size"
122
+ },
123
+ {
124
+ "tokenPath": "typography.lineHeightBase",
125
+ "cssVariable": "--lk-line-height-base",
126
+ "type": "typography",
127
+ "required": true,
128
+ "description": "Base line height"
129
+ },
130
+ {
131
+ "tokenPath": "typography.fontWeightNormal",
132
+ "cssVariable": "--lk-font-weight-normal",
133
+ "type": "typography",
134
+ "required": true,
135
+ "description": "Normal text weight"
136
+ },
137
+ {
138
+ "tokenPath": "typography.fontWeightStrong",
139
+ "cssVariable": "--lk-font-weight-strong",
140
+ "type": "typography",
141
+ "required": true,
142
+ "description": "Headings and emphasis weight"
143
+ },
144
+ {
145
+ "tokenPath": "radius.sm",
146
+ "cssVariable": "--lk-radius-sm",
147
+ "type": "radius",
148
+ "required": true,
149
+ "description": "Small corner radius"
150
+ },
151
+ {
152
+ "tokenPath": "radius.md",
153
+ "cssVariable": "--lk-radius-md",
154
+ "type": "radius",
155
+ "required": true,
156
+ "description": "Medium corner radius"
157
+ },
158
+ {
159
+ "tokenPath": "radius.lg",
160
+ "cssVariable": "--lk-radius-lg",
161
+ "type": "radius",
162
+ "required": true,
163
+ "description": "Large corner radius"
164
+ },
165
+ {
166
+ "tokenPath": "shadows.sm",
167
+ "cssVariable": "--lk-shadow-sm",
168
+ "type": "shadow",
169
+ "required": true,
170
+ "description": "Small elevation shadow"
171
+ },
172
+ {
173
+ "tokenPath": "shadows.md",
174
+ "cssVariable": "--lk-shadow-md",
175
+ "type": "shadow",
176
+ "required": true,
177
+ "description": "Medium elevation shadow"
178
+ },
179
+ {
180
+ "tokenPath": "shadows.lg",
181
+ "cssVariable": "--lk-shadow-lg",
182
+ "type": "shadow",
183
+ "required": true,
184
+ "description": "Large elevation shadow"
185
+ }
186
+ ]
187
+ }
@@ -0,0 +1,93 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://lessonkit.dev/schemas/theme-contract.v1.json",
4
+ "title": "LessonkitThemeV1",
5
+ "description": "LessonKit design token schema v1",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["name", "colors", "spacing", "typography", "radius", "shadows"],
9
+ "properties": {
10
+ "name": { "type": "string", "minLength": 1 },
11
+ "colors": {
12
+ "type": "object",
13
+ "additionalProperties": false,
14
+ "required": [
15
+ "background",
16
+ "foreground",
17
+ "primary",
18
+ "muted",
19
+ "border",
20
+ "panel",
21
+ "danger",
22
+ "success",
23
+ "warning"
24
+ ],
25
+ "properties": {
26
+ "background": { "type": "string", "minLength": 1 },
27
+ "foreground": { "type": "string", "minLength": 1 },
28
+ "primary": { "type": "string", "minLength": 1 },
29
+ "muted": { "type": "string", "minLength": 1 },
30
+ "border": { "type": "string", "minLength": 1 },
31
+ "panel": { "type": "string", "minLength": 1 },
32
+ "danger": { "type": "string", "minLength": 1 },
33
+ "success": { "type": "string", "minLength": 1 },
34
+ "warning": { "type": "string", "minLength": 1 },
35
+ "extra": {
36
+ "type": "object",
37
+ "additionalProperties": { "type": "string", "minLength": 1 },
38
+ "description": "Optional extension colors (non-stable until 1.0)"
39
+ }
40
+ }
41
+ },
42
+ "spacing": {
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "required": ["xs", "sm", "md", "lg", "xl"],
46
+ "properties": {
47
+ "xs": { "type": "string", "minLength": 1 },
48
+ "sm": { "type": "string", "minLength": 1 },
49
+ "md": { "type": "string", "minLength": 1 },
50
+ "lg": { "type": "string", "minLength": 1 },
51
+ "xl": { "type": "string", "minLength": 1 }
52
+ }
53
+ },
54
+ "typography": {
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "required": [
58
+ "fontFamily",
59
+ "fontSizeBase",
60
+ "lineHeightBase",
61
+ "fontWeightNormal",
62
+ "fontWeightStrong"
63
+ ],
64
+ "properties": {
65
+ "fontFamily": { "type": "string", "minLength": 1 },
66
+ "fontSizeBase": { "type": "string", "minLength": 1 },
67
+ "lineHeightBase": { "type": "string", "minLength": 1 },
68
+ "fontWeightNormal": { "type": "string", "minLength": 1 },
69
+ "fontWeightStrong": { "type": "string", "minLength": 1 }
70
+ }
71
+ },
72
+ "radius": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": ["sm", "md", "lg"],
76
+ "properties": {
77
+ "sm": { "type": "string", "minLength": 1 },
78
+ "md": { "type": "string", "minLength": 1 },
79
+ "lg": { "type": "string", "minLength": 1 }
80
+ }
81
+ },
82
+ "shadows": {
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": ["sm", "md", "lg"],
86
+ "properties": {
87
+ "sm": { "type": "string", "minLength": 1 },
88
+ "md": { "type": "string", "minLength": 1 },
89
+ "lg": { "type": "string", "minLength": 1 }
90
+ }
91
+ }
92
+ }
93
+ }