Skip to main content
Extremely Popular
Latest
interface ColorFromThemeOptions
import { type ColorFromThemeOptions } from "https://deno.land/x/fresh@1.6.8/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