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
9 changes: 9 additions & 0 deletions packages/theming/sass/themes/components/grid/_grid-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
/// @param {String} $row-border-width [null] - The row bottom border width.
/// @param {String} $row-border-style [null] - The row bottom border style.
/// @param {Color} $row-border-color [null] - The row bottom border color. Auto-derived from content-background.
/// @param {Color} $action-border-color [null] - The color used for action borders.
/// @param {String} $pinned-border-width [null] - The border width of the pinned border.
/// @param {String} $pinned-border-style [null] - The CSS border style of the pinned border.
/// @param {Color} $pinned-border-color [null] - The color of the pinned border. Auto-derived from content-background.
Expand Down Expand Up @@ -160,6 +161,8 @@
$row-border-style: null,
$row-border-color: null,

$action-border-color: null,

$pinned-border-width: null,
$pinned-border-style: null,
$pinned-border-color: null,
Expand Down Expand Up @@ -396,6 +399,10 @@
$row-border-color: hsl(from color-mix(in srgb, var(--foreground) 16%, var(--background)) h s l / 0.38);
}

@if not($action-border-color) and $foreground and $background {
$action-border-color: color-mix(in srgb, var(--foreground) 20%, var(--background));
}

@if not($pinned-border-color) and $foreground and $background {
$pinned-border-color: color-mix(in srgb, var(--foreground) 20%, var(--background));
}
Expand Down Expand Up @@ -682,6 +689,8 @@
row-border-style: $row-border-style,
row-border-color: $row-border-color,

action-border-color: $action-border-color,

pinned-border-width: $pinned-border-width,
pinned-border-style: $pinned-border-style,
pinned-border-color: $pinned-border-color,
Expand Down
16 changes: 16 additions & 0 deletions packages/theming/sass/themes/schemas/components/dark/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/// @prop {Color} content-background [color: 'surface'] - The table body background color.
/// @prop {Map} drop-area-background [color: ('gray', 100, .4)] - The drop area background color.
/// @prop {Map} header-border-color [color: ('gray', 200)] - The color used for header borders.
/// @prop {Map} action-border-color [color: ('gray', 200)] - The color used for action borders.
/// @prop {Map} header-background [color: ('gray', 100)] - The table header background color.
/// @prop {Map} header-selected-background [color: ('secondary', 600)] - The table header background color when selected (ex. column selection).
/// @prop {Map} header-selected-text-color [contrast-color: ('secondary', 600)] - The table header text color when selected (ex. column selection).
Expand Down Expand Up @@ -54,6 +55,13 @@ $base-dark-grid: (
),
),

action-border-color: (
color: (
'gray',
200,
),
),

header-background: (
color: (
'gray',
Expand Down Expand Up @@ -456,6 +464,7 @@ $dark-bootstrap-grid: extend(
/// @type Map
/// @prop {Map} content-text-color [contrast-color: ('gray', 50, .8)] - The table body text color.
/// @prop {Map} header-border-color [color: ('gray', 200)] - The color used for header borders.
/// @prop {Map} action-border-color [color: ('gray', 200)] - The color used for action borders.
/// @prop {Map} header-text-color [contrast-color: ('gray', 50, .9)] - The table header text color.
/// @prop {Map} header-selected-background [color: ('primary', 900)] - The table header background color when selected (ex. column selection).
/// @prop {Map} header-selected-text-color [contrast-color: ('gray' 50)] - The table header text color when selected (ex. column selection).
Expand Down Expand Up @@ -528,6 +537,13 @@ $dark-indigo-grid: extend(
),
),

action-border-color: (
color: (
'gray',
200,
),
),

header-text-color: (
contrast-color: (
'gray',
Expand Down
24 changes: 24 additions & 0 deletions packages/theming/sass/themes/schemas/components/light/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/// @prop {Number} header-border-width [1px] - The border width used for header borders.
/// @prop {String} header-border-style [solid] - The border style used for header borders.
/// @prop {Map} header-border-color [color: ('gray', 400)] - The color used for header borders.
/// @prop {Map} action-border-color [color: ('gray', 400)] - The color used for action borders.
/// @prop {Map} ghost-header-text-color [color: ('gray', 700)] - The dragged header text color.
/// @prop {Map} ghost-header-icon-color [color: ('gray', 600)] - The dragged header icon color.
/// @prop {Map} ghost-header-background [color: ('gray', 50)] - The dragged header background color.
Expand Down Expand Up @@ -179,6 +180,13 @@ $light-grid: extend(
),
),

action-border-color: (
color: (
'gray',
400,
),
),

ghost-header-background: (
color: (
'gray',
Expand Down Expand Up @@ -839,6 +847,7 @@ $material-grid: extend(
/// @prop {Map} header-selected-background [color: ('gray', 200)] - The table header background color when selected (ex. column selection).
/// @prop {Map} header-selected-text-color [contrast-color: ('gray', 200)] - The table header text color when selected (ex. column selection).
/// @prop {Map} header-border-color [color: ('gray', 300)] - The color used for header borders.
/// @prop {Map} action-border-color [color: ('gray', 300)] - The color used for action borders.
/// @prop {Map} row-selected-background [color: ('gray', 200)] - The selected row background color.
/// @prop {Map} row-selected-hover-background [color: ('gray', 300)] - The selected row hover background.
/// @prop {Map} body-column-selected-border-color [color: ('gray', 200)] - The border color used for the body column when in group-row state.
Expand Down Expand Up @@ -904,6 +913,13 @@ $fluent-grid: extend(
),
),

action-border-color: (
color: (
'gray',
300,
),
),

row-border-color: (
color: (
'gray',
Expand Down Expand Up @@ -1226,6 +1242,7 @@ $bootstrap-grid: extend(
/// @prop {Map} header-selected-background [color: ('primary', 50)] - The table header background color when selected (ex. column selection).
/// @prop {Map} header-selected-text-color [color: 'gray', 900] - The table header text color when selected (ex. column selection).
/// @prop {Map} header-border-color [color: ('gray', 400)] - The color used for header borders.
/// @prop {Map} action-border-color [color: ('gray', 400)] - The color used for action borders.
/// @prop {Map} filtering-row-background [color: ('surface', 500)] - The background color of the filtering row.
/// @prop {Map} filtering-dialog-background [contrast-color: ('gray', 900)] - The background color of the advanced filtering dialog.
/// @prop {Map} edited-row-indicator [color: ('primary', 400)] - The indicator's color of edited row.
Expand Down Expand Up @@ -1330,6 +1347,13 @@ $indigo-grid: extend(
),
),

action-border-color: (
color: (
'gray',
400,
),
),

filtering-header-background: (
color: (
'gray',
Expand Down
Loading