Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
78 changes: 39 additions & 39 deletions examples/vite/src/AppSettings/AppSettings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
gap: 16px;

.app__settings-group_button {
color: var(--text-secondary);
color: var(--str-chat__text-secondary);
}
}

Expand Down Expand Up @@ -77,13 +77,13 @@
}

.app__attachment-dialog__field-label {
color: var(--text-primary);
color: var(--str-chat__text-primary);
font-size: 14px;
font-weight: 600;
}

.app__attachment-dialog__subsection {
border-top: 1px solid var(--border-core-default);
border-top: 1px solid var(--str-chat__border-core-default);
display: flex;
flex-direction: column;
gap: 10px;
Expand All @@ -92,7 +92,7 @@
}

.app__attachment-dialog__subsection-title {
color: var(--text-primary);
color: var(--str-chat__text-primary);
font-size: 14px;
font-weight: 700;
margin: 0;
Expand All @@ -104,10 +104,10 @@
}

.app__attachment-dialog__tab {
border: 1px solid var(--border-core-default);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 999px;
background: var(--background-core-elevation-2);
color: var(--text-secondary);
background: var(--str-chat__background-core-elevation-2);
color: var(--str-chat__text-secondary);
cursor: pointer;
font: inherit;
font-size: 13px;
Expand All @@ -117,20 +117,20 @@
}

.app__attachment-dialog__tab[aria-selected='true'] {
background: var(--background-utility-selected);
border-color: var(--border-utility-selected);
color: var(--text-primary);
background: var(--str-chat__background-utility-selected);
border-color: var(--str-chat__border-utility-selected);
color: var(--str-chat__text-primary);
}

.app__attachment-dialog__textarea {
width: 100%;
min-height: 200px;
resize: vertical;
border: 1px solid var(--border-core-default);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 10px;
padding: 10px 12px;
background: var(--background-core-elevation-2);
color: var(--text-primary);
background: var(--str-chat__background-core-elevation-2);
color: var(--str-chat__text-primary);
font-family:
ui-monospace,
SFMono-Regular,
Expand All @@ -142,7 +142,7 @@
}

.app__attachment-dialog__textarea:focus-visible {
outline: 2px solid var(--border-utility-selected);
outline: 2px solid var(--str-chat__border-utility-selected);
outline-offset: 1px;
}

Expand Down Expand Up @@ -199,18 +199,18 @@
}

.app__notification-dialog__field-label {
color: var(--text-primary);
color: var(--str-chat__text-primary);
font-size: 14px;
font-weight: 600;
}

.app__notification-dialog__select {
min-height: 40px;
padding: 0 12px;
border: 1px solid var(--border-core-default);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 10px;
background: var(--background-core-elevation-2);
color: var(--text-primary);
background: var(--str-chat__background-core-elevation-2);
color: var(--str-chat__text-primary);
font: inherit;
}

Expand Down Expand Up @@ -260,7 +260,7 @@
flex-shrink: 0;
width: 32px;
height: 32px;
border: 1px solid var(--border-core-default);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 999px;
background: transparent;
}
Expand All @@ -279,7 +279,7 @@
}

.app__notification-dialog__queue-hint {
color: var(--text-secondary);
color: var(--str-chat__text-secondary);
font-size: 13px;
}

Expand All @@ -303,7 +303,7 @@
gap: 8px;
max-width: 100%;
padding: 6px 8px 6px 10px;
border: 1px solid var(--border-core-default);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 999px;
background: var(--background-core-surface);
}
Expand All @@ -324,7 +324,7 @@
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--text-secondary);
color: var(--str-chat__text-secondary);
font-size: 12px;
white-space: nowrap;
}
Expand All @@ -346,7 +346,7 @@
}

.app__notification-dialog__chip-remove {
color: var(--text-secondary);
color: var(--str-chat__text-secondary);
}

.app__notification-dialog__footer {
Expand Down Expand Up @@ -378,9 +378,9 @@
flex-direction: column;
width: min(920px, 90vw);
height: min(80vh, 760px);
background: var(--background-core-elevation-2);
color: var(--text-primary);
border: 1px solid var(--border-core-default);
background: var(--str-chat__background-core-elevation-2);
color: var(--str-chat__text-primary);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 14px;
}

Expand All @@ -391,7 +391,7 @@
padding: 16px 20px;
font-size: 1.5rem;
font-weight: 700;
border-bottom: 1px solid var(--border-core-default);
border-bottom: 1px solid var(--str-chat__border-core-default);

svg.str-chat__icon--cog {
height: 1.75rem;
Expand All @@ -409,7 +409,7 @@
.app__settings-modal__tabs {
overflow-y: auto;
overscroll-behavior: contain;
border-inline-end: 1px solid var(--border-core-default);
border-inline-end: 1px solid var(--str-chat__border-core-default);
padding: 10px;
}

Expand All @@ -419,14 +419,14 @@
justify-content: flex-start;
font-weight: 500;
margin-bottom: 6px;
color: var(--text-secondary);
color: var(--str-chat__text-secondary);
}

.app__settings-modal__tab[aria-selected='true'],
.app__settings-modal__tab.app__settings-modal__tab--active {
background: var(--background-utility-selected);
border-color: var(--border-utility-selected);
color: var(--text-primary);
background: var(--str-chat__background-utility-selected);
border-color: var(--str-chat__border-utility-selected);
color: var(--str-chat__text-primary);
font-weight: 600;
}

Expand All @@ -450,17 +450,17 @@

.app__settings-modal__field-label {
font-weight: 600;
color: var(--text-primary);
color: var(--str-chat__text-primary);
}

.app__settings-modal__field .str-chat__form__switch-field {
border: 1px solid var(--border-core-default);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 10px;
padding: 10px 12px;
}

.app__settings-modal__field-comment {
color: var(--text-secondary);
color: var(--str-chat__text-secondary);
font-size: 13px;
line-height: 1.4;
}
Expand All @@ -472,8 +472,8 @@
}

.app__settings-modal__option-button[aria-pressed='true'] {
border-color: var(--border-utility-selected);
background: var(--background-utility-selected);
border-color: var(--str-chat__border-utility-selected);
background: var(--str-chat__background-utility-selected);
font-weight: 600;
}

Expand All @@ -485,7 +485,7 @@
}

.app__settings-modal__preview {
border: 1px solid var(--border-core-default);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 12px;
padding: 12px;
background: var(--background-core-surface);
Expand Down Expand Up @@ -524,7 +524,7 @@
}

.app__settings-modal__tabs {
border-inline-end: 1px solid var(--border-core-default);
border-inline-end: 1px solid var(--str-chat__border-core-default);
border-bottom: 0;
display: block;
gap: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.app__custom-delete-message-alert__options .str-chat__form__switch-field {
display: flex;
justify-content: space-between;
border: 1px solid var(--border-core-default);
border: 1px solid var(--str-chat__border-core-default);
border-radius: 10px;
padding: 6px 8px;
font: var(--str-chat__metadata-emphasis-text);
Expand Down
16 changes: 8 additions & 8 deletions examples/vite/src/SystemNotification/SystemNotification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
flex-shrink: 0;
align-items: center;
justify-content: center;
gap: var(--spacing-xs, 8px);
padding-block: var(--spacing-xs, 8px);
padding-inline: var(--spacing-sm, 12px);
background: var(--background-core-surface-default, #ebeef1);
color: var(--chat-text-system, #414552);
gap: var(--str-chat__spacing-xs, 8px);
padding-block: var(--str-chat__spacing-xs, 8px);
padding-inline: var(--str-chat__spacing-sm, 12px);
background: var(--str-chat__background-core-surface-default, #ebeef1);
color: var(--str-chat__chat-text-system, #414552);
font-feature-settings:
'liga' off,
'clig' off;
font-size: var(--typography-font-size-xs, 12px);
font-size: var(--str-chat__typography-font-size-xs, 12px);
font-style: normal;
font-weight: var(--typography-font-weight-semi-bold, 600);
line-height: var(--typography-line-height-tight, 16px);
font-weight: var(--str-chat__typography-font-weight-semi-bold, 600);
line-height: var(--str-chat__typography-line-height-tight, 16px);
animation: str-chat__system-notification-slide-in 300ms ease-out both;
overflow: hidden;
width: 100%;
Expand Down
4 changes: 3 additions & 1 deletion examples/vite/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@layer stream-new, stream-new-plugins, stream-overrides, stream-app-overrides;

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

// v3 CSS import
@import url('stream-chat-react/dist/css/index.css') layer(stream-new);
@import url('./AppSettings/AppSettings.scss') layer(stream-app-overrides);
Expand Down Expand Up @@ -143,7 +145,7 @@ body {
min-width: 1px;
height: 100%;
z-index: 1;
background: var(--border-core-default);
background: var(--str-chat__border-core-default);
}

.app-chat-resize-handle__hitbox {
Expand Down
5 changes: 2 additions & 3 deletions src/components/Attachment/styling/Attachment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@
align-items: center;
justify-content: space-between;
column-gap: var(--str-chat__space-8);
font-weight: var(--str-chat__typography-font-weight-semi-bold);
font-size: var(--str-chat__typography-font-size-sm);
font: var(--str-chat__font-caption-emphasis);

.str-chat__message-attachment-file--item__name,
.str-chat__message-attachment-audio-widget--title {
Expand All @@ -184,7 +183,7 @@
}

.str-chat__message-attachment-file--item__data {
font-size: var(--str-chat__typography-font-size-xs);
font: var(--str-chat__font-metadata-default);
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/Attachment/styling/AttachmentActions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
white-space: nowrap;
border-collapse: collapse;

font-size: var(--str-chat__typography-font-size-md);
font-weight: var(--str-chat__typography-font-weight-semi-bold);
line-height: var(--str-chat__typography-line-height-normal);
font: var(--str-chat__font-body-emphasis);

&.str-chat__button {
&:active {
Expand Down
18 changes: 7 additions & 11 deletions src/components/Attachment/styling/Giphy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,19 @@ $gif-height: 200px;
.str-chat__giphy-badge {
display: inline-flex;
height: 24px;
padding: var(--str-chat__spacing-xxxs, 2px) var(--str-chat__spacing-xs, 8px);
padding: var(--str-chat__spacing-xxxs) var(--str-chat__spacing-xs);
justify-content: center;
align-items: center;
gap: var(--str-chat__spacing-xxs, 4px);
gap: var(--str-chat__spacing-xxs);
position: absolute;
inset-inline-start: 8px;
bottom: 8px;

border-radius: var(--str-chat__radius-lg, 12px);
background-color: var(--str-chat__badge-bg-overlay, rgba(0, 0, 0, 0.75));
color: var(--str-chat__badge-text-on-accent, #fff);
border-radius: var(--str-chat__radius-lg);
background-color: var(--str-chat__badge-bg-overlay);
color: var(--str-chat__badge-text-on-accent);

font-size: var(--str-chat__typography-font-size-xs, 12px);
font-weight: var(--str-chat__typography-font-weight-semi-bold, 600);
line-height: var(--str-chat__typography-line-height-tight, 16px);
font: var(--str-chat__font-metadata-emphasis);
text-transform: uppercase;
}

Expand All @@ -66,8 +64,6 @@ $gif-height: 200px;
align-self: stretch;

color: var(--chat-text);
font-size: var(--str-chat__typography-font-size-sm);
font-weight: var(--str-chat__typography-font-weight-semi-bold);
line-height: var(--str-chat__typography-line-height-tight);
font: var(--str-chat__font-caption-emphasis);
}
}
7 changes: 3 additions & 4 deletions src/components/Attachment/styling/LinkPreview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,12 @@
}

.str-chat__message-attachment-card--title {
@include utils.ellipsis-text;
font-size: var(--str-chat__typography-font-size-sm);
font-weight: var(--str-chat__typography-font-weight-semi-bold);
font: var(--str-chat__font-caption-emphasis);
}

.str-chat__message-attachment-card--source-link,
.str-chat__message-attachment-card--text {
font-size: var(--str-chat__typography-font-size-xs);
font: var(--str-chat__font-metadata-default);
}

.str-chat__message-attachment-card--title,
Expand All @@ -69,6 +67,7 @@

.str-chat__message-attachment-card--text {
@include utils.ellipsis-text-clamp-lines();
font: var(--str-chat__font-metadata-default);
}

.str-chat__message-attachment-card--source-link {
Expand Down
Loading
Loading