@vsn-ux/gaia-styles 1.0.0-alpha.2

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 (51) hide show
  1. package/README.md +125 -0
  2. package/dist/all-no-reset-10pt.css +994 -0
  3. package/dist/all-no-reset.css +994 -0
  4. package/dist/all.css +1135 -0
  5. package/dist/base.css +6 -0
  6. package/dist/components/avatar.css +34 -0
  7. package/dist/components/badge.css +116 -0
  8. package/dist/components/button.css +115 -0
  9. package/dist/components/card.css +38 -0
  10. package/dist/components/checkbox.css +89 -0
  11. package/dist/components/form-field.css +28 -0
  12. package/dist/components/input.css +71 -0
  13. package/dist/components/menu.css +61 -0
  14. package/dist/components/radio-button.css +107 -0
  15. package/dist/components/segmented-control.css +74 -0
  16. package/dist/components/text-area.css +61 -0
  17. package/dist/components/tooltip.css +124 -0
  18. package/dist/components.css +765 -0
  19. package/dist/design-tokens.css +159 -0
  20. package/dist/design-tokens.d.ts +167 -0
  21. package/dist/design-tokens.js +1654 -0
  22. package/package.json +73 -0
  23. package/src/design-tokens/dtcg-tokens.json +504 -0
  24. package/src/font/Inter-Bold.woff2 +0 -0
  25. package/src/font/Inter-BoldItalic.woff2 +0 -0
  26. package/src/font/Inter-Italic.woff2 +0 -0
  27. package/src/font/Inter-Medium.woff2 +0 -0
  28. package/src/font/Inter-MediumItalic.woff2 +0 -0
  29. package/src/font/Inter-Regular.woff2 +0 -0
  30. package/src/font/Inter-SemiBold.woff2 +0 -0
  31. package/src/font/Inter-SemiBoldItalic.woff2 +0 -0
  32. package/src/font/inter.css +56 -0
  33. package/src/styles/all-no-reset-10pt.css +12 -0
  34. package/src/styles/all-no-reset.css +7 -0
  35. package/src/styles/all.css +8 -0
  36. package/src/styles/base.css +3 -0
  37. package/src/styles/components/avatar.css +11 -0
  38. package/src/styles/components/badge.css +39 -0
  39. package/src/styles/components/button.css +83 -0
  40. package/src/styles/components/card.css +19 -0
  41. package/src/styles/components/checkbox.css +66 -0
  42. package/src/styles/components/form-field.css +11 -0
  43. package/src/styles/components/input.css +40 -0
  44. package/src/styles/components/menu.css +28 -0
  45. package/src/styles/components/radio-button.css +44 -0
  46. package/src/styles/components/segmented-control.css +40 -0
  47. package/src/styles/components/text-area.css +27 -0
  48. package/src/styles/components/tooltip.css +92 -0
  49. package/src/styles/components.css +12 -0
  50. package/src/styles/tailwind.css +2 -0
  51. package/src/styles/theme.css +68 -0
@@ -0,0 +1,74 @@
1
+ /*! tailwindcss v4.0.6 | MIT License | https://tailwindcss.com */
2
+ .ga-segmented-control {
3
+ display: inline-flex;
4
+ height: calc(0.25rem * 10);
5
+ align-items: center;
6
+ justify-content: center;
7
+ vertical-align: middle;
8
+ font-size: var(--ga-size-font-md);
9
+ .ga-segmented-control__button {
10
+ display: inline-flex;
11
+ height: calc(0.25rem * 10);
12
+ align-items: center;
13
+ justify-content: center;
14
+ gap: calc(0.25rem * 2);
15
+ border-top-style: var(--tw-border-style);
16
+ border-top-width: 1px;
17
+ border-bottom-style: var(--tw-border-style);
18
+ border-bottom-width: 1px;
19
+ border-left-style: var(--tw-border-style);
20
+ border-left-width: 1px;
21
+ border-color: var(--ga-color-neutral-30);
22
+ background-color: #fff;
23
+ padding-inline: calc(0.25rem * 4);
24
+ vertical-align: middle;
25
+ --tw-leading: calc(0.25rem * 1);
26
+ line-height: calc(0.25rem * 1);
27
+ --tw-font-weight: 500;
28
+ font-weight: 500;
29
+ color: var(--ga-color-cyan-80);
30
+ &:first-of-type {
31
+ border-top-left-radius: var(--ga-radius);
32
+ border-bottom-left-radius: var(--ga-radius);
33
+ }
34
+ &:last-of-type {
35
+ border-top-right-radius: var(--ga-radius);
36
+ border-bottom-right-radius: var(--ga-radius);
37
+ border-right-style: var(--tw-border-style);
38
+ border-right-width: 1px;
39
+ }
40
+ &.ga-segmented-control__button--selected {
41
+ background-color: var(--ga-color-cyan-80);
42
+ --tw-font-weight: 600;
43
+ font-weight: 600;
44
+ color: var(--ga-color-orange-10);
45
+ }
46
+ &:not( .ga-segmented-control__button--selected, .ga-segmented-control__button--disabled, :disabled ) {
47
+ cursor: pointer;
48
+ &:hover {
49
+ background-color: var(--ga-color-surface-action-hover-2);
50
+ }
51
+ &:active {
52
+ background-color: #fff;
53
+ }
54
+ }
55
+ &.ga-segmented-control__button--disabled, &:disabled {
56
+ border-color: var(--ga-color-neutral-30);
57
+ background-color: var(--ga-color-neutral-10);
58
+ color: var(--ga-color-grey-40);
59
+ }
60
+ }
61
+ }
62
+ @property --tw-border-style {
63
+ syntax: "*";
64
+ inherits: false;
65
+ initial-value: solid;
66
+ }
67
+ @property --tw-leading {
68
+ syntax: "*";
69
+ inherits: false;
70
+ }
71
+ @property --tw-font-weight {
72
+ syntax: "*";
73
+ inherits: false;
74
+ }
@@ -0,0 +1,61 @@
1
+ /*! tailwindcss v4.0.6 | MIT License | https://tailwindcss.com */
2
+ .ga-text-area {
3
+ display: flex;
4
+ width: calc(0.25rem * 50);
5
+ flex-direction: row;
6
+ align-items: center;
7
+ gap: calc(0.25rem * 2);
8
+ border-radius: var(--ga-radius);
9
+ border-style: var(--tw-border-style);
10
+ border-width: 1px;
11
+ border-color: var(--ga-color-border-primary);
12
+ background-color: var(--ga-color-bg-primary);
13
+ font-size: var(--ga-size-font-md);
14
+ &:has(textarea:hover) {
15
+ border-color: var(--ga-color-border-action-hover);
16
+ }
17
+ &:has(textarea:disabled) {
18
+ border-color: var(--ga-color-border-primary);
19
+ background-color: var(--ga-color-surface-disabled);
20
+ color: var(--ga-color-text-disable-selected);
21
+ }
22
+ &:has(textarea:focus) {
23
+ border-color: var(--ga-color-border-focus);
24
+ outline-style: var(--tw-outline-style);
25
+ outline-width: 1px;
26
+ outline-color: var(--ga-color-border-focus);
27
+ }
28
+ &.ga-text-area--invalid {
29
+ border-color: var(--ga-color-border-error);
30
+ outline-style: var(--tw-outline-style);
31
+ outline-width: 1px;
32
+ outline-color: var(--ga-color-border-error);
33
+ &:has(textarea:not(:placeholder-shown)) {
34
+ background-color: var(--ga-color-surface-error);
35
+ }
36
+ }
37
+ textarea {
38
+ width: 100%;
39
+ min-width: calc(0.25rem * 0);
40
+ padding-inline: calc(0.25rem * 3);
41
+ padding-block: calc(0.25rem * 2);
42
+ --tw-leading: calc(0.25rem * 6);
43
+ line-height: calc(0.25rem * 6);
44
+ --tw-outline-style: none;
45
+ outline-style: none;
46
+ }
47
+ }
48
+ @property --tw-border-style {
49
+ syntax: "*";
50
+ inherits: false;
51
+ initial-value: solid;
52
+ }
53
+ @property --tw-outline-style {
54
+ syntax: "*";
55
+ inherits: false;
56
+ initial-value: solid;
57
+ }
58
+ @property --tw-leading {
59
+ syntax: "*";
60
+ inherits: false;
61
+ }
@@ -0,0 +1,124 @@
1
+ /*! tailwindcss v4.0.6 | MIT License | https://tailwindcss.com */
2
+ .ga-tooltip {
3
+ position: relative;
4
+ max-width: calc(0.25rem * 100);
5
+ border-radius: var(--ga-radius);
6
+ background-color: var(--ga-color-surface-action-hover);
7
+ padding: calc(0.25rem * 2);
8
+ font-size: var(--ga-size-font-md);
9
+ color: var(--ga-color-text-on-action);
10
+ &.ga-tooltip--top-start, &.ga-tooltip--top-center, &.ga-tooltip--top-end, &.ga-tooltip--bottom-start, &.ga-tooltip--bottom-center, &.ga-tooltip--bottom-end, &.ga-tooltip--left-start, &.ga-tooltip--left-center, &.ga-tooltip--left-end, &.ga-tooltip--right-start, &.ga-tooltip--right-center, &.ga-tooltip--right-end {
11
+ &::before {
12
+ content: var(--tw-content);
13
+ position: absolute;
14
+ }
15
+ &::before {
16
+ content: var(--tw-content);
17
+ --tw-content: '';
18
+ content: var(--tw-content);
19
+ }
20
+ }
21
+ &.ga-tooltip--top-start, &.ga-tooltip--top-center, &.ga-tooltip--top-end {
22
+ margin-bottom: calc(0.25rem * 2);
23
+ }
24
+ &.ga-tooltip--bottom-start, &.ga-tooltip--bottom-center, &.ga-tooltip--bottom-end {
25
+ margin-top: calc(0.25rem * 2);
26
+ }
27
+ &.ga-tooltip--left-start, &.ga-tooltip--left-center, &.ga-tooltip--left-end {
28
+ margin-right: calc(0.25rem * 2);
29
+ }
30
+ &.ga-tooltip--right-start, &.ga-tooltip--right-center, &.ga-tooltip--right-end {
31
+ margin-left: calc(0.25rem * 2);
32
+ }
33
+ &.ga-tooltip--top-start::before, &.ga-tooltip--top-center::before, &.ga-tooltip--top-end::before {
34
+ bottom: calc(0.25rem * -2);
35
+ border-inline-style: var(--tw-border-style);
36
+ border-inline-width: 8px;
37
+ border-top-style: var(--tw-border-style);
38
+ border-top-width: 8px;
39
+ border-inline-color: transparent;
40
+ border-top-color: var(--ga-color-surface-action-hover);
41
+ }
42
+ &.ga-tooltip--bottom-start::before, &.ga-tooltip--bottom-center::before, &.ga-tooltip--bottom-end::before {
43
+ top: calc(0.25rem * -2);
44
+ border-inline-style: var(--tw-border-style);
45
+ border-inline-width: 8px;
46
+ border-bottom-style: var(--tw-border-style);
47
+ border-bottom-width: 8px;
48
+ border-inline-color: transparent;
49
+ border-bottom-color: var(--ga-color-surface-action-hover);
50
+ }
51
+ &.ga-tooltip--top-start::before, &.ga-tooltip--bottom-start::before {
52
+ left: calc(0.25rem * 4);
53
+ }
54
+ &.ga-tooltip--top-center::before, &.ga-tooltip--bottom-center::before {
55
+ left: calc(1/2 * 100%);
56
+ --tw-translate-x: calc(calc(1/2 * 100%) * -1);
57
+ translate: var(--tw-translate-x) var(--tw-translate-y);
58
+ }
59
+ &.ga-tooltip--top-end::before, &.ga-tooltip--bottom-end::before {
60
+ right: calc(0.25rem * 4);
61
+ }
62
+ &.ga-tooltip--left-start::before, &.ga-tooltip--left-center::before, &.ga-tooltip--left-end::before {
63
+ right: calc(0.25rem * -2);
64
+ border-block-style: var(--tw-border-style);
65
+ border-block-width: 8px;
66
+ border-left-style: var(--tw-border-style);
67
+ border-left-width: 8px;
68
+ border-block-color: transparent;
69
+ border-left-color: var(--ga-color-surface-action-hover);
70
+ }
71
+ &.ga-tooltip--right-start::before, &.ga-tooltip--right-center::before, &.ga-tooltip--right-end::before {
72
+ left: calc(0.25rem * -2);
73
+ border-block-style: var(--tw-border-style);
74
+ border-block-width: 8px;
75
+ border-right-style: var(--tw-border-style);
76
+ border-right-width: 8px;
77
+ border-block-color: transparent;
78
+ border-right-color: var(--ga-color-surface-action-hover);
79
+ }
80
+ &.ga-tooltip--left-start::before, &.ga-tooltip--right-start::before {
81
+ top: calc(0.25rem * 4);
82
+ }
83
+ &.ga-tooltip--left-center::before, &.ga-tooltip--right-center::before {
84
+ top: calc(1/2 * 100%);
85
+ --tw-translate-y: calc(calc(1/2 * 100%) * -1);
86
+ translate: var(--tw-translate-x) var(--tw-translate-y);
87
+ }
88
+ &.ga-tooltip--left-end::before, &.ga-tooltip--right-end::before {
89
+ bottom: calc(0.25rem * 4);
90
+ }
91
+ .ga-tooltip__title {
92
+ --tw-font-weight: 600;
93
+ font-weight: 600;
94
+ }
95
+ }
96
+ @property --tw-content {
97
+ syntax: "*";
98
+ initial-value: "";
99
+ inherits: false;
100
+ }
101
+ @property --tw-border-style {
102
+ syntax: "*";
103
+ inherits: false;
104
+ initial-value: solid;
105
+ }
106
+ @property --tw-translate-x {
107
+ syntax: "*";
108
+ inherits: false;
109
+ initial-value: 0;
110
+ }
111
+ @property --tw-translate-y {
112
+ syntax: "*";
113
+ inherits: false;
114
+ initial-value: 0;
115
+ }
116
+ @property --tw-translate-z {
117
+ syntax: "*";
118
+ inherits: false;
119
+ initial-value: 0;
120
+ }
121
+ @property --tw-font-weight {
122
+ syntax: "*";
123
+ inherits: false;
124
+ }