pub struct WsTokens {Show 32 fields
pub radius_card: &'static str,
pub radius_btn: &'static str,
pub radius_chip: &'static str,
pub radius_img: &'static str,
pub border_w: &'static str,
pub border_style: &'static str,
pub shadow: &'static str,
pub shadow_hover: &'static str,
pub bg_texture: &'static str,
pub hero_bg: &'static str,
pub hero_btn_radius: &'static str,
pub banner_btn_radius: &'static str,
pub cta_radius: &'static str,
pub form_submit_radius: &'static str,
pub control_radius: &'static str,
pub feature_card_radius: &'static str,
pub feature_card_pad: &'static str,
pub feature_card_hover_transform: &'static str,
pub feature_card_bg: &'static str,
pub tile_surface_bg: &'static str,
pub post_card_bg: &'static str,
pub post_card_radius: &'static str,
pub pg_card_bg: &'static str,
pub pg_card_radius: &'static str,
pub pg_tile_radius: &'static str,
pub details_bg: &'static str,
pub details_radius: &'static str,
pub form_input_bg: &'static str,
pub doc_page_bg: &'static str,
pub doc_page_radius: &'static str,
pub drawer_link_size: &'static str,
pub drawer_link_weight: &'static str,
}Expand description
The resolved --ws-* token values for one style pack. Values are the
exact CSS strings the web renderer emits; native targets parse the px
fields into numeric form via NativeTheme.
Fields§
§radius_card: &'static str§radius_btn: &'static str§radius_chip: &'static str§radius_img: &'static str§border_w: &'static str§border_style: &'static str§shadow: &'static str§shadow_hover: &'static str§bg_texture: &'static str§hero_bg: &'static str§hero_btn_radius: &'static strHero action-button corner (--ws-hero-btn-radius).
::banner action-button corner (--ws-banner-btn-radius).
cta_radius: &'static strStandalone CTA button corner (--ws-cta-radius).
form_submit_radius: &'static str::form submit-button corner (--ws-form-submit-radius).
control_radius: &'static strApp-control corner (--ws-control-radius). Identity value is
initial — the CSS guaranteed-invalid value — because consumers
carry DIVERGENT per-element fallbacks (forms var(--radius-sm),
booking/store controls 8px, store badges/qty 6px); initial keeps
every var(--ws-control-radius, <fallback>) on its own fallback,
so injecting the identity pack stays a visual no-op. surfdoc.css
intentionally declares no :root value for it (see its Phase-2
comment block).
feature_card_radius: &'static strFeature-card corner (--ws-feature-card-radius).
feature_card_pad: &'static strFeature-card padding (--ws-feature-card-pad).
feature_card_hover_transform: &'static strFeature-card hover lift (--ws-feature-card-hover-transform).
feature_card_bg: &'static strFeature-card surface (--ws-feature-card-bg).
tile_surface_bg: &'static str::product-grid tile-surface fill (--ws-tile-surface-bg).
post_card_bg: &'static str::post-grid card surface (--ws-post-card-bg).
post_card_radius: &'static str::post-grid card corner (--ws-post-card-radius).
pg_card_bg: &'static str::product-grid row-card surface (--ws-pg-card-bg).
pg_card_radius: &'static str::product-grid row-card corner (--ws-pg-card-radius).
pg_tile_radius: &'static str::product-grid tile corner (--ws-pg-tile-radius; square by spec).
details_bg: &'static str::details disclosure surface (--ws-details-bg).
details_radius: &'static str::details corner (--ws-details-radius).
form_input_bg: &'static str::form input fill (--ws-form-input-bg).
doc_page_bg: &'static strDoc-page sheet surface (--ws-doc-page-bg).
doc_page_radius: &'static strDoc-page sheet corner (--ws-doc-page-radius).
drawer_link_size: &'static strShell drawer link font size (--ws-drawer-link-size).
drawer_link_weight: &'static strShell drawer link font weight (--ws-drawer-link-weight).
Trait Implementations§
impl Eq for WsTokens
impl StructuralPartialEq for WsTokens
Auto Trait Implementations§
impl Freeze for WsTokens
impl RefUnwindSafe for WsTokens
impl Send for WsTokens
impl Sync for WsTokens
impl Unpin for WsTokens
impl UnsafeUnpin for WsTokens
impl UnwindSafe for WsTokens
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.