@orangecheck/design 0.21.0 → 0.22.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/README.md +29 -8
- package/dist/components.js +1 -1
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/components.mjs.map +1 -1
- package/dist/composites.js +1 -1
- package/dist/composites.js.map +1 -1
- package/dist/composites.mjs +1 -1
- package/dist/composites.mjs.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/styles/theme.css +8 -4
- package/dist/styles/themes/ember.css +18 -3
- package/dist/styles/themes/orangecheck.css +6 -6
- package/dist/styles/themes.css +4 -3
- package/dist/tokens.d.mts +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tokens.js +7 -7
- package/dist/tokens.js.map +1 -1
- package/dist/tokens.mjs +7 -7
- package/dist/tokens.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -30,6 +30,12 @@ function cn(...inputs) {
|
|
|
30
30
|
|
|
31
31
|
// src/tokens/themes.ts
|
|
32
32
|
var OC_THEMES = [
|
|
33
|
+
{
|
|
34
|
+
id: "ember",
|
|
35
|
+
label: "ember",
|
|
36
|
+
description: "the warmth \u2014 burnt-sienna terracotta, soft 1rem corners, pill buttons, Hanken Grotesk \xB7 approachable, human",
|
|
37
|
+
accent: "#da6736"
|
|
38
|
+
},
|
|
33
39
|
{
|
|
34
40
|
id: "orangecheck",
|
|
35
41
|
label: "orangecheck",
|
|
@@ -53,19 +59,13 @@ var OC_THEMES = [
|
|
|
53
59
|
label: "gold",
|
|
54
60
|
description: "sound money \u2014 digital gold, hard 0.125rem milled edge, mono ledger \xB7 21M",
|
|
55
61
|
accent: "#e3b831"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: "ember",
|
|
59
|
-
label: "ember",
|
|
60
|
-
description: "the warmth \u2014 burnt-sienna terracotta, soft 1rem corners, pill buttons, Hanken Grotesk \xB7 approachable, human",
|
|
61
|
-
accent: "#da6736"
|
|
62
62
|
}
|
|
63
63
|
];
|
|
64
64
|
var OC_DEFAULT_ACCENT = "#f97316";
|
|
65
65
|
function accentFor(id) {
|
|
66
66
|
return OC_THEMES.find((t) => t.id === id)?.accent ?? OC_DEFAULT_ACCENT;
|
|
67
67
|
}
|
|
68
|
-
var DEFAULT_OC_THEME = "
|
|
68
|
+
var DEFAULT_OC_THEME = "ember";
|
|
69
69
|
function isKnownTheme(id) {
|
|
70
70
|
return !!id && OC_THEMES.some((t) => t.id === id);
|
|
71
71
|
}
|
|
@@ -2607,7 +2607,7 @@ function TwoToneHeading({
|
|
|
2607
2607
|
}) {
|
|
2608
2608
|
const Tag = as ?? "h2";
|
|
2609
2609
|
const leadColor = tone === "onBrand" ? "text-primary-foreground" : "text-foreground";
|
|
2610
|
-
const mutedColor = tone === "onBrand" ? "text-primary-foreground/
|
|
2610
|
+
const mutedColor = tone === "onBrand" ? "text-primary-foreground/75" : "text-foreground/40";
|
|
2611
2611
|
return /* @__PURE__ */ jsxs(
|
|
2612
2612
|
Tag,
|
|
2613
2613
|
{
|