@orange-halo/tokens 1.0.0 → 2.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.
@@ -0,0 +1,130 @@
1
+ {
2
+ "$description": "Hood brand palette (tier 1): Fraser Hood's personal site. Greyscale and type-led, after fraser-hood.co.uk/gig-history: flat, no shadows, small corners, one quiet blue for links that need a colour and for info.",
3
+ "color": {
4
+ "grey": {
5
+ "$description": "Neutral greys. 850, 800, 750 and 100 are the gig-history site's page, surface, line and text colours; 500 is its muted grey, a touch lighter",
6
+ "50": { "$type": "color", "$value": "#F7F7F7" },
7
+ "100": { "$type": "color", "$value": "#EDEDED" },
8
+ "200": { "$type": "color", "$value": "#DEDEDE" },
9
+ "300": { "$type": "color", "$value": "#C4C4C4" },
10
+ "400": { "$type": "color", "$value": "#A8A8A8" },
11
+ "500": { "$type": "color", "$value": "#929292", "$description": "The site's muted grey (#8F8F8F) lifted just enough for 4.5:1 on surface.raised" },
12
+ "600": { "$type": "color", "$value": "#6B6B6B" },
13
+ "650": { "$type": "color", "$value": "#575757" },
14
+ "700": { "$type": "color", "$value": "#454545" },
15
+ "750": { "$type": "color", "$value": "#363636" },
16
+ "800": { "$type": "color", "$value": "#292929" },
17
+ "850": { "$type": "color", "$value": "#1F1F1F" },
18
+ "900": { "$type": "color", "$value": "#171717" },
19
+ "950": { "$type": "color", "$value": "#0D0D0D" }
20
+ },
21
+ "white": { "$type": "color", "$value": "#FFFFFF" },
22
+ "black": { "$type": "color", "$value": "#000000" },
23
+ "blue": {
24
+ "$description": "The one colour: accent and info",
25
+ "50": { "$type": "color", "$value": "#EDF3FC" },
26
+ "200": { "$type": "color", "$value": "#B3CDF2" },
27
+ "300": { "$type": "color", "$value": "#93B8EC" },
28
+ "700": { "$type": "color", "$value": "#1F5CB3" },
29
+ "800": { "$type": "color", "$value": "#184A91" },
30
+ "900": { "$type": "color", "$value": "#16263D" }
31
+ },
32
+ "green": {
33
+ "$description": "Success",
34
+ "50": { "$type": "color", "$value": "#EBF6EE" },
35
+ "300": { "$type": "color", "$value": "#82CF9C" },
36
+ "700": { "$type": "color", "$value": "#1D7238" },
37
+ "900": { "$type": "color", "$value": "#142B1C" }
38
+ },
39
+ "red": {
40
+ "$description": "Error",
41
+ "50": { "$type": "color", "$value": "#FCEEEE" },
42
+ "100": { "$type": "color", "$value": "#FAD4D4" },
43
+ "300": { "$type": "color", "$value": "#F59A9A" },
44
+ "700": { "$type": "color", "$value": "#B02525" },
45
+ "800": { "$type": "color", "$value": "#8C1D1D" },
46
+ "900": { "$type": "color", "$value": "#3A1717" }
47
+ },
48
+ "amber": {
49
+ "$description": "Warning",
50
+ "50": { "$type": "color", "$value": "#FCF4E3" },
51
+ "300": { "$type": "color", "$value": "#EBC271" },
52
+ "700": { "$type": "color", "$value": "#835600" },
53
+ "900": { "$type": "color", "$value": "#33260E" }
54
+ }
55
+ },
56
+ "font": {
57
+ "family": {
58
+ "$description": "Plus Jakarta Sans for everything, as on the site",
59
+ "sans": { "$type": "fontFamily", "$value": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif" },
60
+ "display": { "$type": "fontFamily", "$value": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif" },
61
+ "mono": { "$type": "fontFamily", "$value": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" }
62
+ },
63
+ "size": {
64
+ "$description": "The site's scale: 15px body, large bold headings",
65
+ "xs": { "$type": "dimension", "$value": "0.6875rem" },
66
+ "sm": { "$type": "dimension", "$value": "0.8125rem" },
67
+ "base": { "$type": "dimension", "$value": "0.9375rem" },
68
+ "lg": { "$type": "dimension", "$value": "1.0625rem" },
69
+ "xl": { "$type": "dimension", "$value": "1.35rem" },
70
+ "2xl": { "$type": "dimension", "$value": "1.8rem" },
71
+ "3xl": { "$type": "dimension", "$value": "2.6rem" },
72
+ "4xl": { "$type": "dimension", "$value": "3.5rem" },
73
+ "5xl": { "$type": "dimension", "$value": "4.2rem" }
74
+ },
75
+ "weight": {
76
+ "normal": { "$type": "fontWeight", "$value": "400" },
77
+ "medium": { "$type": "fontWeight", "$value": "500" },
78
+ "semibold": { "$type": "fontWeight", "$value": "600" },
79
+ "bold": { "$type": "fontWeight", "$value": "700" },
80
+ "extrabold": { "$type": "fontWeight", "$value": "800" }
81
+ },
82
+ "lineHeight": {
83
+ "none": { "$type": "number", "$value": 1 },
84
+ "tight": { "$type": "number", "$value": 1.1 },
85
+ "snug": { "$type": "number", "$value": 1.3 },
86
+ "normal": { "$type": "number", "$value": 1.5 },
87
+ "relaxed": { "$type": "number", "$value": 1.6 }
88
+ },
89
+ "letterSpacing": {
90
+ "tighter": { "$type": "dimension", "$value": "-0.02em" },
91
+ "tight": { "$type": "dimension", "$value": "-0.01em" },
92
+ "normal": { "$type": "dimension", "$value": "0" },
93
+ "wide": { "$type": "dimension", "$value": "0.02em" },
94
+ "widest": { "$type": "dimension", "$value": "0.08em", "$description": "Small uppercase labels, as on the site" }
95
+ }
96
+ },
97
+ "radius": {
98
+ "$description": "Small, square-ish corners: 2px badges, 4px controls",
99
+ "none": { "$type": "dimension", "$value": "0" },
100
+ "xs": { "$type": "dimension", "$value": "2px" },
101
+ "sm": { "$type": "dimension", "$value": "4px" },
102
+ "md": { "$type": "dimension", "$value": "6px" },
103
+ "full": { "$type": "dimension", "$value": "9999px" }
104
+ },
105
+ "border": {
106
+ "width": {
107
+ "1": { "$type": "dimension", "$value": "1px" },
108
+ "2": { "$type": "dimension", "$value": "2px" }
109
+ }
110
+ },
111
+ "shadow": {
112
+ "$description": "Flat: no shadows, except under dialogs",
113
+ "none": { "$type": "shadow", "$value": "none" },
114
+ "overlay": { "$type": "shadow", "$value": "0 12px 32px rgba(0, 0, 0, 0.35)", "$description": "Modals and drawers only, to lift them off the backdrop" }
115
+ },
116
+ "motion": {
117
+ "duration": {
118
+ "quick": { "$type": "duration", "$value": "100ms" },
119
+ "snappy": { "$type": "duration", "$value": "150ms" },
120
+ "gentle": { "$type": "duration", "$value": "200ms" },
121
+ "relaxed": { "$type": "duration", "$value": "250ms" },
122
+ "slow": { "$type": "duration", "$value": "350ms" }
123
+ },
124
+ "easing": {
125
+ "$description": "Plain ease-out: no overshoot",
126
+ "standard": { "$type": "cubicBezier", "$value": [0.4, 0, 0.2, 1] },
127
+ "out": { "$type": "cubicBezier", "$value": [0, 0, 0.2, 1] }
128
+ }
129
+ }
130
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "$description": "About the brand, for tools that show it (Storybook's Brand control): its name, and the stylesheets that load its fonts.",
3
+ "name": "Orange Halo",
4
+ "fonts": ["https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"]
5
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "$description": "Dark Theme — warm cocoa base, cozy evening Orange Halo. Overrides tier 2 only; every colour references the palette. Applies when data-theme=\"dark\" is set.",
3
+ "color": {
4
+ "brand": {
5
+ "$description": "Honey replaces orange on dark — orange.900 is too dark to read on cocoa",
6
+ "primary": { "$type": "color", "$value": "{color.honey.400}" },
7
+ "primaryHover": { "$type": "color", "$value": "{color.honey.300}" },
8
+ "primaryActive": { "$type": "color", "$value": "{color.honey.500}" },
9
+ "primarySubtle": { "$type": "color", "$value": "{color.warm.walnut}" },
10
+ "highlight": { "$type": "color", "$value": "{color.honey.300}" },
11
+ "highlightSubtle": { "$type": "color", "$value": "{color.honey.900}" }
12
+ },
13
+ "accent": {
14
+ "$description": "Blue, as in light — lighter steps so it reads on cocoa",
15
+ "default": { "$type": "color", "$value": "{color.blue.200}" },
16
+ "hover": { "$type": "color", "$value": "{color.blue.100}" },
17
+ "active": { "$type": "color", "$value": "{color.blue.300}" },
18
+ "subtle": { "$type": "color", "$value": "{color.blue.800}" },
19
+ "shadow": { "$type": "color", "$value": "{color.blue.800}" }
20
+ },
21
+ "feedback": {
22
+ "success": { "$type": "color", "$value": "{color.green.300}" },
23
+ "successSubtle": { "$type": "color", "$value": "{color.green.900}" },
24
+ "error": { "$type": "color", "$value": "{color.red.300}" },
25
+ "errorHover": { "$type": "color", "$value": "{color.red.100}" },
26
+ "errorSubtle": { "$type": "color", "$value": "{color.red.900}" },
27
+ "errorShadow": { "$type": "color", "$value": "{color.red.900}" },
28
+ "warning": { "$type": "color", "$value": "{color.honey.300}" },
29
+ "warningSubtle": { "$type": "color", "$value": "{color.honey.900}" },
30
+ "info": { "$type": "color", "$value": "{color.blue.200}" },
31
+ "infoSubtle": { "$type": "color", "$value": "{color.blue.800}" }
32
+ },
33
+ "surface": {
34
+ "base": { "$type": "color", "$value": "{color.warm.cocoa}" },
35
+ "raised": { "$type": "color", "$value": "{color.warm.walnut}" },
36
+ "sunlit": { "$type": "color", "$value": "{color.warm.chestnut}" },
37
+ "inset": { "$type": "color", "$value": "{color.warm.espresso}" },
38
+ "highlight": { "$type": "color", "$value": "{color.warm.hickory}", "$description": "Lighter than raised; text.primary stays readable on it" },
39
+ "overlay": { "$type": "color", "$value": "rgba(15, 12, 10, 0.7)" },
40
+ "disabled": { "$type": "color", "$value": "{color.warm.mocha}" },
41
+ "hover": { "$type": "color", "$value": "{color.warm.hickory}" },
42
+ "activePressed": { "$type": "color", "$value": "{color.warm.mocha}" },
43
+ "featuredStart": { "$type": "color", "$value": "{color.warm.dawn}", "$description": "Same as light for now: the dark theme hasn't been designed" },
44
+ "featuredMid": { "$type": "color", "$value": "{color.warm.shell}" },
45
+ "featuredEnd": { "$type": "color", "$value": "{color.warm.biscuit}" },
46
+ "sheen": { "$type": "color", "$value": "rgba(255, 255, 255, 0.5)" },
47
+ "backdrop": { "$type": "color", "$value": "rgba(61, 50, 41, 0.6)" }
48
+ },
49
+ "border": {
50
+ "default": { "$type": "color", "$value": "{color.warm.taupe}" },
51
+ "subtle": { "$type": "color", "$value": "{color.warm.driftwood}", "$description": "Decorative dividers only — below 3:1" },
52
+ "emphasis": { "$type": "color", "$value": "{color.warm.stone}" },
53
+ "strong": { "$type": "color", "$value": "{color.warm.stone}" },
54
+ "hover": { "$type": "color", "$value": "{color.warm.dune}" },
55
+ "disabled": { "$type": "color", "$value": "{color.warm.hickory}" },
56
+ "brand": { "$type": "color", "$value": "rgba(232, 168, 56, 0.3)" },
57
+ "brandHover": { "$type": "color", "$value": "rgba(197, 67, 0, 0.35)", "$description": "Same as light for now: the dark theme hasn't been designed" },
58
+ "divider": { "$type": "color", "$value": "rgba(226, 213, 200, 0.6)" }
59
+ },
60
+ "text": {
61
+ "primary": { "$type": "color", "$value": "{color.warm.linen}" },
62
+ "secondary": { "$type": "color", "$value": "{color.warm.dune}" },
63
+ "disabled": { "$type": "color", "$value": "{color.warm.driftwood}" },
64
+ "inverse": { "$type": "color", "$value": "{color.warm.cocoa}" },
65
+ "link": { "$type": "color", "$value": "{color.honey.400}" },
66
+ "linkHover": { "$type": "color", "$value": "{color.honey.300}" },
67
+ "linkRaised": { "$type": "color", "$value": "{color.honey.400}" },
68
+ "brand": { "$type": "color", "$value": "{color.honey.400}" },
69
+ "onBrand": { "$type": "color", "$value": "{color.warm.cocoa}" },
70
+ "onAccent": { "$type": "color", "$value": "{color.warm.cocoa}" },
71
+ "onSuccess": { "$type": "color", "$value": "{color.warm.cocoa}" },
72
+ "onError": { "$type": "color", "$value": "{color.warm.cocoa}" },
73
+ "onWarning": { "$type": "color", "$value": "{color.warm.cocoa}" },
74
+ "onInfo": { "$type": "color", "$value": "{color.warm.cocoa}" }
75
+ }
76
+ },
77
+ "shadow": {
78
+ "$description": "Chunky offset shadow colours — darker than the surface, so they read as shadow on dark",
79
+ "primary": { "$type": "color", "$value": "{color.honey.800}" },
80
+ "secondary": { "$type": "color", "$value": "{color.warm.espresso}" },
81
+ "accent": { "$type": "color", "$value": "{color.blue.800}" },
82
+ "error": { "$type": "color", "$value": "{color.red.900}" },
83
+ "neutral": { "$type": "color", "$value": "{shadow.chunky.driftwood}", "$description": "As in light, which is what dark showed before these were tokens. Faint on cocoa: review with the dark design" },
84
+ "neutralHover": { "$type": "color", "$value": "{shadow.chunky.driftwoodHover}", "$description": "As in light; review with the dark design" },
85
+ "overlay": { "$type": "color", "$value": "{shadow.chunky.driftwoodDeep}", "$description": "As in light; review with the dark design" },
86
+ "field": { "$type": "color", "$value": "{shadow.chunky.walnut}", "$description": "As in light; review with the dark design" }
87
+ },
88
+ "elevation": {
89
+ "$description": "Black-based shadows — warm-brown shadows vanish on cocoa",
90
+ "soft": { "$type": "shadow", "$value": "0 2px 8px rgba(0, 0, 0, 0.25)" },
91
+ "medium": { "$type": "shadow", "$value": "0 4px 16px rgba(0, 0, 0, 0.3)" },
92
+ "strong": { "$type": "shadow", "$value": "0 8px 24px rgba(0, 0, 0, 0.4)" },
93
+ "inset": { "$type": "shadow", "$value": "inset 0 1px 3px rgba(0, 0, 0, 0.3)" }
94
+ },
95
+ "focus": {
96
+ "ringColor": { "$type": "color", "$value": "{color.honey.400}", "$description": "Opaque, as in light" },
97
+ "glowColor": { "$type": "color", "$value": "rgba(232, 168, 56, 0.2)" }
98
+ }
99
+ }