Customization
You must add !important
add the end of each file so that your styles take a higher precedence then ours.
Check out the example below.
Custom class names
You can customize / white-label the exported Form component using these specific class names
1. df-sdk-create-btn
df-sdk-create-btn
Add CSS styles like this:
src/views/Farm.css
And import them into component page like this:
src/views/Farm.tsx
Result:
Similar to this example you can style other buttons with classes like:
2. df-sdk-next-btn
df-sdk-next-btn
3. df-sdk-previous-btn
df-sdk-previous-btn
4. df-sdk-cancel-btn
df-sdk-cancel-btn
5. df-sdk-confirm-create-btn
df-sdk-confirm-create-btn
6. df-sdk-form-container
df-sdk-form-container
src/views/Farm.css
7. df-sdk-card-container
df-sdk-card-container
You can customize / white-label the exported Button component using this class.
1. df-sdk-single-btn
df-sdk-single-btn
src/views/Farm.css
src/views/Farm.tsx
Custom Gradients
Both Form as well as Button components accept a prop customGradient : string
to customize the gradient styles present throughout the component
Eg:
src/views/Farm.tsx
Last updated