From 4719bf3d22ce98ccd8e2fc7c181da027e91a5289 Mon Sep 17 00:00:00 2001 From: PinsaraPerera <1pawanpinsara@gmail.com> Date: Tue, 17 Dec 2024 22:33:54 +0530 Subject: [PATCH 1/6] alert added --- pages/component/alerts.mdx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/component/alerts.mdx diff --git a/pages/component/alerts.mdx b/pages/component/alerts.mdx new file mode 100644 index 0000000..36f9fe2 --- /dev/null +++ b/pages/component/alerts.mdx @@ -0,0 +1,27 @@ +--- +title: Alert Design Guidelines +component: Alert +--- + +# Alerts + +Alerts provide feedback to users for important actions. + +## Variants + +- **Success**: Positive feedback. +- **Error**: Negative feedback. +- **Warning**: Cautionary feedback. + +## Code Example + +```jsx +
Success! Your action was completed.
+
Error! Something went wrong.
+
Warning! Proceed with caution.
+``` + +## Accessibility + +- Use `role="alert"` for dynamic alerts. +- Maintain color contrast for visibility. From eace65560d01e88cc043efbf169c958f693076db Mon Sep 17 00:00:00 2001 From: PinsaraPerera <1pawanpinsara@gmail.com> Date: Tue, 17 Dec 2024 22:34:17 +0530 Subject: [PATCH 2/6] button and card added --- pages/component/button.mdx | 27 +++++++++++++++++++++++++++ pages/component/card.mdx | 30 ++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 pages/component/button.mdx create mode 100644 pages/component/card.mdx diff --git a/pages/component/button.mdx b/pages/component/button.mdx new file mode 100644 index 0000000..50b2525 --- /dev/null +++ b/pages/component/button.mdx @@ -0,0 +1,27 @@ +--- +title: Button Design Guidelines +component: Button +--- + +# Button Design + +Buttons are interactive elements that allow users to perform actions. Here's how you should design buttons in our system. + +## Variants + +- **Primary Button**: Used for main actions. +- **Secondary Button**: Used for less prominent actions. +- **Disabled Button**: Non-clickable buttons. + +## Code Example + +```jsx + + + +``` + +## Accessibility + +- Ensure buttons have a `tabindex` for keyboard navigation. +- Use `aria-label` when button content is non-textual (e.g., icons). diff --git a/pages/component/card.mdx b/pages/component/card.mdx new file mode 100644 index 0000000..097cde3 --- /dev/null +++ b/pages/component/card.mdx @@ -0,0 +1,30 @@ +--- +title: Card Design Guidelines +component: Card +--- + +# Cards + +Cards are containers that group related information. + +## Usage + +- **Informational Cards**: Display textual data. +- **Image Cards**: Combine text with visuals. + +## Code Example + +```jsx +
+ Card Image +
+

Card Title

+

Card description goes here.

+
+
+``` + +## Accessibility + +- Use `alt` attributes for images. +- Ensure focus states for interactive cards. From b03ac1f2910e676ad01617a4a21fd2352692f657 Mon Sep 17 00:00:00 2001 From: PinsaraPerera <1pawanpinsara@gmail.com> Date: Tue, 17 Dec 2024 22:35:10 +0530 Subject: [PATCH 3/6] added mdx's --- pages/component/form-inputs.mdx | 32 ++++++++++++++++++++++++++++++++ pages/component/modal.mdx | 31 +++++++++++++++++++++++++++++++ pages/component/typography.mdx | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 pages/component/form-inputs.mdx create mode 100644 pages/component/modal.mdx create mode 100644 pages/component/typography.mdx diff --git a/pages/component/form-inputs.mdx b/pages/component/form-inputs.mdx new file mode 100644 index 0000000..ccee523 --- /dev/null +++ b/pages/component/form-inputs.mdx @@ -0,0 +1,32 @@ +--- +title: Form Input Guidelines +component: Form Input +--- + +# Form Inputs + +Forms allow users to input and submit information. + +## Input Types + +- **Text Input** +- **Password Input** +- **Dropdowns** +- **Radio Buttons** +- **Checkboxes** + +## Code Example + +```jsx + + + + +``` + +## Accessibility + +- Use `