Components
- `SignInModal` - a button that triggers a modal with the sign-in flow
- `SignIn` - the forms for the sign in flow, a logo, heading, and description text
- `SignOutButton` - a sign out button
- `AuthButton` - the
SignOutButton
when logged in, and theSignInModal
when logged out - `SendTransactionButton` - a button that signs and sends a transaction
- `Fund` - the fund flow
- `FundModal` - a button that triggers a modal with the fund flow
Quickstart
This guide will help you get started with@coinbase/cdp-react
. You’ll learn how to install the package, set up the provider, and render your first component.
Installation
First, add the package to your project using your preferred package manager.Gather your CDP Project information
- Sign in or create an account on the CDP Portal
- On your dashboard, select a project from the dropdown at the at the top, and copy the Project ID
Allowlist your local app
- Navigate to the Embedded Wallet Configuration in CDP Portal, and click Add origin to include your local app
- Enter the origin of your locally running app - e.g.,
http://localhost:3000
- Click Add origin again to save your changes
Setup Provider
Next, you need to wrap your application with theCDPReactProvider
.
CDPReactProvider
provides the necessary context for hooks and components to work correctly. It also provides access to config data and theming.
Update your main application file (e.g., main.tsx
or App.tsx
) to include the provider:
Render a Component
Now you can use the components from the library. Let’s add theAuthButton
component to your application. This component handles both sign-in and sign-out functionality.
@coinbase/cdp-react
, set up the provider, and rendered your first component.
Functions
CDPReactProvider()
Parameters
Parameter | Type | Description |
---|---|---|
props | CDPReactProviderProps | Props for the CDPReactProvider component |
Returns
Element
The CDPReactProvider component
Example
useAppConfig()
Returns
AppConfig
The app config.
Example
AuthButton()
Parameters
Parameter | Type | Description |
---|---|---|
props | AuthButtonProps & HTMLAttributes <HTMLDivElement > | The props for the component. |
Returns
Element
The rendered component.
Example
SendTransactionButton()
Parameters
Parameter | Type | Description |
---|---|---|
props | SendTransactionButtonProps | The props for the SendTransactionButton component. |
Returns
Element
The rendered component.
SignIn()
Parameters
Parameter | Type | Description |
---|---|---|
props | SignInProps | The props for the component. |
Returns
Element
The SignIn component.
Examples
useSignInReducer()
Parameters
Parameter | Type | Description |
---|---|---|
initialState | SignInState | The initial state of the component. |
Returns
[SignInState
, ActionDispatch
<[SignInAction
]>]
The current state and dispatcher to perform actions on the state.
SignOutButton()
Parameters
Parameter | Type | Description |
---|---|---|
props? | SignOutButtonProps | The props for the component. |
Returns
Element
The rendered component.
SignInModal()
Parameters
Parameter | Type | Description |
---|---|---|
props | SignInModalProps | The props for the SignInModal component. |
Returns
Element
The SignInModalcomponent.
Examples
ThemeProvider()
Parameters
Parameter | Type | Description |
---|---|---|
props | ThemeProviderProps | The props for the component. |
Returns
Element
The theme provider component.
Example
useTheme()
Returns
ThemeContextValue
The theme.
Example
flattenTokensObject()
Type Parameters
Type Parameter |
---|
T extends NestedTokenObject |
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
tokensObject | T | undefined | The nested tokens object to flatten. |
cssVarPrefix? | string | "cdp-web" | An optional prefix for the generated CSS variables. |
Returns
Flattened
<T
>
A flattened theme object.
themeToCssVariables()
Parameters
Parameter | Type | Description |
---|---|---|
theme | Record <string , string > | The theme object to convert. |
Returns
CDPWebCSSVariables
A CSS variables object.
Example
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Arrow Left icon.
Example
IconArrowsUpDown()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Arrow Left icon.
Example
IconCheck()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Check Circle icon.
Example
IconCheckCircle()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Check Circle icon.
Example
IconChevronDown()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The chevron down icon.
Example
IconEnvelope()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Envelope icon.
Example
IconExclamationCircle()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Exclamation Circle icon.
Example
IconExclamationTriangle()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Exclamation Triangle icon.
Example
IconLock()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Lock icon.
Example
IconPhone()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The chat bubble icon.
Example
IconXMark()
Parameters
Parameter | Type | Description |
---|---|---|
props | Omit <SVGProps <SVGSVGElement >, "viewBox" > | The props for the icon. |
Returns
Element
The Close icon.
Example
clamp()
Parameters
Parameter | Type | Description |
---|---|---|
value | number | The value to clamp. |
min | number | The minimum value. |
max | number | The maximum value. |
Returns
number
The clamped value.
getMessageFromUnknownError()
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
error | unknown | undefined | The error to get a message from. |
defaultMesasge? | string | "Something went wrong" | The default message to return if no message is found. |
Returns
string
The message from the error.
isApiError()
Parameters
Parameter | Type | Description |
---|---|---|
error | unknown | The error to check. |
Returns
error is APIError
- True if the error is an API error, false otherwise.
Example
isEmailInvalid()
Parameters
Parameter | Type | Description |
---|---|---|
value | string | The email address to validate. |
Returns
boolean
true
if the email address is invalid, false
otherwise.
Example
parseValuesFromPhoneNumber()
Parameters
Parameter | Type | Description |
---|---|---|
phoneNumber | string | The phone number to parse. |
countryCode? | CountryCode | The country code to parse the phone number for. |
Returns
PhoneNumber
A phone number object.
Fund()
Parameters
Parameter | Type | Description |
---|---|---|
props | FundProps | The props of the Fund component. |
Returns
Element
The Fund component.
Examples
FundFooter()
Parameters
Parameter | Type | Description |
---|---|---|
props | HTMLAttributes <HTMLDivElement > | The props of the FundFooter component. |
Returns
Element
The FundFooter component.
FundForm()
Parameters
Parameter | Type | Description |
---|---|---|
props | FundFormProps | The props for the FundForm component. |
Returns
Element
The FundForm component.
FundTitle()
Parameters
Parameter | Type | Description |
---|---|---|
props | FundTitleProps | The props for the FundTitle component. |
Returns
Element
The FundTitle component.
useFundContext()
Returns
FundContextType
- The value of the FundContext.
FundModal()
Parameters
Parameter | Type | Description |
---|---|---|
props | FundModalProps | The props for the FundModal component. |
Returns
Element
The FundModal component.
Examples
SignInAuthMethodButtons()
Parameters
Parameter | Type | Description |
---|---|---|
props | SignInAuthMethodButtonsProps | The props for the AuthMethodButtons component. |
Returns
null
| Element
The AuthMethodButtons component.
SignInBackButton()
Parameters
Parameter | Type | Description |
---|---|---|
props | SignInBackButtonProps | The props for the component. |
Returns
null
| Element
The sign-in back button.
Example
SignInDescription()
Parameters
Parameter | Type | Description |
---|---|---|
props | SignInDescriptionProps | The props for the component. |
Returns
Element
The rendered component.
Example
SignInFooter()
Parameters
Parameter | Type | Description |
---|---|---|
props | HTMLAttributes <HTMLDivElement > | The props for the component. |
Returns
Element
The sign-in footer.
Example
SignInForm()
Parameters
Parameter | Type | Description |
---|---|---|
props | SignInFormProps | The component props. |
Returns
Element
The rendered component.
Example
SignInImage()
Parameters
Parameter | Type | Description |
---|---|---|
props | SignInImageProps | The props for the component. |
Returns
null
| Element
The rendered component.
Example
SignInTitle()
Parameters
Parameter | Type | Description |
---|---|---|
props | SignInTitleProps | The props for the component. |
Returns
Element
The rendered component.
Example
useSignInContext()
Returns
object
The current state of the SignIn component.
state
dispatch
Example
Properties
CDPReactProviderProps
CDPReactProviderPropsProperties
Property | Type | Description |
---|---|---|
app? | AppConfig | The app config |
children | ReactNode | The children of the component |
config | Config | The CDP configuration |
className? | string | - |
style? | CSSProperties | - |
theme? | Partial <Theme > | The theme values to override |
AuthButtonProps
The props for the AuthButton component.Properties
SendTransactionButtonProps
The props for the SendTransactionButton component. SendTransactionButtonPropsExtends
Omit
<ButtonHTMLAttributes
<HTMLButtonElement
>,"onError"
>
Properties
Property | Type | Description |
---|---|---|
account | `0x${string}` | The account to send the transaction from. |
network | SendEvmTransactionWithEndUserAccountBodyNetwork | The network to send the transaction on. |
onError? | (error ) => void | A function to call when the transaction errors. |
onSuccess? | (hash ) => void | A function to call when the transaction is successful. |
pendingLabel? | ReactNode | The label to show to screen readers when the transaction is pending. |
transaction | AllowedEvmTransactionType | The transaction to send. |
variant? | ButtonVariant | The variant of the button. |
SignInProps
Props for the SignIn componentProperties
SignInModalProps
Props for the SignInModal component.Properties
ThemeContextValue
The value of the theme context.Properties
Property | Type |
---|---|
theme | Theme |
cssVariables | CDPWebCSSVariables |
PhoneNumber
A phone number object.Properties
FetchBuyUrlParams
The params for the fetchBuyUrl function.Properties
Property | Type |
---|---|
paymentMethod | string |
paymentAmount | number |
FundFormProps
The props for the FundForm component.Extends
Omit
<FormHTMLAttributes
<HTMLFormElement
>,"children"
>
Properties
FundPaymentMethod
A payment method for the fund component.Properties
Property | Type |
---|---|
id | string |
name | string |
description | string |
icon | ReactNode |
minAmount? | number |
maxAmount? | number |
FundProps
All the props for the Fund component.Extends
FundStateProps
.FundLifecycleEvents
Extended by
Properties
Property | Type | Inherited from |
---|---|---|
children? | ReactNode | (state ) => ReactNode | - |
className? | string | - |
fetchBuyOptions | FetchBuyOptions | - |
fetchBuyQuote | FetchBuyQuote | - |
inputType? | InputType | - |
openIn? | "tab" | "popup" | - |
submitLabel? | ReactNode | - |
title? | ReactNode | - |
country | string | FundStateProps.country |
locale? | string | FundStateProps.locale |
cryptoDecimalPlaces? | number | FundStateProps.cryptoDecimalPlaces |
cryptoCurrency | string | FundStateProps.cryptoCurrency |
fiatCurrency | string | FundStateProps.fiatCurrency |
fiatDecimalPlaces? | number | FundStateProps.fiatDecimalPlaces |
network | string | FundStateProps.network |
presetAmountInputs? | FundPresetAmountInputs | FundStateProps.presetAmountInputs |
subdivision? | string | FundStateProps.subdivision |
onError? | (e ) => void | FundLifecycleEvents.onError |
onStatus? | (lifecycleStatus ) => void | FundLifecycleEvents.onStatus |
onSuccess? | (result? ) => void | FundLifecycleEvents.onSuccess |
FundState
The state of the Fund component.Properties
Property | Type |
---|---|
country | string |
cryptoAmount? | number |
cryptoCurrency | string |
cryptoDecimalPlaces? | number |
exchangeRate? | number |
exchangeRateError? | | null | FundStateError |
isExchangeRatePending? | boolean |
isPaymentMethodsPending? | boolean |
fiatAmount? | number |
fiatCurrency | string |
fiatDecimalPlaces? | number |
locale? | string |
network | string |
paymentMethods? | FundPaymentMethod [] |
paymentMethodsError? | | null | FundStateError |
presetAmountInputs? | FundPresetAmountInputs |
selectedInputType | InputType |
selectedPaymentMethod? | FundPaymentMethod |
subdivision? | string |
transactionStatus | FundLifecycleStatus |
FundTitleProps
The props for the FundTitle component.Extends
HTMLAttributes
<HTMLDivElement
>
Properties
Property | Type |
---|---|
as? | ElementType |
OnrampError
An error that occurred during the onramp process.Properties
Property | Type |
---|---|
errorType | "internal_error" | "handled_error" | "network_error" | "unknown_error" |
code? | string |
debugMessage? | string |
FundModalProps
All the props for the Fund component.Extends
Properties
Property | Type | Description | Overrides | Inherited from |
---|---|---|---|---|
children? | ReactNode | The children to render inside the modal. | FundProps .children | - |
open? | boolean | Whether the modal is open. Note: if you set this, you must also set setIsOpen . | - | - |
setIsOpen? | (value ) => void | A function to set the modal’s open state. Note: if you set this, you must also set open . | - | - |
className? | string | - | - | FundProps .className |
fetchBuyOptions | FetchBuyOptions | - | - | FundProps .fetchBuyOptions |
fetchBuyQuote | FetchBuyQuote | - | - | FundProps .fetchBuyQuote |
inputType? | InputType | - | - | FundProps .inputType |
openIn? | "tab" | "popup" | - | - | FundProps .openIn |
submitLabel? | ReactNode | - | - | FundProps .submitLabel |
title? | ReactNode | - | - | FundProps .title |
country | string | - | - | FundProps .country |
locale? | string | - | - | FundProps .locale |
cryptoDecimalPlaces? | number | - | - | FundProps .cryptoDecimalPlaces |
cryptoCurrency | string | - | - | FundProps .cryptoCurrency |
fiatCurrency | string | - | - | FundProps .fiatCurrency |
fiatDecimalPlaces? | number | - | - | FundProps .fiatDecimalPlaces |
network | string | - | - | FundProps .network |
presetAmountInputs? | FundPresetAmountInputs | - | - | FundProps .presetAmountInputs |
subdivision? | string | - | - | FundProps .subdivision |
onError? | (e ) => void | - | - | FundProps .onError |
onStatus? | (lifecycleStatus ) => void | - | - | FundProps .onStatus |
onSuccess? | (result? ) => void | - | - | FundProps .onSuccess |
SignInAuthMethodButtonsProps
The props for the AuthMethodButtons component.Properties
Property | Type | Description |
---|---|---|
activeMethod? | "email" | "sms" | The active auth method. |
SignInBackButtonProps
A button to go back to the previous step of the sign-in flow.Extends
HTMLAttributes
<HTMLButtonElement
>
Properties
Property | Type | Description |
---|---|---|
step? | "credentials" | "verification" | If set, will render the back button for this step of the sign in flow, regardless of the context value. |
size? | ButtonSize | The size of the button. |
variant? | ButtonVariant | The variant of the button. |
SignInDescriptionProps
The props for the SignInDescription component.Extends
SignInTitleAndDescriptionProps
.HTMLAttributes
<HTMLElement
>
Properties
SignInFormProps
Props for the SignInForm component.Extends
Omit
<HTMLAttributes
<HTMLElement
>,"children"
>
Properties
SignInImageProps
Props for the SignInImage component.Properties
Property | Type | Description |
---|---|---|
className? | string | The class name to apply to the component. |
alt? | string | The alt text for the image. |
src? | string | The source URL for the image. Uses the app logo by default. |
SignInTitleProps
The props for the SignInTitle component.Extends
SignInTitleAndDescriptionProps
.HTMLAttributes
<HTMLElement
>
Properties
SignInState
The state of the SignIn component.Properties
Property | Type | Description |
---|---|---|
authMethod | "email" | "sms" | The auth method selected by the user. |
canResetOTP | boolean | Whether the user can request a new OTP. |
email | string | The email address of the user. |
error | | null | string | APIError | The error message or APIError object. |
flowId | string | The flow ID of the current sign-in flow. |
isPending | boolean | Whether the form state is pending. |
isSuccess | boolean | Whether the sign-in flow is successful. |
otp | string | The OTP code entered by the user. |
phoneNumber | string | The phone number of the user. |
step | "credentials" | "verification" | The current step of the sign-in flow. |
Type Aliases
AuthMethod
SignOutButtonProps
Param
The children to render inside the button.Param
A function to call when the sign-out is successful.Param
The variant of the button.Properties
Property | Type |
---|---|
children? | ReactNode |
onSuccess? | () => void |
variant? | ButtonVariant |
ThemeProviderProps
Properties
Property | Type |
---|---|
children | ReactNode |
className? | string |
style? | CSSProperties |
theme? | Partial <Theme > |
SemanticColors
Example
See
- colorsSemantic for the default token values
- ComponentColors for the component colors that inherit from the SemanticColors
ComponentColors
Example
See
- colorsComponents for the default token values
- SemanticColors for the semantic colors that the component colors inherit from
FontTokens
Example
See
font for the default token valuesColorTokens
colors-bg-primary
semantic color is used to define the background color for
a “primary” variant component. The colors-cta-primary-bg-default
component color inherits
from the colors-bg-primary
semantic color via CSS variables.
If you want to override the just the default background color of the primary cta, you can do so
by defining the colors-cta-primary-bg-default
token in the theme.
Example
Theme
--cdp-web-
) in the keys.
ButtonVariant
Size
ButtonSize
InputSize
Tokens
KebabCasePaths<T>
Type Parameters
Type Parameter |
---|
T |
Example
Flattened<T>
Type Parameters
Type Parameter |
---|
T extends Record <string , unknown > |
Example
TokenValue
Properties
Property | Type |
---|---|
value | string | number |
modify? | object |
modify.type | "alpha" |
modify.value | number | string |
NestedTokenObject
Index Signature
CDPWebCSSVariables
Index Signature
CamelToSnakeCase<T>
Type Parameters
Type Parameter |
---|
T extends string |
CamelToSnakeCaseNested<T>
Type Parameters
Type Parameter |
---|
T |
FundAction
FetchBuyOptions()
Parameters
Parameter | Type |
---|---|
params | { country : string ; subdivision? : string ; } |
params.country | string |
params.subdivision? | string |
Returns
Promise
<OnrampBuyOptionsResponse
>
FetchBuyQuote()
Parameters
Parameter | Type |
---|---|
params | { destinationAddress : string ; purchaseCurrency : string ; purchaseNetwork : string ; paymentAmount : string ; paymentCurrency : string ; paymentMethod : string ; country : string ; subdivision? : string ; } |
params.destinationAddress | string |
params.purchaseCurrency | string |
params.purchaseNetwork | string |
params.paymentAmount | string |
params.paymentCurrency | string |
params.paymentMethod | string |
params.country | string |
params.subdivision? | string |
Returns
Promise
<OnrampBuyQuoteResponse
>
FundContextType
Properties
Property | Type |
---|---|
state | FundState |
dispatch | Dispatch <FundAction > |
fetchBuyUrl | (params , onError? ) => Promise <string > |
FundLifecycleStatus
FundPresetAmountInputs
FundStateError
Properties
Property | Type |
---|---|
code | string |
message | string |
FundStateProps
InputType
OnrampAmount
Properties
Property | Type |
---|---|
value | string |
currency | string |
OnrampBuyQuoteResponse
Properties
Property | Type | Description |
---|---|---|
paymentTotal | OnrampAmount | Object with amount and currency of the total fiat payment required to complete the purchase, inclusive of any fees. The currency will match the paymentCurrency in the request if it is supported, otherwise it falls back to USD. |
paymentSubtotal | OnrampAmount | Object with amount and currency of the fiat cost of the crypto asset to be purchased, exclusive of any fees. The currency will match the paymentCurrency . |
purchaseAmount | OnrampAmount | Object with amount and currency of the crypto that to be purchased. The currency will match the purchaseCurrency in the request. The number of decimals will be based on the crypto asset. |
coinbaseFee | OnrampAmount | Object with amount and currency of the fee changed by the Coinbase exchange to complete the transaction. The currency will match the paymentCurrency . |
networkFee | OnrampAmount | Object with amount and currency of the network fee required to send the purchased crypto to the user’s wallet. The currency will match the paymentCurrency . |
quoteId | string | Reference to the quote that should be passed into the initialization parameters when launching the Coinbase Onramp widget via the SDK or URL generator. |
onrampUrl? | string | Ready-to-use one-click-buy URL. Only returned when destination_address is provided in the request. |
OnrampBuyOptionsResponse
Properties
Property | Type | Description |
---|---|---|
paymentCurrencies | OnrampPaymentCurrency [] | List of supported fiat currencies that can be exchanged for crypto on Onramp in the given location. Each currency contains a list of available payment methods, with min and max transaction limits for that currency. |
purchaseCurrencies | OnrampPurchaseCurrency [] | List of available crypto assets that can be bought on Onramp in the given location. |
OnrampBuyOptionsSnakeCaseResponse
OnrampBuyQuoteSnakeCaseResponse
OnrampNetwork
Properties
Property | Type |
---|---|
name | string |
displayName | string |
chainId | string |
contractAddress | string |
iconUrl | string |
OnrampPaymentCurrency
Properties
Property | Type |
---|---|
id | string |
limits | OnrampPaymentMethodLimit [] |
OnrampPaymentMethodLimit
Properties
Property | Type |
---|---|
id | string |
min | string |
max | string |
OnrampPurchaseCurrency
Properties
Property | Type |
---|---|
id | string |
name | string |
symbol | string |
iconUrl | string |
networks | OnrampNetwork [] |
OnrampSuccessEventData
Properties
Property | Type |
---|---|
assetImageUrl | string |
assetName | string |
assetSymbol | string |
chainId | string |
SignInAction
Variables
AUTH_METHODS
theme
--cdp-web-
) in the keys.
Example
colorsBase
Type declaration
blue500
blue550
black
white
gray50
gray100
gray200
gray500
gray700
gray900
red500
green500
amber500
colorsSemantic
Type declaration
bg
Type declaration
bg.default
Type declaration
bg.default.value
bg.alternate
Type declaration
bg.alternate.value
bg.overlay
Type declaration
bg.overlay.value
bg.overlay.modify
Type declaration
bg.overlay.modify.type
bg.overlay.modify.value
bg.skeleton
Type declaration
bg.skeleton.value
bg.skeleton.modify
Type declaration
bg.skeleton.modify.type
bg.skeleton.modify.value
bg.primary
Type declaration
bg.primary.value
bg.secondary
Type declaration
bg.secondary.value
fg
Type declaration
fg.default
Type declaration
fg.default.value
fg.muted
Type declaration
fg.muted.value
fg.primary
Type declaration
fg.primary.value
fg.onPrimary
Type declaration
fg.onPrimary.value
fg.onSecondary
Type declaration
fg.onSecondary.value
fg.positive
Type declaration
fg.positive.value
fg.negative
Type declaration
fg.negative.value
fg.warning
Type declaration
fg.warning.value
line
Type declaration
line.default
Type declaration
line.default.value
line.heavy
Type declaration
line.heavy.value
line.primary
Type declaration
line.primary.value
line.positive
Type declaration
line.positive.value
line.negative
Type declaration
line.negative.value
See
colorsComponents for the component colors that inherit from thesecolorsComponents
Type declaration
page
Type declaration
page.bg
Type declaration
page.bg.default
Type declaration
page.bg.default.value
page.border
Type declaration
page.border.default
Type declaration
page.border.default.value
page.text
Type declaration
page.text.default
Type declaration
page.text.default.value
page.text.muted
Type declaration
page.text.muted.value
cta
Type declaration
cta.primary
Type declaration
cta.primary.bg
Type declaration
cta.primary.bg.default
Type declaration
cta.primary.bg.default.value
cta.primary.bg.hover
Type declaration
cta.primary.bg.hover.value
cta.primary.bg.hover.modify
Type declaration
cta.primary.bg.hover.modify.type
cta.primary.bg.hover.modify.value
cta.primary.border
Type declaration
cta.primary.border.focus
Type declaration
cta.primary.border.focus.value
cta.primary.text
Type declaration
cta.primary.text.default
Type declaration
cta.primary.text.default.value
cta.primary.text.hover
Type declaration
cta.primary.text.hover.value
cta.secondary
Type declaration
cta.secondary.bg
Type declaration
cta.secondary.bg.default
Type declaration
cta.secondary.bg.default.value
cta.secondary.bg.hover
Type declaration
cta.secondary.bg.hover.value
cta.secondary.bg.hover.modify
Type declaration
cta.secondary.bg.hover.modify.type
cta.secondary.bg.hover.modify.value
cta.secondary.border
Type declaration
cta.secondary.border.focus
Type declaration
cta.secondary.border.focus.value
cta.secondary.text
Type declaration
cta.secondary.text.default
Type declaration
cta.secondary.text.default.value
cta.secondary.text.hover
Type declaration
cta.secondary.text.hover.value
link
Type declaration
link.primary
Type declaration
link.primary.text
Type declaration
link.primary.text.default
Type declaration
link.primary.text.default.value
link.primary.text.hover
Type declaration
link.primary.text.hover.value
link.primary.text.hover.modify
Type declaration
link.primary.text.hover.modify.type
link.primary.text.hover.modify.value
link.secondary
Type declaration
link.secondary.text
Type declaration
link.secondary.text.default
Type declaration
link.secondary.text.default.value
link.secondary.text.hover
Type declaration
link.secondary.text.hover.value
link.secondary.text.hover.modify
Type declaration
link.secondary.text.hover.modify.type
link.secondary.text.hover.modify.value
input
Type declaration
input.bg
Type declaration
input.bg.default
Type declaration
input.bg.default.value
input.border
Type declaration
input.border.default
Type declaration
input.border.default.value
input.border.focus
Type declaration
input.border.focus.value
input.border.error
Type declaration
input.border.error.value
input.border.success
Type declaration
input.border.success.value
input.label
Type declaration
input.label.default
Type declaration
input.label.default.value
input.placeholder
Type declaration
input.placeholder.default
Type declaration
input.placeholder.default.value
input.text
Type declaration
input.text.default
Type declaration
input.text.default.value
input.errorText
Type declaration
input.errorText.default
Type declaration
input.errorText.default.value
input.successText
Type declaration
input.successText.default
Type declaration
input.successText.default.value
select
Type declaration
select.label
Type declaration
select.label.default
Type declaration
select.label.default.value
select.trigger
Type declaration
select.trigger.bg
Type declaration
select.trigger.bg.default
Type declaration
select.trigger.bg.default.value
select.trigger.border
Type declaration
select.trigger.border.default
Type declaration
select.trigger.border.default.value
select.trigger.border.focus
Type declaration
select.trigger.border.focus.value
select.trigger.border.error
Type declaration
select.trigger.border.error.value
select.trigger.border.success
Type declaration
select.trigger.border.success.value
select.trigger.placeholder
Type declaration
select.trigger.placeholder.default
Type declaration
select.trigger.placeholder.default.value
select.trigger.text
Type declaration
select.trigger.text.default
Type declaration
select.trigger.text.default.value
select.trigger.errorText
Type declaration
select.trigger.errorText.default
Type declaration
select.trigger.errorText.default.value
select.trigger.successText
Type declaration
select.trigger.successText.default
Type declaration
select.trigger.successText.default.value
select.list
Type declaration
select.list.bg
Type declaration
select.list.bg.default
Type declaration
select.list.bg.default.value
select.list.border
Type declaration
select.list.border.default
Type declaration
select.list.border.default.value
select.list.border.focus
Type declaration
select.list.border.focus.value
select.list.border.error
Type declaration
select.list.border.error.value
select.list.border.success
Type declaration
select.list.border.success.value
select.list.item
Type declaration
select.list.item.bg
Type declaration
select.list.item.bg.default
Type declaration
select.list.item.bg.default.value
select.list.item.bg.highlight
Type declaration
select.list.item.bg.highlight.value
select.list.item.text
Type declaration
select.list.item.text.default
Type declaration
select.list.item.text.default.value
select.list.item.text.muted
Type declaration
select.list.item.text.muted.value
select.list.item.text.onHighlight
Type declaration
select.list.item.text.onHighlight.value
select.list.item.text.mutedOnHighlight
Type declaration
select.list.item.text.mutedOnHighlight.value
code
Type declaration
code.bg
Type declaration
code.bg.default
Type declaration
code.bg.default.value
code.border
Type declaration
code.border.default
Type declaration
code.border.default.value
code.text
Type declaration
code.text.default
Type declaration
code.text.default.value
colors
Type declaration
page
Type declaration
page.bg
Type declaration
page.bg.default
Type declaration
page.bg.default.value
page.border
Type declaration
page.border.default
Type declaration
page.border.default.value
page.text
Type declaration
page.text.default
Type declaration
page.text.default.value
page.text.muted
Type declaration
page.text.muted.value
cta
Type declaration
cta.primary
Type declaration
cta.primary.bg
Type declaration
cta.primary.bg.default
Type declaration
cta.primary.bg.default.value
cta.primary.bg.hover
Type declaration
cta.primary.bg.hover.value
cta.primary.bg.hover.modify
Type declaration
cta.primary.bg.hover.modify.type
cta.primary.bg.hover.modify.value
cta.primary.border
Type declaration
cta.primary.border.focus
Type declaration
cta.primary.border.focus.value
cta.primary.text
Type declaration
cta.primary.text.default
Type declaration
cta.primary.text.default.value
cta.primary.text.hover
Type declaration
cta.primary.text.hover.value
cta.secondary
Type declaration
cta.secondary.bg
Type declaration
cta.secondary.bg.default
Type declaration
cta.secondary.bg.default.value
cta.secondary.bg.hover
Type declaration
cta.secondary.bg.hover.value
cta.secondary.bg.hover.modify
Type declaration
cta.secondary.bg.hover.modify.type
cta.secondary.bg.hover.modify.value
cta.secondary.border
Type declaration
cta.secondary.border.focus
Type declaration
cta.secondary.border.focus.value
cta.secondary.text
Type declaration
cta.secondary.text.default
Type declaration
cta.secondary.text.default.value
cta.secondary.text.hover
Type declaration
cta.secondary.text.hover.value
link
Type declaration
link.primary
Type declaration
link.primary.text
Type declaration
link.primary.text.default
Type declaration
link.primary.text.default.value
link.primary.text.hover
Type declaration
link.primary.text.hover.value
link.primary.text.hover.modify
Type declaration
link.primary.text.hover.modify.type
link.primary.text.hover.modify.value
link.secondary
Type declaration
link.secondary.text
Type declaration
link.secondary.text.default
Type declaration
link.secondary.text.default.value
link.secondary.text.hover
Type declaration
link.secondary.text.hover.value
link.secondary.text.hover.modify
Type declaration
link.secondary.text.hover.modify.type
link.secondary.text.hover.modify.value
input
Type declaration
input.bg
Type declaration
input.bg.default
Type declaration
input.bg.default.value
input.border
Type declaration
input.border.default
Type declaration
input.border.default.value
input.border.focus
Type declaration
input.border.focus.value
input.border.error
Type declaration
input.border.error.value
input.border.success
Type declaration
input.border.success.value
input.label
Type declaration
input.label.default
Type declaration
input.label.default.value
input.placeholder
Type declaration
input.placeholder.default
Type declaration
input.placeholder.default.value
input.text
Type declaration
input.text.default
Type declaration
input.text.default.value
input.errorText
Type declaration
input.errorText.default
Type declaration
input.errorText.default.value
input.successText
Type declaration
input.successText.default
Type declaration
input.successText.default.value
select
Type declaration
select.label
Type declaration
select.label.default
Type declaration
select.label.default.value
select.trigger
Type declaration
select.trigger.bg
Type declaration
select.trigger.bg.default
Type declaration
select.trigger.bg.default.value
select.trigger.border
Type declaration
select.trigger.border.default
Type declaration
select.trigger.border.default.value
select.trigger.border.focus
Type declaration
select.trigger.border.focus.value
select.trigger.border.error
Type declaration
select.trigger.border.error.value
select.trigger.border.success
Type declaration
select.trigger.border.success.value
select.trigger.placeholder
Type declaration
select.trigger.placeholder.default
Type declaration
select.trigger.placeholder.default.value
select.trigger.text
Type declaration
select.trigger.text.default
Type declaration
select.trigger.text.default.value
select.trigger.errorText
Type declaration
select.trigger.errorText.default
Type declaration
select.trigger.errorText.default.value
select.trigger.successText
Type declaration
select.trigger.successText.default
Type declaration
select.trigger.successText.default.value
select.list
Type declaration
select.list.bg
Type declaration
select.list.bg.default
Type declaration
select.list.bg.default.value
select.list.border
Type declaration
select.list.border.default
Type declaration
select.list.border.default.value
select.list.border.focus
Type declaration
select.list.border.focus.value
select.list.border.error
Type declaration
select.list.border.error.value
select.list.border.success
Type declaration
select.list.border.success.value
select.list.item
Type declaration
select.list.item.bg
Type declaration
select.list.item.bg.default
Type declaration
select.list.item.bg.default.value
select.list.item.bg.highlight
Type declaration
select.list.item.bg.highlight.value
select.list.item.text
Type declaration
select.list.item.text.default
Type declaration
select.list.item.text.default.value
select.list.item.text.muted
Type declaration
select.list.item.text.muted.value
select.list.item.text.onHighlight
Type declaration
select.list.item.text.onHighlight.value
select.list.item.text.mutedOnHighlight
Type declaration
select.list.item.text.mutedOnHighlight.value
code
Type declaration
code.bg
Type declaration
code.bg.default
Type declaration
code.bg.default.value
code.border
Type declaration
code.border.default
Type declaration
code.border.default.value
code.text
Type declaration
code.text.default
Type declaration
code.text.default.value
bg
Type declaration
bg.default
Type declaration
bg.default.value
bg.alternate
Type declaration
bg.alternate.value
bg.overlay
Type declaration
bg.overlay.value
bg.overlay.modify
Type declaration
bg.overlay.modify.type
bg.overlay.modify.value
bg.skeleton
Type declaration
bg.skeleton.value
bg.skeleton.modify
Type declaration
bg.skeleton.modify.type
bg.skeleton.modify.value
bg.primary
Type declaration
bg.primary.value
bg.secondary
Type declaration
bg.secondary.value
fg
Type declaration
fg.default
Type declaration
fg.default.value
fg.muted
Type declaration
fg.muted.value
fg.primary
Type declaration
fg.primary.value
fg.onPrimary
Type declaration
fg.onPrimary.value
fg.onSecondary
Type declaration
fg.onSecondary.value
fg.positive
Type declaration
fg.positive.value
fg.negative
Type declaration
fg.negative.value
fg.warning
Type declaration
fg.warning.value
line
Type declaration
line.default
Type declaration
line.default.value
line.heavy
Type declaration
line.heavy.value
line.primary
Type declaration
line.primary.value
line.positive
Type declaration
line.positive.value
line.negative
Type declaration
line.negative.value
font
Type declaration
family
Type declaration
family.mono
Type declaration
family.mono.value
family.sans
Type declaration
family.sans.value
size
Type declaration
size.base
Type declaration
size.base.value
tokens
Type declaration
colors
Type declaration
colors.page
Type declaration
colors.page.bg
Type declaration
colors.page.bg.default
Type declaration
colors.page.bg.default.value
colors.page.border
Type declaration
colors.page.border.default
Type declaration
colors.page.border.default.value
colors.page.text
Type declaration
colors.page.text.default
Type declaration
colors.page.text.default.value
colors.page.text.muted
Type declaration
colors.page.text.muted.value
colors.cta
Type declaration
colors.cta.primary
Type declaration
colors.cta.primary.bg
Type declaration
colors.cta.primary.bg.default
Type declaration
colors.cta.primary.bg.default.value
colors.cta.primary.bg.hover
Type declaration
colors.cta.primary.bg.hover.value
colors.cta.primary.bg.hover.modify
Type declaration
colors.cta.primary.bg.hover.modify.type
colors.cta.primary.bg.hover.modify.value
colors.cta.primary.border
Type declaration
colors.cta.primary.border.focus
Type declaration
colors.cta.primary.border.focus.value
colors.cta.primary.text
Type declaration
colors.cta.primary.text.default
Type declaration
colors.cta.primary.text.default.value
colors.cta.primary.text.hover
Type declaration
colors.cta.primary.text.hover.value
colors.cta.secondary
Type declaration
colors.cta.secondary.bg
Type declaration
colors.cta.secondary.bg.default
Type declaration
colors.cta.secondary.bg.default.value
colors.cta.secondary.bg.hover
Type declaration
colors.cta.secondary.bg.hover.value
colors.cta.secondary.bg.hover.modify
Type declaration
colors.cta.secondary.bg.hover.modify.type
colors.cta.secondary.bg.hover.modify.value
colors.cta.secondary.border
Type declaration
colors.cta.secondary.border.focus
Type declaration
colors.cta.secondary.border.focus.value
colors.cta.secondary.text
Type declaration
colors.cta.secondary.text.default
Type declaration
colors.cta.secondary.text.default.value
colors.cta.secondary.text.hover
Type declaration
colors.cta.secondary.text.hover.value
colors.link
Type declaration
colors.link.primary
Type declaration
colors.link.primary.text
Type declaration
colors.link.primary.text.default
Type declaration
colors.link.primary.text.default.value
colors.link.primary.text.hover
Type declaration
colors.link.primary.text.hover.value
colors.link.primary.text.hover.modify
Type declaration
colors.link.primary.text.hover.modify.type
colors.link.primary.text.hover.modify.value
colors.link.secondary
Type declaration
colors.link.secondary.text
Type declaration
colors.link.secondary.text.default
Type declaration
colors.link.secondary.text.default.value
colors.link.secondary.text.hover
Type declaration
colors.link.secondary.text.hover.value
colors.link.secondary.text.hover.modify
Type declaration
colors.link.secondary.text.hover.modify.type
colors.link.secondary.text.hover.modify.value
colors.input
Type declaration
colors.input.bg
Type declaration
colors.input.bg.default
Type declaration
colors.input.bg.default.value
colors.input.border
Type declaration
colors.input.border.default
Type declaration
colors.input.border.default.value
colors.input.border.focus
Type declaration
colors.input.border.focus.value
colors.input.border.error
Type declaration
colors.input.border.error.value
colors.input.border.success
Type declaration
colors.input.border.success.value
colors.input.label
Type declaration
colors.input.label.default
Type declaration
colors.input.label.default.value
colors.input.placeholder
Type declaration
colors.input.placeholder.default
Type declaration
colors.input.placeholder.default.value
colors.input.text
Type declaration
colors.input.text.default
Type declaration
colors.input.text.default.value
colors.input.errorText
Type declaration
colors.input.errorText.default
Type declaration
colors.input.errorText.default.value
colors.input.successText
Type declaration
colors.input.successText.default
Type declaration
colors.input.successText.default.value
colors.select
Type declaration
colors.select.label
Type declaration
colors.select.label.default
Type declaration
colors.select.label.default.value
colors.select.trigger
Type declaration
colors.select.trigger.bg
Type declaration
colors.select.trigger.bg.default
Type declaration
colors.select.trigger.bg.default.value
colors.select.trigger.border
Type declaration
colors.select.trigger.border.default
Type declaration
colors.select.trigger.border.default.value
colors.select.trigger.border.focus
Type declaration
colors.select.trigger.border.focus.value
colors.select.trigger.border.error
Type declaration
colors.select.trigger.border.error.value
colors.select.trigger.border.success
Type declaration
colors.select.trigger.border.success.value
colors.select.trigger.placeholder
Type declaration
colors.select.trigger.placeholder.default
Type declaration
colors.select.trigger.placeholder.default.value
colors.select.trigger.text
Type declaration
colors.select.trigger.text.default
Type declaration
colors.select.trigger.text.default.value
colors.select.trigger.errorText
Type declaration
colors.select.trigger.errorText.default
Type declaration
colors.select.trigger.errorText.default.value
colors.select.trigger.successText
Type declaration
colors.select.trigger.successText.default
Type declaration
colors.select.trigger.successText.default.value
colors.select.list
Type declaration
colors.select.list.bg
Type declaration
colors.select.list.bg.default
Type declaration
colors.select.list.bg.default.value
colors.select.list.border
Type declaration
colors.select.list.border.default
Type declaration
colors.select.list.border.default.value
colors.select.list.border.focus
Type declaration
colors.select.list.border.focus.value
colors.select.list.border.error
Type declaration
colors.select.list.border.error.value
colors.select.list.border.success
Type declaration
colors.select.list.border.success.value
colors.select.list.item
Type declaration
colors.select.list.item.bg
Type declaration
colors.select.list.item.bg.default
Type declaration
colors.select.list.item.bg.default.value
colors.select.list.item.bg.highlight
Type declaration
colors.select.list.item.bg.highlight.value
colors.select.list.item.text
Type declaration
colors.select.list.item.text.default
Type declaration
colors.select.list.item.text.default.value
colors.select.list.item.text.muted
Type declaration
colors.select.list.item.text.muted.value
colors.select.list.item.text.onHighlight
Type declaration
colors.select.list.item.text.onHighlight.value
colors.select.list.item.text.mutedOnHighlight
Type declaration
colors.select.list.item.text.mutedOnHighlight.value
colors.code
Type declaration
colors.code.bg
Type declaration
colors.code.bg.default
Type declaration
colors.code.bg.default.value
colors.code.border
Type declaration
colors.code.border.default
Type declaration
colors.code.border.default.value
colors.code.text
Type declaration
colors.code.text.default
Type declaration
colors.code.text.default.value
colors.bg
Type declaration
colors.bg.default
Type declaration
colors.bg.default.value
colors.bg.alternate
Type declaration
colors.bg.alternate.value
colors.bg.overlay
Type declaration
colors.bg.overlay.value
colors.bg.overlay.modify
Type declaration
colors.bg.overlay.modify.type
colors.bg.overlay.modify.value
colors.bg.skeleton
Type declaration
colors.bg.skeleton.value
colors.bg.skeleton.modify
Type declaration
colors.bg.skeleton.modify.type
colors.bg.skeleton.modify.value
colors.bg.primary
Type declaration
colors.bg.primary.value
colors.bg.secondary
Type declaration
colors.bg.secondary.value
colors.fg
Type declaration
colors.fg.default
Type declaration
colors.fg.default.value
colors.fg.muted
Type declaration
colors.fg.muted.value
colors.fg.primary
Type declaration
colors.fg.primary.value
colors.fg.onPrimary
Type declaration
colors.fg.onPrimary.value
colors.fg.onSecondary
Type declaration
colors.fg.onSecondary.value
colors.fg.positive
Type declaration
colors.fg.positive.value
colors.fg.negative
Type declaration
colors.fg.negative.value
colors.fg.warning
Type declaration
colors.fg.warning.value
colors.line
Type declaration
colors.line.default
Type declaration
colors.line.default.value
colors.line.heavy
Type declaration
colors.line.heavy.value
colors.line.primary
Type declaration
colors.line.primary.value
colors.line.positive
Type declaration
colors.line.positive.value
colors.line.negative
Type declaration
colors.line.negative.value
font
Type declaration
font.family
Type declaration
font.family.mono
Type declaration
font.family.mono.value
font.family.sans
Type declaration
font.family.sans.value
font.size
Type declaration
font.size.base
Type declaration
font.size.base.value
cssVariables
--cdp-web-
).