@abhir9/pd-design-system 0.1.7 → 0.1.9

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.
package/dist/styles.css CHANGED
@@ -333,10 +333,216 @@ video {
333
333
  display: none;
334
334
  }
335
335
  :root {
336
+ --accent: #EDEDED;
337
+ --accent-foreground: #17171C;
338
+ --background: #FFFFFF;
339
+ --background-green: #E0FFEC;
340
+ --background-green-on-hover: #BDFFD5;
341
+ --background-info: #EBF1FF;
342
+ --background-info-on-hover: #99B7FF;
343
+ --background-invert: #09090B;
344
+ --background-invert-light: #17171C;
345
+ --background-low: #EDEDED;
346
+ --background-low-on-hover: #DFDFE2;
347
+ --background-orange: #FFF3EB;
348
+ --background-orange-on-hover: #FFE1CC;
349
+ --background-primary: #FFFFFF;
350
+ --background-red: #FDF2F4;
351
+ --background-red-on-hover: #FADBE1;
352
+ --background-secondary: #EDEDED;
353
+ --background-system: #FAFAFA;
354
+ --background-tertiary: #DFDFE2;
355
+ --background-yellow: #FFF3EB;
356
+ --background-yellow-on-hover: #FFE1CC;
357
+ --border: #BEBEC1;
358
+ --border-blue: #3772FF;
359
+ --border-blue-on-hover: #003FD6;
360
+ --border-blue-subtle: #99B7FF;
361
+ --border-green: #00E052;
362
+ --border-green-on-hover: #00B241;
363
+ --border-green-subtle: #8AFFB5;
364
+ --border-invert: #09090B;
365
+ --border-on-color: #FFFFFF;
366
+ --border-orange: #D65700;
367
+ --border-orange-on-hover: #AD4700;
368
+ --border-orange-subtle: #FFC9A3;
369
+ --border-primary: #BEBEC1;
370
+ --border-red: #C41C3B;
371
+ --border-red-on-hover: #A11730;
372
+ --border-red-subtle: #F6C1CA;
373
+ --border-secondary: #DFDFE2;
374
+ --border-subtle: #DFDFE2;
375
+ --border-yellow: #F09700;
376
+ --border-yellow-on-hover: #D68700;
377
+ --border-yellow-subtle: #FFD999;
378
+ --card: #EDEDED;
379
+ --card-foreground: #17171C;
380
+ --color-black: #09090B;
381
+ --color-white: #FFFFFF;
382
+ --content-always-black: #09090B;
383
+ --content-always-white: #FFFFFF;
384
+ --content-blue: #3772FF;
385
+ --content-blue-disabled: #709AFF;
386
+ --content-blue-on-hover: #004BFF;
387
+ --content-green: #00B241;
388
+ --content-green-disabled: #5CFF98;
389
+ --content-green-on-hover: #00E052;
390
+ --content-on-color: #FFFFFF;
391
+ --content-on-color-inverse: #09090B;
392
+ --content-orange: #D65700;
393
+ --content-orange-disabled: #EC9C64;
394
+ --content-orange-on-hover: #AD4700;
395
+ --content-primary: #17171C;
396
+ --content-red: #C41C3B;
397
+ --content-red-disabled: #E15C5C;
398
+ --content-red-on-hover: #A11730;
399
+ --content-secondary: #60606C;
400
+ --content-subtle: #BEBEC1;
401
+ --content-yellow: #F09700;
402
+ --content-yellow-disabled: #FFCA70;
403
+ --content-yellow-on-hover: #D68700;
404
+ --destructive: #C41C3B;
405
+ --destructive-foreground: #FFFFFF;
406
+ --font-mono:
407
+ Gist Mono,
408
+ Menlo,
409
+ Monaco,
410
+ Consolas,
411
+ Liberation Mono,
412
+ Courier New,
413
+ monospace;
414
+ --font-sans:
415
+ Gist,
416
+ -apple-system,
417
+ BlinkMacSystemFont,
418
+ Segoe UI,
419
+ Roboto,
420
+ Oxygen,
421
+ Ubuntu,
422
+ Cantarell,
423
+ sans-serif;
424
+ --font-size-2xl: 1.5rem;
425
+ --font-size-3xl: 1.875rem;
426
+ --font-size-4xl: 2.25rem;
427
+ --font-size-5xl: 3rem;
428
+ --font-size-base: 1rem;
429
+ --font-size-lg: 1.125rem;
430
+ --font-size-sm: 0.875rem;
431
+ --font-size-xl: 1.25rem;
432
+ --font-size-xs: 0.75rem;
433
+ --font-weight-bold: 700;
434
+ --font-weight-medium: 500;
435
+ --font-weight-normal: 400;
436
+ --font-weight-semibold: 600;
437
+ --foreground: #17171C;
438
+ --input: #BEBEC1;
439
+ --intent-danger: #C41C3B;
440
+ --intent-danger-active: #7D1225;
441
+ --intent-danger-bg: #FDF2F4;
442
+ --intent-danger-bg-active: #FADBE1;
443
+ --intent-danger-bg-hover: #FADBE1;
444
+ --intent-danger-border: #C41C3B;
445
+ --intent-danger-hover: #A11730;
446
+ --intent-danger-text: #C41C3B;
447
+ --intent-neutral: #60606C;
448
+ --intent-neutral-active: #2F2F37;
449
+ --intent-neutral-bg: #EDEDED;
450
+ --intent-neutral-bg-active: #DFDFE2;
451
+ --intent-neutral-bg-hover: #DFDFE2;
452
+ --intent-neutral-border: #BEBEC1;
453
+ --intent-neutral-hover: #4E4E5A;
454
+ --intent-neutral-text: #17171C;
455
+ --intent-primary: #60606C;
456
+ --intent-primary-active: #2F2F37;
457
+ --intent-primary-bg: #EDEDED;
458
+ --intent-primary-bg-active: #DFDFE2;
459
+ --intent-primary-bg-hover: #DFDFE2;
460
+ --intent-primary-border: #BEBEC1;
461
+ --intent-primary-hover: #4E4E5A;
462
+ --intent-primary-text: #17171C;
463
+ --intent-success: #00E052;
464
+ --intent-success-active: #008A32;
465
+ --intent-success-bg: #E0FFEC;
466
+ --intent-success-bg-active: #8AFFB5;
467
+ --intent-success-bg-hover: #BDFFD5;
468
+ --intent-success-border: #00E052;
469
+ --intent-success-hover: #00B241;
470
+ --intent-success-text: #00B241;
471
+ --intent-warning: #F09700;
472
+ --intent-warning-active: #7A4D00;
473
+ --intent-warning-bg: #FFF3EB;
474
+ --intent-warning-bg-active: #FFE8C2;
475
+ --intent-warning-bg-hover: #FFE1CC;
476
+ --intent-warning-border: #F09700;
477
+ --intent-warning-hover: #D68700;
478
+ --intent-warning-text: #F09700;
479
+ --line-height-normal: 1.5;
480
+ --line-height-relaxed: 1.75;
481
+ --line-height-tight: 1.25;
482
+ --muted: #EDEDED;
483
+ --muted-foreground: #BEBEC1;
484
+ --popover: #EDEDED;
485
+ --popover-foreground: #17171C;
486
+ --primary: #60606C;
487
+ --primary-foreground: #FFFFFF;
488
+ --radius: 0.375rem;
489
+ --radius-2xl: 1rem;
490
+ --radius-3xl: 1.5rem;
491
+ --radius-base: 0.25rem;
492
+ --radius-full: 9999px;
493
+ --radius-lg: 0.5rem;
494
+ --radius-md: 0.375rem;
495
+ --radius-none: 0;
496
+ --radius-sm: 0.125rem;
497
+ --radius-xl: 0.75rem;
498
+ --ring: #60606C;
499
+ --secondary: #EDEDED;
500
+ --secondary-foreground: #17171C;
501
+ --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
502
+ --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
503
+ --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
504
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
505
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
506
+ --shadow-none: none;
507
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
508
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
509
+ --spacing-0: 0;
510
+ --spacing-1: 0.25rem;
511
+ --spacing-10: 2.5rem;
512
+ --spacing-12: 3rem;
513
+ --spacing-16: 4rem;
514
+ --spacing-2: 0.5rem;
515
+ --spacing-20: 5rem;
516
+ --spacing-24: 6rem;
517
+ --spacing-3: 0.75rem;
518
+ --spacing-4: 1rem;
519
+ --spacing-5: 1.25rem;
520
+ --spacing-6: 1.5rem;
521
+ --spacing-8: 2rem;
522
+ --surface-base: #FFFFFF;
523
+ --surface-base-border: #BEBEC1;
524
+ --surface-elevated: #EDEDED;
525
+ --surface-elevated-border: #DFDFE2;
526
+ --surface-overlay: rgba(0, 0, 0, 0.5);
527
+ --text-body: #17171C;
528
+ --text-disabled: #BEBEC1;
529
+ --text-heading: #17171C;
530
+ --text-muted: #BEBEC1;
531
+ --z-dropdown: 1000;
532
+ --z-fixed: 1030;
533
+ --z-modal: 1050;
534
+ --z-modal-backdrop: 1040;
535
+ --z-popover: 1060;
536
+ --z-sticky: 1020;
537
+ --z-tooltip: 1070;
538
+ font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
539
+ color: var(--text-body);
540
+ background-color: var(--surface-base);
541
+ }
542
+ .dark {
336
543
  --accent: #17171C;
337
544
  --accent-foreground: #DFDFE2;
338
545
  --background: #09090B;
339
- --background-base: #09090B;
340
546
  --background-green: #00471A;
341
547
  --background-green-on-hover: #006625;
342
548
  --background-info: #00123D;
@@ -347,11 +553,11 @@ video {
347
553
  --background-low-on-hover: #2F2F37;
348
554
  --background-orange: #331500;
349
555
  --background-orange-on-hover: #5C2500;
350
- --background-primary: #00123D;
351
- --background-primary-on-hover: #001E66;
556
+ --background-primary: #09090B;
352
557
  --background-red: #2D060D;
353
558
  --background-red-on-hover: #4C0B17;
354
559
  --background-secondary: #17171C;
560
+ --background-system: #09090B;
355
561
  --background-tertiary: #2F2F37;
356
562
  --background-yellow: #3D2600;
357
563
  --background-yellow-on-hover: #5C3A00;
@@ -536,9 +742,6 @@ video {
536
742
  --z-popover: 1060;
537
743
  --z-sticky: 1020;
538
744
  --z-tooltip: 1070;
539
- font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
540
- color: var(--text-body);
541
- background-color: var(--surface-base);
542
745
  }
543
746
  * {
544
747
  box-sizing: border-box;
@@ -550,6 +753,49 @@ textarea:focus-visible {
550
753
  outline: 2px solid var(--intent-primary);
551
754
  outline-offset: 2px;
552
755
  }
756
+ * {
757
+ border-color: var(--border-primary);
758
+ }
759
+ body {
760
+ background-color: var(--background-primary);
761
+ color: var(--content-primary);
762
+ }
763
+ html {
764
+ font-size: 10px;
765
+ }
766
+ html,
767
+ body {
768
+ height: 100vh;
769
+ min-height: 100vh;
770
+ width: 100vw;
771
+ min-width: 100vw;
772
+ margin: 0;
773
+ padding: 0;
774
+ }
775
+ body {
776
+ font-family: var(--font-sans);
777
+ -webkit-font-smoothing: antialiased;
778
+ -moz-osx-font-smoothing: grayscale;
779
+ }
780
+ *,
781
+ ::before,
782
+ ::after {
783
+ box-sizing: border-box;
784
+ border-width: 0;
785
+ }
786
+ :focus {
787
+ outline: 0 !important;
788
+ box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
789
+ }
790
+ input:-webkit-autofill,
791
+ input:-webkit-autofill:hover,
792
+ input:-webkit-autofill:focus,
793
+ input:-webkit-autofill:active {
794
+ background-color: transparent;
795
+ -webkit-transition: background-color 5000s ease-in-out 0s;
796
+ transition: background-color 5000s ease-in-out 0s;
797
+ -webkit-text-fill-color: var(--content-primary);
798
+ }
553
799
  .container {
554
800
  width: 100%;
555
801
  }
@@ -578,6 +824,10 @@ textarea:focus-visible {
578
824
  max-width: 1536px;
579
825
  }
580
826
  }
827
+ button {
828
+ font-family: inherit;
829
+ font-size: inherit;
830
+ }
581
831
  .sr-only {
582
832
  position: absolute;
583
833
  width: 1px;
@@ -1126,6 +1376,15 @@ textarea:focus-visible {
1126
1376
  white-space: nowrap;
1127
1377
  border-width: 0;
1128
1378
  }
1379
+ .transition-all {
1380
+ transition: all 0.15s ease-in-out;
1381
+ }
1382
+ .transition-colors {
1383
+ transition:
1384
+ color 0.15s ease-in-out,
1385
+ background-color 0.15s ease-in-out,
1386
+ border-color 0.15s ease-in-out;
1387
+ }
1129
1388
  .hover\:border-\[var\(--border-green-on-hover\)\]:hover {
1130
1389
  border-color: var(--border-green-on-hover);
1131
1390
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abhir9/pd-design-system",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Production-grade design system with adapter layer support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -33,7 +33,7 @@
33
33
  "build-storybook": "storybook build",
34
34
  "build": "npm run generate:css-variables && tsup && npm run build:css && rm -f dist/*.css.map",
35
35
  "generate:css-variables": "tsx scripts/generate-css-variables.ts",
36
- "build:css": "postcss src/styles.css -o dist/index.css --no-map && sed -i '' '/sourceMappingURL/d' dist/index.css 2>/dev/null || sed -i '/sourceMappingURL/d' dist/index.css 2>/dev/null || true",
36
+ "build:css": "cp src/styles.css dist/index.css",
37
37
  "dev": "tsup --watch",
38
38
  "type-check": "tsc --noEmit",
39
39
  "lint": "eslint src --ext .ts,.tsx",