new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Tailwind CSS v4 · all subjects

utilities/scrollbar-color

8 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

scrollbar-thumb color utilities

Tailwind v4 provides scrollbar-thumb utilities to control the color of a scrollbar's thumb (the draggable part). The base utilities are: scrollbar-thumb-inherit, scrollbar-thumb-current, scrollbar-thumb-transparent, scrollbar-thumb-{color} for theme colors, scrollbar-thumb-(<custom-property>) for CSS variables, and scrollbar-thumb-[<value>] for arbitrary values. Each sets the --tw-scrollbar-thumb CSS variable and applies it via scrollbar-color property.

scrollbar-track color utilities

Tailwind v4 provides scrollbar-track utilities to control the color of a scrollbar's track (the background area). The base utilities are: scrollbar-track-inherit, scrollbar-track-current, scrollbar-track-transparent, scrollbar-track-{color} for theme colors, scrollbar-track-(<custom-property>) for CSS variables, and scrollbar-track-[<value>] for arbitrary values. Each sets the --tw-scrollbar-track CSS variable and applies it via scrollbar-color property.

scrollbar-color default behavior when only one is set

In Tailwind v4, when you set only the scrollbar thumb color or only the scrollbar track color without setting the other, the unset color defaults to transparent.

scrollbar-color opacity modifier syntax

Tailwind v4 scrollbar-color utilities support color opacity modifiers using the slash syntax. For example, scrollbar-thumb-slate-900/60 sets the thumb color with 60% opacity, and scrollbar-track-slate-900/10 sets the track color with 10% opacity.

scrollbar-color custom property syntax

Tailwind v4 scrollbar utilities support CSS custom properties using the scrollbar-thumb-(--my-variable) and scrollbar-track-(--my-variable) syntax. The parentheses syntax allows referencing a custom property to set the scrollbar color.

scrollbar-color state variants

Tailwind v4 scrollbar-color utilities support state variants like hover:scrollbar-thumb-sky-500 to change the scrollbar color on hover.

scrollbar-color responsive design

Tailwind v4 scrollbar-color utilities support responsive breakpoints. You can use breakpoint prefixes like md:scrollbar-thumb-sky-700 to apply different scrollbar colors at different screen sizes.

scrollbar-color utilities customization

The scrollbar-thumb and scrollbar-track utilities in Tailwind v4 can be customized through the theme configuration using the same color values as other color utilities.

Give your agent this brain