Skip to main content

WsTokens

Struct WsTokens 

Source
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 str

Hero action-button corner (--ws-hero-btn-radius).

§banner_btn_radius: &'static str

::banner action-button corner (--ws-banner-btn-radius).

§cta_radius: &'static str

Standalone CTA button corner (--ws-cta-radius).

§form_submit_radius: &'static str

::form submit-button corner (--ws-form-submit-radius).

§control_radius: &'static str

App-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 str

Feature-card corner (--ws-feature-card-radius).

§feature_card_pad: &'static str

Feature-card padding (--ws-feature-card-pad).

§feature_card_hover_transform: &'static str

Feature-card hover lift (--ws-feature-card-hover-transform).

§feature_card_bg: &'static str

Feature-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 str

Doc-page sheet surface (--ws-doc-page-bg).

§doc_page_radius: &'static str

Doc-page sheet corner (--ws-doc-page-radius).

§drawer_link_size: &'static str

Shell drawer link font size (--ws-drawer-link-size).

§drawer_link_weight: &'static str

Shell drawer link font weight (--ws-drawer-link-weight).

Trait Implementations§

Source§

impl Clone for WsTokens

Source§

fn clone(&self) -> WsTokens

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WsTokens

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for WsTokens

Source§

impl PartialEq for WsTokens

Source§

fn eq(&self, other: &WsTokens) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for WsTokens

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.