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
2,572 changes: 1,344 additions & 1,228 deletions src/app/page.tsx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/components/Accordion/Accordion.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
overflow: hidden;

&:not(:last-child) {
border-bottom: var(--stroke-sm) solid var(--border-tertiary);
border-bottom: var(--stroke-sm) solid var(--border-primary);
}
}

Expand All @@ -36,7 +36,7 @@
text-align: left;

&:focus-visible {
outline: 2px solid var(--input-focus);
outline: 2px solid var(--state-focus);
outline-offset: -2px;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ActionBar/ActionBar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
min-width: 320px;
max-width: 420px;
padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-md); // 8px 8px 8px 16px
background-color: var(--surface-elevated);
border: var(--stroke-xs) solid var(--border-tertiary);
background-color: var(--surface-panel);
border: var(--stroke-xs) solid var(--border-primary);
@include smooth-corners(10px);
box-shadow: var(--shadow-lg);
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Alert/Alert.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

.default {
background-color: var(--surface-primary);
border: var(--stroke-xs) solid var(--border-tertiary);
border: var(--stroke-xs) solid var(--border-primary);
padding: var(--spacing-sm) var(--spacing-md);

.iconWrapper {
Expand All @@ -59,7 +59,7 @@

.warning {
background-color: var(--surface-yellow);
border: var(--stroke-xs) solid var(--border-tertiary);
border: var(--stroke-xs) solid var(--border-primary);
padding: var(--spacing-sm) var(--spacing-md);

.iconWrapper {
Expand All @@ -77,7 +77,7 @@

.critical {
background-color: var(--surface-red);
border: var(--stroke-xs) solid var(--border-tertiary);
border: var(--stroke-xs) solid var(--border-primary);
padding: var(--spacing-sm) var(--spacing-3xl) var(--spacing-sm) var(--spacing-md);

.iconWrapper {
Expand Down
2 changes: 1 addition & 1 deletion src/components/AlertDialog/AlertDialog.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
width: 360px;
max-width: calc(100vw - var(--spacing-2xl));
overflow: clip;
background-color: var(--surface-elevated);
background-color: var(--surface-panel);
border: var(--stroke-xs) solid var(--border-secondary);
@include smooth-corners(var(--corner-radius-md));
box-shadow: var(--shadow-lg);
Expand Down
6 changes: 3 additions & 3 deletions src/components/Autocomplete/Autocomplete.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
height: 36px;
box-sizing: border-box;
padding-inline: var(--spacing-sm);
border: var(--stroke-sm) solid var(--border-tertiary);
border: var(--stroke-sm) solid var(--border-primary);
@include smooth-corners(var(--corner-radius-sm));
color: var(--text-primary);
outline: none;
Expand Down Expand Up @@ -54,7 +54,7 @@
max-width: var(--available-width);
overflow: hidden;
background: var(--surface-primary);
border: var(--stroke-xs) solid var(--border-tertiary);
border: var(--stroke-xs) solid var(--border-primary);
@include smooth-corners(var(--corner-radius-sm));
box-shadow: var(--shadow-lg);
outline: 0;
Expand Down Expand Up @@ -152,7 +152,7 @@
left: 0;
right: 0;
height: var(--stroke-xs);
background-color: var(--border-tertiary);
background-color: var(--border-primary);
}
}

Expand Down
18 changes: 9 additions & 9 deletions src/components/Avatar/Avatar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
flex-shrink: 0;
user-select: none;
vertical-align: middle;
border: var(--stroke-xs) solid var(--border-tertiary);
border: var(--stroke-xs) solid var(--border-primary);
}

// Sizes
Expand Down Expand Up @@ -107,7 +107,7 @@
}

.gray {
background-color: var(--surface-strong);
background-color: var(--surface-neutral);
}

// Image - fades in when loaded via Base UI transition attributes
Expand All @@ -130,7 +130,7 @@
justify-content: center;
width: 100%;
height: 100%;
color: var(--text-surface);
color: var(--text-inverse);
text-align: center;
font-weight: var(--font-weight-book);
transition: opacity 200ms ease;
Expand All @@ -142,31 +142,31 @@
// Typography scales with avatar size
.size16 & {
@include label-xs;
color: var(--text-surface);
color: var(--text-inverse);
}

.size20 & {
@include label-sm;
color: var(--text-surface);
color: var(--text-inverse);
}

.size24 & {
@include label-sm;
color: var(--text-surface);
color: var(--text-inverse);
}

.size32 & {
@include label-sm;
color: var(--text-surface);
color: var(--text-inverse);
}

.size40 & {
@include label;
color: var(--text-surface);
color: var(--text-inverse);
}

.size48 & {
@include label-lg;
color: var(--text-surface);
color: var(--text-inverse);
}
}
18 changes: 9 additions & 9 deletions src/components/Badge/Badge.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
color: var(--text-primary);

&.vibrant {
background-color: var(--surface-strong);
color: var(--text-surface);
background-color: var(--surface-neutral);
color: var(--text-inverse);
}
}

Expand All @@ -29,7 +29,7 @@

&.vibrant {
background-color: var(--surface-purple-strong);
color: var(--text-surface);
color: var(--text-inverse);
}
}

Expand All @@ -39,7 +39,7 @@

&.vibrant {
background-color: var(--surface-blue-strong);
color: var(--text-surface);
color: var(--text-inverse);
}
}

Expand All @@ -49,7 +49,7 @@

&.vibrant {
background-color: var(--surface-sky-strong);
color: var(--text-surface);
color: var(--text-inverse);
}
}

Expand All @@ -59,7 +59,7 @@

&.vibrant {
background-color: var(--surface-pink-strong);
color: var(--text-surface);
color: var(--text-inverse);
}
}

Expand All @@ -69,7 +69,7 @@

&.vibrant {
background-color: var(--surface-green-strong);
color: var(--text-surface);
color: var(--text-inverse);
}
}

Expand All @@ -79,7 +79,7 @@

&.vibrant {
background-color: var(--surface-yellow-strong);
color: var(--text-surface);
color: var(--text-inverse);
}
}

Expand All @@ -89,6 +89,6 @@

&.vibrant {
background-color: var(--surface-red-strong);
color: var(--text-surface);
color: var(--text-inverse);
}
}
4 changes: 2 additions & 2 deletions src/components/Breadcrumb/Breadcrumb.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

&:focus-visible {
outline: none;
box-shadow: 0 0 0 2px var(--input-focus);
box-shadow: 0 0 0 2px var(--state-focus);
@include smooth-corners(var(--corner-radius-xs));
}

Expand Down Expand Up @@ -81,7 +81,7 @@

&:focus-visible {
outline: none;
box-shadow: 0 0 0 2px var(--input-focus);
box-shadow: 0 0 0 2px var(--state-focus);
}

@media (prefers-reduced-motion: reduce) {
Expand Down
24 changes: 12 additions & 12 deletions src/components/Button/Button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

&:focus-visible {
outline: none;
box-shadow: 0 0 0 3px var(--input-focus);
box-shadow: 0 0 0 3px var(--state-focus);
}

&[data-disabled] {
Expand Down Expand Up @@ -70,13 +70,13 @@
}

.filled {
background-color: var(--surface-inverted);
color: var(--text-surface);
background-color: var(--surface-inverse);
color: var(--text-inverse);

@media (hover: hover) {
&:hover:not([data-disabled]) {
background-color: var(--surface-inverted);
background-image: linear-gradient(var(--surface-inverted-hover), var(--surface-inverted-hover));
background-color: var(--surface-inverse);
background-image: linear-gradient(var(--surface-inverse-hover), var(--surface-inverse-hover));
}
}

Expand All @@ -100,7 +100,7 @@

&:focus-visible {
border-color: var(--border-secondary);
box-shadow: 0 0 0 3px var(--input-focus);
box-shadow: 0 0 0 3px var(--state-focus);
}

&[data-disabled] {
Expand All @@ -111,7 +111,7 @@
.outline {
background-color: var(--surface-primary);
color: var(--text-primary);
border: var(--stroke-xs) solid var(--border-tertiary);
border: var(--stroke-xs) solid var(--border-primary);
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);

@media (hover: hover) {
Expand All @@ -121,7 +121,7 @@
}

&:focus-visible {
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08), 0 0 0 3px var(--input-focus);
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08), 0 0 0 3px var(--state-focus);
}

&[data-disabled] {
Expand All @@ -133,7 +133,7 @@
box-shadow: none;

&:focus-visible {
box-shadow: 0 0 0 3px var(--input-focus);
box-shadow: 0 0 0 3px var(--state-focus);
}
}
}
Expand All @@ -155,17 +155,17 @@

.critical {
background-color: var(--surface-red-strong);
color: var(--text-surface);
color: var(--text-inverse);

@media (hover: hover) {
&:hover:not([data-disabled]) {
background-color: var(--surface-red-strong);
background-image: linear-gradient(var(--surface-inverted-hover), var(--surface-inverted-hover));
background-image: linear-gradient(var(--surface-inverse-hover), var(--surface-inverse-hover));
}
}

&:focus-visible {
box-shadow: 0 0 0 3px var(--input-focus-critical);
box-shadow: 0 0 0 3px var(--state-focus-critical);
}

&[data-disabled] {
Expand Down
8 changes: 4 additions & 4 deletions src/components/ButtonGroup/ButtonGroup.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}

// -- Filled variant ----------------------------------------------------------
// Buttons sit flush; thin separators between them use --border-inverted.
// Buttons sit flush; thin separators between them use --border-inverse.

.filled {
> * {
Expand All @@ -46,7 +46,7 @@
bottom: 0;
left: 0;
width: var(--stroke-xs);
background-color: var(--border-inverted);
background-color: var(--border-inverse);
}
}

Expand All @@ -66,7 +66,7 @@

// -- Secondary variant --------------------------------------------------------
// No container shadow or border-radius. Thin separators between buttons
// using --border-tertiary, same pseudo-element technique as filled.
// using --border-primary, same pseudo-element technique as filled.

.secondary {
> * {
Expand All @@ -82,7 +82,7 @@
bottom: 0;
left: 0;
width: var(--stroke-xs);
background-color: var(--border-tertiary);
background-color: var(--border-primary);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/Card/Card.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// Structured variant - has card surface
.structured {
background-color: var(--surface-primary);
border: var(--stroke-xs) solid var(--border-tertiary);
border: var(--stroke-xs) solid var(--border-primary);
@include smooth-corners(var(--corner-radius-xl));
overflow: clip;
}
Expand Down Expand Up @@ -49,7 +49,7 @@
height: 32px;
padding: 0;
background-color: var(--surface-primary);
border: var(--stroke-xs) solid var(--border-tertiary);
border: var(--stroke-xs) solid var(--border-primary);
@include smooth-corners(var(--corner-radius-sm));
box-shadow: var(--shadow-sm);
color: var(--text-primary);
Expand Down
Loading
Loading