@redseed/redseed-ui-tailwindcss 5.4.3 → 6.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.
package/colors.css CHANGED
@@ -482,72 +482,4 @@
482
482
  --Colors-Effects-Shadows-shadow-3xl_02: hsla(220, 29%, 5%, 0.04);
483
483
  --Colors-Effects-Shadows-shadow-skeumorphic-inner: hsla(220, 29%, 5%, 0.05);
484
484
  --Colors-Effects-Shadows-shadow-skeumorphic-inner-border: hsla(220, 29%, 5%, 0.18);
485
- }
486
-
487
- html.dark {
488
- --Colors-Grey-25: hsla(0, 0%, 98%, 1);
489
- --Colors-Grey-50: hsla(0, 0%, 97%, 1);
490
- --Colors-Grey-100: hsla(220, 3%, 94%, 1);
491
- --Colors-Grey-200: hsla(220, 3%, 93%, 1);
492
- --Colors-Grey-300: hsla(220, 4%, 82%, 1);
493
- --Colors-Grey-400: hsla(220, 4%, 60%, 1);
494
- --Colors-Grey-500: hsla(220, 4%, 54%, 1);
495
- --Colors-Grey-600: hsla(220, 5%, 40%, 1);
496
- --Colors-Grey-700: hsla(220, 8%, 24%, 1);
497
- --Colors-Grey-800: hsla(220, 16%, 16%, 1);
498
- --Colors-Grey-900: hsla(220, 18%, 9%, 1);
499
- --Colors-Grey-950: hsla(220, 20%, 6%, 1);
500
- --Colors-Grey-alpha-25: hsla(0, 0%, 100%, 0.98);
501
- --Colors-Grey-alpha-50: hsla(0, 0%, 100%, 0.96);
502
- --Colors-Grey-alpha-100: hsla(0, 0%, 100%, 0.94);
503
- --Colors-Grey-alpha-200: hsla(0, 0%, 100%, 0.92);
504
- --Colors-Grey-alpha-300: hsla(0, 0%, 100%, 0.8);
505
- --Colors-Grey-alpha-400: hsla(0, 0%, 100%, 0.56);
506
- --Colors-Grey-alpha-500: hsla(0, 0%, 100%, 0.5);
507
- --Colors-Grey-alpha-600: hsla(0, 0%, 100%, 0.35);
508
- --Colors-Grey-alpha-700: hsla(0, 0%, 100%, 0.16);
509
- --Colors-Grey-alpha-800: hsla(0, 0%, 100%, 0.08);
510
- --Colors-Grey-alpha-900: hsla(0, 0%, 100%, 0.04);
511
- --Colors-Grey-alpha-950: hsla(0, 0%, 100%, 0);
512
- --Component-colors-Alpha-alpha-white-10: hsla(220, 20%, 6%, 0.1);
513
- --Component-colors-Alpha-alpha-white-20: hsla(220, 20%, 6%, 0.2);
514
- --Component-colors-Alpha-alpha-white-30: hsla(220, 20%, 6%, 0.3);
515
- --Component-colors-Alpha-alpha-white-40: hsla(220, 20%, 6%, 0.4);
516
- --Component-colors-Alpha-alpha-white-50: hsla(220, 20%, 6%, 0.5);
517
- --Component-colors-Alpha-alpha-white-60: hsla(220, 20%, 6%, 0.6);
518
- --Component-colors-Alpha-alpha-white-70: hsla(220, 20%, 6%, 0.7);
519
- --Component-colors-Alpha-alpha-white-80: hsla(220, 20%, 6%, 0.8);
520
- --Component-colors-Alpha-alpha-white-90: hsla(220, 20%, 6%, 0.9);
521
- --Component-colors-Alpha-alpha-white-100: var(--Colors-Grey-950);
522
- --Component-colors-Alpha-alpha-black-10: hsla(0, 0%, 100%, 0.1);
523
- --Component-colors-Alpha-alpha-black-20: hsla(0, 0%, 100%, 0.2);
524
- --Component-colors-Alpha-alpha-black-30: hsla(0, 0%, 100%, 0.3);
525
- --Component-colors-Alpha-alpha-black-40: hsla(0, 0%, 100%, 0.4);
526
- --Component-colors-Alpha-alpha-black-50: hsla(0, 0%, 100%, 0.5);
527
- --Component-colors-Alpha-alpha-black-60: hsla(0, 0%, 100%, 0.6);
528
- --Component-colors-Alpha-alpha-black-70: hsla(0, 0%, 100%, 0.7);
529
- --Component-colors-Alpha-alpha-black-80: hsla(0, 0%, 100%, 0.8);
530
- --Component-colors-Alpha-alpha-black-90: hsla(0, 0%, 100%, 0.9);
531
- --Component-colors-Alpha-alpha-black-100: hsla(0, 0%, 100%, 1);
532
- --Colors-Effects-Portfolio-mockups-shadow-main-centre-md: var(--Colors-Base-transparent);
533
- --Colors-Effects-Portfolio-mockups-shadow-main-centre-lg: var(--Colors-Base-transparent);
534
- --Colors-Effects-Portfolio-mockups-shadow-overlay-lg: var(--Colors-Base-transparent);
535
- --Colors-Effects-Portfolio-mockups-shadow-grid-md: var(--Colors-Base-transparent);
536
- --Colors-Effects-Shadows-shadow-xs: var(--Colors-Base-transparent);
537
- --Colors-Effects-Shadows-shadow-sm_01: var(--Colors-Base-transparent);
538
- --Colors-Effects-Shadows-shadow-sm_02: var(--Colors-Base-transparent);
539
- --Colors-Effects-Shadows-shadow-md_01: var(--Colors-Base-transparent);
540
- --Colors-Effects-Shadows-shadow-md_02: var(--Colors-Base-transparent);
541
- --Colors-Effects-Shadows-shadow-lg_01: var(--Colors-Base-transparent);
542
- --Colors-Effects-Shadows-shadow-lg_02: var(--Colors-Base-transparent);
543
- --Colors-Effects-Shadows-shadow-lg_03: var(--Colors-Base-transparent);
544
- --Colors-Effects-Shadows-shadow-xl_01: var(--Colors-Base-transparent);
545
- --Colors-Effects-Shadows-shadow-xl_02: var(--Colors-Base-transparent);
546
- --Colors-Effects-Shadows-shadow-xl_03: var(--Colors-Base-transparent);
547
- --Colors-Effects-Shadows-shadow-2xl_01: var(--Colors-Base-transparent);
548
- --Colors-Effects-Shadows-shadow-2xl_02: var(--Colors-Base-transparent);
549
- --Colors-Effects-Shadows-shadow-3xl_01: var(--Colors-Base-transparent);
550
- --Colors-Effects-Shadows-shadow-3xl_02: var(--Colors-Base-transparent);
551
- --Colors-Effects-Shadows-shadow-skeumorphic-inner: hsla(220, 20%, 6%, 0.05);
552
- --Colors-Effects-Shadows-shadow-skeumorphic-inner-border: hsla(220, 20%, 6%, 0.18);
553
485
  }
@@ -0,0 +1,67 @@
1
+ :root.dark {
2
+ --Colors-Grey-25: hsla(0, 0%, 98%, 1);
3
+ --Colors-Grey-50: hsla(0, 0%, 97%, 1);
4
+ --Colors-Grey-100: hsla(220, 3%, 94%, 1);
5
+ --Colors-Grey-200: hsla(220, 3%, 93%, 1);
6
+ --Colors-Grey-300: hsla(220, 4%, 82%, 1);
7
+ --Colors-Grey-400: hsla(220, 4%, 60%, 1);
8
+ --Colors-Grey-500: hsla(220, 4%, 54%, 1);
9
+ --Colors-Grey-600: hsla(220, 5%, 40%, 1);
10
+ --Colors-Grey-700: hsla(220, 8%, 24%, 1);
11
+ --Colors-Grey-800: hsla(220, 16%, 16%, 1);
12
+ --Colors-Grey-900: hsla(220, 18%, 9%, 1);
13
+ --Colors-Grey-950: hsla(220, 20%, 6%, 1);
14
+ --Colors-Grey-alpha-25: hsla(0, 0%, 100%, 0.98);
15
+ --Colors-Grey-alpha-50: hsla(0, 0%, 100%, 0.96);
16
+ --Colors-Grey-alpha-100: hsla(0, 0%, 100%, 0.94);
17
+ --Colors-Grey-alpha-200: hsla(0, 0%, 100%, 0.92);
18
+ --Colors-Grey-alpha-300: hsla(0, 0%, 100%, 0.8);
19
+ --Colors-Grey-alpha-400: hsla(0, 0%, 100%, 0.56);
20
+ --Colors-Grey-alpha-500: hsla(0, 0%, 100%, 0.5);
21
+ --Colors-Grey-alpha-600: hsla(0, 0%, 100%, 0.35);
22
+ --Colors-Grey-alpha-700: hsla(0, 0%, 100%, 0.16);
23
+ --Colors-Grey-alpha-800: hsla(0, 0%, 100%, 0.08);
24
+ --Colors-Grey-alpha-900: hsla(0, 0%, 100%, 0.04);
25
+ --Colors-Grey-alpha-950: hsla(0, 0%, 100%, 0);
26
+ --Component-colors-Alpha-alpha-white-10: hsla(220, 20%, 6%, 0.1);
27
+ --Component-colors-Alpha-alpha-white-20: hsla(220, 20%, 6%, 0.2);
28
+ --Component-colors-Alpha-alpha-white-30: hsla(220, 20%, 6%, 0.3);
29
+ --Component-colors-Alpha-alpha-white-40: hsla(220, 20%, 6%, 0.4);
30
+ --Component-colors-Alpha-alpha-white-50: hsla(220, 20%, 6%, 0.5);
31
+ --Component-colors-Alpha-alpha-white-60: hsla(220, 20%, 6%, 0.6);
32
+ --Component-colors-Alpha-alpha-white-70: hsla(220, 20%, 6%, 0.7);
33
+ --Component-colors-Alpha-alpha-white-80: hsla(220, 20%, 6%, 0.8);
34
+ --Component-colors-Alpha-alpha-white-90: hsla(220, 20%, 6%, 0.9);
35
+ --Component-colors-Alpha-alpha-white-100: var(--Colors-Grey-950);
36
+ --Component-colors-Alpha-alpha-black-10: hsla(0, 0%, 100%, 0.1);
37
+ --Component-colors-Alpha-alpha-black-20: hsla(0, 0%, 100%, 0.2);
38
+ --Component-colors-Alpha-alpha-black-30: hsla(0, 0%, 100%, 0.3);
39
+ --Component-colors-Alpha-alpha-black-40: hsla(0, 0%, 100%, 0.4);
40
+ --Component-colors-Alpha-alpha-black-50: hsla(0, 0%, 100%, 0.5);
41
+ --Component-colors-Alpha-alpha-black-60: hsla(0, 0%, 100%, 0.6);
42
+ --Component-colors-Alpha-alpha-black-70: hsla(0, 0%, 100%, 0.7);
43
+ --Component-colors-Alpha-alpha-black-80: hsla(0, 0%, 100%, 0.8);
44
+ --Component-colors-Alpha-alpha-black-90: hsla(0, 0%, 100%, 0.9);
45
+ --Component-colors-Alpha-alpha-black-100: hsla(0, 0%, 100%, 1);
46
+ --Colors-Effects-Portfolio-mockups-shadow-main-centre-md: var(--Colors-Base-transparent);
47
+ --Colors-Effects-Portfolio-mockups-shadow-main-centre-lg: var(--Colors-Base-transparent);
48
+ --Colors-Effects-Portfolio-mockups-shadow-overlay-lg: var(--Colors-Base-transparent);
49
+ --Colors-Effects-Portfolio-mockups-shadow-grid-md: var(--Colors-Base-transparent);
50
+ --Colors-Effects-Shadows-shadow-xs: var(--Colors-Base-transparent);
51
+ --Colors-Effects-Shadows-shadow-sm_01: var(--Colors-Base-transparent);
52
+ --Colors-Effects-Shadows-shadow-sm_02: var(--Colors-Base-transparent);
53
+ --Colors-Effects-Shadows-shadow-md_01: var(--Colors-Base-transparent);
54
+ --Colors-Effects-Shadows-shadow-md_02: var(--Colors-Base-transparent);
55
+ --Colors-Effects-Shadows-shadow-lg_01: var(--Colors-Base-transparent);
56
+ --Colors-Effects-Shadows-shadow-lg_02: var(--Colors-Base-transparent);
57
+ --Colors-Effects-Shadows-shadow-lg_03: var(--Colors-Base-transparent);
58
+ --Colors-Effects-Shadows-shadow-xl_01: var(--Colors-Base-transparent);
59
+ --Colors-Effects-Shadows-shadow-xl_02: var(--Colors-Base-transparent);
60
+ --Colors-Effects-Shadows-shadow-xl_03: var(--Colors-Base-transparent);
61
+ --Colors-Effects-Shadows-shadow-2xl_01: var(--Colors-Base-transparent);
62
+ --Colors-Effects-Shadows-shadow-2xl_02: var(--Colors-Base-transparent);
63
+ --Colors-Effects-Shadows-shadow-3xl_01: var(--Colors-Base-transparent);
64
+ --Colors-Effects-Shadows-shadow-3xl_02: var(--Colors-Base-transparent);
65
+ --Colors-Effects-Shadows-shadow-skeumorphic-inner: hsla(220, 20%, 6%, 0.05);
66
+ --Colors-Effects-Shadows-shadow-skeumorphic-inner-border: hsla(220, 20%, 6%, 0.18);
67
+ }
@@ -1,6 +1,6 @@
1
1
  .rsui-button-group-item {
2
2
  /* default control */
3
- @apply inline-flex justify-center items-center select-none outline-none p-2 font-semibold text-sm transition;
3
+ @apply inline-flex justify-center items-center select-none outline-hidden p-2 font-semibold text-sm transition;
4
4
 
5
5
  /* default shape */
6
6
  @apply first:rounded-l-md last:rounded-r-md first:border-l border-r border-y ring-0;
@@ -1,6 +1,6 @@
1
1
  .rsui-button-slot {
2
2
  /* default control */
3
- @apply w-fit h-fit inline-flex shrink-0 items-center select-none outline-none whitespace-nowrap will-change-transform;
3
+ @apply w-fit h-fit inline-flex shrink-0 items-center select-none outline-hidden whitespace-nowrap will-change-transform;
4
4
 
5
5
  /* default shape */
6
6
  @apply border rounded-lg transition gap-1.5;
@@ -53,7 +53,7 @@
53
53
 
54
54
  /* modifier sm size */
55
55
  .rsui-button-slot--sm {
56
- @apply text-sm px-spacing-lg py-spacing-md gap-spacing-xs;
56
+ @apply text-sm px-3 py-2 gap-1;
57
57
  }
58
58
 
59
59
  /* modifier md size */
@@ -70,7 +70,7 @@
70
70
  /* Success state styling */
71
71
  /* Increase specificity so it overrides base .rsui-card styles */
72
72
  .rsui-card.rsui-checkbox-card--success {
73
- @apply bg-rsui-success-100 border-border-success;
73
+ @apply bg-success-100 border-border-success;
74
74
  }
75
75
 
76
76
  .rsui-checkbox-card--success .rsui-checkbox-card__title-text {
@@ -16,9 +16,9 @@
16
16
  }
17
17
 
18
18
  .rsui-form-field-checkbox__check input[type="checkbox"] {
19
- @apply appearance-none absolute inset-0 z-0 rounded-md transition focus:outline-none cursor-pointer;
19
+ @apply appearance-none absolute inset-0 z-0 rounded-md transition focus:outline-hidden cursor-pointer;
20
20
  @apply w-full h-full text-text-primary border border-border-primary text-transparent bg-none;
21
- @apply focus:ring focus:ring-border-primary focus:border-border-primary;
21
+ @apply focus:ring-3 focus:ring-border-primary focus:border-border-primary;
22
22
  @apply invalid:border-border-error invalid:ring-0;
23
23
  @apply disabled:text-text-disabled disabled:bg-background-disabled disabled:cursor-default;
24
24
  }
@@ -30,4 +30,3 @@
30
30
  .rsui-form-field-checkbox .rsui-form-field-slot__label::after {
31
31
  @apply hidden;
32
32
  }
33
-
@@ -92,7 +92,7 @@
92
92
 
93
93
  .rsui-form-field-combobox input[type='text'] {
94
94
  @apply flex-1;
95
- @apply text-base text-text-primary transition py-3 px-4 pr-12 outline-none focus:outline-none;
95
+ @apply text-base text-text-primary transition py-3 px-4 pr-12 outline-hidden focus:outline-hidden;
96
96
  @apply bg-background-primary placeholder-text-secondary;
97
97
  @apply disabled:text-text-disabled disabled:bg-background-disabled disabled:border-border-disabled disabled:ring-0;
98
98
  }
@@ -64,7 +64,7 @@
64
64
  .rsui-form-field-select select {
65
65
  @apply block w-full border ring-0 bg-none cursor-pointer appearance-none transition;
66
66
  @apply py-3 pl-5 pr-14 truncate;
67
- @apply text-base rounded-lg outline-none focus:outline-none;
67
+ @apply text-base rounded-lg outline-hidden focus:outline-hidden;
68
68
  @apply bg-background-primary text-text-primary placeholder-text-secondary border-border-primary;
69
69
  @apply focus:border-border-primary;
70
70
  @apply invalid:border-border-error invalid:ring-0;
@@ -30,8 +30,7 @@
30
30
  .rsui-form-field-text input[type='url'],
31
31
  .rsui-form-field-text input[type='week'] {
32
32
  @apply flex-1;
33
- @apply text-base text-text-primary transition py-3 px-4 outline-none focus:outline-none;
33
+ @apply text-base text-text-primary transition py-3 px-4 outline-hidden focus:outline-hidden;
34
34
  @apply bg-background-primary placeholder-text-secondary;
35
35
  @apply disabled:text-text-disabled disabled:bg-background-disabled disabled:border-border-disabled disabled:ring-0;
36
36
  }
37
-
@@ -4,7 +4,7 @@
4
4
 
5
5
  .rsui-form-field-textarea textarea {
6
6
  @apply w-full border rounded-md ring-0 text-base transition resize-none;
7
- @apply py-3 px-4 outline-none focus:outline-none;
7
+ @apply py-3 px-4 outline-hidden focus:outline-hidden;
8
8
  @apply text-text-primary bg-background-primary placeholder-text-secondary border-border-primary;
9
9
  @apply focus:border-border-primary;
10
10
  @apply invalid:border-border-error invalid:ring-0;
@@ -16,4 +16,3 @@
16
16
  .rsui-form-field-textarea textarea::-webkit-scrollbar {
17
17
  display: none;
18
18
  }
19
-
@@ -1,7 +1,7 @@
1
1
  .rsui-link-slot {
2
2
  /* default shape and control */
3
3
  @apply relative w-fit h-fit inline-flex shrink-0 items-center justify-center whitespace-nowrap will-change-transform;
4
- @apply select-none outline-none cursor-pointer transition;
4
+ @apply select-none outline-hidden cursor-pointer transition;
5
5
 
6
6
  /* default text styles */
7
7
  @apply font-medium text-text-primary gap-2;
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  .rsui-modal__background-wrapper {
30
- @apply fixed inset-0 transform transition-all backdrop-blur-sm bg-text-primary bg-opacity-70;
30
+ @apply fixed inset-0 transform transition-all backdrop-blur-xs bg-text-primary/70;
31
31
  }
32
32
 
33
33
  .rsui-modal__background {
@@ -72,4 +72,3 @@
72
72
  }
73
73
 
74
74
  .rsui-modal__footer--start { @apply justify-start; }
75
-
@@ -1,5 +1,5 @@
1
1
  .rsui-pagination {
2
- @apply flex flex-nowrap items-center w-fit border border-border-secondary rounded-full p-1 bg-background-primary divide-x;
2
+ @apply flex flex-nowrap items-center w-fit border border-border-secondary rounded-full p-1 bg-background-primary divide-x divide-border-secondary;
3
3
  }
4
4
 
5
5
  .rsui-pagination__previous {
@@ -25,4 +25,3 @@
25
25
  .rsui-pagination-parent__record-count {
26
26
  @apply size-full flex items-center justify-center;
27
27
  }
28
-
@@ -1,5 +1,5 @@
1
1
  .rsui-radio-card {
2
- @apply max-w-80 w-80 bg-background-primary border border-border-secondary rounded-md shadow-sm outline-none select-none;
2
+ @apply max-w-80 w-80 bg-background-primary border border-border-secondary rounded-md shadow-xs outline-hidden select-none;
3
3
  @apply relative cursor-pointer transition-all flex flex-col gap-3 p-4;
4
4
  @apply focus-visible:ring-4 focus-visible:ring-border-primary;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  .rsui-section {
2
- @apply border border-solid rounded-xl p-6;
2
+ @apply border border-solid rounded-xl p-6 space-y-4;
3
3
  }
4
4
 
5
5
  .rsui-section--primary {
@@ -18,6 +18,10 @@
18
18
  @apply bg-background-success border-border-success text-text-primary;
19
19
  }
20
20
 
21
+ .rsui-section--info {
22
+ @apply bg-background-info border-border-info text-text-primary;
23
+ }
24
+
21
25
  .rsui-section--warning {
22
26
  @apply bg-background-warning border-border-warning text-text-primary;
23
27
  }
@@ -25,4 +29,3 @@
25
29
  .rsui-section--error {
26
30
  @apply bg-background-error border-border-error text-text-primary;
27
31
  }
28
-
@@ -1,5 +1,5 @@
1
1
  .rsui-switcher-item {
2
- @apply h-fit inline-flex shrink-0 items-center justify-center select-none outline-none whitespace-nowrap will-change-transform cursor-pointer;
2
+ @apply h-fit inline-flex shrink-0 items-center justify-center select-none outline-hidden whitespace-nowrap will-change-transform cursor-pointer;
3
3
  @apply font-semibold gap-2 rounded-md border border-transparent transition;
4
4
  @apply text-base px-3 py-2;
5
5
  }
@@ -11,4 +11,3 @@
11
11
  .rsui-switcher-item svg {
12
12
  @apply size-6;
13
13
  }
14
-
@@ -23,7 +23,7 @@
23
23
  @apply focus:ring-0 focus:ring-transparent focus:checked:border-primary-background;
24
24
  @apply checked:bg-none checked:bg-primary-background checked:text-primary-foreground checked:border-primary-background checked:before:bg-primary-foreground checked:before:translate-x-full;
25
25
  @apply disabled:opacity-20 disabled:pointer-events-none;
26
- @apply before:inline-block before:size-4 before:bg-background-primary before:translate-x-0 before:rounded-full before:shadow before:transform before:ring-0 before:transition before:ease-in-out before:duration-200;
26
+ @apply before:inline-block before:size-4 before:bg-background-primary before:translate-x-0 before:rounded-full before:shadow-sm before:transform before:ring-0 before:transition before:ease-in-out before:duration-200;
27
27
  }
28
28
 
29
29
  .rsui-toggle__help {
@@ -33,4 +33,3 @@
33
33
  .rsui-toggle__error {
34
34
  @apply text-sm text-text-error;
35
35
  }
36
-
package/index.css CHANGED
@@ -1,4 +1,7 @@
1
1
  @import './colors.css';
2
+ @import './colors_dark_mode.css';
3
+ @import './theme.css';
4
+ @import './tokens.css';
2
5
 
3
6
  @import './components/button_slot.css';
4
7
  @import './components/button_primary.css';
package/index.js CHANGED
@@ -1,157 +1 @@
1
- const defaultTheme = require('tailwindcss/defaultTheme')
2
- const rsuiColors = require('./colors')
3
-
4
- module.exports = {
5
- darkMode: 'selector',
6
- theme: {
7
- container: {
8
- center: true,
9
- padding: {
10
- DEFAULT: '0.25rem', /* 4px */
11
- 'sm': '2rem', /* 8px */
12
- 'lg': '4rem', /* 16px */
13
- 'xl': '5rem', /* 20px */
14
- '2xl': '6rem', /* 24px */
15
- },
16
- },
17
- screens: {
18
- '2xs': '375px',
19
- 'xs': '480px',
20
- 'sm': '640px',
21
- 'md': '768px',
22
- 'lg': '1024px',
23
- 'xl': '1280px',
24
- '2xl': '1536px',
25
- '3xl': '1920px',
26
- },
27
- extend: {
28
- colors: {
29
- // RedSeed UI colors. Should not be extended.
30
- 'rsui': rsuiColors,
31
-
32
- /**
33
- * Text colors.
34
- */
35
- 'text-primary': rsuiColors.grey['900'],
36
- 'text-secondary': rsuiColors.grey['700'],
37
- 'text-disabled': rsuiColors.grey['400'],
38
- 'text-brand': rsuiColors.brand['900'],
39
- 'text-success': rsuiColors.success['600'],
40
- 'text-warning': rsuiColors.warning['600'],
41
- 'text-error': rsuiColors.error['600'],
42
- 'text-on-color': rsuiColors.white,
43
-
44
- /**
45
- * Background colors.
46
- */
47
- 'background-primary': rsuiColors.white,
48
- 'background-secondary': rsuiColors.grey['50'],
49
- 'background-disabled': rsuiColors.grey['100'],
50
- 'background-brand': rsuiColors.brand['50'],
51
- 'background-success': rsuiColors.success['50'],
52
- 'background-warning': rsuiColors.warning['50'],
53
- 'background-error': rsuiColors.error['50'],
54
- 'background-info': rsuiColors.blue['50'],
55
-
56
- /**
57
- * Border colors.
58
- */
59
- 'border-primary': rsuiColors.grey['400'],
60
- 'border-secondary': rsuiColors.grey['300'],
61
- 'border-disabled': rsuiColors.grey['200'],
62
- 'border-brand': rsuiColors.brand['200'],
63
- 'border-success': rsuiColors.success['200'],
64
- 'border-warning': rsuiColors.warning['200'],
65
- 'border-error': rsuiColors.error['200'],
66
- 'border-info': rsuiColors.blue['200'],
67
-
68
- /**
69
- * Button colors.
70
- */
71
- 'button-primary': rsuiColors.brand['600'],
72
- 'button-primary-hover': rsuiColors.brand['700'],
73
- 'button-primary-active': rsuiColors.brand['800'],
74
-
75
- 'button-secondary': rsuiColors.grey['800'],
76
- 'button-secondary-hover': rsuiColors.grey['700'],
77
- 'button-secondary-active': rsuiColors.grey['600'],
78
-
79
- 'button-tertiary': rsuiColors.brand['600'],
80
- 'button-tertiary-hover': rsuiColors.brand['700'],
81
- 'button-tertiary-active': rsuiColors.brand['800'],
82
-
83
- 'button-danger-primary': rsuiColors.error['600'],
84
- 'button-danger-secondary': rsuiColors.error['600'],
85
- 'button-danger-hover': rsuiColors.error['700'],
86
- 'button-danger-active': rsuiColors.error['800'],
87
-
88
- 'button-separator': rsuiColors.grey['200'],
89
- 'button-disabled': rsuiColors.grey['300'],
90
-
91
- /**
92
- * Legacy primary colors. Left here so we don't have to update all the components. Yet.
93
- */
94
- 'primary-foreground': rsuiColors.white,
95
- 'primary-background': rsuiColors.brand['500'],
96
- 'primary-foreground-hover': rsuiColors.white,
97
- 'primary-background-hover': rsuiColors.brand['700'],
98
-
99
- },
100
- aspectRatio: {
101
- '4/3': '4 / 3',
102
- '3/1': '3 / 1',
103
- '9/16': '9 / 16',
104
- '64/25': '64 / 25'
105
- },
106
- spacing: {
107
- 'spacing-xs': '0.25rem', /* 4px */
108
- 'spacing-md': '0.5rem', /* 8px */
109
- 'spacing-lg': '0.75rem', /* 12px */
110
- '4.5': '1.125rem', /* 18px */
111
- },
112
- minWidth: {
113
- 'px': '1px',
114
- },
115
- width: {
116
- '1/7': '14.285714%',
117
- '1/8': '12.5%',
118
- '13': '3.25rem', /* 52px */
119
- '76': '19rem', /* 304px */
120
- '100': '25rem', /* 400px */
121
- '112': '28rem', /* 448px */
122
- },
123
- height: {
124
- '104': '26rem', /* 416px */
125
- },
126
- size: {
127
- '13': '3.25rem', /* 52px */
128
- },
129
- strokeWidth: {
130
- '3': '3px',
131
- '4': '4px',
132
- },
133
- borderWidth: {
134
- '6': '6px',
135
- },
136
- fontFamily: {
137
- 'redseed': ['new-rubrik', ...defaultTheme.fontFamily.sans],
138
- },
139
- zIndex: {
140
- '1': '1',
141
- '2': '2',
142
- '3': '3',
143
- '4': '4',
144
- '5': '5',
145
- '6': '6',
146
- '7': '7',
147
- '8': '8',
148
- '9': '9',
149
- '99999': '99999',
150
- },
151
- boxShadow: {
152
- 'full': '0 0 6px 1px rgb(0 0 0 / 0.2)',
153
- 'full-light': '0 0 6px 1px rgb(50 60 69 / 0.1)',
154
- },
155
- },
156
- },
157
- }
1
+ import './index.css';
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-tailwindcss",
3
- "version": "5.4.3",
3
+ "version": "6.0.0",
4
4
  "description": "RedSeed UI Tailwindcss",
5
5
  "main": "index.js",
6
+ "style": "index.css",
6
7
  "repository": "https://github.com/redseedtraining/redseed-ui",
7
8
  "scripts": {
8
9
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -11,11 +12,7 @@
11
12
  "author": "",
12
13
  "license": "ISC",
13
14
  "dependencies": {
14
- "tailwindcss": "^3.4.17"
15
- },
16
- "devDependencies": {
17
- "autoprefixer": "^10.4.21",
18
- "postcss": "^8.5.6",
19
- "postcss-import": "^16.1.1"
15
+ "@tailwindcss/vite": "^4.1.13",
16
+ "tailwindcss": "^4.1.13"
20
17
  }
21
18
  }