Class TwBlazorTokens
- Namespace
- TwBlazor.Configuration
- Assembly
- TwBlazor.dll
Shared design tokens: the full Tailwind classes that many component themes reuse, such as the focus ring, the neutral fills and inks, and the disabled look. Each is declared once in the theme file and referenced everywhere else, so changing one changes every component that uses it.
[ExcludeFromCodeCoverage]
public class TwBlazorTokens
- Inheritance
-
TwBlazorTokens
- Inherited Members
Remarks
Every property holds complete class names. Tailwind only compiles classes it can find written out in full, so never build a class from parts at runtime.
Constructors
TwBlazorTokens()
public TwBlazorTokens()
Properties
AriaDisabledInk
Gets or sets DisabledInk applied through aria-disabled, for controls that stay focusable
while unavailable.
public string AriaDisabledInk { get; set; }
Property Value
Backdrop
Gets or sets the dimmed backdrop behind dialogs, drawers and the mobile sidebar.
public string Backdrop { get; set; }
Property Value
DisabledControl
Gets or sets the disabled look of a small native button, including its colors in forced colors mode.
public string DisabledControl { get; set; }
Property Value
DisabledInk
Gets or sets the faded text of a disabled control.
public string DisabledInk { get; set; }
Property Value
FocusRing
Gets or sets the focus ring of every focusable surface: a 2px ring in the primary color.
public string FocusRing { get; set; }
Property Value
FocusRingCurrent
Gets or sets a focus ring in the current text color, for controls that sit on a colored surface such as an alert's dismiss button.
public string FocusRingCurrent { get; set; }
Property Value
FocusRingInset
Gets or sets the inset form of FocusRing, for rows that sit flush against their container's edge and would otherwise have the ring clipped.
public string FocusRingInset { get; set; }
Property Value
FocusRingOffset
Gets or sets the gap between a focus ring and its control, matched to the surface behind it in each mode.
public string FocusRingOffset { get; set; }
Property Value
HairlineRing
Gets or sets a hairline ring that outlines swatches and raised tabs.
public string HairlineRing { get; set; }
Property Value
HoverBorder
Gets or sets the neutral border color on hover for checkboxes and radio buttons.
public string HoverBorder { get; set; }
Property Value
HoverBorderStrong
Gets or sets the stronger neutral border color on hover for outlined links and steps.
public string HoverBorderStrong { get; set; }
Property Value
HoverFill
Gets or sets the neutral fill on hover for buttons and icon buttons.
public string HoverFill { get; set; }
Property Value
HoverText
Gets or sets the neutral text color on hover.
public string HoverText { get; set; }
Property Value
InputDenseHeight
Gets or sets the dense form of InputHeight.
public string InputDenseHeight { get; set; }
Property Value
InputHeight
Gets or sets the height of every single-line input, and of controls laid out beside inputs such as pagination, so they line up whichever component renders them.
public string InputHeight { get; set; }
Property Value
InputLabelText
Gets or sets the label text used above and beside inputs.
public string InputLabelText { get; set; }
Property Value
ListReset
Gets or sets the classes that remove a list's bullets, margin and padding.
public string ListReset { get; set; }
Property Value
Placeholder
Gets or sets the fill of a loading placeholder, such as a skeleton. It sits a clear step from the surface in both modes, lighter than a dark surface rather than recessed like Track, so it stays visible while it pulses.
public string Placeholder { get; set; }
Property Value
RaisedSurface
Gets or sets the surface of a selected segment raised above a Track, such as the active tab of a segmented control.
public string RaisedSurface { get; set; }
Property Value
ReduceMotion
Gets or sets the class that turns transitions off for visitors who ask their system for reduced motion.
public string ReduceMotion { get; set; }
Property Value
RowHover
Gets or sets the lighter neutral fill on hover for rows in lists, menus and tables.
public string RowHover { get; set; }
Property Value
SurfaceRing
Gets or sets a ring in the page surface color, which separates touching marks such as chart bars and dots.
public string SurfaceRing { get; set; }
Property Value
Track
Gets or sets the neutral fill for a recessed track, a selected row or a pressed state.
public string Track { get; set; }
Property Value
TrackStrong
Gets or sets a recessed track that stays visible on a white card. Progress and slider tracks carry the value, so they need more contrast than Track.
public string TrackStrong { get; set; }
Property Value
Transparent
Gets or sets the transparent background.
public string Transparent { get; set; }