Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface ColorFromThemeOptions
import { type ColorFromThemeOptions } from "https://deno.land/x/fresh@1.5.4/plugins/twindv1_deps.ts";

Type Parameters

optional
Theme extends BaseTheme = BaseTheme
optional
Section extends keyof FilterByThemeValue<Theme, ColorValue> = keyof FilterByThemeValue<Theme, ColorValue>
optional
OpacitySection extends keyof FilterByThemeValue<Theme, string> = keyof FilterByThemeValue<Theme, string>

Properties

optional
section: Section | KebabCase<Section>

Theme section to use (default: $0.replace('-', 'Color') — The matched string with Color appended)

optional
property: keyof CSSProperties

The css property (default: value of section)

optional
opacityVariable: string | false

--tw-${$0}opacity -> '--tw-text-opacity'

optional
opacitySection: OpacitySection

section.replace('Color', 'Opacity') -> 'textOpacity'

optional
selector: string