@designa8/vibedesign-joyvent-ds-v1-2-176b 0.3.21 → 0.3.23
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 +1 -1
- package/dist/index.cjs +27 -13
- package/dist/index.js +27 -13
- package/dist/styles.css +0 -3
- package/package.json +1 -1
- package/src/atoms/Logo/Logo.tsx +55 -26
- package/src/atoms/Logo/preview.tsx +24 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-joyvent-ds-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.3.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.3.23**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -1962,10 +1962,10 @@ var TILE_GLYPH_BOX_CLASS = {
|
|
|
1962
1962
|
md: "h-lg w-lg",
|
|
1963
1963
|
lg: "h-xl w-xl"
|
|
1964
1964
|
};
|
|
1965
|
-
var
|
|
1966
|
-
sm: "
|
|
1967
|
-
md: "
|
|
1968
|
-
lg: "
|
|
1965
|
+
var CARD_RADIUS_CLASS = {
|
|
1966
|
+
sm: "rounded-xs",
|
|
1967
|
+
md: "rounded-xs",
|
|
1968
|
+
lg: "rounded-sm"
|
|
1969
1969
|
};
|
|
1970
1970
|
var GAP_CLASS = {
|
|
1971
1971
|
sm: "gap-xs",
|
|
@@ -1982,8 +1982,14 @@ var TILE_RADIUS_CLASS2 = {
|
|
|
1982
1982
|
md: "rounded-md",
|
|
1983
1983
|
lg: "rounded-lg"
|
|
1984
1984
|
};
|
|
1985
|
-
var
|
|
1986
|
-
|
|
1985
|
+
var CARDS = [
|
|
1986
|
+
{ left: "35%", rotation: -16, opacity: 0.45 },
|
|
1987
|
+
{ left: "65%", rotation: 16, opacity: 0.7 },
|
|
1988
|
+
{ left: "50%", rotation: 0, opacity: 1 }
|
|
1989
|
+
];
|
|
1990
|
+
var CARD_WIDTH = "40%";
|
|
1991
|
+
var CARD_HEIGHT = "64%";
|
|
1992
|
+
var CARD_PIVOT = "50% 100%";
|
|
1987
1993
|
var LogoGlyph = ({
|
|
1988
1994
|
size,
|
|
1989
1995
|
boxClassName,
|
|
@@ -1993,19 +1999,27 @@ var LogoGlyph = ({
|
|
|
1993
1999
|
{
|
|
1994
2000
|
"aria-hidden": "true",
|
|
1995
2001
|
className: [
|
|
1996
|
-
"
|
|
2002
|
+
"relative block shrink-0 overflow-visible",
|
|
1997
2003
|
boxClassName,
|
|
1998
2004
|
toneClassName
|
|
1999
2005
|
].join(" "),
|
|
2000
|
-
children:
|
|
2006
|
+
children: CARDS.map((card) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2001
2007
|
"span",
|
|
2002
2008
|
{
|
|
2003
|
-
className: [
|
|
2004
|
-
" "
|
|
2005
|
-
|
|
2006
|
-
|
|
2009
|
+
className: [
|
|
2010
|
+
"absolute bottom-0 block bg-current",
|
|
2011
|
+
CARD_RADIUS_CLASS[size]
|
|
2012
|
+
].join(" "),
|
|
2013
|
+
style: {
|
|
2014
|
+
left: card.left,
|
|
2015
|
+
width: CARD_WIDTH,
|
|
2016
|
+
height: CARD_HEIGHT,
|
|
2017
|
+
opacity: card.opacity,
|
|
2018
|
+
transformOrigin: CARD_PIVOT,
|
|
2019
|
+
transform: `translateX(-50%) rotate(${card.rotation}deg)`
|
|
2020
|
+
}
|
|
2007
2021
|
},
|
|
2008
|
-
|
|
2022
|
+
card.left
|
|
2009
2023
|
))
|
|
2010
2024
|
}
|
|
2011
2025
|
);
|
package/dist/index.js
CHANGED
|
@@ -1837,10 +1837,10 @@ var TILE_GLYPH_BOX_CLASS = {
|
|
|
1837
1837
|
md: "h-lg w-lg",
|
|
1838
1838
|
lg: "h-xl w-xl"
|
|
1839
1839
|
};
|
|
1840
|
-
var
|
|
1841
|
-
sm: "
|
|
1842
|
-
md: "
|
|
1843
|
-
lg: "
|
|
1840
|
+
var CARD_RADIUS_CLASS = {
|
|
1841
|
+
sm: "rounded-xs",
|
|
1842
|
+
md: "rounded-xs",
|
|
1843
|
+
lg: "rounded-sm"
|
|
1844
1844
|
};
|
|
1845
1845
|
var GAP_CLASS = {
|
|
1846
1846
|
sm: "gap-xs",
|
|
@@ -1857,8 +1857,14 @@ var TILE_RADIUS_CLASS2 = {
|
|
|
1857
1857
|
md: "rounded-md",
|
|
1858
1858
|
lg: "rounded-lg"
|
|
1859
1859
|
};
|
|
1860
|
-
var
|
|
1861
|
-
|
|
1860
|
+
var CARDS = [
|
|
1861
|
+
{ left: "35%", rotation: -16, opacity: 0.45 },
|
|
1862
|
+
{ left: "65%", rotation: 16, opacity: 0.7 },
|
|
1863
|
+
{ left: "50%", rotation: 0, opacity: 1 }
|
|
1864
|
+
];
|
|
1865
|
+
var CARD_WIDTH = "40%";
|
|
1866
|
+
var CARD_HEIGHT = "64%";
|
|
1867
|
+
var CARD_PIVOT = "50% 100%";
|
|
1862
1868
|
var LogoGlyph = ({
|
|
1863
1869
|
size,
|
|
1864
1870
|
boxClassName,
|
|
@@ -1868,19 +1874,27 @@ var LogoGlyph = ({
|
|
|
1868
1874
|
{
|
|
1869
1875
|
"aria-hidden": "true",
|
|
1870
1876
|
className: [
|
|
1871
|
-
"
|
|
1877
|
+
"relative block shrink-0 overflow-visible",
|
|
1872
1878
|
boxClassName,
|
|
1873
1879
|
toneClassName
|
|
1874
1880
|
].join(" "),
|
|
1875
|
-
children:
|
|
1881
|
+
children: CARDS.map((card) => /* @__PURE__ */ jsx14(
|
|
1876
1882
|
"span",
|
|
1877
1883
|
{
|
|
1878
|
-
className: [
|
|
1879
|
-
" "
|
|
1880
|
-
|
|
1881
|
-
|
|
1884
|
+
className: [
|
|
1885
|
+
"absolute bottom-0 block bg-current",
|
|
1886
|
+
CARD_RADIUS_CLASS[size]
|
|
1887
|
+
].join(" "),
|
|
1888
|
+
style: {
|
|
1889
|
+
left: card.left,
|
|
1890
|
+
width: CARD_WIDTH,
|
|
1891
|
+
height: CARD_HEIGHT,
|
|
1892
|
+
opacity: card.opacity,
|
|
1893
|
+
transformOrigin: CARD_PIVOT,
|
|
1894
|
+
transform: `translateX(-50%) rotate(${card.rotation}deg)`
|
|
1895
|
+
}
|
|
1882
1896
|
},
|
|
1883
|
-
|
|
1897
|
+
card.left
|
|
1884
1898
|
))
|
|
1885
1899
|
}
|
|
1886
1900
|
);
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
package/src/atoms/Logo/Logo.tsx
CHANGED
|
@@ -3,18 +3,23 @@ import * as React from "react";
|
|
|
3
3
|
/**
|
|
4
4
|
* Brand lockup — an original geometric glyph beside a sentence-case wordmark.
|
|
5
5
|
*
|
|
6
|
-
* The glyph is three rounded
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* The glyph is three rounded card shapes (taller than wide, about 3:4) fanned
|
|
7
|
+
* like a hand of cards: the outer two are offset sideways and tilted -16deg /
|
|
8
|
+
* +16deg about their own bottom edge while the front card stands upright, so all
|
|
9
|
+
* three stay overlapped yet each keeps a visible top corner at 16–24px. They are
|
|
10
|
+
* painted in `currentColor`, the two back cards at reduced opacity (0.45 and
|
|
11
|
+
* 0.7), which is what makes the layering read. Deliberately not three stacked
|
|
12
|
+
* bars, so it never reads as a menu, list or text-align icon, and it carries no
|
|
13
|
+
* script lettering, gradient, tile behind letters, heart, star, bolt or
|
|
14
|
+
* asterisk.
|
|
12
15
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Every value the design system owns stays token-driven: the glyph colour is
|
|
17
|
+
* `currentColor` so it takes the brand (or inverse) text role, the glyph box
|
|
18
|
+
* and the gap come from the spacing scale, the card corners from the radius
|
|
19
|
+
* scale, and the wordmark from the regular `heading-*` type roles in sentence
|
|
20
|
+
* case — never the script wordmark face. Tokens in play: `text-ink`,
|
|
21
|
+
* `bg-primary-soft`, `text-primary`, `bg-inverse-surface`,
|
|
22
|
+
* `text-inverse-on-surface`, plus the spacing / radius scales.
|
|
18
23
|
*/
|
|
19
24
|
|
|
20
25
|
export type LogoVariant = "primary" | "mark" | "on-dark";
|
|
@@ -51,11 +56,11 @@ const TILE_GLYPH_BOX_CLASS: Record<LogoSize, string> = {
|
|
|
51
56
|
lg: "h-xl w-xl",
|
|
52
57
|
};
|
|
53
58
|
|
|
54
|
-
/**
|
|
55
|
-
const
|
|
56
|
-
sm: "
|
|
57
|
-
md: "
|
|
58
|
-
lg: "
|
|
59
|
+
/** Card corner — small relative to the card so it stays a card, not a pill. */
|
|
60
|
+
const CARD_RADIUS_CLASS: Record<LogoSize, string> = {
|
|
61
|
+
sm: "rounded-xs",
|
|
62
|
+
md: "rounded-xs",
|
|
63
|
+
lg: "rounded-sm",
|
|
59
64
|
};
|
|
60
65
|
|
|
61
66
|
/** Space between the glyph and the wordmark. */
|
|
@@ -78,9 +83,25 @@ const TILE_RADIUS_CLASS: Record<LogoSize, string> = {
|
|
|
78
83
|
lg: "rounded-lg",
|
|
79
84
|
};
|
|
80
85
|
|
|
81
|
-
/**
|
|
82
|
-
|
|
83
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Fan geometry. Each card is centred on `left` (a percentage of the glyph box),
|
|
88
|
+
* bottom-aligned on the baseline and tilted about its own bottom edge — a hand
|
|
89
|
+
* of cards, drawn back-to-front so the upright front card paints last. The side
|
|
90
|
+
* offset plus the tilt is what keeps all three silhouettes separate at 16px;
|
|
91
|
+
* rotation alone collapses them into one blob.
|
|
92
|
+
*/
|
|
93
|
+
const CARDS = [
|
|
94
|
+
{ left: "35%", rotation: -16, opacity: 0.45 },
|
|
95
|
+
{ left: "65%", rotation: 16, opacity: 0.7 },
|
|
96
|
+
{ left: "50%", rotation: 0, opacity: 1 },
|
|
97
|
+
] as const;
|
|
98
|
+
|
|
99
|
+
/** Card proportions inside the square glyph box — taller than wide, about 3:4. */
|
|
100
|
+
const CARD_WIDTH = "40%";
|
|
101
|
+
const CARD_HEIGHT = "64%";
|
|
102
|
+
|
|
103
|
+
/** Rotate about the card's own bottom edge, so the fan sits on one baseline. */
|
|
104
|
+
const CARD_PIVOT = "50% 100%";
|
|
84
105
|
|
|
85
106
|
interface GlyphProps {
|
|
86
107
|
size: LogoSize;
|
|
@@ -98,18 +119,26 @@ const LogoGlyph: React.FC<GlyphProps> = ({
|
|
|
98
119
|
<span
|
|
99
120
|
aria-hidden="true"
|
|
100
121
|
className={[
|
|
101
|
-
"
|
|
122
|
+
"relative block shrink-0 overflow-visible",
|
|
102
123
|
boxClassName,
|
|
103
124
|
toneClassName,
|
|
104
125
|
].join(" ")}
|
|
105
126
|
>
|
|
106
|
-
{
|
|
127
|
+
{CARDS.map((card) => (
|
|
107
128
|
<span
|
|
108
|
-
key={
|
|
109
|
-
className={[
|
|
110
|
-
" ",
|
|
111
|
-
|
|
112
|
-
|
|
129
|
+
key={card.left}
|
|
130
|
+
className={[
|
|
131
|
+
"absolute bottom-0 block bg-current",
|
|
132
|
+
CARD_RADIUS_CLASS[size],
|
|
133
|
+
].join(" ")}
|
|
134
|
+
style={{
|
|
135
|
+
left: card.left,
|
|
136
|
+
width: CARD_WIDTH,
|
|
137
|
+
height: CARD_HEIGHT,
|
|
138
|
+
opacity: card.opacity,
|
|
139
|
+
transformOrigin: CARD_PIVOT,
|
|
140
|
+
transform: `translateX(-50%) rotate(${card.rotation}deg)`,
|
|
141
|
+
}}
|
|
113
142
|
/>
|
|
114
143
|
))}
|
|
115
144
|
</span>
|
|
@@ -3,7 +3,8 @@ import { Logo } from "./Logo";
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Lockup board — one row of lockup forms with the captions sharing the grid, so
|
|
6
|
-
* the labels sit on a common baseline. A second row shows the full scale,
|
|
6
|
+
* the labels sit on a common baseline. A second row shows the full scale, a
|
|
7
|
+
* third checks that the fanned-card glyph still reads at dock/nav sizes, and a
|
|
7
8
|
* final panel puts the lockup in context on the inverse surface.
|
|
8
9
|
*/
|
|
9
10
|
|
|
@@ -19,6 +20,12 @@ const SCALE = [
|
|
|
19
20
|
{ key: "lg", caption: "Large", size: "lg" },
|
|
20
21
|
] as const;
|
|
21
22
|
|
|
23
|
+
const MARK_SCALE = [
|
|
24
|
+
{ key: "sm", caption: "sm · 16px glyph", size: "sm" },
|
|
25
|
+
{ key: "md", caption: "md · 24px glyph", size: "md" },
|
|
26
|
+
{ key: "lg", caption: "lg · 32px glyph", size: "lg" },
|
|
27
|
+
] as const;
|
|
28
|
+
|
|
22
29
|
const LINK_CLASS =
|
|
23
30
|
"cursor-pointer rounded-xs text-body-sm text-body underline decoration-transparent underline-offset-4 transition duration-150 ease-out hover:text-ink hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
|
|
24
31
|
|
|
@@ -54,6 +61,22 @@ export default function LogoPreview() {
|
|
|
54
61
|
</div>
|
|
55
62
|
</section>
|
|
56
63
|
|
|
64
|
+
<section className="w-full rounded-xl border border-hairline bg-surface-soft p-lg">
|
|
65
|
+
<p className="mb-md text-overline text-muted">Glyph at nav sizes</p>
|
|
66
|
+
<div className="grid grid-cols-1 items-end gap-x-base gap-y-base sm:grid-cols-3">
|
|
67
|
+
{MARK_SCALE.map((step) => (
|
|
68
|
+
<div key={step.key} className="flex flex-col items-center gap-sm">
|
|
69
|
+
<div className="flex min-h-xl items-center justify-center">
|
|
70
|
+
<Logo variant="mark" size={step.size} />
|
|
71
|
+
</div>
|
|
72
|
+
<span className="text-center text-caption text-muted">
|
|
73
|
+
{step.caption}
|
|
74
|
+
</span>
|
|
75
|
+
</div>
|
|
76
|
+
))}
|
|
77
|
+
</div>
|
|
78
|
+
</section>
|
|
79
|
+
|
|
57
80
|
<section className="w-full rounded-xl border border-hairline bg-surface p-lg">
|
|
58
81
|
<p className="mb-md text-overline text-muted">In context</p>
|
|
59
82
|
<div className="flex flex-wrap items-center justify-between gap-base">
|