To use this simply include the below code to your project.
<link rel="stylesheet" href="https://ux.visualdomain.com.au/library.min.css" />
Note: This is for background style.
Sample text with color class #0d2b36 - navy
Sample text with color class #03aee1 - blue
Sample text with color class #00c5ff - light blue
Sample text with color class #ff3333 - red
Sample text with color class #ff8000 - orange
Sample text with color class #339900 - green
Sample text with color class #333333 - black
Note: This is for text color style.
Note: This is for border-color style
Note: This is for border-width style.
Border .vd-border-{color} have default
border width of 3px (browser default).
If we need to apply
border to specific direction, we need to use the class for that
specific direction in combination with
.vd-border-width-0
Note: This is for border-radius style.
.vd-box-shadow
This is the sample of body text (<p>). Regular, 16px,
line-height - 26px.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla
iaculis diam sit amet risus vehicula, mollis lacinia neque
euismod. Sed at mollis magna. Sed dignissim sollicitudin nibh, at
facilisis est posuere vitae. Integer congue dui vulputate
fermentum molestie. Donec cursus hendrerit eros nec pretium.
Maecenas consequat cursus ante, id egestas orci pulvinar et. Sed
ullamcorper arcu sit amet nibh finibus tristique.
Strong text
Small text
Extra small text
Left align text.
Center align text.
Right align text.
Justify align text.
Layouts is for padding and margin, sample below shows how much padding for each section is.
vd-logo-client-hub |
vd-logo-shield |
vd-logo-vms |
This is our new icon implementation. We converted svg images and use it as a font.
Please use iconography when possible as it is our preferred way to do icons.
<i class="vd-icon icon-name"></i>
Using with classes for font size and color
<i class="vd-icon icon-stopwatch vd-h1 vd-green vd-margin-right-small"></i>
<i class="vd-icon icon-stopwatch vd-h3 vd-red vd-margin-right-small"></i>
Inherits parent's font size and color
<button class="vd-margin-right-small vd-btn-medium vd-btn-white"> <i class="vd-icon icon-upload-cloud vd-margin-right-extra-small"></i> Upload </button>
<button class="vd-margin-right-small vd-btn-medium vd-btn-white" disabled> <i class="vd-icon icon-gift vd-margin-right-extra-small"></i> Upload </button>
<a class="vd-a"> <i class="vd-icon icon-gift" ></i> Promotion Link </a>
vd-icon-circle
<i class="vd-icon icon-plus vd-icon-circle vd-background-light-blue vd-white"></i>
vd-icon-circle + hover classes
<i class="vd-icon icon-pencil vd-icon-circle vd-hover-white vd-hover-background-light-blue"></i>
<i class="vd-icon icon-envelope vd-icon-circle vd-hover-background-lightest-grey vd-hover-black"> </i>
Available Icons:
icon-arrow-up-right-down-left
icon-arrow-up-to-line
icon-arrows-rotate
icon-ban
icon-bars
icon-bars-filter
icon-bars-sort
icon-bin
icon-binoculars
icon-book-read
icon-book
icon-box-archive
icon-buildings
icon-calendar-days
icon-camcorder
icon-captions
icon-caret-down-up
icon-caret-up-down
icon-chalkboard-user
icon-champagne-glasses
icon-chat
icon-check
icon-chevron-down
icon-chevron-left
icon-chevron-right
icon-chevron-up
icon-circle-chevron-down
icon-circle-chevron-left
icon-circle-chevron-right
icon-circle-chevron-up
icon-circle-info
icon-circle-pause
icon-circle-question
icon-circle-user
icon-circle
icon-clock-rotate-left
icon-clock
icon-compare
icon-copy
icon-credits
icon-doc
icon-download-cloud
icon-download-file
icon-download-storage
icon-ellipsis-vertical
icon-embed
icon-envelope-open-check-arrow-right
icon-envelope-open-dollar
icon-envelope-open
icon-envelope
icon-eye
icon-file-link
icon-folder-grid
icon-folder-video
icon-gift
icon-hand-pointer
icon-hat-wizard
icon-house
icon-industry
icon-lightbulb
icon-link
icon-magnifying-glass
icon-message-envelope
icon-microchip-ai
icon-minus
icon-mobile-signal
icon-money-check-dollar-pen
icon-paint-brush
icon-paper-eye
icon-paper-lightbulb
icon-paper-paint-roller
icon-paper-paintbrush
icon-paper-pencil
icon-paper-person
icon-paper-phone
icon-paper-pin
icon-paper-play
icon-paper-quote-right
icon-paper-video
icon-paper-windows
icon-paperclip
icon-pencil-solid
icon-pencil-to-square
icon-pencil
icon-phone-volume
icon-photo-film
icon-play-rotate-right
icon-plus
icon-presentation-screen
icon-profile
icon-rabbit-running
icon-rearrange
icon-rotate-left
icon-screencast
icon-share
icon-shield-user-circle
icon-shirt
icon-sparkles
icon-square
icon-square-caret-right-folders
icon-square-poll-vertical
icon-square-user-between-lines
icon-stopwatch
icon-tag
icon-tags
icon-thumbs-up
icon-thumbtack
icon-thumbtack-outline
icon-toggle-off
icon-toggle-on
icon-triangle-exclamation
icon-tv
icon-upload-cloud
icon-user-gear
icon-user-tag
icon-volume-slash
icon-volume
icon-xmark
Red Dot
This red-dot position will follow depending on the padding top of its parent. Also, make sure you set position relative on the parent class.
Chat
<p class="vd-position-relative vd-padding-top-10 vd-red-dot">Chat</p>
Note: To use this with an icon, you need to assign it on the parent div of that icon
<div class="vd-position-relative vd-padding-top-10 vd-red-dot"><div class="vd-icon-profile"></div></div>
Icons Picture
By default below icons set at width 40px and height 40px. You will need to overwrite the width and height in your project to resize it.
Sample icon:
<div class="vd-icon-profile"></div>
Icons with hover:
vd-icon-arrow-down-grey-black |
vd-icon-arrow-down-grey-blue |
vd-icon-arrow-left-grey-black |
vd-icon-arrow-left-grey-white |
vd-icon-arrow-right-grey-black |
vd-icon-arrow-right-grey-white |
vd-icon-arrow-up-grey-black |
vd-icon-arrow-up-grey-blue |
vd-icon-call |
vd-icon-chat |
vd-icon-close |
vd-icon-file |
vd-icon-home |
vd-icon-link |
vd-icon-mail |
vd-icon-mobile |
vd-icon-play |
vd-icon-profile |
vd-icon-share |
vd-icon-tick |
vd-icon-tooltip |
vd-icon-plus |
vd-icon-envelope |
vd-icon-pencil-circle |
vd-icon-calendar |
vd-icon-doc |
vd-icon-bin |
vd-icon-close-circle |
vd-icon-tick-circle |
vd-icon-plus-circle |
vd-icon-clock |
vd-icon-email-forward |
vd-icon-file-link |
vd-icon-replay |
vd-icon-archive |
vd-icon-paper-plane |
vd-icon-select-all |
vd-icon-prohibit |
vd-icon-three-dot |
vd-icon-health-circle |
vd-icon-heart |
vd-icon-list-view-grey-circle |
vd-icon-thumbnail-view-grey-circle |
vd-icon-pencil-grey-circle |
vd-icon-three-dots-circle |
vd-icon-star |
vd-icon-star-circle |
vd-icon-pause-circle-hover |
vd-icon-pause-red-dot-circle-hover |
Icons without hover:
vd-icon-info-orange |
vd-icon-promotion |
vd-icon-notification |
vd-icon-rebook |
vd-icon-pencil-blue |
vd-icon-pencil-grey |
vd-icon-minus-black |
vd-icon-plus-black |
vd-icon-preprod-location |
vd-icon-preprod-location-white |
vd-icon-preprod-pencil |
vd-icon-preprod-pencil-white |
vd-icon-preprod-quote |
vd-icon-preprod-quote-white |
vd-icon-preprod-shoot |
vd-icon-preprod-shoot-white |
vd-icon-preprod-talent |
vd-icon-preprod-talent-white |
vd-icon-preprod-call |
vd-icon-preprod-call-white |
vd-icon-preprod-board |
vd-icon-preprod-board-white |
vd-icon-preprod-brief |
vd-icon-preprod-brief-white |
vd-icon-preprod-concept |
vd-icon-preprod-concept-white |
vd-icon-preprod-frames |
vd-icon-preprod-frames-white |
vd-icon-preprod-treatment |
vd-icon-preprod-treatment-white |
vd-icon-switch-blue |
vd-icon-switch-grey |
vd-icon-tick-round |
vd-icon-close-round |
vd-icon-plus-round |
vd-icon-plus-round-blue |
vd-icon-close-red |
vd-icon-close-white |
vd-icon-tick-green |
vd-icon-upload |
vd-icon-credits |
vd-icon-credits-blue |
vd-icon-light-bulb |
vd-icon-file-audio |
vd-icon-file-doc |
vd-icon-file-excel |
vd-icon-file-image |
vd-icon-file-pdf |
vd-icon-file-video |
vd-icon-file-zip |
vd-icon-file-unknown |
vd-icon-book-read-blue |
vd-icon-book-read-grey |
vd-icon-info-circle-blue |
vd-icon-info-circle-grey |
vd-icon-user-circle-blue |
vd-icon-user-circle-grey |
vd-icon-user-circle-white |
vd-icon-comment-round-blue |
vd-icon-chair-office |
vd-icon-copyright |
vd-icon-search |
vd-icon-building |
vd-icon-building-blue |
vd-icon-product-animation |
vd-icon-product-edit |
vd-icon-product-social |
vd-icon-product-upload |
vd-icon-link-default |
vd-icon-projects |
vd-icon-projects-white |
vd-icon-comment-smile |
vd-icon-calendar-grey |
vd-icon-calendar-white |
vd-icon-mail-grey |
vd-icon-folder-open |
vd-icon-media |
vd-icon-media-white |
vd-icon-camcorder |
vd-icon-camcorder-white |
vd-icon-camcorder-black |
vd-icon-camcorder-violet |
vd-icon-tasks-file |
vd-icon-tasks-bullet |
vd-icon-credits-grey |
vd-icon-live-streaming |
vd-icon-live-streaming-white |
vd-icon-personalized |
vd-icon-personalized-white |
vd-icon-pointer |
vd-icon-pointer-white |
vd-icon-price-tag |
vd-icon-price-tag-white |
vd-icon-projector-screen |
vd-icon-projector-screen-white |
vd-icon-rabbit |
vd-icon-rabbit-white |
vd-icon-real-estate |
vd-icon-real-estate-white |
vd-icon-series |
vd-icon-series-white |
vd-icon-shirt |
vd-icon-shirt-white |
vd-icon-thumbs-up |
vd-icon-thumbs-up-white |
vd-icon-training-hr |
vd-icon-training-hr-white |
vd-icon-tv |
vd-icon-tv-white |
vd-icon-camera-blue |
vd-icon-clipboard |
vd-icon-pin-grey |
vd-icon-pin-blue |
vd-icon-eye |
vd-icon-credit-card-blue |
vd-icon-cash-bag-green |
vd-icon-clock-grey |
vd-icon-clock-white |
vd-icon-glass |
vd-icon-glass-white |
vd-icon-health |
vd-icon-expand |
vd-icon-list-view-blue |
vd-icon-thumbnail-view-blue |
vd-icon-video-private |
vd-icon-video-public |
vd-icon-padlock |
vd-icon-heart-red |
vd-icon-heart-white |
vd-icon-heart-transparent-grey-border |
vd-icon-heart-red-circle |
vd-icon-arrow-down-white |
vd-icon-copy-white |
vd-icon-copy-transparent-grey-border |
vd-icon-pencil-white |
vd-icon-pencil-transparent-grey-border |
vd-icon-three-dots-white |
vd-icon-three-dots-transparent-grey-border |
vd-icon-eye-white |
vd-icon-eye-transparent-grey-border |
vd-icon-filter |
vd-icon-filter-white |
vd-icon-star-white |
vd-icon-star-yellow |
vd-icon-star-blue |
vd-icon-star-grey |
vd-icon-download |
vd-icon-pause-circle |
vd-icon-stop |
vd-icon-bamboo-hr |
vd-icon-google-calendar |
For now we only support input field, select field, and text area. For custom specific plugin like multi-select, search-select, we will use plugin on project specific base.
Note: We want to keep this same structure when implementing form element.
<div class="vd-field"> // wrapper with class .vd-field
<label>Default</label> // label element
<input type="text" placeholder="placeholder"> // field
</div>
Input field sample:
<div class="vd-field"> <label>Default</label> <input type="text" placeholder="Placeholder"> </div>
<div class="vd-field vd-required"> <label>Required</label> <input type="text" placeholder="Placeholder"> </div>
<div class="vd-field vd-input-valid"> <label>Valid</label> <input type="text" placeholder="Placeholder"> </div>
<div class="vd-field vd-input-error"> <label>Error</label> <input type="text" placeholder="Placeholder"> </div>
Select field sample:
Note: Currently there's no way to change text color when select field is empty. As a workaround, we use the required attribute and :invalid pseudo-class to make the text grey when empty is selected. Only do this when select is not inside form element with submit button.
<div class="vd-field"> <label>Default</label> <select required> <option value="">Empty<select> <option value="option1">Option 1<select> </select> </div>
<div class="vd-field vd-required"> <label>Required</label> <select required> <option value="">Empty<select> <option value="option1">Option 1<select> </select> </div>
<div class="vd-field vd-input-valid"> <label>Valid</label> <select required> <option value="">Empty<select> <option value="option1">Option 1<select> </select> </div>
<div class="vd-field vd-input-error"> <label>Error</label> <select required> <option value="">Empty<select> <option value="option1">Option 1<select> </select> </div>
Textarea sample:
|
|
|
|
<div class="vd-field"> <label>Default</label> <textarea placeholder="placeholder"></textarea> </div>
<div class="vd-field vd-required"> <label>Required</label> <textarea placeholder="placeholder"></textarea> </div>
<div class="vd-field vd-input-valid"> <label>Valid</label> <textarea placeholder="placeholder"></textarea> </div>
<div class="vd-field vd-input-error"> <label>Error</label> <textarea placeholder="placeholder"></textarea> </div>
Input
Requirements and usage
vd-required
vd-input-filled
vd-input-error
vd-input-valid
Normal State (.vd-input)
<div class="vd-input"> <input type="text"> <label>First Name</label> </div>
<div class="vd-input"> <input type="email"> <label>Email</label> </div>
<div class="vd-input"> <input type="tel"> <label>Tel</label> </div>
<div class="vd-input"> <input type="number"> <label>Number</label> </div>
<div class="vd-input"> <input type="url"> <label>URL</label> </div>
Normal State Required (.vd-required)
Note: Please use this vd-required class for input text only. For icons or text, use .vd-red-dot above.
<div class="vd-input vd-required"> <input type="text"> <label>First Name</label> </div>
<div class="vd-input vd-required"> <input type="password"> <label>Password</label> </div>
Filled State (.vd-input-filled)
<div class="vd-input vd-input-filled"> <input type="text" value="John Doe"> <label>First Name</label> </div>
<div class="vd-input vd-input-filled"> <input type="password" value="Secret Value"> <label>Password</label> </div>
Error State (.vd-input-error)
<div class="vd-input vd-input-filled vd-input-error"> <input type="text" value="Wrong Name"> <label>Please use proper name</label> </div>
Valid State (.vd-input-valid)
<div class="vd-input vd-input-filled vd-input-valid"> <input type="text" value="Correct Name"> <label>First Name</label> </div>