@rovula/ui 0.1.6 → 0.1.7

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 (56) hide show
  1. package/dist/cjs/bundle.css +361 -355
  2. package/dist/cjs/bundle.js +171 -171
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/utils/colors.d.ts +267 -267
  5. package/dist/components/Switch/Switch.styles.js +1 -1
  6. package/dist/esm/bundle.css +361 -355
  7. package/dist/esm/bundle.js +1 -1
  8. package/dist/esm/bundle.js.map +1 -1
  9. package/dist/esm/types/utils/colors.d.ts +267 -267
  10. package/dist/index.d.ts +267 -267
  11. package/dist/src/theme/global.css +2396 -2540
  12. package/dist/utils/colors.js +267 -267
  13. package/package.json +1 -1
  14. package/src/components/Button/Buttons.stories.tsx +15 -7
  15. package/src/components/Switch/Switch.styles.ts +1 -1
  16. package/src/theme/THEME_MAPPING.md +36 -37
  17. package/src/theme/global.css +7 -3
  18. package/src/theme/presets/colors.js +26 -28
  19. package/src/theme/themes/skyller/baseline.css +0 -4
  20. package/src/theme/themes/variable-mapping.css +1064 -0
  21. package/src/theme/themes/variable.css +248 -230
  22. package/src/theme/themes/xspector/baseline.css +0 -4
  23. package/src/theme/themes/xspector/components/dropdown-menu.css +4 -4
  24. package/src/theme/tokens/baseline.css +0 -3
  25. package/src/theme/tokens/color.css +34 -63
  26. package/src/theme/tokens/components/action-button.css +6 -6
  27. package/src/theme/tokens/components/button.css +189 -189
  28. package/src/theme/tokens/components/dropdown-menu.css +2 -2
  29. package/src/theme/tokens/components/footer.css +1 -1
  30. package/src/theme/tokens/components/switch.css +10 -10
  31. package/src/theme/tokens/typography.css +28 -28
  32. package/src/theme/tokens_old/baseline.css +13 -0
  33. package/src/theme/tokens_old/color.css +78 -0
  34. package/src/theme/tokens_old/components/action-button.css +127 -0
  35. package/src/theme/tokens_old/components/button.css +512 -0
  36. package/src/theme/tokens_old/components/dropdown-menu.css +27 -0
  37. package/src/theme/tokens_old/components/footer.css +9 -0
  38. package/src/theme/tokens_old/components/loading.css +11 -0
  39. package/src/theme/tokens_old/components/navbar.css +9 -0
  40. package/src/theme/tokens_old/components/progress-bar.css +8 -0
  41. package/src/theme/tokens_old/components/switch.css +29 -0
  42. package/src/theme/tokens_old/typography.css +199 -0
  43. package/src/theme/tokens_old/variables.css +28 -0
  44. package/src/theme/utils.js +16 -16
  45. package/src/utils/colors.ts +275 -278
  46. package/src/theme/themes/skyller/color.css +0 -79
  47. package/src/theme/themes/skyller/palette.css +0 -143
  48. package/src/theme/themes/skyller/state.css +0 -94
  49. package/src/theme/themes/skyller/transparent.css +0 -94
  50. package/src/theme/themes/xspector/color.css +0 -83
  51. package/src/theme/themes/xspector/palette.css +0 -142
  52. package/src/theme/themes/xspector/state.css +0 -94
  53. package/src/theme/themes/xspector/transparent.css +0 -93
  54. /package/src/theme/{tokens → tokens_old}/palette.css +0 -0
  55. /package/src/theme/{tokens → tokens_old}/state.css +0 -0
  56. /package/src/theme/{tokens → tokens_old}/transparent.css +0 -0
@@ -1,78 +1,49 @@
1
1
 
2
2
  :root {
3
- /* Base from design */
4
- --input-color-default-text: #9e9e9e;
5
- --input-color-default-stroke: #cfcfcf;
6
- --input-color-filled-text: #4f4f4f;
7
- --input-color-active-stroke: #9e9e9e;
8
- --input-color-disable-text: #919eab;
9
- --input-color-disable-stroke: #e7ebed;
10
- --input-color-disable-bg: #f2f5f5;
11
- --input-color-label-bg: #ffffff;/* #2d2e30; */
12
- --input-color-error: #ed2f15;
13
-
14
- /* Function button */
15
- --function-default-solid: #1e3249;
16
- --function-default-hover: #35475b;
17
- --function-default-hover-bg: rgba(30 50 73 / 0.08);
18
- --function-default-stroke: rgba(30 50 73 / 0.48);
19
- --function-default-icon: #ffffff;
20
- --function-default-outline-icon: #1e3249;
21
- --function-active-solid: #9b8f00;
22
- --function-active-hover: #b1a400;
23
- --function-active-hover-bg: rgba(221 205 0 / 0.08);
24
- --function-active-stroke: rgba(177 164 0 / 0.48);
25
- --function-active-icon: #ffffff;
26
-
27
- --text-black: #000000;
28
- --text-dark: #18283a;
29
- --text-medium: #4b5b6d;
30
- --text-light: #8e98a4;
31
- --text-grey-dark: #4f4f4f;
32
- --text-grey-medium: #7e7e7e;
33
- --text-grey-light: #9e9e9e;
34
- --text-white: #ffffff;
35
-
36
- --base-color-bg: #f5f5f5;
37
- --base-color-bg2: #f5f5f5;
38
- --base-color-bg3: #d8d8d8;
39
- --base-color-workspace-stroke: #e2e2e2;
40
- --base-color-guideline-stroke: #c5c5c5;
41
- --base-color-popup: #ffffff;
42
- --base-color-popup-highlight: #343638;
43
- --base-color-popup-curtain: rgba(0 0 0 / 0.6);
44
- --common-white: #ffffff;
45
- --common-black: #000000;
3
+ /* Text aliases mapped to new contrast tokens */
4
+ --text-dark: var(--text-contrast-low);
5
+ --text-medium: var(--text-contrast-medium);
6
+ --text-light: var(--text-contrast-high);
7
+ --text-grey-dark: var(--text-g-contrast-low);
8
+ --text-grey-medium: var(--text-g-contrast-medium);
9
+ --text-grey-light: var(--text-g-contrast-high);
10
+
11
+ /* Base color aliases mapped to new background tokens */
12
+ --base-color-bg: var(--bg-bg1);
13
+ --base-color-bg2: var(--bg-bg2);
14
+ --base-color-bg3: var(--bg-bg3);
15
+ --base-color-workspace-stroke: var(--bg-stroke1);
16
+ --base-color-guideline-stroke: var(--bg-stroke2);
17
+ --base-color-popup: var(--modal-surface);
18
+ --base-color-popup-highlight: var(--modal-highlight);
19
+ --base-color-popup-curtain: var(--modal-overlay);
46
20
 
47
21
  /* ------- Addon base ---------- */
48
22
  --background: var(--base-color-bg);
49
23
  --foreground: var(--common-black);
50
24
 
51
- --primary: var(--primary-ramps-primary-100);
52
- --secondary: var(--secondary-ramps-secondary-100);
53
- --tertiary: var(--tertiary-ramps-tertiary-100);
54
- --info: var(--info-info-100);
55
- --success: var(--success-success-100);
56
- --warning: var(--warning-warning-100);
57
- --error: var(--error-error-100);
58
- --grey: var(--grey-grey-100);
59
- --grey2: var(--grey2-grey2-100);
60
-
61
- --primary-foreground: var(--state-color-primary-text-solid);
62
- --secondary-foreground: var(--state-color-secondary-text-solid);
63
- --tertiary-foreground: var(--state-color-tertiary-text-solid);
64
- --info-foreground: var(--state-color-info-text-solid);
65
- --success-foreground: var(--state-color-success-text-solid);
66
- --warning-foreground: var(--state-color-warning-text-solid);
67
- --error-foreground: var(--state-color-error-text-solid);
25
+ --primary: var(--state-primary-default);
26
+ --secondary: var(--state-secondary-default);
27
+ --tertiary: var(--state-tertiary-default);
28
+ --info: var(--state-info-default);
29
+ --success: var(--state-success-default);
30
+ --warning: var(--state-warning-default);
31
+ --error: var(--state-error-default);
32
+ --grey: var(--ramps-grey-100);
33
+ --grey2: var(--ramps-grey2-100);
34
+
35
+ --primary-foreground: var(--state-primary-text-solid);
36
+ --secondary-foreground: var(--state-secondary-text-solid);
37
+ --tertiary-foreground: var(--state-tertiary-text-solid);
38
+ --info-foreground: var(--state-info-text-solid);
39
+ --success-foreground: var(--state-success-text-solid);
40
+ --warning-foreground: var(--state-warning-text-solid);
41
+ --error-foreground: var(--state-error-text-solid);
68
42
  --grey-foreground: var(--common-black);
69
43
  --grey2-foreground: var(--common-black);
70
44
 
71
45
  --surface: var(--base-color-bg);
72
46
  --surface-foreground: var(--common-black);
73
47
 
74
- --primary-foreground: var(--common-white);
75
- --secondary-foreground: var(--common-white);
76
-
77
48
  --base-color-popup-foreground: var(--text-dark);
78
49
  }
@@ -42,9 +42,9 @@
42
42
  --action-button-solid-active-pressed-text: var(--function-active-icon);
43
43
 
44
44
  /* Disabled State */
45
- --action-button-solid-disabled-bg: var(--state-color-disable-solid);
46
- --action-button-solid-disabled-border: var(--state-color-disable-solid);
47
- --action-button-solid-disabled-text: var(--state-color-disable-outline);
45
+ --action-button-solid-disabled-bg: var(--state-disable-solid);
46
+ --action-button-solid-disabled-border: var(--state-disable-solid);
47
+ --action-button-solid-disabled-text: var(--state-disable-outline);
48
48
 
49
49
 
50
50
  /* ------------------------------------------------------------------ */
@@ -83,8 +83,8 @@
83
83
 
84
84
  /* Disabled State */
85
85
  --action-button-outline-disabled-bg: transparent;
86
- --action-button-outline-disabled-border: var(--state-color-disable-outline);
87
- --action-button-outline-disabled-text: var(--state-color-disable-outline);
86
+ --action-button-outline-disabled-border: var(--state-disable-outline);
87
+ --action-button-outline-disabled-text: var(--state-disable-outline);
88
88
 
89
89
  /* ------------------------------------------------------------------ */
90
90
  /* Icon Mode Tokens */
@@ -123,5 +123,5 @@
123
123
  /* Disabled State */
124
124
  --action-button-icon-disabled-bg: transparent;
125
125
  --action-button-icon-disabled-border: transparent;
126
- --action-button-icon-disabled-text: var(--state-color-disable-outline);
126
+ --action-button-icon-disabled-text: var(--state-disable-outline);
127
127
  }