Skip to content

Commit 2ba6b1f

Browse files
committed
feat(shimmerText): add shimmer text properties for dark and light themes
1 parent 78bcd68 commit 2ba6b1f

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

packages/varlet-ui/src/themes/__tests__/__snapshots__/index.spec.js.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,9 @@ exports[`dark theme 1`] = `
769769
"--shadow-key-ambient-opacity": "rgba(0, 0, 0, 0.12)",
770770
"--shadow-key-penumbra-opacity": "rgba(0, 0, 0, 0.14)",
771771
"--shadow-key-umbra-opacity": "rgba(0, 0, 0, 0.2)",
772+
"--shimmer-text-angle": "100deg",
773+
"--shimmer-text-color": "var(--color-on-surface-variant)",
774+
"--shimmer-text-duration": "1.4s",
772775
"--shimmer-text-highlight-color": "#000",
773776
"--signature-background-color": "var(--color-surface-container-highest)",
774777
"--signature-border-radius": "4px",
@@ -1832,6 +1835,9 @@ exports[`md3Dark theme 1`] = `
18321835
"--shadow-key-ambient-opacity": "rgba(0, 0, 0, 0.12)",
18331836
"--shadow-key-penumbra-opacity": "rgba(0, 0, 0, 0.14)",
18341837
"--shadow-key-umbra-opacity": "rgba(0, 0, 0, 0.2)",
1838+
"--shimmer-text-angle": "100deg",
1839+
"--shimmer-text-color": "var(--color-on-surface-variant)",
1840+
"--shimmer-text-duration": "1.4s",
18351841
"--shimmer-text-highlight-color": "#000",
18361842
"--signature-background-color": "var(--color-surface-container-highest)",
18371843
"--signature-border-radius": "12px",
@@ -2880,6 +2886,9 @@ exports[`md3Light theme 1`] = `
28802886
"--shadow-key-ambient-opacity": "rgba(0, 0, 0, 0.12)",
28812887
"--shadow-key-penumbra-opacity": "rgba(0, 0, 0, 0.14)",
28822888
"--shadow-key-umbra-opacity": "rgba(0, 0, 0, 0.2)",
2889+
"--shimmer-text-angle": "100deg",
2890+
"--shimmer-text-color": "var(--color-on-surface-variant)",
2891+
"--shimmer-text-duration": "1.4s",
28832892
"--shimmer-text-highlight-color": "#fff",
28842893
"--signature-background-color": "var(--color-surface-container-low)",
28852894
"--signature-border-radius": "12px",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export default {
2+
'--shimmer-text-color': 'var(--color-on-surface-variant)',
23
'--shimmer-text-highlight-color': '#000',
4+
'--shimmer-text-duration': '1.4s',
5+
'--shimmer-text-angle': '100deg',
36
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export default {
2+
'--shimmer-text-color': 'var(--color-on-surface-variant)',
23
'--shimmer-text-highlight-color': '#000',
4+
'--shimmer-text-duration': '1.4s',
5+
'--shimmer-text-angle': '100deg',
36
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export default {
2+
'--shimmer-text-color': 'var(--color-on-surface-variant)',
23
'--shimmer-text-highlight-color': '#fff',
4+
'--shimmer-text-duration': '1.4s',
5+
'--shimmer-text-angle': '100deg',
36
}

0 commit comments

Comments
 (0)