VU CUSTOM
Developer Docs
Developer Docs
  • VU OS Admin API Overview
  • Account Management
    • Overview
    • Create a sold_to_account
    • Create a ship_to_account
    • Batch update sold_to_account
    • Batch update ship_to_account
    • Get a list of sold_to_accounts
    • Get a list of ship_to_accounts
    • Delete a sold_to_account
    • Delete a ship_to_account
  • Orders
    • Overview
    • Create an order
    • Get an order
    • Get a list of orders
    • Update an order
    • Delete an order
    • Add tags to an order
    • Add tags to many orders
    • Delete tags from an order
    • Delete tags from many orders
  • Products
    • Overview
    • Create a product
    • Get a list of products
    • Get a specific product
    • Delete a product
  • Recipes
    • Overview
    • Retrieving Recipes
  • Fulfillments
    • Overview
    • Create a fulfillment
    • Retrieve a fulfillment
    • Retrieve a list of fulfillments
  • Order Lines
    • Overview
    • Add tags to an order line
    • Retrieve a list of orderlines
    • Retrieve a specific order line
    • Delete tags from an order line
    • Update a specific order line
  • Integration
    • Integrate the Customizer with Your Frontend
    • Understanding Recipe IDs in VU Custom
    • Styling the Customizer
    • Test the Customizer
    • Webhooks
Powered by GitBook
On this page
  • Implementation Steps
  • Styling Guidelines
  • Development Tools
  • Conclusion
  1. Integration

Styling the Customizer

This guide explains how to customize the appearance of the VU Custom Customizer to match your Shopify theme. Follow these steps to implement custom styling while maintaining the Customizer's core functionality.

Implementation Steps

1. Create a Custom Styles File

  1. Navigate to your Shopify theme editor.

  2. Create a new snippet named vu-custom-styles.liquid.

  3. Insert the following base structure into the file:

{% stylesheet %}
  #jtbconfigurator {
    /* Base Customizer styles */
    font-family: your-preferred-font, sans-serif;
    color: #333333;
  }

  #jtbconfigurator .jtbc-menu-wrapper .jtbc-menu-container {
    background: #f5f5f5;
    border: 1px solid #dddddd;
  }

  #jtbconfigurator .jtbc-menu-element {
    margin-bottom: 1rem;
  }
{% endstylesheet %}

2. Include Custom Styles in Product Template

Add the following code to your product.liquid file, placing it directly before the Customizer container:

{% if product.tags contains "customizable" %}
  {% render 'vu-custom-styles' %}
  <div id="jtbconfigurator"></div>
  <!-- Customizer initialization script -->
{% endif %}

Styling Guidelines

Best Practices

  1. Match your theme's design system

    • Use consistent typography

    • Maintain your brand's color palette

    • Apply uniform spacing patterns

  2. Ensure responsive design

    • Test styles across all device sizes

    • Verify functionality on mobile devices

    • Maintain usability at all breakpoints

  3. Preserve core functionality

    • Avoid modifying critical interface elements

    • Maintain clickable areas and interactive components

    • Ensure proper contrast for text elements

Advanced Customization Example

Use this example as a reference for implementing sophisticated styling:

{% stylesheet %}
  #jtbconfigurator {
    /* Container styling */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333333;
    max-width: 1200px;
    margin: 0 auto;
  }

  #jtbconfigurator .jtbc-menu-wrapper .jtbc-menu-container {
    /* Menu container styling */
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
  }

  #jtbconfigurator .jtbc-menu-element__title {
    /* Element title styling */
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 0.5rem;
  }

  #jtbconfigurator .jtbc-button {
    /* Button styling */
    background-color: #4CAF50;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #jtbconfigurator .jtbc-button:hover {
    background-color: #45a049;
  }
{% endstylesheet %}

Development Tools

  1. Use browser developer tools to:

    • Inspect Customizer elements

    • Identify correct CSS selectors

    • Test style changes in real-time

  2. Validate styling across browsers:

    • Chrome

    • Firefox

    • Safari

    • Edge

Conclusion

Successful implementation of custom styles requires attention to three critical areas:

  1. Proper CSS implementation in your Shopify theme

  2. Comprehensive cross-device testing

  3. Maintenance of core Customizer functionality

Consult the VU Custom technical support team for implementation support or advanced customization needs.

PreviousUnderstanding Recipe IDs in VU CustomNextTest the Customizer

Last updated 2 months ago