top
Brutalist Framework

BUFF

Blend Utility & Fancy Filters

BUFF utilizes CSS blends and filter properties to apply preset filters to elements.

requires:
core/css/buff.css

Blenders

Blenders allow text or any other element to blend with its background.

NOTE: Apply only one class per element. Combining multple classes together isn't possible (except unblend).

Classes
.lighten-blend
.darken-blend
.hue-blend
.sat-blend
(saturation)
.lum-blend (luminosity)
.color-blend
.dodge-blend
.burn-blend
.diff-blend
(difference)
.exc-blend (exclusion)
.soft-blend (soft light)
.hard-blend (hard light)
.overlay-blend (inverted hard light)
.multi-blend (darkens element)
.screen-blend (lightens element)
.unblend (removes blend from current element)

In the example below, we use a blue box with white text and apply different blender classes to each.

.color-blend
Color Blend

 

.diff-blend
Difference Blend

 

.dodge-blend
Dodge Blend

 

.multi-blend
Multi-Blend

 

.exc-blend
Exclusion Blend

 

.screen-blend
Screen (Standard) Blend

Basic Filters

Basic filters apply a single CSS filter property to elements. Use these classes to apply filters directly to any element. Ideal for images.

NOTE: It is NOT possible to apply multiple filter classes to the same element.

Original Image
Image

.invert
Image

.grayscale -d
Image

.sepia -d
Image

.contrast -d / -i
Image

.hue -d / -i
Image

.saturate -d / -i
Image

.darken -d / -i
Image

.lighten -d / -i
Image

.blur -d / -i
Image

.deep-sea -d / -i
Image

.dreamy -d / -i
Image

.vibrant -d / -i
Image

.vintage -d / -i
Image

Increase / Decrease Basic Filters

Simply append -i or -d to a basic filter class to increase or decrease the affect a filter has on an element.

-i (increases filter affect)
-d (decreases filter affect)

Examples:
.contrast-i (increase contrast)
.hue-d (decrease hue)

NOTE: Not all filter classes support increasing or decreasing a filter. See the list of filter classes above to see what classes support -i and -d.

Hover Filter

Apply a filter upon hover simply by adding -h after the class.
Examples:

.invert-h
Image

.darken .hue-i-h
Image

Background Filters

Filters can be applied to backgrounds. Apply any of these classes:

.grayscale-bg
.sepia-bg
.saturate-bg
.hue-bg
.invert-bg
.brighten-bg
.darken-bg
.glassmorph (blur)

EXAMPLE

.GREYSCALE-BG

.SEPIA-BG

.GLASSMORPH

Fancy Filters

style="margin: 0 0 1rem 0;">Fancy filters combine multiple filter properties to create a preset filter effect. Filtered elements need to be wrapped within a filter container. An example markup:

<div class="filter filter-name"> <any-elements> </div>

All direct child elements within a fancy filter class container will be affected. The class filter must be applied in conjunction with a filter class (ex: .filter.firestorm).

Hover Filter

Apply a filter upon hover simply by adding -h after the .filter class, like so:
.filter-h.fancy-filter

  • .filter-h.purple-power
    Image
  • .filter-h.new80s
    Image

Original Image
Image

.amazon

Image

.arctic

Image

.baby-blue

Image

.bluebird

Image

.blue-rock

Image

.blue-lagoon

Image

.brannan

Image

.cali-sunset

Image

.canary

Image

.coal-paper

Image

.cobalt-print

Image

.code-red

Image

.desert

Image

.earlybird

Image

.fever-dream

Image

.firestorm

Image

.flat-retro

Image

.green-dream

Image

.grey-rock

Image

.honey-mustard

Image

.hot-summer

Image

.ibiza

Image

.inkwell

Image

.leaf

Image

.lofi

Image

.moon

Image

.new80s

Image

.ocean-wave

Image

.old-wood

Image

.orange-juice

Image

.princess

Image

.purple-power

Image

.rose-quartz

Image

.sandstorm

Image

.seaside

Image

.solar

Image

.space-trip

Image

.studio54

Image

.thaw

Image

.toaster

Image

.vintage-may

Image

.wetness

Image

.xpro2

Image