#F8FAFC
#E2E8F0
#F8FAFC
Shimmer Effect is a neutral and pastel 3-colour linear gradient that runs from off-white (#F8FAFC) through light grey (#E2E8F0) to off-white (#F8FAFC) at 90°. It suits subtle surfaces and app backgrounds and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 19.0:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(90deg, #F8FAFC, #E2E8F0, #F8FAFC);
bg-gradient-to-r from-[#F8FAFC] via-[#E2E8F0] to-[#F8FAFC]
{
"shimmer-effect": {
"value": "linear-gradient(90deg, #F8FAFC 0%, #E2E8F0 50%, #F8FAFC 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let shimmerEffectGradient = LinearGradient(
colors: [
Color(red: 0.973, green: 0.98, blue: 0.988),
Color(red: 0.886, green: 0.91, blue: 0.941),
Color(red: 0.973, green: 0.98, blue: 0.988)
],
startPoint: UnitPoint(x: 0, y: 0.5),
endPoint: UnitPoint(x: 1, y: 0.5)
)
// Usage
Rectangle().fill(shimmerEffectGradient)val shimmerEffectColors = listOf(Color(0xFFF8FAFC), Color(0xFFE2E8F0), Color(0xFFF8FAFC))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = shimmerEffectColors,
start = Offset(size.width * 0f, size.height * 0.5f),
end = Offset(size.width * 1f, size.height * 0.5f)
)
)
}<!-- res/drawable/shimmer-effect_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="0"
android:startColor="#F8FAFC"
android:centerColor="#E2E8F0"
android:endColor="#F8FAFC"
android:type="linear" />
</shape>const shimmerEffectGradient = LinearGradient(
begin: Alignment(-1, 0),
end: Alignment(1, 0),
colors: [Color(0xFFF8FAFC), Color(0xFFE2E8F0), Color(0xFFF8FAFC)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: shimmerEffectGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#F8FAFC', '#E2E8F0', '#F8FAFC']}
start={{ x: 0, y: 0.5 }}
end={{ x: 1, y: 0.5 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="shimmer-effect" x1="0" y1="0.5" x2="1" y2="0.5">
<stop offset="0%" stop-color="#F8FAFC" />
<stop offset="50%" stop-color="#E2E8F0" />
<stop offset="100%" stop-color="#F8FAFC" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#shimmer-effect)" />
</svg>:root {
--shimmer-effect-1: #F8FAFC;
--shimmer-effect-2: #E2E8F0;
--shimmer-effect-3: #F8FAFC;
--shimmer-effect-angle: 90deg;
--shimmer-effect: linear-gradient(var(--shimmer-effect-angle), var(--shimmer-effect-1), var(--shimmer-effect-2), var(--shimmer-effect-3));
}
.hero {
background: var(--shimmer-effect);
}$shimmer-effect-1: #F8FAFC;
$shimmer-effect-2: #E2E8F0;
$shimmer-effect-3: #F8FAFC;
$shimmer-effect: linear-gradient(90deg, $shimmer-effect-1, $shimmer-effect-2, $shimmer-effect-3);
@mixin shimmer-effect-bg {
background: $shimmer-effect-1;
background: $shimmer-effect;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #F8FAFC | rgb(248, 250, 252) | hsl(210, 40%, 98%) |
| 2 | Light grey | #E2E8F0 | rgb(226, 232, 240) | hsl(214, 32%, 91%) |
| 3 | Off-white | #F8FAFC | rgb(248, 250, 252) | hsl(210, 40%, 98%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Shimmer Effect gradient uses 3 colours: #F8FAFC, #E2E8F0 and #F8FAFC, at an angle of 90°.
Paste background: linear-gradient(90deg, #F8FAFC, #E2E8F0, #F8FAFC); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 19.0:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.