Skip to content

Commit

Permalink
feat(style): update bg color system
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Nov 1, 2023
1 parent dd89f13 commit 2fd3256
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/components/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,6 @@ Override following styles to customize the component.
/* Colors of tooltip. */
--tooltip-border-color: var(--c-divider-2);
--tooltip-text-color: var(--c-text-1);
--tooltip-bg-color: var(--c-bg-soft);
--tooltip-bg-color: var(--c-bg-elv-4);
}
```
2 changes: 1 addition & 1 deletion lib/components/SCardHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
align-items: center;
border-radius: 5px 5px 0 0;
height: 48px;
background-color: var(--c-bg-soft);
background-color: var(--c-bg-elv-4);
}
</style>
2 changes: 1 addition & 1 deletion lib/components/SSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defineEmits<{
box-shadow: var(--shadow-depth-5);
.dark & {
background-color: var(--c-bg-soft);
background-color: var(--c-bg-elv-4);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/components/STableCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const computedCell = computed<TableCell | undefined>(() =>

<style scoped lang="postcss">
.STableCell {
background-color: var(--c-bg-elv-up);
background-color: var(--c-bg-elv-3);
transition: background-color 0.1s;
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion lib/components/STableColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function stopDialogPositionListener() {

<style scoped lang="postcss">
.STableColumn {
background-color: var(--c-bg-soft);
background-color: var(--c-bg-elv-4);
&.has-header {
border-top: 1px solid var(--c-divider-2);
Expand Down
2 changes: 1 addition & 1 deletion lib/components/STableHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const resetAction = computed(() => {
border-radius: calc(var(--table-border-radius) - 1px) calc(var(--table-border-radius) - 1px) 0 0;
padding-right: var(--table-padding-right);
padding-left: var(--table-padding-left);
background-color: var(--c-bg-soft);
background-color: var(--c-bg-elv-4);
&.borderless {
border-radius: 0;
Expand Down
12 changes: 6 additions & 6 deletions lib/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
--c-bg-elv-1: #ffffff;
--c-bg-elv-2: #f9f9f9;
--c-bg-elv-3: #ffffff;
--c-bg-soft: #f9f9f9;
--c-bg-elv-4: #fafafa;

--c-bg-mute-1: #ebebef;
--c-bg-mute-2: #e4e4e9;
Expand Down Expand Up @@ -245,7 +245,7 @@
--c-bg-elv-up: var(--c-black-elv-up);
--c-bg-elv-down: var(--c-black-elv-down);
--c-bg: var(--c-black);
--c-bg-soft: var(--c-black-soft);
--c-bg-soft: #232429;
--c-bg-mute: var(--c-black-mute);
--c-bg-lift-1: #222226;
--c-bg-lift-2: #2c2c2e;
Expand All @@ -267,9 +267,9 @@
--c-soft: #222226;

--c-bg-elv-1: #000000;
--c-bg-elv-2: #171717;
--c-bg-elv-3: #1c1c1e;
--c-bg-soft: #222226;
--c-bg-elv-2: #151517;
--c-bg-elv-3: #1b1b1f;
--c-bg-elv-4: #232429;

--c-bg-mute-1: #2e3035;
--c-bg-mute-2: #35373c;
Expand Down Expand Up @@ -796,7 +796,7 @@
--tooltip-max-width: 288px;
--tooltip-border-color: var(--c-divider-2);
--tooltip-text-color: var(--c-text-1);
--tooltip-bg-color: var(--c-bg-soft);
--tooltip-bg-color: var(--c-bg-elv-4);
}

/**
Expand Down

0 comments on commit 2fd3256

Please sign in to comment.