Introduction to Xenon-Designs
Xenon-designs is open source designing and styling framework, which helps developers can create conventional styles and components. It has pre-defined classes , fonts , icons and typographies which will ease the productions of web apps.
Xenon-Designs helps to make quick and fast designing and developing styles for your apps.
Installation Guide
To use Xenon-designs in your web apps , copy the following link and paste it in <head> tag of your main HTML file.
Icons
We are using google icons. Use below link to access the google icons. Click here for more icons.
Colors
Xenon-Designs comes with pre-defined color, which can be used directly and indirectly in designs.
We can use these colors for background of elements or on text-colors. Varients of the colors can be used to deplay various things.
Colors
Background Color
We can give background color to any division or section of the code with help of classes which is name like colorname-bg-color. For example, for Primary Color as background color , you can give class like primary-bg-color.
Typography
Documenation and examples for Xenon-Designs , which included typography , settinngs, heading, text, fonts and icons.
Headings
All HTML heading h1 to h2.
This is heading text - h1
This is heading text -h2
This is heading text -h3
This is heading text -h4
This is heading text -h5
This is heading text -h6
Titles
Three type of title we have title-sm, title-md & title-lg. All of these also have default class title
Fonts
In our Library, mostly we have used two fonts Roboto and Poppins.
Subtitle
Subtitle is a text which has second presedence in anything. We have class subtitle to make any text subtitle.
Centered Text
Centered text works with respect to its parent element.
Small Text
Small text is a text which is smaller than regular text
Inline text Utilities
Inline text utilities have highlighted text, deleted text, underlined text, italic text, strong text.
You can use the mark tag to highlight text.
This line of text is meant to be treated as deleted text.
This line of text will render as underlined
This line rendered as bold text.
This line rendered as italicized text.
Color Text
We have predefined text colors which can we added through any text with the help of classes.
The structure of that class is like colorname-text.
Avatar
Avatars are user profile pictures, usually found in circular shapes. It gives recognisable idetity to the users, objects, spaces or repositiory.
Profile Avatar
Profile Avatars can be created using the class
avatar, inside the
Sized Avatar
Sized Avatar have total four types of sizes. xs, sm, md and lg .
It can be used by assigning avatar-sm, avatar-md, avatar-xs, avatar-lg classes to img tag.
Alerts
An alert displays a short, important message in a way that attracts the user's attention without interrupting the user's task.
Alerts
Total Four types of alert with class are available primary-alert,error-alert, succes-alert & warning-alert.
Alerts can be assigned by useing four type of classes on div elemt. Those type of classes are, primary-alert, error-alert, warning-alert, success-alert.
Badges
Badges are circled element on top-right or bottom-right corner of any element. They shows notification status, online/offline status and many other use cases.
Badge with icons
In div element, by specifying one icon and other one as span element with classes badge , badge-round we can create a badge with icon.
Normal badge element with class badge will create badge with curved corners.
Rounded badge need a class badge-round along with class badge.
Badge with Text
As above , Text will also have badge which shows a status and numbers on it.
Badge with avatar
Badges on avatar shows status as online or offline of the user.
You can change the color of badge depend on user's status.
Cards
Cards are basic entity of any web application. They are used on social media apps, e-commerce apps and anything where you have to group a single type of content.
Cards display content and actions on individual topics.Cards have images, texts, buttons, icons placed in perticular heirarchy, which signifies a meaning.
Card structure
Our Card have four parts card-header, card-media, card-content, card-footer.
card-header
card-media
card-content
card-footer
Basic Card
This is Basic card having title, subtitle, ratings, price on it.
Card with header
This card with have card-header.
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Price :Card with text Overlay
To add overlay to entire card , add extra div at the end of the card which has a class overlay-content, which has overlay-text. Overlay-content has been given positions which set on the card after hovering on it.
Card with Dismiss
This card will have an icon at top-right corner of the card. We need to add on extra div at the end of the card which has a class card-dismiss.
Card with badges
We have seen badges component but for card we will be using different types of badges. Here, we will have one extra div where class will be card-badge, in which we can give text or icons.
Text-only card
This card only have content without images
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil quas velit ratione aliquid reprehenderit, modi mollitia libero dolores.
Horizontal card
This card has different semantic and structure compare to other cards.
It has a class called card-horizontal and its structure is also different, because it has card-horizontal-top which shows content part of a card.
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Price :Images
Images are the important aspects of any website. HTML provides us img tag with help of that we can put images on web page.
Responsive Image
Responsive Image is a image which will have width and height inherited from its parents element.Responsive Images are used to dsiplay Images on websites, which are screen responsive.
Rounded Image
Round Images are circular images with border-radius 50% and its width and height is inherited from its parents.
Inputs
Inputs are most important part of any website. These input components is a way for users to communicate with website. Inputs are used to take informations from users and then we can process on that inputs or store it in database.
Label Inputs
Labeled inputs fields are input field which content label at top of it. These input field can be customised to show error or success messages.
Disabled Inputs
Disabled inputs are element where you want user to be restricted at some fileds.
Textarea
The textarea tag defines a multi-line text input control.
Check box
The defines a checkbox. The checkbox is shown as a square box that is ticked (checked) when activated. Checkboxes are used to let a user select one or more options of a limited number of choices.
Radio Buttons
The defines a radio button. Radio buttons are normally presented in radio groups (a collection of radio buttons describing a set of related options). Only one radio button in a group can be selected at the same time.
Form
Form is an important input component which is used in validation & authentication. It is also used in communication with server and database.
We have class form-group on form element. Also one span tag at end of the form where we can show our validation error which have a class of validation-error.
Toast
Toast display messages related to an interaction happened between user and the website. They usually stay on the screen for 2-3 seconds and then disappear.Toast can be used to show success messages, warnings or errors.
Toast- An example
Click on following button to see the toast which is fixed at bottom left corner of the screen.
We required to add toast class whith class hidden on it. So, that it will be hidden at initial state.
CSS code
Javascript code
Lists
Lists are continuous, vertical indexes of text or images. They are composed of items containing primary and supplemental actions, which are represented by icons and text.
Simple List
Simple List shows items contained at one positions.
We have two classes for lists, one is parent class which is given to < ul > tag which list-group and another class if for items which is list-item-group on < li > tag.
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Porta ac consectetur ac
- Vestibulum at eros
Notification List
-
You have new Notification
-
You have new Notification
-
You have new Notification
-
You have new Notification
Rating
Ratings provide insight regarding others' opinions and experiences, and can allow the user to submit a rating of their own.
We are using material-icons for rating component. Depending on size of material icons ratings star' size can be adjusted.
Class rated goldify the rating component.
Normal Ratings
Small ratings
Modal
A modal (also called a modal window or lightbox) is a web page element that displays in front of and deactivates all other page content. To return to the main content, the user must engage with the modal by completing an action or by closing it.
Simple Modal
Grids
Use grids to create sections of your viewport. Using css grid you can create way more complex layouts than with tables.
Use grid-container class to apply grid layout and grid-item class on each individual item.
Grid 3-Columns
Use class grid-cols-3
Grid 2-Columns
Use class grid-cols-2
Grid 3-Rows
Use class grid-row-3
Grid 2-rows
Use class grid-rows-2
Slider
<input /> elements of type range let the user specify a numeric value which must be no less than a given value, and no more than another given value. The precise value, however, is not considered important. This is typically represented using a slider or dial control rather than a text entry box like the number input type.