diff --git a/app/components-preview/page.tsx b/app/components-preview/page.tsx index ac3f7ae..4d8e60c 100644 --- a/app/components-preview/page.tsx +++ b/app/components-preview/page.tsx @@ -37,6 +37,197 @@ export default function ComponentsPreview() {

+ {/* Button Section */} +
+

+ Button Component +

+ +
+
+
+

+ All Variants +

+
+ + + + + + + + +
+
+ +
+

+ All Sizes - Danger Variant +

+
+ + + + + +
+
+ +
+

+ All Sizes - Danger Inverse Variant +

+
+ + + + + +
+
+ +
+

+ All Sizes - Ghost Variant +

+
+ + + + + +
+
+ +
+

+ All Sizes - Ghost Inverse Variant +

+
+ + + + + +
+
+ +
+

+ States - Danger Variant +

+
+ + +
+
+ +
+

+ States - Danger Inverse Variant +

+
+ + +
+
+ +
+

+ States - Ghost Variant +

+
+ + +
+
+ +
+

+ States - Ghost Inverse Variant +

+
+ + +
+
+
+
+
+ {/* Tooltip Section */}

@@ -46,19 +237,19 @@ export default function ComponentsPreview() {
- - - @@ -325,7 +516,7 @@ export default function ComponentsPreview() {
{/* Large button for md and lg breakpoints */}
-
{/* XLarge button for xl breakpoint */}
-
diff --git a/app/components/HomeHeader/HomeHeader.container.tsx b/app/components/HomeHeader/HomeHeader.container.tsx index dd21d02..4fb1e8f 100644 --- a/app/components/HomeHeader/HomeHeader.container.tsx +++ b/app/components/HomeHeader/HomeHeader.container.tsx @@ -150,7 +150,7 @@ const HomeHeaderContainer = memo(() => { return (
@@ -47,7 +47,7 @@ export function ModalFooterView({ {showNextButton && (
- {/* Outlined button for lg and xlg breakpoints */} + {/* Outline button for lg and xlg breakpoints */}
-
diff --git a/app/components/RuleStack/RuleStack.view.tsx b/app/components/RuleStack/RuleStack.view.tsx index 671385f..a735e46 100644 --- a/app/components/RuleStack/RuleStack.view.tsx +++ b/app/components/RuleStack/RuleStack.view.tsx @@ -82,7 +82,7 @@ export function RuleStackView({ {/* See all templates button */}
-
diff --git a/app/tailwind.css b/app/tailwind.css index 7642f27..7d7b680 100644 --- a/app/tailwind.css +++ b/app/tailwind.css @@ -662,7 +662,7 @@ --color-surface-default-brand-lavender: var(--color-lavender-lavender200); --color-surface-default-brand-lighter-accent: var(--color-yellow-yellow100); --color-surface-default-brand-lime: var(--color-lime-lime100); - --color-surface-default-brand-primary: var(--color-yellow-yellow100); + --color-surface-default-brand-primary: var(--color-yellow-yellow1000); --color-surface-default-brand-secondary: var(--color-yellow-yellow800); --color-surface-default-brand-royal: var(--color-royal-blue-royal-blue50); --color-surface-default-brand-rust: var(--color-rust-rust100); diff --git a/stories/Button.stories.js b/stories/Button.stories.js index cf525ab..efd0684 100644 --- a/stories/Button.stories.js +++ b/stories/Button.stories.js @@ -16,13 +16,14 @@ export default { variant: { control: { type: "select" }, options: [ - "default", - "secondary", - "primary", - "outlined", - "dark", - "inverse", + "filled", + "filled-inverse", + "outline", + "outline-inverse", "ghost", + "ghost-inverse", + "danger", + "danger-inverse", ], description: "The visual style variant of the button", }, @@ -58,27 +59,30 @@ export const Variants = { render: (_args) => (
- - - - - - + + +
), @@ -94,7 +98,7 @@ export const Variants = { export const Sizes = { args: { children: "Button", - variant: "default", + variant: "filled", }, render: (_args) => (
@@ -130,7 +134,7 @@ export const States = { args: { children: "Button", size: "large", - variant: "default", + variant: "filled", }, render: (_args) => (
@@ -156,116 +160,84 @@ export const AllVariants = { render: () => (
-

Default Variant

+

Filled Variant

- - - - - -
-
- -
-

Secondary Variant

-
- - - - -
-

Primary Variant

+

Filled Inverse Variant

- - - - -
-

Outlined Variant

+

Outline Variant

- - - - -
-

Dark Variant

+

Outline Inverse Variant

- - - - - -
-
- -
-

Inverse Variant

-
- - - - -
@@ -292,30 +264,96 @@ export const AllVariants = {
+
+

Ghost Inverse Variant

+
+ + + + + +
+
+ +
+

Danger Variant

+
+ + + + + +
+
+ +
+

Danger Inverse Variant

+
+ + + + + +
+
+

Disabled States

- - - - - - + + +
diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-chromium.png b/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-chromium.png index d57ec1f..5bdc92e 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-chromium.png and b/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-chromium.png differ diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-firefox.png b/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-firefox.png index f9048f7..30764b9 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-firefox.png and b/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-firefox.png differ diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-mobile.png b/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-mobile.png index 33e7bde..fefd8e5 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-mobile.png and b/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-mobile.png differ diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-webkit.png b/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-webkit.png index 28a6605..f47bdf5 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-webkit.png and b/tests/e2e/visual-regression.spec.ts-snapshots/blog-post-webkit.png differ diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-chromium.png b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-chromium.png index b1df06b..195bce9 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-chromium.png and b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-chromium.png differ diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-firefox.png b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-firefox.png index 0ba2e7b..163984c 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-firefox.png and b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-firefox.png differ diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-mobile.png b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-mobile.png index 206fef5..debd686 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-mobile.png and b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-mobile.png differ diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-webkit.png b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-webkit.png index c62b460..ddf608c 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-webkit.png and b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-full-webkit.png differ diff --git a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-viewport-mobile.png b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-viewport-mobile.png index ebb452d..bf75382 100644 Binary files a/tests/e2e/visual-regression.spec.ts-snapshots/homepage-viewport-mobile.png and b/tests/e2e/visual-regression.spec.ts-snapshots/homepage-viewport-mobile.png differ