Filters

backdrop-filter: sepia()

Utilities for applying backdrop sepia filters to an element.

ClassStyles
backdrop-sepia
backdrop-filter: sepia(100%);
backdrop-sepia-<number>
backdrop-filter: sepia(<number>%);
backdrop-sepia-(<custom-property>)
backdrop-filter: sepia(var(<custom-property>));
backdrop-sepia-[<value>]
backdrop-filter: sepia(<value>);

Examples

Basic example

Use utilities like backdrop-sepia and backdrop-sepia-50 to control the sepia effect applied to an element's backdrop:

backdrop-sepia-0

backdrop-sepia-50

backdrop-sepia

<div class="bg-[url(/img/mountains.jpg)]">  <div class="bg-white/30 backdrop-sepia-0 ..."></div></div><div class="bg-[url(/img/mountains.jpg)]">  <div class="bg-white/30 backdrop-sepia-50 ..."></div></div><div class="bg-[url(/img/mountains.jpg)]">  <div class="bg-white/30 backdrop-sepia ..."></div></div>

Using a custom value

Use the backdrop-sepia-[<value>] syntax to set the backdrop sepia based on a completely custom value:

<div class="backdrop-sepia-[.25] ...">  <!-- ... --></div>

For CSS variables, you can also use the backdrop-sepia-(<custom-property>) syntax:

<div class="backdrop-sepia-(--my-backdrop-sepia) ...">  <!-- ... --></div>

This is just a shorthand for backdrop-sepia-[var(<custom-property>)] that adds the var() function for you automatically.

Responsive design

Prefix a backdrop-filter: sepia() utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:

<div class="backdrop-sepia md:backdrop-sepia-0 ...">  <!-- ... --></div>

Learn more about using variants in the variants documentation.

Copyright © 2025 Tailwind Labs Inc.·Trademark Policy

Tailwind CSS 中文网(本网站)的目标是为中文开发者提供准确、及时的 Tailwind CSS 中文文档

Tailwind CSS 中文文档由本网站维护人员共同翻译,采用 MIT 开源协议发布

本网站与 tailwindcss.com 及 Tailwind Labs Inc. 并无从属关系

Tailwind 商标由 Tailwind Labs Inc. 所有

京ICP备15031610号-8