bluedither 1.0.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,166 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "bluedither-tokens",
4
+ "title": "BlueDither Theme Tokens",
5
+ "description": "Design token schema for BlueDither themes. All px values are reference values at designWidth, converted to clamp() at render time.",
6
+ "type": "object",
7
+ "required": ["meta", "layout", "colors", "typography", "spacing", "shader", "opacity", "content"],
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "$schema": {
11
+ "type": "string",
12
+ "description": "JSON Schema reference"
13
+ },
14
+ "meta": {
15
+ "type": "object",
16
+ "required": ["name", "version"],
17
+ "additionalProperties": false,
18
+ "properties": {
19
+ "name": { "type": "string", "minLength": 1 },
20
+ "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" },
21
+ "description": { "type": "string" }
22
+ }
23
+ },
24
+ "layout": {
25
+ "type": "object",
26
+ "required": ["designWidth"],
27
+ "additionalProperties": false,
28
+ "properties": {
29
+ "designWidth": {
30
+ "type": "number",
31
+ "minimum": 320,
32
+ "maximum": 3840,
33
+ "description": "Reference design width in px. All spacing/typography values are relative to this."
34
+ }
35
+ }
36
+ },
37
+ "colors": {
38
+ "type": "object",
39
+ "required": ["background", "primary", "text", "ctaBackground", "ctaText", "shaderFront", "shaderBack"],
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "background": { "$ref": "#/$defs/color" },
43
+ "primary": { "$ref": "#/$defs/color" },
44
+ "text": { "$ref": "#/$defs/color" },
45
+ "ctaBackground": { "$ref": "#/$defs/color" },
46
+ "ctaText": { "$ref": "#/$defs/color" },
47
+ "shaderFront": { "$ref": "#/$defs/color" },
48
+ "shaderBack": { "$ref": "#/$defs/color" }
49
+ }
50
+ },
51
+ "typography": {
52
+ "type": "object",
53
+ "required": ["primaryFont", "primaryFontWeight", "secondaryFont", "secondaryFontWeight", "headline", "subHeadline", "logo", "navItem", "ctaButton"],
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "primaryFont": { "type": "string", "minLength": 1 },
57
+ "primaryFontWeight": { "$ref": "#/$defs/fontWeight" },
58
+ "secondaryFont": { "type": "string", "minLength": 1 },
59
+ "secondaryFontWeight": { "$ref": "#/$defs/fontWeight" },
60
+ "headline": { "$ref": "#/$defs/typographyScale" },
61
+ "subHeadline": {
62
+ "allOf": [
63
+ { "$ref": "#/$defs/typographyScale" },
64
+ {
65
+ "type": "object",
66
+ "properties": {
67
+ "textTransform": {
68
+ "type": "string",
69
+ "enum": ["none", "uppercase", "lowercase", "capitalize"]
70
+ }
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ "logo": { "$ref": "#/$defs/typographyScale" },
76
+ "navItem": { "$ref": "#/$defs/typographyScale" },
77
+ "ctaButton": { "$ref": "#/$defs/typographyScale" }
78
+ }
79
+ },
80
+ "spacing": {
81
+ "type": "object",
82
+ "required": ["headerPaddingX", "headerPaddingY", "heroPaddingTop", "heroPaddingBottom", "heroPaddingX", "navGap", "ctaPaddingX", "ctaPaddingY", "ctaBorderRadius"],
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "headerPaddingX": { "$ref": "#/$defs/px" },
86
+ "headerPaddingY": { "$ref": "#/$defs/px" },
87
+ "heroPaddingTop": { "$ref": "#/$defs/px" },
88
+ "heroPaddingBottom": { "$ref": "#/$defs/px" },
89
+ "heroPaddingX": { "$ref": "#/$defs/px" },
90
+ "navGap": { "$ref": "#/$defs/px" },
91
+ "ctaPaddingX": { "$ref": "#/$defs/px" },
92
+ "ctaPaddingY": { "$ref": "#/$defs/px" },
93
+ "ctaBorderRadius": { "$ref": "#/$defs/px" }
94
+ }
95
+ },
96
+ "shader": {
97
+ "type": "object",
98
+ "required": ["speed", "shape", "type", "size", "scale", "rotation"],
99
+ "additionalProperties": false,
100
+ "properties": {
101
+ "speed": { "type": "number", "minimum": 0, "maximum": 10 },
102
+ "shape": {
103
+ "type": "string",
104
+ "enum": ["simplex", "warp", "dots", "wave", "ripple", "swirl", "sphere"]
105
+ },
106
+ "type": {
107
+ "type": "string",
108
+ "enum": ["random", "2x2", "4x4", "8x8"]
109
+ },
110
+ "size": { "type": "number", "minimum": 0.1, "maximum": 50 },
111
+ "scale": { "type": "number", "minimum": 0.01, "maximum": 20 },
112
+ "rotation": { "type": "number", "minimum": 0, "maximum": 360 }
113
+ }
114
+ },
115
+ "opacity": {
116
+ "type": "object",
117
+ "required": ["navLinks"],
118
+ "additionalProperties": false,
119
+ "properties": {
120
+ "navLinks": { "type": "number", "minimum": 0, "maximum": 1 }
121
+ }
122
+ },
123
+ "content": {
124
+ "type": "object",
125
+ "required": ["companyName", "navItems", "ctaText", "headline", "subHeadline"],
126
+ "additionalProperties": false,
127
+ "properties": {
128
+ "companyName": { "type": "string", "minLength": 1 },
129
+ "navItems": {
130
+ "type": "array",
131
+ "items": { "type": "string", "minLength": 1 },
132
+ "minItems": 1,
133
+ "maxItems": 8
134
+ },
135
+ "ctaText": { "type": "string", "minLength": 1 },
136
+ "headline": { "type": "string", "minLength": 1 },
137
+ "subHeadline": { "type": "string", "minLength": 1 }
138
+ }
139
+ }
140
+ },
141
+ "$defs": {
142
+ "color": {
143
+ "type": "string",
144
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
145
+ "description": "Hex color (#RRGGBB or #RRGGBBAA)"
146
+ },
147
+ "fontWeight": {
148
+ "type": "integer",
149
+ "enum": [100, 200, 300, 400, 500, 600, 700, 800, 900]
150
+ },
151
+ "typographyScale": {
152
+ "type": "object",
153
+ "required": ["referencePx", "lineHeightPx"],
154
+ "properties": {
155
+ "referencePx": { "type": "number", "minimum": 1, "maximum": 500 },
156
+ "lineHeightPx": { "type": "number", "minimum": 1, "maximum": 500 }
157
+ }
158
+ },
159
+ "px": {
160
+ "type": "number",
161
+ "minimum": 0,
162
+ "maximum": 500,
163
+ "description": "Reference px value at designWidth"
164
+ }
165
+ }
166
+ }