Skip to content

Commit 8e28f83

Browse files
committed
feat(ui-themes,shared-types): add new shadow tokens
INSTUI-4556
1 parent 13b0c1a commit 8e28f83

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/shared-types/src/BaseTheme.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ type Shadows = {
6565
resting: string
6666
above: string
6767
topmost: string
68+
69+
card: string
70+
cardHover: string
6871
}
6972

7073
type Spacing = {

packages/ui-themes/src/sharedThemeTokens/shadows.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Shadows } from '@instructure/shared-types'
2727
// use for consistent box shadows
2828
const values = [
2929
'0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)',
30-
'0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)',
30+
'0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.15)',
3131
'0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)'
3232
]
3333

@@ -38,7 +38,10 @@ const shadows: Shadows = Object.freeze<Shadows>({
3838

3939
resting: values[0],
4040
above: values[1],
41-
topmost: values[2]
41+
topmost: values[2],
42+
43+
card: values[0],
44+
cardHover: values[2]
4245
} as const)
4346

4447
export default shadows

0 commit comments

Comments
 (0)