Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0f5b7af
Update docs and formatting
ttaylor-stack Nov 27, 2025
a12c7c1
half finished docs update
ttaylor-stack Dec 1, 2025
349b469
Finish docs and update svelte
ttaylor-stack Dec 4, 2025
0bb346f
Update docs
ttaylor-stack Dec 4, 2025
6365adb
fix lint and tests
ttaylor-stack Dec 4, 2025
ef94d69
Update gaps
ttaylor-stack Dec 4, 2025
e00d975
fix lint issue
ttaylor-stack Dec 4, 2025
eb7c284
fix test
ttaylor-stack Dec 4, 2025
ab9794a
fix lint
ttaylor-stack Dec 4, 2025
38b0d9b
fix test
ttaylor-stack Dec 4, 2025
87b78bc
lint fix
ttaylor-stack Dec 4, 2025
16b09dc
Merge branch 'beta' into spark-85/update-user-card-part-1
ttaylor-stack Dec 23, 2025
87c4616
revert gap changes
ttaylor-stack Dec 23, 2025
ea428f1
fix lint issue
ttaylor-stack Dec 23, 2025
01b1e2c
fix spacing
ttaylor-stack Dec 23, 2025
97e14e4
update title
ttaylor-stack Dec 23, 2025
823cda0
fix
ttaylor-stack Dec 23, 2025
8a5f156
Add large variant
ttaylor-stack Jan 5, 2026
3fb74e9
Update user-card.less
ttaylor-stack Jan 5, 2026
7673568
fix alignment issues
ttaylor-stack Jan 5, 2026
81a0c75
redo responsive code
ttaylor-stack Jan 5, 2026
039b5b2
Tweak the user card markup + less
dancormier Jan 6, 2026
8529c35
Add PPCP and start secondary implementation
ttaylor-stack Jan 6, 2026
dadc853
clean up PPCP
ttaylor-stack Jan 6, 2026
8904436
add position location class
ttaylor-stack Jan 6, 2026
0ce5ede
fix secondary
ttaylor-stack Jan 6, 2026
a511581
add excerpt class
ttaylor-stack Jan 6, 2026
6d1903a
remove no wrap
ttaylor-stack Jan 6, 2026
5695aeb
Update docs to match new markup
ttaylor-stack Jan 6, 2026
2013d0a
Style and docs adjustments
dancormier Jan 6, 2026
8eb40d7
Add avatars
ttaylor-stack Jan 7, 2026
69d7def
Update svelte component
ttaylor-stack Jan 7, 2026
02a77e4
Merge branch 'beta' into spark-85/update-user-card-part-1
ttaylor-stack Jan 7, 2026
f0b7e06
fix recognition color issue
ttaylor-stack Jan 7, 2026
e3f54b2
improve svelte component
ttaylor-stack Jan 7, 2026
46358a6
Add icon to large usercard
ttaylor-stack Jan 7, 2026
ec62daf
run format
ttaylor-stack Jan 7, 2026
6309348
refactor
ttaylor-stack Jan 7, 2026
7b56f01
fix tests
ttaylor-stack Jan 7, 2026
5aa3985
improve svelte component
ttaylor-stack Jan 7, 2026
2fa4977
Add timestamp subcomponent
ttaylor-stack Jan 7, 2026
365bcce
fix formatting
ttaylor-stack Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/beige-cycles-spend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@stackoverflow/stacks": minor
"@stackoverflow/stacks-svelte": minor
---

Update User card to new SHINE design (part 1)
157 changes: 61 additions & 96 deletions packages/stacks-classic/lib/components/user-card/user-card.less
Original file line number Diff line number Diff line change
@@ -1,129 +1,94 @@
.s-user-card {
--_uc-ai: center;
--_uc-bg: unset;
--_uc-bar: unset;
--_uc-d: grid;
--_uc-fc: unset;
--_uc-g: var(--su4) var(--su8);
--_uc-p: var(--su8);
--_uc-info-ai: unset;
--_uc-info-fd: column;
--_uc-link-fs: var(--fs-caption);
--_uc-link-ws: unset;
--_uc-rep-fc: unset;
--_uc-time-fc: var(--black-400);
--_uc-time-ws: unset;
--_uc-type-fc: var(--theme-primary-400);
--_uc-fd: unset;
--_uc-username-fs: unset;

// MODIFIERS
&&__deleted {
--_uc-fc: var(--black-400);
}

&&__highlighted {
--_uc-bg: var(--theme-secondary-100);
--_uc-bar: var(--br-md);
--_uc-time-fc: var(--black-500);
--_uc-type-fc: var(--black-500);
// VARIANTS
// SIZES
&&__lg {
--_uc-ai: flex-start;
--_uc-fd: column;
--_uc-username-fs: var(--fs-body3);
}

// VARIANTS
&&__minimal,
&&__small {
--_uc-d: flex;
--_uc-g: var(--su4);
--_uc-p: 0;
--_uc-info-ai: center;
--_uc-info-fd: row;
// CHILD ELEMENTS
& &--bio {
.truncation(3);
color: var(--black-400);
}

&&__full {
--_uc-ai: flex-start;
--_uc-link-fs: var(--fs-body2);
& &--recognition {
&,
& a {
color: var(--theme-primary) !important;
}
}

&&__minimal {
--_uc-link-ws: nowrap;
--_uc-rep-fc: var(--black-500);
--_uc-time-ws: nowrap;
& &--rep {
font-weight: 600;
}

// CHILD ELEMENTS
& &--location,
& &--role {
font-size: var(--fs-caption);
& &--time {
color: var(--black-400);
}

& &--awards {
li {
font-size: var(--fs-caption);
}
& &--username {
font-size: var(--_uc-username-fs);
font-weight: 500;
}

.list-reset;
align-items: center;
// Layout specific
& &--column,
& &--row {
display: flex;
gap: var(--su6);
}

& &--info {
align-items: var(--_uc-info-ai);
flex-direction: var(--_uc-info-fd);
& &--column {
align-items: flex-start;
flex-direction: column;
}

& &--group {
align-items: center;
display: flex;
gap: var(--su4);
}

& &--link {
font-size: var(--_uc-link-fs);
white-space: var(--_uc-link-ws);

align-items: center;
flex-wrap: wrap;
min-width: 0; // Allow things to wrap
overflow-wrap: break-word;
}
& ul&--group {
&.s-user-card--group__split {
li:not(:last-child) {
&:after {
background-color: var(--black-350);
content: "";
display: block;
margin-left: var(--su4);
width: var(--su4);
height: var(--su4);
}
}
}

& &--rep {
color: var(--_uc-rep-fc);
li {
align-items: center;
display: inline-flex;
gap: var(--su2);
}

font-weight: 700;
.list-reset;
}

& &--tags {
& &--row {
align-items: center;
min-width: 0; // Allow things to wrap
flex-direction: row;
flex-wrap: wrap;
}

& &--time {
color: var(--_uc-time-fc);
white-space: var(--_uc-time-ws);

font-size: var(--fs-caption);
grid-column: ~"1 / 3";
grid-row: ~"1 / 2";
}

& &--type {
a:not(.s-link) {
color: inherit !important;
}

color: var(--_uc-type-fc);

font-size: var(--fs-caption);
grid-column: ~"1 / 3";
}

align-items: var(--_uc-ai);
background-color: var(--_uc-bg);
border-radius: var(--_uc-bar);
color: var(--_uc-fc);
display: var(--_uc-d);
gap: var(--_uc-g);

grid-template-columns: auto 1fr;
line-height: 1;
padding: var(--_uc-p);
}
color: var(--black-500);
display: flex;
flex-direction: var(--_uc-fd);
flex-wrap: wrap;
font-size: var(--fs-caption);
gap: var(--su6);
}
3 changes: 2 additions & 1 deletion packages/stacks-docs/_data/site-navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@
},
{
"title": "User cards",
"url": "/product/components/user-cards/"
"url": "/product/components/user-cards/",
"new": true
},
{
"title": "Vote",
Expand Down
Loading
Loading