@pallamart/pm-design-system 1.0.0

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 (65) hide show
  1. package/README.md +21 -0
  2. package/dist/color.d.ts +19 -0
  3. package/dist/color.js +20 -0
  4. package/dist/external/index.d.ts +3 -0
  5. package/dist/external/index.js +3 -0
  6. package/dist/external/tailwind-preset.d.ts +1 -0
  7. package/dist/external/tailwind-preset.js +1 -0
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.js +3 -0
  10. package/dist/internal/index.d.ts +2 -0
  11. package/dist/internal/index.js +2 -0
  12. package/dist/internal/tailwind-preset.d.ts +2 -0
  13. package/dist/internal/tailwind-preset.js +86 -0
  14. package/dist/shared-tailwind-theme.d.ts +131 -0
  15. package/dist/shared-tailwind-theme.js +95 -0
  16. package/dist/styles/components/auth/auth.css +25 -0
  17. package/dist/styles/components/auth/index.css +1 -0
  18. package/dist/styles/components/buttons/accent-link.css +15 -0
  19. package/dist/styles/components/buttons/index.css +4 -0
  20. package/dist/styles/components/buttons/link.css +31 -0
  21. package/dist/styles/components/buttons/primary-button.css +25 -0
  22. package/dist/styles/components/buttons/secondary-button.css +25 -0
  23. package/dist/styles/components/containers/card.css +12 -0
  24. package/dist/styles/components/containers/index.css +1 -0
  25. package/dist/styles/components/form/checkbox.css +26 -0
  26. package/dist/styles/components/form/form-input.css +40 -0
  27. package/dist/styles/components/form/index.css +2 -0
  28. package/dist/styles/components/index.css +5 -0
  29. package/dist/styles/components/loaders/dot-loader-dark.css +103 -0
  30. package/dist/styles/components/loaders/dot-loader.css +103 -0
  31. package/dist/styles/components/loaders/index.css +2 -0
  32. package/dist/styles/external/components/auth/auth.css +25 -0
  33. package/dist/styles/external/components/auth/index.css +1 -0
  34. package/dist/styles/external/components/buttons/accent-link.css +15 -0
  35. package/dist/styles/external/components/buttons/index.css +4 -0
  36. package/dist/styles/external/components/buttons/link.css +31 -0
  37. package/dist/styles/external/components/buttons/primary-button.css +25 -0
  38. package/dist/styles/external/components/buttons/secondary-button.css +25 -0
  39. package/dist/styles/external/components/containers/card.css +12 -0
  40. package/dist/styles/external/components/containers/index.css +1 -0
  41. package/dist/styles/external/components/form/checkbox.css +25 -0
  42. package/dist/styles/external/components/form/form-input.css +40 -0
  43. package/dist/styles/external/components/form/index.css +2 -0
  44. package/dist/styles/external/components/index.css +6 -0
  45. package/dist/styles/external/components/loaders/dot-loader-dark.css +103 -0
  46. package/dist/styles/external/components/loaders/dot-loader.css +103 -0
  47. package/dist/styles/external/components/loaders/index.css +2 -0
  48. package/dist/styles/external/components/products/index.css +1 -0
  49. package/dist/styles/external/components/products/product-studio.css +213 -0
  50. package/dist/styles/external/fonts/index.css +2 -0
  51. package/dist/styles/external/fonts/poppins.css +4 -0
  52. package/dist/styles/external/fonts/raleway.css +4 -0
  53. package/dist/styles/external/index/z-index.ts +8 -0
  54. package/dist/styles/external.css +39 -0
  55. package/dist/styles/fonts/index.css +2 -0
  56. package/dist/styles/fonts/poppins.css +4 -0
  57. package/dist/styles/fonts/raleway.css +4 -0
  58. package/dist/styles/index/z-index.ts +8 -0
  59. package/dist/styles/index.css +40 -0
  60. package/dist/styles/internal.css +159 -0
  61. package/dist/tailwind-preset.d.ts +2 -0
  62. package/dist/tailwind-preset.js +50 -0
  63. package/dist/z-index.d.ts +9 -0
  64. package/dist/z-index.js +10 -0
  65. package/package.json +103 -0
@@ -0,0 +1,213 @@
1
+ .pm-external-breadcrumb {
2
+ @apply flex flex-wrap items-center gap-2 py-7 text-body-2 leading-none text-black;
3
+ }
4
+
5
+ .pm-external-breadcrumb-item {
6
+ @apply inline-flex items-center gap-2;
7
+ }
8
+
9
+ .pm-external-breadcrumb-link {
10
+ @apply hover:text-primary;
11
+ }
12
+
13
+ .pm-external-breadcrumb-separator {
14
+ @apply text-grey-dark;
15
+ }
16
+
17
+ .pm-external-viewer {
18
+ @apply relative h-[58vh] min-h-[480px] max-h-[720px] overflow-hidden rounded-[22px] bg-grey-light sm:h-[620px] lg:h-[680px];
19
+ }
20
+
21
+ .pm-external-viewer.fullscreen {
22
+ @apply fixed inset-0 z-50 h-screen w-screen max-h-none rounded-none;
23
+ }
24
+
25
+ .pm-external-viewer-product-arrow {
26
+ @apply absolute top-1/2 z-10 inline-flex h-11 w-11 -translate-y-1/2 items-center justify-center rounded-full bg-white/85 text-black shadow-sm backdrop-blur transition-all duration-200 hover:bg-white hover:scale-105 sm:h-14 sm:w-14;
27
+ }
28
+
29
+ .pm-external-viewer-product-arrow.left {
30
+ @apply left-3 sm:left-6;
31
+ }
32
+
33
+ .pm-external-viewer-product-arrow.right {
34
+ @apply right-3 sm:right-6;
35
+ }
36
+
37
+ .pm-external-product-layout {
38
+ @apply grid gap-12 pb-12 lg:grid-cols-[minmax(0,1.02fr)_minmax(360px,0.92fr)] lg:items-start;
39
+ }
40
+
41
+ .pm-external-product-summary {
42
+ @apply max-w-[42rem] pt-1 lg:pt-2;
43
+ }
44
+
45
+ .pm-external-product-vendor {
46
+ @apply mb-3 text-body-2 text-grey-dark;
47
+ }
48
+
49
+ .pm-external-product-title {
50
+ @apply text-header-1-regular leading-tight text-black;
51
+ }
52
+
53
+ .pm-external-product-price {
54
+ @apply mt-8 text-header-3 leading-none text-black;
55
+ }
56
+
57
+ .pm-external-product-shipping {
58
+ @apply mt-4 text-body-1 leading-snug text-black;
59
+ }
60
+
61
+ .pm-external-product-shipping a {
62
+ @apply underline underline-offset-2;
63
+ }
64
+
65
+ .pm-external-product-installments {
66
+ @apply mt-2 text-body-2 leading-snug text-black;
67
+ }
68
+
69
+ .pm-external-product-size {
70
+ @apply mt-8;
71
+ }
72
+
73
+ .pm-external-product-size-label {
74
+ @apply text-body-1 text-black;
75
+ }
76
+
77
+ .pm-external-product-size-options {
78
+ @apply mt-5 flex flex-wrap gap-4;
79
+ }
80
+
81
+ .pm-external-size-button {
82
+ @apply inline-flex min-h-14 min-w-28 items-center justify-center rounded-full px-8 text-body-1 transition-colors sm:min-w-32;
83
+ }
84
+
85
+ .pm-external-size-button.active {
86
+ @apply bg-black text-white;
87
+ }
88
+
89
+ .pm-external-size-button.disabled {
90
+ @apply border border-grey/20 text-grey/30;
91
+ }
92
+
93
+ .pm-external-product-description {
94
+ @apply mt-7 text-body-1 leading-relaxed text-black;
95
+ }
96
+
97
+ .pm-external-cart-button {
98
+ @apply mt-8 inline-flex min-h-12 w-full items-center justify-center rounded-full bg-primary px-8 py-3 text-body-1 text-white transition-colors hover:bg-primary-hover;
99
+ }
100
+
101
+ .pm-external-room-tone {
102
+ @apply mt-8;
103
+ }
104
+
105
+ .pm-external-room-tone-header {
106
+ @apply mb-4 flex items-baseline justify-between gap-4;
107
+ }
108
+
109
+ .pm-external-room-tone-selected {
110
+ @apply inline-flex min-w-0 items-baseline;
111
+ }
112
+
113
+ .pm-external-room-tone-preview {
114
+ @apply hidden;
115
+ }
116
+
117
+ .pm-external-room-tone-title {
118
+ @apply text-body-1 text-black;
119
+ }
120
+
121
+ .pm-external-room-tone-value {
122
+ @apply truncate text-body-1 text-grey-dark;
123
+ }
124
+
125
+ .pm-external-room-tone-grid {
126
+ @apply flex max-w-[28rem] flex-wrap gap-3;
127
+ }
128
+
129
+ .pm-external-room-tone-swatch {
130
+ @apply inline-flex h-9 w-9 items-center justify-center rounded-full border border-grey/25 bg-white p-1 transition-colors hover:border-grey/70;
131
+ }
132
+
133
+ .pm-external-room-tone-swatch.active {
134
+ @apply border-black;
135
+ }
136
+
137
+ .pm-external-product-rail {
138
+ @apply pb-8 pt-12;
139
+ }
140
+
141
+ .pm-external-arrow-button {
142
+ @apply inline-flex h-10 w-10 items-center justify-center rounded-full text-header-2 leading-none text-black disabled:opacity-25;
143
+ }
144
+
145
+ .pm-external-product-grid {
146
+ @apply grid auto-cols-[minmax(250px,1fr)] grid-flow-col gap-5 overflow-x-auto pb-2 lg:grid-flow-row lg:grid-cols-4;
147
+ -ms-overflow-style: none;
148
+ scrollbar-width: none;
149
+ }
150
+
151
+ .pm-external-product-grid::-webkit-scrollbar {
152
+ display: none;
153
+ }
154
+
155
+ .pm-external-product-card {
156
+ @apply min-w-0 rounded-[24px] p-2 text-center transition-colors hover:bg-grey-light/70;
157
+ }
158
+
159
+ .pm-external-product-card.active {
160
+ @apply bg-grey-light;
161
+ }
162
+
163
+ .pm-external-product-card-media {
164
+ @apply block aspect-square overflow-hidden rounded-[18px] bg-grey-light;
165
+ }
166
+
167
+ .pm-external-product-card-image {
168
+ @apply h-full w-full object-cover;
169
+ }
170
+
171
+ .pm-external-product-card-vendor {
172
+ @apply mt-4 block px-2 text-body-2 text-grey;
173
+ }
174
+
175
+ .pm-external-product-card-title {
176
+ @apply mx-auto mt-2 block line-clamp-2 min-h-12 max-w-sm px-2 text-body-2 uppercase leading-snug text-black;
177
+ }
178
+
179
+ .pm-external-product-card-price {
180
+ @apply mt-2 block px-2 pb-2 text-body-2 text-black;
181
+ }
182
+
183
+ .studio-icon-button {
184
+ @apply inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-black/10 bg-white/95 text-black shadow-sm backdrop-blur transition-all duration-200;
185
+ }
186
+
187
+ .studio-icon-button:hover:not(:disabled) {
188
+ @apply border-black/25 bg-white text-primary;
189
+ }
190
+
191
+ .studio-icon-button:disabled {
192
+ @apply cursor-not-allowed opacity-30;
193
+ }
194
+
195
+ .studio-view-button {
196
+ @apply inline-flex h-10 w-11 items-center justify-center rounded-full transition-colors duration-200;
197
+ }
198
+
199
+ .studio-color-option {
200
+ @apply flex min-h-12 items-center gap-3 rounded-2xl border px-3 text-left transition-all duration-200;
201
+ }
202
+
203
+ .studio-product-item {
204
+ @apply w-[44vw] max-w-40 shrink-0 snap-start rounded-[22px] border border-grey/15 bg-white p-2.5 text-left transition-all duration-200 xs:w-40 sm:w-44;
205
+ }
206
+
207
+ .studio-product-item:hover {
208
+ @apply border-grey/50;
209
+ }
210
+
211
+ .studio-product-item.active {
212
+ @apply border-black shadow-sm;
213
+ }
@@ -0,0 +1,2 @@
1
+ @import url('poppins.css');
2
+ @import url('raleway.css');
@@ -0,0 +1,4 @@
1
+ @font-face {
2
+ font-family: Poppins;
3
+ src: url('/fonts/Poppins.ttf');
4
+ }
@@ -0,0 +1,4 @@
1
+ @font-face {
2
+ font-family: Raleway;
3
+ src: url('/fonts/Raleway.ttf');
4
+ }
@@ -0,0 +1,8 @@
1
+ export enum ZIndex {
2
+ LayerBase = 'z-0',
3
+ LayerUpperBase = 'z-10',
4
+ LayerBaseHeader = 'z-20',
5
+ BaseOverlay = 'z-[29]',
6
+ LayerModal = 'z-30',
7
+ ModalOverlay = 'z-[39]',
8
+ }
@@ -0,0 +1,39 @@
1
+ @import url('external/components');
2
+ @import url('external/fonts');
3
+
4
+ @tailwind base;
5
+ @tailwind components;
6
+ @tailwind utilities;
7
+
8
+ * {
9
+ @apply font-raleway !outline-none !ring-0;
10
+ }
11
+
12
+ * :disabled {
13
+ @apply cursor-not-allowed;
14
+ }
15
+
16
+ *::-webkit-scrollbar {
17
+ @apply w-1 h-1;
18
+ }
19
+
20
+ [class]:not(.scrollbars-green)::-webkit-scrollbar-thumb {
21
+ @apply bg-primary rounded-md;
22
+ }
23
+
24
+ *::-webkit-scrollbar-track {
25
+ @apply bg-transparent;
26
+ }
27
+
28
+ .scrollbars-green::-webkit-scrollbar-thumb {
29
+ @apply !bg-green;
30
+ }
31
+
32
+ .scrollbars-none::-webkit-scrollbar {
33
+ display: none;
34
+ }
35
+
36
+ .scrollbars-none {
37
+ -ms-overflow-style: none;
38
+ scrollbar-width: none;
39
+ }
@@ -0,0 +1,2 @@
1
+ @import url('poppins.css');
2
+ @import url('raleway.css');
@@ -0,0 +1,4 @@
1
+ @font-face {
2
+ font-family: Poppins;
3
+ src: url('/fonts/Poppins.ttf');
4
+ }
@@ -0,0 +1,4 @@
1
+ @font-face {
2
+ font-family: Raleway;
3
+ src: url('/fonts/Raleway.ttf');
4
+ }
@@ -0,0 +1,8 @@
1
+ export enum ZIndex {
2
+ LayerBase = 'z-0',
3
+ LayerUpperBase = 'z-10',
4
+ LayerBaseHeader = 'z-20',
5
+ BaseOverlay = 'z-[29]',
6
+ LayerModal = 'z-30',
7
+ ModalOverlay = 'z-[39]',
8
+ }
@@ -0,0 +1,40 @@
1
+ @import url('components');
2
+ @import url('fonts');
3
+
4
+ @tailwind base;
5
+ @tailwind components;
6
+ @tailwind utilities;
7
+
8
+ * {
9
+ @apply font-poppins !outline-none !ring-0;
10
+ }
11
+
12
+ * :disabled {
13
+ @apply cursor-not-allowed;
14
+ }
15
+
16
+ /* WebKit Styles */
17
+ *::-webkit-scrollbar {
18
+ @apply w-1 h-1;
19
+ }
20
+
21
+ [class]:not(.scrollbars-green)::-webkit-scrollbar-thumb {
22
+ @apply bg-primary rounded-md;
23
+ }
24
+
25
+ *::-webkit-scrollbar-track {
26
+ @apply bg-transparent;
27
+ }
28
+
29
+ .scrollbars-green::-webkit-scrollbar-thumb {
30
+ @apply !bg-green;
31
+ }
32
+
33
+ .scrollbars-none::-webkit-scrollbar {
34
+ display: none;
35
+ }
36
+
37
+ .scrollbars-none {
38
+ -ms-overflow-style: none;
39
+ scrollbar-width: none;
40
+ }
@@ -0,0 +1,159 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @layer base {
6
+ :root {
7
+ --background: oklch(0.985 0 0);
8
+ --foreground: oklch(0.145 0 0);
9
+ --card: oklch(1 0 0);
10
+ --card-foreground: oklch(0.145 0 0);
11
+ --popover: oklch(1 0 0);
12
+ --popover-foreground: oklch(0.145 0 0);
13
+ --primary: oklch(0.18 0 0);
14
+ --primary-hover: oklch(0.24 0 0);
15
+ --primary-foreground: oklch(0.985 0 0);
16
+ --secondary: oklch(0.955 0 0);
17
+ --secondary-foreground: oklch(0.145 0 0);
18
+ --muted: oklch(0.965 0 0);
19
+ --muted-foreground: oklch(0.45 0 0);
20
+ --accent: oklch(0.965 0 0);
21
+ --accent-foreground: oklch(0.145 0 0);
22
+ --destructive: oklch(0.61 0.21 25);
23
+ --destructive-foreground: oklch(0.985 0 0);
24
+ --destructive-muted: oklch(0.95 0.035 25);
25
+ --warning: oklch(0.72 0.16 70);
26
+ --warning-foreground: oklch(0.28 0.06 58);
27
+ --warning-muted: oklch(0.96 0.045 82);
28
+ --success: oklch(0.59 0.13 150);
29
+ --success-foreground: oklch(0.22 0.06 150);
30
+ --success-muted: oklch(0.95 0.04 150);
31
+ --info: oklch(0.55 0.14 250);
32
+ --border: oklch(0.89 0 0);
33
+ --input: oklch(0.89 0 0);
34
+ --ring: oklch(0.145 0 0);
35
+ --chart-1: oklch(0.18 0 0);
36
+ --chart-2: oklch(0.35 0 0);
37
+ --chart-3: oklch(0.5 0 0);
38
+ --chart-4: oklch(0.7 0 0);
39
+ --chart-5: oklch(0.82 0 0);
40
+ --radius: 0.75rem;
41
+ --sidebar: oklch(0.99 0 0);
42
+ --sidebar-foreground: oklch(0.145 0 0);
43
+ --sidebar-primary: oklch(0.145 0 0);
44
+ --sidebar-primary-foreground: oklch(0.985 0 0);
45
+ --sidebar-accent: oklch(0.975 0 0);
46
+ --sidebar-accent-foreground: oklch(0.145 0 0);
47
+ --sidebar-border: oklch(0.9 0 0);
48
+ --sidebar-ring: oklch(0.145 0 0);
49
+ }
50
+
51
+ .dark {
52
+ --background: oklch(0.16 0.018 260);
53
+ --foreground: oklch(0.97 0.006 255);
54
+ --card: oklch(0.2 0.02 260);
55
+ --card-foreground: oklch(0.97 0.006 255);
56
+ --popover: oklch(0.2 0.02 260);
57
+ --popover-foreground: oklch(0.97 0.006 255);
58
+ --primary: oklch(0.72 0.16 286);
59
+ --primary-hover: oklch(0.78 0.14 286);
60
+ --primary-foreground: oklch(0.17 0.025 286);
61
+ --secondary: oklch(0.25 0.022 260);
62
+ --secondary-foreground: oklch(0.96 0.006 255);
63
+ --muted: oklch(0.25 0.022 260);
64
+ --muted-foreground: oklch(0.72 0.02 255);
65
+ --accent: oklch(0.28 0.05 286);
66
+ --accent-foreground: oklch(0.94 0.025 286);
67
+ --destructive: oklch(0.7 0.18 25);
68
+ --destructive-foreground: oklch(0.98 0.012 25);
69
+ --destructive-muted: oklch(0.28 0.07 25);
70
+ --warning: oklch(0.78 0.15 76);
71
+ --warning-foreground: oklch(0.22 0.055 58);
72
+ --warning-muted: oklch(0.28 0.06 76);
73
+ --success: oklch(0.72 0.13 150);
74
+ --success-foreground: oklch(0.18 0.05 150);
75
+ --success-muted: oklch(0.25 0.055 150);
76
+ --info: oklch(0.72 0.12 245);
77
+ --border: oklch(1 0 0 / 12%);
78
+ --input: oklch(1 0 0 / 16%);
79
+ --ring: oklch(0.72 0.16 286);
80
+ --chart-1: oklch(0.72 0.16 286);
81
+ --chart-2: oklch(0.72 0.12 245);
82
+ --chart-3: oklch(0.72 0.13 150);
83
+ --chart-4: oklch(0.78 0.15 76);
84
+ --chart-5: oklch(0.7 0.18 25);
85
+ --sidebar: oklch(0.19 0.018 260);
86
+ --sidebar-foreground: oklch(0.97 0.006 255);
87
+ --sidebar-primary: oklch(0.72 0.16 286);
88
+ --sidebar-primary-foreground: oklch(0.17 0.025 286);
89
+ --sidebar-accent: oklch(0.27 0.04 286);
90
+ --sidebar-accent-foreground: oklch(0.94 0.025 286);
91
+ --sidebar-border: oklch(1 0 0 / 12%);
92
+ --sidebar-ring: oklch(0.72 0.16 286);
93
+ }
94
+
95
+ * {
96
+ @apply border-border;
97
+ }
98
+
99
+ html {
100
+ @apply bg-background font-sans text-foreground antialiased;
101
+ }
102
+
103
+ body {
104
+ @apply min-h-screen bg-background text-foreground;
105
+ background-image: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 34%);
106
+ }
107
+
108
+ button,
109
+ input,
110
+ select,
111
+ textarea {
112
+ font: inherit;
113
+ }
114
+
115
+ label {
116
+ @apply text-body-3 leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70;
117
+ }
118
+
119
+ input:not([type='hidden'], [type='checkbox'], [type='range']),
120
+ select {
121
+ @apply flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-body-3 shadow-sm transition-colors file:border-0 file:bg-transparent file:text-body-3 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50;
122
+ }
123
+
124
+ textarea {
125
+ @apply flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-body-3 shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50;
126
+ }
127
+
128
+ input[type='checkbox'] {
129
+ @apply h-4 w-4 shrink-0 rounded-sm border border-input bg-background text-primary shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50;
130
+ }
131
+ }
132
+
133
+ @layer utilities {
134
+ *::-webkit-scrollbar {
135
+ @apply h-1.5 w-1.5;
136
+ }
137
+
138
+ *::-webkit-scrollbar-thumb {
139
+ border-radius: 0.375rem;
140
+ background-color: color-mix(in oklch, var(--muted-foreground) 40%, transparent);
141
+ }
142
+
143
+ *::-webkit-scrollbar-track {
144
+ @apply bg-transparent;
145
+ }
146
+
147
+ .scrollbars-green::-webkit-scrollbar-thumb {
148
+ @apply !bg-success;
149
+ }
150
+
151
+ .scrollbars-none::-webkit-scrollbar {
152
+ display: none;
153
+ }
154
+
155
+ .scrollbars-none {
156
+ -ms-overflow-style: none;
157
+ scrollbar-width: none;
158
+ }
159
+ }
@@ -0,0 +1,2 @@
1
+ import type { Config } from 'tailwindcss';
2
+ export declare const PallamartTailwindPreset: Partial<Config>;
@@ -0,0 +1,50 @@
1
+ import { PallamartFontSize, PallamartMotion, PallamartScreens, PallamartSharedScale, } from './shared-tailwind-theme.js';
2
+ export const PallamartTailwindPreset = {
3
+ theme: {
4
+ screens: PallamartScreens,
5
+ extend: {
6
+ ...PallamartSharedScale,
7
+ fontSize: PallamartFontSize,
8
+ fontFamily: {
9
+ raleway: ['Raleway'],
10
+ poppins: ['Poppins'],
11
+ },
12
+ colors: {
13
+ 'primary': {
14
+ DEFAULT: '#9346F2',
15
+ hover: '#7B2EE6',
16
+ },
17
+ 'error': '#ef4444',
18
+ 'error-light': '#fecaca',
19
+ 'error-contrast': '#dc2626',
20
+ 'warning': '#f59e0b',
21
+ 'warning-light': '#fde68a',
22
+ 'warning-contrast': '#d97706',
23
+ 'success': '#10b981',
24
+ 'success-light': '#a7f3d0',
25
+ 'success-contrast': '#059669',
26
+ 'overlay': 'rgba(20, 26, 35, 0.64)',
27
+ 'transparent': 'rgba(0, 0, 0, 0.0)',
28
+ 'auth': {
29
+ red: '#f25022',
30
+ green: '#7fba00',
31
+ blue: '#00a4ef',
32
+ yellow: '#ffb900',
33
+ },
34
+ 'black': '#1D1D20',
35
+ 'blue': '#3b82f6',
36
+ 'green': '#559B60',
37
+ 'grey': {
38
+ DEFAULT: '#64748b',
39
+ light: '#f6f7f8',
40
+ dark: '#334155',
41
+ },
42
+ 'red': '#D63A2F',
43
+ 'white': '#FFFFFF',
44
+ 'yellow': '#eab308',
45
+ },
46
+ ...PallamartMotion,
47
+ },
48
+ },
49
+ plugins: [],
50
+ };
@@ -0,0 +1,9 @@
1
+ export declare enum PallamartZIndex {
2
+ LayerBase = "z-0",
3
+ LayerUpperBase = "z-10",
4
+ LayerBaseHeader = "z-20",
5
+ BaseOverlay = "z-[29]",
6
+ LayerModal = "z-30",
7
+ ModalOverlay = "z-[39]"
8
+ }
9
+ export { PallamartZIndex as ZIndex };
@@ -0,0 +1,10 @@
1
+ export var PallamartZIndex;
2
+ (function (PallamartZIndex) {
3
+ PallamartZIndex["LayerBase"] = "z-0";
4
+ PallamartZIndex["LayerUpperBase"] = "z-10";
5
+ PallamartZIndex["LayerBaseHeader"] = "z-20";
6
+ PallamartZIndex["BaseOverlay"] = "z-[29]";
7
+ PallamartZIndex["LayerModal"] = "z-30";
8
+ PallamartZIndex["ModalOverlay"] = "z-[39]";
9
+ })(PallamartZIndex || (PallamartZIndex = {}));
10
+ export { PallamartZIndex as ZIndex };
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@pallamart/pm-design-system",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./tailwind-preset": {
15
+ "types": "./dist/tailwind-preset.d.ts",
16
+ "import": "./dist/tailwind-preset.js",
17
+ "default": "./dist/tailwind-preset.js"
18
+ },
19
+ "./shared-tailwind-theme": {
20
+ "types": "./dist/shared-tailwind-theme.d.ts",
21
+ "import": "./dist/shared-tailwind-theme.js",
22
+ "default": "./dist/shared-tailwind-theme.js"
23
+ },
24
+ "./styles.css": "./dist/styles/index.css",
25
+ "./external": {
26
+ "types": "./dist/external/index.d.ts",
27
+ "import": "./dist/external/index.js",
28
+ "default": "./dist/external/index.js"
29
+ },
30
+ "./external/tailwind-preset": {
31
+ "types": "./dist/external/tailwind-preset.d.ts",
32
+ "import": "./dist/external/tailwind-preset.js",
33
+ "default": "./dist/external/tailwind-preset.js"
34
+ },
35
+ "./external/styles.css": "./dist/styles/external.css",
36
+ "./internal": {
37
+ "types": "./dist/internal/index.d.ts",
38
+ "import": "./dist/internal/index.js",
39
+ "default": "./dist/internal/index.js"
40
+ },
41
+ "./internal/tailwind-preset": {
42
+ "types": "./dist/internal/tailwind-preset.d.ts",
43
+ "import": "./dist/internal/tailwind-preset.js",
44
+ "default": "./dist/internal/tailwind-preset.js"
45
+ },
46
+ "./internal/styles.css": "./dist/styles/internal.css"
47
+ },
48
+ "files": [
49
+ "/dist"
50
+ ],
51
+ "scripts": {
52
+ "husky:prepare": "npx husky",
53
+ "build": "tsc && rm -rf dist/styles && cp -R src/styles dist/styles",
54
+ "setup:graphify": "sh scripts/graphify-setup.sh",
55
+ "update:graphify": "sh scripts/graphify-update.sh",
56
+ "lint": "npm run lint:eslint",
57
+ "lint:fix": "npm run lint:eslint:fix",
58
+ "format:check": "npx prettier --check --ignore-unknown \"src/**/*.{ts,css,json,md}\"",
59
+ "format:prettier": "npx prettier --write \"src/**/*.{ts,css,json,md}\"",
60
+ "lint:eslint": "npx eslint \"src/**/*.ts\"",
61
+ "lint:eslint:fix": "npx eslint --fix \"src/**/*.ts\"",
62
+ "release": "semantic-release"
63
+ },
64
+ "peerDependencies": {
65
+ "tailwindcss": "^3.4.0"
66
+ },
67
+ "devDependencies": {
68
+ "@commitlint/cli": "^20.1.0",
69
+ "@commitlint/config-conventional": "^20.0.0",
70
+ "@eslint/compat": "^2.0.0",
71
+ "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
72
+ "@semantic-release/changelog": "^6.0.3",
73
+ "@semantic-release/commit-analyzer": "^13.0.0",
74
+ "@semantic-release/git": "^10.0.1",
75
+ "@semantic-release/github": "^11.0.1",
76
+ "@semantic-release/npm": "^12.0.0",
77
+ "@semantic-release/release-notes-generator": "^14.0.1",
78
+ "@types/node": "^20.19.11",
79
+ "@typescript-eslint/eslint-plugin": "^8.48.0",
80
+ "@typescript-eslint/parser": "^8.48.0",
81
+ "commitlint": "^20.1.0",
82
+ "conventional-changelog-conventionalcommits": "^7.0.2",
83
+ "eslint": "^9.39.1",
84
+ "eslint-config-prettier": "^10.1.8",
85
+ "eslint-plugin-import": "^2.32.0",
86
+ "eslint-plugin-prettier": "^5.5.4",
87
+ "husky": "^9.1.7",
88
+ "lint-staged": "^16.2.7",
89
+ "prettier": "^3.6.2",
90
+ "semantic-release": "^24.2.0",
91
+ "tailwindcss": "^3.4.19",
92
+ "ts-node": "^10.9.2",
93
+ "typescript": "^5.9.3"
94
+ },
95
+ "publishConfig": {
96
+ "access": "public",
97
+ "registry": "https://registry.npmjs.org/"
98
+ },
99
+ "repository": {
100
+ "type": "git",
101
+ "url": "git+https://github.com/pallamart/pm-design-system.git"
102
+ }
103
+ }