Extremely Popular
Latest
interface ColorFromThemeOptions
import { type ColorFromThemeOptions } from "https://dotland.deno.dev/x/fresh@1.7.3/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 {@link section})

optional
opacityVariable: string | false

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

optional
opacitySection: OpacitySection

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

optional
selector: string