@ztwoint/z-ui 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +2 -1
  2. package/dist/components/assets/icons/circle-check-filled.d.ts +6 -0
  3. package/dist/components/assets/icons/media-record.d.ts +6 -0
  4. package/dist/components/button/button.js +15 -15
  5. package/dist/components/button/button.stories.d.ts +9 -0
  6. package/dist/components/dialog/dialog.d.ts +12 -0
  7. package/dist/components/dialog/dialog.stories.d.ts +10 -0
  8. package/dist/components/stepper/stepper-item/stepper-item.d.ts +10 -0
  9. package/dist/components/stepper/stepper-item/stepper-item.stories.d.ts +11 -0
  10. package/dist/components/stepper/stepper.d.ts +17 -0
  11. package/dist/components/stepper/stepper.stories.d.ts +11 -0
  12. package/dist/css/config/colors/backgrounds.css +1 -1
  13. package/dist/css/config/colors/components/alert.css +1 -1
  14. package/dist/css/config/colors/components/button.css +5 -5
  15. package/dist/css/config/colors/components/tab.css +1 -1
  16. package/dist/css/config/colors/defaults.css +59 -35
  17. package/dist/css/config/colors/icons.css +2 -2
  18. package/dist/css/config/colors/overlay.css +1 -1
  19. package/dist/css/config/colors/shape.css +6 -6
  20. package/dist/css/config/colors/stroke.css +26 -10
  21. package/dist/css/config/colors/surfaces.css +7 -7
  22. package/dist/css/config/colors/text.css +86 -23
  23. package/dist/css/config/config.css +1 -1
  24. package/dist/css/styles/tailwind.css +1 -1
  25. package/dist/types/components/assets/icons/circle-check-filled.d.ts +6 -0
  26. package/dist/types/components/assets/icons/media-record.d.ts +6 -0
  27. package/dist/types/components/button/button.stories.d.ts +9 -0
  28. package/dist/types/components/dialog/dialog.d.ts +12 -0
  29. package/dist/types/components/dialog/dialog.stories.d.ts +10 -0
  30. package/dist/types/components/stepper/stepper-item/stepper-item.d.ts +10 -0
  31. package/dist/types/components/stepper/stepper-item/stepper-item.stories.d.ts +11 -0
  32. package/dist/types/components/stepper/stepper.d.ts +17 -0
  33. package/dist/types/components/stepper/stepper.stories.d.ts +11 -0
  34. package/package.json +2 -1
package/README.md CHANGED
@@ -19,6 +19,7 @@ npm install @ztwoint/z-ui
19
19
  # or
20
20
  yarn add @ztwoint/z-ui
21
21
  ```
22
+
22
23
  > Note: To use this package on a remote server, you need to set up an SSH key with access to this repository.
23
24
 
24
- This package will be published to npm registry later.
25
+ This package will be published to npm registry later.
@@ -0,0 +1,6 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ title?: string;
4
+ };
5
+ declare function CircleCheckFilled({ fill, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
6
+ export default CircleCheckFilled;
@@ -0,0 +1,6 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ title?: string;
4
+ };
5
+ declare function MediaRecord({ fill, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
6
+ export default MediaRecord;
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as x, Fragment as g } from "react/jsx-runtime";
2
2
  import { Slot as O } from "@radix-ui/react-slot";
3
3
  import { cva as z } from "class-variance-authority";
4
4
  import * as w from "react";
5
- import { cn as n } from "../../lib/utils.js";
5
+ import { cn as d } from "../../lib/utils.js";
6
6
  const N = z(
7
7
  "box-border h-7.5 leading-none-medium-sm flex items-center justify-center whitespace-nowrap rounded-lg select-none hover:cursor-pointer active:outline-none border-solid",
8
8
  {
@@ -13,10 +13,10 @@ const N = z(
13
13
  ghost: [""]
14
14
  },
15
15
  shade: {
16
- neutral: "button-primary-neutral-surface-default border-black text-inverted hover:button-primary-neutral-surface-hover active:button-primary-neutral-surface-pressed disabled:button-primary-neutral-surface-disabled disabled:text-inverted-disabled",
17
- brand: "button-primary-brand-surface-default border-(--color-accent-600) text-inverted hover:button-primary-brand-surface-hover active:button-primary-brand-surface-pressed disabled:button-primary-brand-surface-disabled disabled:text-inverted-disabled",
18
- danger: "button-primary-danger-surface-default border-(--color-rose-600) text-inverted hover:button-primary-danger-surface-hover active:button-primary-danger-surface-pressed disabled:button-primary-danger-surface-disabled disabled:text-inverted-disabled",
19
- neutralGhost: "text-default-primary active:text-default-disabled disabled:text-default-disabled"
16
+ neutral: "button-primary-neutral-surface-default border-black disabled:border-none text-inverted-primary hover:button-primary-neutral-surface-hover active:button-primary-neutral-surface-pressed disabled:button-primary-neutral-surface-disabled disabled:text-neutral-muted",
17
+ brand: "button-primary-brand-surface-default border-(--color-accent-600) text-inverted-primary hover:button-primary-brand-surface-hover active:button-primary-brand-surface-pressed disabled:button-primary-brand-surface-disabled disabled:text-neutral-muted",
18
+ danger: "button-primary-danger-surface-default border-(--color-red-600) text-inverted-primary hover:button-primary-danger-surface-hover active:button-primary-danger-surface-pressed disabled:button-primary-danger-surface-disabled disabled:text-neutral-muted",
19
+ neutralGhost: "text-neutral-primary hover:text-neutral-secondary active:text-neutral-muted disabled:text-neutral-muted"
20
20
  },
21
21
  size: {
22
22
  large: "gap-1",
@@ -72,24 +72,24 @@ const N = z(
72
72
  }
73
73
  ), k = w.forwardRef(
74
74
  ({
75
- className: u,
75
+ className: i,
76
76
  shade: c,
77
77
  size: b,
78
78
  variant: f,
79
79
  asChild: o = !1,
80
80
  leftIcon: a,
81
81
  rightIcon: t,
82
- label: p,
82
+ label: m,
83
83
  children: l,
84
- ...m
85
- }, v) => {
86
- const y = o ? O : "button", r = p || l, s = !r && !!(a || t), i = s ? a || t : null, h = n(
87
- N({ shade: c, size: b, variant: f, iconOnly: s, className: u })
88
- ), d = "w-3.5 h-3.5";
89
- return /* @__PURE__ */ e(y, { className: h, ref: v, ...m, children: o ? l : s ? i ? /* @__PURE__ */ e("span", { className: d, children: i }) : null : /* @__PURE__ */ x(g, { children: [
90
- a && /* @__PURE__ */ e("span", { className: n(d), children: a }),
84
+ ...p
85
+ }, y) => {
86
+ const v = o ? O : "button", r = m || l, n = !r && !!(a || t), u = n ? a || t : null, h = d(
87
+ N({ shade: c, size: b, variant: f, iconOnly: n, className: i })
88
+ ), s = "w-3.5 h-3.5";
89
+ return /* @__PURE__ */ e(v, { className: h, ref: y, ...p, children: o ? l : n ? u ? /* @__PURE__ */ e("span", { className: s, children: u }) : null : /* @__PURE__ */ x(g, { children: [
90
+ a && /* @__PURE__ */ e("span", { className: d(s), children: a }),
91
91
  r && /* @__PURE__ */ e("span", { children: r }),
92
- t && /* @__PURE__ */ e("span", { className: n(d), children: t })
92
+ t && /* @__PURE__ */ e("span", { className: d(s), children: t })
93
93
  ] }) });
94
94
  }
95
95
  );
@@ -14,6 +14,15 @@ export declare const Small: Story;
14
14
  export declare const DisabledFilled: Story;
15
15
  export declare const DisabledStroke: Story;
16
16
  export declare const DisabledGhost: Story;
17
+ export declare const DisabledFilledNeutral: Story;
18
+ export declare const DisabledFilledBrand: Story;
19
+ export declare const DisabledFilledDanger: Story;
20
+ export declare const DisabledStrokeNeutral: Story;
21
+ export declare const DisabledStrokeBrand: Story;
22
+ export declare const DisabledStrokeDanger: Story;
23
+ export declare const DisabledGhostNeutral: Story;
24
+ export declare const DisabledGhostBrand: Story;
25
+ export declare const DisabledGhostDanger: Story;
17
26
  export declare const WithLeftIcon: Story;
18
27
  export declare const WithRightIcon: Story;
19
28
  export declare const WithBothIcons: Story;
@@ -0,0 +1,12 @@
1
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
2
+ declare function Z2Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Z2DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Z2DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
+ declare function Z2DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
6
+ declare function Z2DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
7
+ declare function Z2DialogContent({ className, children, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {}): import("react/jsx-runtime").JSX.Element;
8
+ declare function Z2DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function Z2DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function Z2DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
11
+ declare function Z2DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
12
+ export { Z2Dialog, Z2DialogContent, Z2DialogDescription, Z2DialogFooter, Z2DialogHeader, Z2DialogOverlay, Z2DialogPortal, Z2DialogClose, Z2DialogTitle, Z2DialogTrigger, };
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Z2Dialog } from './dialog';
3
+ declare const meta: Meta<typeof Z2Dialog>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Z2Dialog>;
6
+ export declare const Default: Story;
7
+ export declare const WithLongDescription: Story;
8
+ export declare const CustomFooter: Story;
9
+ export declare const Fullscreen: Story;
10
+ export declare const CloseInHeader: Story;
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const z2StepperItemVariants: (props?: ({
4
+ state?: "disabled" | "active" | "completed" | null | undefined;
5
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
6
+ export interface Z2StepperItemProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof z2StepperItemVariants> {
7
+ label: string;
8
+ }
9
+ export declare const Z2StepperItem: React.ForwardRefExoticComponent<Z2StepperItemProps & React.RefAttributes<HTMLDivElement>>;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Z2StepperItem as StepperItem } from './stepper-item';
3
+ declare const meta: Meta<typeof StepperItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof StepperItem>;
6
+ export declare const WithLabelActive: Story;
7
+ export declare const WithLabelCompleted: Story;
8
+ export declare const WithLabelDisabled: Story;
9
+ export declare const WithoutLabelActive: Story;
10
+ export declare const WithoutLabelCompleted: Story;
11
+ export declare const WithoutLabelDisabled: Story;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export type StepperState = 'active' | 'completed' | 'disabled';
3
+ export type StepperItemType = {
4
+ id: string;
5
+ label: string;
6
+ state?: StepperState;
7
+ };
8
+ export type StepperHandle = {
9
+ handleNext: (label?: string) => void;
10
+ handlePrev: (label?: string) => void;
11
+ reset: () => void;
12
+ setStepState: (index: number, state: StepperState) => void;
13
+ };
14
+ declare const Z2Stepper: React.ForwardRefExoticComponent<{
15
+ items: StepperItemType[];
16
+ } & React.RefAttributes<StepperHandle>>;
17
+ export default Z2Stepper;
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Z2Stepper } from './stepper';
3
+ declare const meta: Meta<typeof Z2Stepper>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Z2Stepper>;
6
+ export declare const Default: Story;
7
+ export declare const WithState: Story;
8
+ export declare const AllCompleted: Story;
9
+ export declare const AllDisabled: Story;
10
+ export declare const CustomLabels: Story;
11
+ export declare const ImperativeApi: Story;
@@ -16,5 +16,5 @@
16
16
  }
17
17
 
18
18
  @utility bg-neutral-transparent {
19
- background-color: var(--color-alpha-white-00);
19
+ background-color: var(--color-alpha-two-00);
20
20
  }
@@ -1,6 +1,6 @@
1
1
  /* NEUTRAL */
2
2
  .c-alert-neutral-stroke {
3
- border-color: var(--color-alpha-white-50);
3
+ border-color: var(--color-alpha-two-50);
4
4
  }
5
5
 
6
6
  .c-alert-neutral-bg {
@@ -36,15 +36,15 @@
36
36
 
37
37
  /* Type : Filled Style : Danger */
38
38
  @utility button-primary-danger-surface-default {
39
- background-color: var(--color-rose-600);
39
+ background-color: var(--color-red-600);
40
40
  }
41
41
 
42
42
  @utility button-primary-danger-surface-hover {
43
- background-color: var(--color-rose-700);
43
+ background-color: var(--color-red-700);
44
44
  }
45
45
 
46
46
  @utility button-primary-danger-surface-pressed {
47
- background-color: var(--color-rose-500);
47
+ background-color: var(--color-red-500);
48
48
  }
49
49
 
50
50
  @utility button-primary-danger-surface-disabled {
@@ -82,12 +82,12 @@
82
82
  }
83
83
 
84
84
  @utility text-default-danger {
85
- color: var(--color-rose-600);
85
+ color: var(--color-red-600);
86
86
  }
87
87
 
88
88
  /* Shadow utility class */
89
89
  @utility shadow-default {
90
90
  box-shadow:
91
- 0px 1px 2px 0px var(--color-alpha-dark-50),
91
+ 0px 1px 2px 0px var(--color-alpha-one-50),
92
92
  0px 0px 0px 0.5px var(--color-neutral-150);
93
93
  }
@@ -57,4 +57,4 @@
57
57
  /* Hover state for icon */
58
58
  [data-slot='tabs-trigger']:hover .tab-icon {
59
59
  color: var(--color-neutral-950) !important;
60
- }
60
+ }
@@ -25,17 +25,17 @@
25
25
  --color-accent-900: #1e3a8a;
26
26
  --color-accent-950: #172554;
27
27
 
28
- --color-rose-50: #fef2f2;
29
- --color-rose-100: #fee2e2;
30
- --color-rose-200: #fecaca;
31
- --color-rose-300: #fca5a5;
32
- --color-rose-400: #f87171;
33
- --color-rose-500: #ef4444;
34
- --color-rose-600: #dc2626;
35
- --color-rose-700: #b91c1c;
36
- --color-rose-800: #991b1b;
37
- --color-rose-900: #7f1d1d;
38
- --color-rose-950: #450a0a;
28
+ --color-red-50: #fef2f2;
29
+ --color-red-100: #fee2e2;
30
+ --color-red-200: #fecaca;
31
+ --color-red-300: #fca5a5;
32
+ --color-red-400: #f87171;
33
+ --color-red-500: #ef4444;
34
+ --color-red-600: #dc2626;
35
+ --color-red-700: #b91c1c;
36
+ --color-red-800: #991b1b;
37
+ --color-red-900: #7f1d1d;
38
+ --color-red-950: #450a0a;
39
39
 
40
40
  --color-amber-50: #fffbeb;
41
41
  --color-amber-100: #fef3c7;
@@ -85,29 +85,53 @@
85
85
  --color-sky-900: #0c4a6e;
86
86
  --color-sky-950: #082f49;
87
87
 
88
- --color-alpha-dark-00: rgba(0, 0, 0, 0);
89
- --color-alpha-dark-50: rgba(0, 0, 0, 0.05);
90
- --color-alpha-dark-100: rgba(0, 0, 0, 0.1);
91
- --color-alpha-dark-150: rgba(0, 0, 0, 0.15);
92
- --color-alpha-dark-200: rgba(0, 0, 0, 0.2);
93
- --color-alpha-dark-300: rgba(0, 0, 0, 0.3);
94
- --color-alpha-dark-400: rgba(0, 0, 0, 0.4);
95
- --color-alpha-dark-500: rgba(0, 0, 0, 0.5);
96
- --color-alpha-dark-600: rgba(0, 0, 0, 0.6);
97
- --color-alpha-dark-700: rgba(0, 0, 0, 0.7);
98
- --color-alpha-dark-800: rgba(0, 0, 0, 0.8);
99
- --color-alpha-dark-900: rgba(0, 0, 0, 0.9);
88
+ --color-alpha-one-00: rgba(0, 0, 0, 0);
89
+ --color-alpha-one-50: rgba(0, 0, 0, 0.05);
90
+ --color-alpha-one-100: rgba(0, 0, 0, 0.1);
91
+ --color-alpha-one-150: rgba(0, 0, 0, 0.15);
92
+ --color-alpha-one-200: rgba(0, 0, 0, 0.2);
93
+ --color-alpha-one-300: rgba(0, 0, 0, 0.3);
94
+ --color-alpha-one-400: rgba(0, 0, 0, 0.4);
95
+ --color-alpha-one-500: rgba(0, 0, 0, 0.5);
96
+ --color-alpha-one-600: rgba(0, 0, 0, 0.6);
97
+ --color-alpha-one-700: rgba(0, 0, 0, 0.7);
98
+ --color-alpha-one-800: rgba(0, 0, 0, 0.8);
99
+ --color-alpha-one-900: rgba(0, 0, 0, 0.9);
100
100
 
101
- --color-alpha-white-00: rgba(255, 255, 255, 0);
102
- --color-alpha-white-50: rgba(255, 255, 255, 0.05);
103
- --color-alpha-white-100: rgba(255, 255, 255, 0.1);
104
- --color-alpha-white-150: rgba(255, 255, 255, 0.15);
105
- --color-alpha-white-200: rgba(255, 255, 255, 0.2);
106
- --color-alpha-white-300: rgba(255, 255, 255, 0.3);
107
- --color-alpha-white-400: rgba(255, 255, 255, 0.4);
108
- --color-alpha-white-500: rgba(255, 255, 255, 0.5);
109
- --color-alpha-white-600: rgba(255, 255, 255, 0.6);
110
- --color-alpha-white-700: rgba(255, 255, 255, 0.7);
111
- --color-alpha-white-800: rgba(255, 255, 255, 0.8);
112
- --color-alpha-white-900: rgba(255, 255, 255, 0.9);
101
+ --color-alpha-two-00: rgba(255, 255, 255, 0);
102
+ --color-alpha-two-50: rgba(255, 255, 255, 0.05);
103
+ --color-alpha-two-100: rgba(255, 255, 255, 0.1);
104
+ --color-alpha-two-150: rgba(255, 255, 255, 0.15);
105
+ --color-alpha-two-200: rgba(255, 255, 255, 0.2);
106
+ --color-alpha-two-300: rgba(255, 255, 255, 0.3);
107
+ --color-alpha-two-400: rgba(255, 255, 255, 0.4);
108
+ --color-alpha-two-500: rgba(255, 255, 255, 0.5);
109
+ --color-alpha-two-600: rgba(255, 255, 255, 0.6);
110
+ --color-alpha-two-700: rgba(255, 255, 255, 0.7);
111
+ --color-alpha-two-800: rgba(255, 255, 255, 0.8);
112
+ --color-alpha-two-900: rgba(255, 255, 255, 0.9);
113
+
114
+ --color-purple-50: #faf5ff;
115
+ --color-purple-100: #ede9fe;
116
+ --color-purple-200: #ddd6fe;
117
+ --color-purple-300: #c4b5fd;
118
+ --color-purple-400: #a78bfa;
119
+ --color-purple-500: #8b5cf6;
120
+ --color-purple-600: #7c3aed;
121
+ --color-purple-700: #6d28d9;
122
+ --color-purple-800: #5b21b6;
123
+ --color-purple-900: #4c1d95;
124
+ --color-purple-950: #2e1065;
125
+
126
+ --color-purple-alt-50: #201b2b;
127
+ --color-purple-alt-100: #382a58;
128
+ --color-purple-alt-200: #503885;
129
+ --color-purple-alt-300: #6746b2;
130
+ --color-purple-alt-400: #7f55df;
131
+ --color-purple-alt-500: #8b5cf6;
132
+ --color-purple-alt-600: #976cf7;
133
+ --color-purple-alt-700: #ae8df9;
134
+ --color-purple-alt-800: #c5adfb;
135
+ --color-purple-alt-900: #dccefc;
136
+ --color-purple-alt-950: #f3efff;
113
137
  }
@@ -45,11 +45,11 @@
45
45
 
46
46
  /* inverted */
47
47
  @utility icon-inverted {
48
- fill: var(--color-alpha-white-500);
48
+ fill: var(--color-alpha-two-500);
49
49
  }
50
50
 
51
51
  @utility icon-inverted-disabled {
52
- fill: var(--color-alpha-white-400);
52
+ fill: var(--color-alpha-two-400);
53
53
  }
54
54
 
55
55
  @utility icon-inverted-attention {
@@ -1,3 +1,3 @@
1
1
  @utility overlay {
2
- background-color: var(--color-alpha-dark-500);
2
+ background-color: var(--color-alpha-one-500);
3
3
  }
@@ -24,7 +24,7 @@
24
24
  }
25
25
 
26
26
  @utility shape-neutral-danger {
27
- fill: var(--color-rose-600);
27
+ fill: var(--color-red-600);
28
28
  }
29
29
 
30
30
  @utility shape-neutral-warning {
@@ -45,11 +45,11 @@
45
45
 
46
46
  /* shape: inverted */
47
47
  @utility shape-inverted-default {
48
- fill: var(--color-alpha-white-500);
48
+ fill: var(--color-alpha-two-500);
49
49
  }
50
50
 
51
51
  @utility shape-inverted-disabled {
52
- fill: var(--color-alpha-white-400);
52
+ fill: var(--color-alpha-two-400);
53
53
  }
54
54
 
55
55
  @utility shape-inverted-attention {
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  @utility shape-inverted-danger {
64
- fill: var(--color-rose-500);
64
+ fill: var(--color-red-500);
65
65
  }
66
66
 
67
67
  @utility shape-inverted-warning {
@@ -127,11 +127,11 @@
127
127
 
128
128
  /* shape-bg: inverted */
129
129
  @utility shape-bg-inverted-default {
130
- background-color: var(--color-alpha-white-500);
130
+ background-color: var(--color-alpha-two-500);
131
131
  }
132
132
 
133
133
  @utility shape-bg-inverted-disabled {
134
- background-color: var(--color-alpha-white-400);
134
+ background-color: var(--color-alpha-two-400);
135
135
  }
136
136
 
137
137
  @utility shape-bg-inverted-attention {
@@ -1,9 +1,17 @@
1
- /* For stroke/borders accross ui */
1
+ /* For stroke/borders across ui */
2
2
  /* solid */
3
- @utility stroke-solid-default {
3
+ @utility stroke-solid-light {
4
+ border-color: var(--color-neutral-100);
5
+ }
6
+
7
+ @utility stroke-solid-medium {
4
8
  border-color: var(--color-neutral-150);
5
9
  }
6
10
 
11
+ @utility stroke-solid-high {
12
+ border-color: var(--color-neutral-200);
13
+ }
14
+
7
15
  @utility stroke-solid-hover {
8
16
  border-color: var(--color-neutral-300);
9
17
  }
@@ -13,7 +21,7 @@
13
21
  }
14
22
 
15
23
  @utility stroke-solid-attention {
16
- border-color: var(--color-amber-600);
24
+ border-color: var(--color-neutral-950);
17
25
  }
18
26
 
19
27
  @utility stroke-solid-highlight {
@@ -21,12 +29,21 @@
21
29
  }
22
30
 
23
31
  /* transparent */
24
- @utility stroke-transparent-default {
25
- border-color: var(--color-alpha-dark-150);
32
+
33
+ @utility stroke-transparent-light {
34
+ border-color: var(--color-alpha-one-100);
35
+ }
36
+
37
+ @utility stroke-transparent-medium {
38
+ border-color: var(--color-alpha-one-150);
39
+ }
40
+
41
+ @utility stroke-transparent-high {
42
+ border-color: var(--color-alpha-one-200);
26
43
  }
27
44
 
28
45
  @utility stroke-transparent-hover {
29
- border-color: var(--color-alpha-dark-300);
46
+ border-color: var(--color-alpha-one-300);
30
47
  }
31
48
 
32
49
  @utility stroke-transparent-active {
@@ -34,20 +51,19 @@
34
51
  }
35
52
 
36
53
  @utility stroke-transparent-attention {
37
- border-color: var(--color-amber-600);
54
+ border-color: var(--color-neutral-950);
38
55
  }
39
56
 
40
57
  @utility stroke-transparent-highlight {
41
58
  border-color: var(--color-accent-300);
42
59
  }
43
60
 
44
- /* inverted */
45
61
  @utility stroke-inverted-default {
46
- border-color: var(--color-alpha-white-100);
62
+ border-color: var(--color-alpha-two-100);
47
63
  }
48
64
 
49
65
  @utility stroke-inverted-hover {
50
- border-color: var(--color-alpha-white-300);
66
+ border-color: var(--color-alpha-two-300);
51
67
  }
52
68
 
53
69
  @utility stroke-inverted-active {
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  @utility surface-neutral-elevated {
21
- background-color: var(--color-alpha-white-100);
21
+ background-color: var(--color-alpha-two-100);
22
22
  }
23
23
 
24
24
  /* Brand surfaces */
@@ -57,15 +57,15 @@
57
57
 
58
58
  /* Danger surfaces */
59
59
  @utility surface-danger-default {
60
- background-color: var(--color-rose-600);
60
+ background-color: var(--color-red-600);
61
61
  }
62
62
 
63
63
  @utility surface-danger-hover {
64
- background-color: var(--color-rose-700);
64
+ background-color: var(--color-red-700);
65
65
  }
66
66
 
67
67
  @utility surface-danger-pressed {
68
- background-color: var(--color-rose-400);
68
+ background-color: var(--color-red-400);
69
69
  }
70
70
 
71
71
  @utility surface-danger-disabled {
@@ -125,15 +125,15 @@
125
125
 
126
126
  /* Inverted surfaces */
127
127
  @utility surface-inverted-default {
128
- background-color: var(--color-alpha-white-150);
128
+ background-color: var(--color-alpha-two-150);
129
129
  }
130
130
 
131
131
  @utility surface-inverted-hover {
132
- background-color: var(--color-alpha-white-300);
132
+ background-color: var(--color-alpha-two-300);
133
133
  }
134
134
 
135
135
  @utility surface-inverted-pressed {
136
- background-color: var(--color-alpha-white-00);
136
+ background-color: var(--color-alpha-two-00);
137
137
  }
138
138
 
139
139
  @utility surface-inverted-disabled {
@@ -1,3 +1,88 @@
1
+ /*neutral*/
2
+
3
+ @utility text-neutral-primary {
4
+ color: var(--color-neutral-950);
5
+ }
6
+
7
+ @utility text-neutral-secondary {
8
+ color: var(--color-neutral-600);
9
+ }
10
+
11
+ @utility text-neutral-muted {
12
+ color: var(--color-neutral-400);
13
+ }
14
+
15
+ /* Inverted */
16
+ @utility text-inverted-primary {
17
+ color: var(--color-neutral-00);
18
+ }
19
+
20
+ @utility text-inverted-secondary {
21
+ color: var(--color-alpha-two-600);
22
+ }
23
+
24
+ @utility text-inverted-static {
25
+ color: var(--color-neutral-00);
26
+ }
27
+
28
+ /*brand*/
29
+ @utility text-brand-primary {
30
+ color: var(--color-brand-950);
31
+ }
32
+
33
+ @utility text-brand-secondary {
34
+ color: var(--color-brand-600);
35
+ }
36
+
37
+ /*success*/
38
+ @utility text-success-primary {
39
+ color: var(--color-green-950);
40
+ }
41
+
42
+ @utility text-success-secondary {
43
+ color: var(--color-green-600);
44
+ }
45
+
46
+ /*danger*/
47
+ @utility text-danger-primary {
48
+ color: var(--color-red-950);
49
+ }
50
+
51
+ @utility text-danger-secondary {
52
+ color: var(--color-red-600);
53
+ }
54
+ /*warning*/
55
+ @utility text-warning-primary {
56
+ color: var(--color-amber-950);
57
+ }
58
+
59
+ @utility text-warning-secondary {
60
+ color: var(--color-amber-600);
61
+ }
62
+
63
+ /*purple*/
64
+ @utility text-purple-primary {
65
+ color: var(--color-purple-950);
66
+ }
67
+
68
+ @utility text-purple-secondary {
69
+ color: var(--color-purple-600);
70
+ }
71
+
72
+ /*body*/
73
+ @utility text-body-primary {
74
+ color: var(--color-neutral-950);
75
+ }
76
+
77
+ @utility text-body-long {
78
+ color: var(--color-neutral-800);
79
+ }
80
+
81
+ @utility text-body-short {
82
+ color: var(--color-neutral-700);
83
+ }
84
+
85
+ /*pre-exisitng-colors*/
1
86
  /* title */
2
87
  @utility text-title {
3
88
  color: var(--color-neutral-950);
@@ -6,7 +91,6 @@
6
91
  @utility text-title-secondary {
7
92
  color: var(--color-neutral-400);
8
93
  }
9
-
10
94
  /* link */
11
95
  @utility text-link {
12
96
  color: var(--color-accent-600);
@@ -42,14 +126,6 @@
42
126
  color: var(--color-neutral-950);
43
127
  }
44
128
 
45
- @utility text-body-long {
46
- color: var(--color-neutral-800);
47
- }
48
-
49
- @utility text-body-short {
50
- color: var(--color-neutral-700);
51
- }
52
-
53
129
  /* underline */
54
130
  @utility text-underline-highlight {
55
131
  color: var(--color-amber-500);
@@ -59,19 +135,6 @@
59
135
  color: var(--color-neutral-200);
60
136
  }
61
137
 
62
- /* inverted */
63
- @utility text-inverted {
64
- color: var(--color-neutral-00);
65
- }
66
-
67
- @utility text-inverted-secondary {
68
- color: var(--color-alpha-white-700);
69
- }
70
-
71
- @utility text-inverted-disabled {
138
+ @utility text-default-muted {
72
139
  color: var(--color-neutral-400);
73
140
  }
74
-
75
- .text-default-muted {
76
- color: var(--color-neutral-400);
77
- }