With so many ways to build with and use Cornerstone components, visual tests help ensure consistency and prevent broken styles from leaking into production.
These tests can come in handy when creating or customizing your own theme. Look through each test case to make sure that custom styles in your theme cover all of the attributes, utilities, and built-in styles Cornerstone offers.
NativeColorSizeAlignmentHarmony
Alignment
Alignment tests reveal the top boundary, vertical center, and bottom boundary of components. These help to evaluate how well components align with one another when arranged horizontally.
Color tests ensure that both the variant attribute and .cs-[variant] classes have identical results for components that support them. Developers should be able to use both of these interchangeably to give the component the intended semantic color.
Badge
variant=""
.cs-[variant]
brand
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
neutral
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
success
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
warning
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
danger
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
Button
variant=""
.cs-[variant]
brand
AccentFilled-OutlinedFilledOutlinedPlain
AccentFilled-OutlinedFilledOutlinedPlain
neutral
AccentFilled-OutlinedFilledOutlinedPlain
AccentFilled-OutlinedFilledOutlinedPlain
success
AccentFilled-OutlinedFilledOutlinedPlain
AccentFilled-OutlinedFilledOutlinedPlain
warning
AccentFilled-OutlinedFilledOutlinedPlain
AccentFilled-OutlinedFilledOutlinedPlain
danger
AccentFilled-OutlinedFilledOutlinedPlain
AccentFilled-OutlinedFilledOutlinedPlain
Callout
variant=""
.cs-[variant]
brand
Accent
Filled-Outlined
Filled
Outlined
Plain
Accent
Filled-Outlined
Filled
Outlined
Plain
neutral
Accent
Filled-Outlined
Filled
Outlined
Plain
Accent
Filled-Outlined
Filled
Outlined
Plain
success
Accent
Filled-Outlined
Filled
Outlined
Plain
Accent
Filled-Outlined
Filled
Outlined
Plain
warning
Accent
Filled-Outlined
Filled
Outlined
Plain
Accent
Filled-Outlined
Filled
Outlined
Plain
danger
Accent
Filled-Outlined
Filled
Outlined
Plain
Accent
Filled-Outlined
Filled
Outlined
Plain
Tag
variant=""
.cs-[variant]
brand
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
neutral
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
success
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
warning
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
danger
AccentFilled-OutlinedFilledOutlined
AccentFilled-OutlinedFilledOutlined
Harmony
Harmony tests show how related components look together. These can help validate design choices or reveal where design intervention is needed to get a consistent, harmonious look and feel.
Native style tests ensure that supported native elements and utilities look the same as their Cornerstone component counterparts. Native elements may also support the same appearance, color, and size utilities as components.
Button
<cs-button>
<button>
default
Button
accent
BrandNeutralSuccessWarningDanger
filled-outlined
BrandNeutralSuccessWarningDanger
filled
BrandNeutralSuccessWarningDanger
outlined
BrandNeutralSuccessWarningDanger
plain
BrandNeutralSuccessWarningDanger
s
Small
m
Medium
l
Large
pill
Pill
Button Group
<cs-button>
<button>
default
LeftCenterRight
filled
LeftCenterRight
outlined
LeftCenterRight
pill
LeftCenterRight
vertical
TopMiddleBottom
Checkbox
<cs-checkbox>
<input type="checkbox">
default
Checkbox
checked
Checkbox
Color Picker
<cs-color-picker>
<input type="color">
default
Details
<cs-details>
<details>
default
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
dir="rtl"
استخدام طريقة لوريم إيبسوم لأنها تعطي توزيعاَ طبيعياَ -إلى حد ما- للأحرف عوضاً عن
تبديلني
استخدام طريقة لوريم إيبسوم لأنها تعطي توزيعاَ طبيعياَ -إلى حد ما- للأحرف عوضاً عن
Input
<cs-input>
<input>
default
type="password"
type="date"
type="time"
filled
s
m
l
Progress Bar
<cs-progress-bar>
<progress>
default
Radio
<cs-radio>
<input type="radio">
default
Radio
checked
Radio
Select
<cs-select>
<select>
default
Option
filled
Option
s
Option
m
Option
l
Option
Slider
<cs-slider>
<input type="range">
default
Textarea
<cs-textarea>
<textarea>
default
filled
s
m
l
Size
Size tests ensure that both the size attribute and .cs-size-[xs|s|m|l|xl] classes have identical results for components that support them. Developers should be able to use both of these interchangeably on components to get the intended size.