@phila/phila-ui-core 2.1.2 → 2.2.0-beta.3
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/BaseLink.css +1 -0
- package/dist/BaseLink.vue_vue_type_script_setup_true_lang-CXQJyB5W.js +225 -0
- package/dist/BaseLink.vue_vue_type_script_setup_true_lang-CexJ6lNf.cjs +1 -0
- package/dist/classNames-CcykAxZN.js +6 -0
- package/dist/classNames-GLLmlfI4.cjs +1 -0
- package/dist/collapse-ApWEJVnD.cjs +1 -0
- package/dist/collapse-BvsHwQBu.js +74 -0
- package/dist/components.d.ts +162 -1
- package/dist/components.js +1 -1
- package/dist/components.mjs +7 -109
- package/dist/composables.d.ts +100 -0
- package/dist/composables.js +1 -1
- package/dist/composables.mjs +6 -2
- package/dist/index.d.ts +356 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +19 -2
- package/dist/styles/elements/buttons.css +230 -0
- package/dist/styles/elements/icons.css +53 -0
- package/dist/styles/elements/index.css +3 -0
- package/dist/styles/elements/links.css +87 -0
- package/dist/styles/legacy.css +39 -0
- package/dist/styles/template-light.css +6 -2
- package/dist/styles/template-orange.css +4 -2
- package/dist/styles/tokens.css +39 -0
- package/dist/styles/typography.css +45 -0
- package/dist/styles/utilities/color.css +26 -0
- package/dist/styles/utilities/containers.css +158 -0
- package/dist/styles/utilities/index.css +4 -0
- package/dist/styles/utilities/spacing.css +433 -0
- package/dist/styles/utilities/text.css +177 -0
- package/dist/useRouter-BVKwor6C.js +50 -0
- package/dist/useRouter-C4oT8vFk.cjs +1 -0
- package/dist/utils.d.ts +71 -0
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +17 -3
- package/package.json +25 -13
- package/dist/components.css +0 -1
- package/dist/index-DkaNsoLU.cjs +0 -5
- package/dist/index-dajx1Lu4.js +0 -1718
- package/dist/styles/light-mode.css +0 -106
- package/dist/styles/variables.css +0 -92
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
.phila-button {
|
|
2
|
+
/* --- Base styles --- */
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
|
|
12
|
+
/* --- Text styles --- */
|
|
13
|
+
color: var(--Schemes-On-Primary-Container);
|
|
14
|
+
font-family: var(--Label-Default-font-label-default-family, Montserrat);
|
|
15
|
+
font-size: var(--Label-Default-font-label-default-size, 1rem);
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
line-height: var(--Label-Default-font-label-default-lineheight);
|
|
19
|
+
|
|
20
|
+
/* --- Reset button --- */
|
|
21
|
+
border: none;
|
|
22
|
+
/* Corrects font smoothing for webkit */
|
|
23
|
+
-webkit-font-smoothing: inherit;
|
|
24
|
+
-moz-osx-font-smoothing: inherit;
|
|
25
|
+
/* Corrects inability to style clickable `input` types in iOS */
|
|
26
|
+
appearance: none;
|
|
27
|
+
-webkit-appearance: none;
|
|
28
|
+
|
|
29
|
+
/* --- Reset link styles --- */
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
|
|
32
|
+
/* Prevent visited link color changes - maintain button color */
|
|
33
|
+
&:visited:not(:hover):not(:focus):not(:active) {
|
|
34
|
+
color: var(--Schemes-On-Primary-Container);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* --- Sizing --- */
|
|
38
|
+
height: var(--spacing-6xl, 3.25rem);
|
|
39
|
+
max-width: 18.75rem;
|
|
40
|
+
padding: var(--spacing-l, 0.5rem) var(--spacing-3xl);
|
|
41
|
+
|
|
42
|
+
&.is-medium {
|
|
43
|
+
height: var(--spacing-5xl, 3rem);
|
|
44
|
+
padding: var(--spacing-m, 0.75rem) var(--spacing-xxl);
|
|
45
|
+
}
|
|
46
|
+
&.is-small {
|
|
47
|
+
height: var(--spacing-3xl);
|
|
48
|
+
padding: var(--spacing-s) var(--spacing-l);
|
|
49
|
+
}
|
|
50
|
+
&.is-extra-small:not(.icon-button) {
|
|
51
|
+
color: var(--Schemes-Primary-Container);
|
|
52
|
+
height: var(--spacing-xxl);
|
|
53
|
+
padding: var(--spacing-xxs);
|
|
54
|
+
background-color: var(--Schemes-Surface-Container-Lowest) !important;
|
|
55
|
+
font-family: var(--Label-Default-font-label-default-family, Montserrat);
|
|
56
|
+
font-size: var(--Label-Small-font-label-small-size);
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
line-height: var(--Label-Small-font-label-small-lineheight);
|
|
60
|
+
border-color: var(--Schemes-Surface-Container-Lowest);
|
|
61
|
+
border-width: var(--spacing-xxs);
|
|
62
|
+
border-style: solid;
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
border-left: none;
|
|
65
|
+
border-right: none;
|
|
66
|
+
&:focus:not(:disabled),
|
|
67
|
+
&:hover:not(:disabled) {
|
|
68
|
+
--Schemes-On-Primary-Container: --Schemes-Inverse-Surface;
|
|
69
|
+
color: var(--Schemes-Inverse-Surface) !important;
|
|
70
|
+
border-bottom-color: var(--Schemes-Inverse-Surface) !important;
|
|
71
|
+
}
|
|
72
|
+
&:active:not(:disabled) {
|
|
73
|
+
color: var(--Schemes-Secondary-Container) !important;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
border: none;
|
|
76
|
+
}
|
|
77
|
+
&:disabled {
|
|
78
|
+
color: var(--Schemes-Surface-Container-High);
|
|
79
|
+
}
|
|
80
|
+
&.phila-button--destructive:not(:active) {
|
|
81
|
+
color: var(--Schemes-Error-Container);
|
|
82
|
+
}
|
|
83
|
+
&:visited:not(:hover):not(:focus):not(:active) {
|
|
84
|
+
color: var(--Schemes-Primary-Container);
|
|
85
|
+
}
|
|
86
|
+
&.phila-button--destructive:visited:not(:hover):not(:focus):not(:active) {
|
|
87
|
+
color: var(--Schemes-Error-Container);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/* --- States --- */
|
|
91
|
+
&:hover:not(:disabled):not(.is-extra-small),
|
|
92
|
+
&:focus:not(:disabled):not(.is-extra-small),
|
|
93
|
+
&.icon-button:hover:not(:disabled),
|
|
94
|
+
&.icon-button:focus:not(:disabled) {
|
|
95
|
+
&:not(:active):not(.phila-button--secondary):not(.icon-button--standard) {
|
|
96
|
+
background: var(--Schemes-On-Surface-Variant) !important;
|
|
97
|
+
color: var(--Schemes-On-Primary-Container) !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
&:active:not(:disabled):not(.is-extra-small) {
|
|
101
|
+
color: var(--Schemes-On-Primary-Container) !important;
|
|
102
|
+
background: var(--Schemes-Secondary-Container) !important;
|
|
103
|
+
}
|
|
104
|
+
&:disabled,
|
|
105
|
+
&[aria-disabled="true"] {
|
|
106
|
+
background: var(--Schemes-Surface-Container-High) !important;
|
|
107
|
+
cursor: not-allowed;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* --- Variants --- */
|
|
112
|
+
&.phila-button--primary:not(:disabled) {
|
|
113
|
+
background: var(--Schemes-Primary-Container);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.phila-button--secondary:not(:disabled) {
|
|
117
|
+
color: var(--Schemes-Primary);
|
|
118
|
+
background: var(--Schemes-Surface-Container-Lowest);
|
|
119
|
+
&:not(:active) {
|
|
120
|
+
border: var(--spacing-xxs) solid var(--Schemes-Primary);
|
|
121
|
+
}
|
|
122
|
+
&:active:not(:disabled):not(.is-extra-small) {
|
|
123
|
+
border-right: var(--spacing-xxs) solid var(--Schemes-Surface-Container-Lowest);
|
|
124
|
+
border-left: var(--spacing-xxs) solid var(--Schemes-Surface-Container-Lowest);
|
|
125
|
+
}
|
|
126
|
+
&:hover:not(:disabled),
|
|
127
|
+
&:focus:not(:disabled) {
|
|
128
|
+
color: var(--Schemes-On-Primary-Container);
|
|
129
|
+
background: var(--Schemes-On-Surface-Variant);
|
|
130
|
+
}
|
|
131
|
+
&:visited:not(:hover):not(:focus):not(:active) {
|
|
132
|
+
color: var(--Schemes-Primary);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.phila-button--destructive:not(:disabled) {
|
|
137
|
+
&:not(.is-extra-small) {
|
|
138
|
+
background: var(--Schemes-Error-Container);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* --- Icon Buttons --- */
|
|
143
|
+
&.icon-button {
|
|
144
|
+
padding: 0;
|
|
145
|
+
height: 3.75rem;
|
|
146
|
+
width: 3.75rem;
|
|
147
|
+
|
|
148
|
+
&.is-extra-large {
|
|
149
|
+
height: 5rem;
|
|
150
|
+
width: 5rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.is-large {
|
|
154
|
+
height: 3.75rem;
|
|
155
|
+
width: 3.75rem;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.is-medium {
|
|
159
|
+
height: 3rem;
|
|
160
|
+
width: 3rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.is-small {
|
|
164
|
+
height: 2rem;
|
|
165
|
+
width: 2rem;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.is-extra-small {
|
|
169
|
+
width: 1.5rem;
|
|
170
|
+
height: 1.5rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.icon-button--standard:not(:disabled) {
|
|
174
|
+
color: var(--Schemes-Primary, #003282);
|
|
175
|
+
background: var(--Schemes-Surface-Container-Lowest);
|
|
176
|
+
&:visited:not(:hover):not(:focus):not(:active) {
|
|
177
|
+
color: var(--Schemes-Primary, #003282);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
&.phila-button--destructive:not(:disabled) {
|
|
181
|
+
color: var(--Schemes-On-Error-Container) !important;
|
|
182
|
+
background: var(--Schemes-Error-Container);
|
|
183
|
+
}
|
|
184
|
+
&:active:not(:disabled) {
|
|
185
|
+
color: var(--Schemes-On-Secondary-Container) !important;
|
|
186
|
+
background: var(--Schemes-Secondary-Container) !important;
|
|
187
|
+
box-sizing: border-box;
|
|
188
|
+
border: none;
|
|
189
|
+
}
|
|
190
|
+
&:hover:not(:disabled),
|
|
191
|
+
&:focus:not(:disabled) {
|
|
192
|
+
&.phila-button--secondary,
|
|
193
|
+
&.icon-button--standard {
|
|
194
|
+
color: var(--Schemes-Primary);
|
|
195
|
+
background: var(--Schemes-Surface-Container);
|
|
196
|
+
border-color: transparent;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* Icon positioning within buttons */
|
|
202
|
+
span.icon:first-child:not(:last-child) {
|
|
203
|
+
margin-left: 0;
|
|
204
|
+
margin-right: var(--spacing-s);
|
|
205
|
+
+ span {
|
|
206
|
+
padding-right: var(--spacing-s);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
span.icon:last-child:not(:first-child) {
|
|
210
|
+
margin: 0;
|
|
211
|
+
padding: 0;
|
|
212
|
+
}
|
|
213
|
+
span:not([class="icon"]:only-child) {
|
|
214
|
+
padding: 0 !important;
|
|
215
|
+
}
|
|
216
|
+
span:first-child:not([class="icon"]) {
|
|
217
|
+
margin-left: 0 !important;
|
|
218
|
+
margin-right: 0 !important;
|
|
219
|
+
padding-left: var(--spacing-s);
|
|
220
|
+
text-overflow: ellipsis;
|
|
221
|
+
overflow: hidden;
|
|
222
|
+
+ span {
|
|
223
|
+
margin-left: var(--spacing-s) !important;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
&:focus {
|
|
227
|
+
outline-offset: var(--spacing-xs);
|
|
228
|
+
outline: var(--stroke-stroke-thin, 2px) solid var(--Schemes-Primary-Container);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* Base icon styles */
|
|
2
|
+
.phila-icon {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-weight: 900;
|
|
8
|
+
line-height: normal;
|
|
9
|
+
font-size: var(--Icon-Solid-Small-font-icon-solid-small-size);
|
|
10
|
+
height: 2rem;
|
|
11
|
+
width: 2rem;
|
|
12
|
+
padding: var(--spacing-s);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Icon size variants */
|
|
16
|
+
.phila-icon--extra-large {
|
|
17
|
+
font-size: var(--Icon-Solid-ExtraLarge-font-icon-solid-xl-size);
|
|
18
|
+
height: 5rem;
|
|
19
|
+
width: 5rem;
|
|
20
|
+
padding: var(--spacing-xl);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.phila-icon--large {
|
|
24
|
+
font-size: var(--Icon-Solid-Large-font-icon-solid-large-size);
|
|
25
|
+
height: 3.75rem;
|
|
26
|
+
width: 3.75rem;
|
|
27
|
+
padding: var(--spacing-m);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.phila-icon--medium {
|
|
31
|
+
font-size: var(--Icon-Solid-Default-font-icon-solid-default-size);
|
|
32
|
+
height: 3rem;
|
|
33
|
+
width: 3rem;
|
|
34
|
+
padding: var(--spacing-m);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.phila-icon--small {
|
|
38
|
+
font-size: var(--Icon-Solid-Small-font-icon-solid-small-size);
|
|
39
|
+
height: 2rem;
|
|
40
|
+
width: 2rem;
|
|
41
|
+
padding: var(--spacing-s);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.phila-icon--extra-small {
|
|
45
|
+
font-size: var(--Icon-Solid-XXSmall-font-icon-solid-xxs-size);
|
|
46
|
+
height: 1.5rem;
|
|
47
|
+
width: 1.5rem;
|
|
48
|
+
padding: var(--scale-xsmall);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.phila-icon.phila-icon--inline {
|
|
52
|
+
padding: 0;
|
|
53
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* Base link component styles */
|
|
2
|
+
.phila-link {
|
|
3
|
+
color: var(--Extended-Colors-link-default, #2176d2);
|
|
4
|
+
text-decoration: underline;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
transition:
|
|
9
|
+
color 0.2s ease,
|
|
10
|
+
text-decoration-color 0.2s ease;
|
|
11
|
+
|
|
12
|
+
/* Variant - sets CSS variables (same as .has-background-primary does for containers) */
|
|
13
|
+
&.phila-link--on-primary {
|
|
14
|
+
--Extended-Colors-link-default: var(--Extended-Colors-link-default-on-primary);
|
|
15
|
+
--Extended-Colors-link-hover: var(--Extended-Colors-link-hover-on-primary);
|
|
16
|
+
--Extended-Colors-link-visited: var(--Extended-Colors-link-visited-on-primary);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Pseudo-classes - LVHA order: visited before hover so hover wins */
|
|
20
|
+
&:visited {
|
|
21
|
+
color: var(--Extended-Colors-link-visited, #4b0083);
|
|
22
|
+
text-decoration-color: var(--Extended-Colors-link-visited, #4b0083);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:hover {
|
|
26
|
+
color: var(--Extended-Colors-link-hover, #000);
|
|
27
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus-visible {
|
|
31
|
+
outline: 2px solid var(--Extended-Colors-link-hover, #000);
|
|
32
|
+
outline-offset: 2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.is-disabled {
|
|
36
|
+
opacity: 0.5;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.icon-link {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--spacing-xs, 0.25rem);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Size variants */
|
|
48
|
+
&.is-extra-large {
|
|
49
|
+
font-family: var(--Link-on-Surface-Large-font-link-on-surface-large-family, Montserrat);
|
|
50
|
+
font-size: var(--Link-on-Surface-Large-font-link-on-surface-large-size, 1.125rem);
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
line-height: var(--Link-on-Surface-Large-font-link-on-surface-large-lineheight, 1.75rem);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.is-large {
|
|
57
|
+
font-family: var(--Link-on-Surface-Large-font-link-on-surface-large-family, Montserrat);
|
|
58
|
+
font-size: var(--Link-on-Surface-Large-font-link-on-surface-large-size, 1.125rem);
|
|
59
|
+
font-style: normal;
|
|
60
|
+
font-weight: 700;
|
|
61
|
+
line-height: var(--Link-on-Surface-Large-font-link-on-surface-large-lineheight, 1.75rem);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.is-medium {
|
|
65
|
+
font-family: var(--Link-on-Surface-Default-font-link-on-surface-default-family, Montserrat);
|
|
66
|
+
font-size: var(--Link-on-Surface-Default-font-link-on-surface-default-size, 1rem);
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-weight: 700;
|
|
69
|
+
line-height: var(--Link-on-Surface-Default-font-link-on-surface-default-lineheight, 1.5rem);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.is-small {
|
|
73
|
+
font-family: var(--Link-on-Surface-Small-font-link-on-surface-small-family, Montserrat);
|
|
74
|
+
font-size: var(--Link-on-Surface-Small-font-link-on-surface-small-size, 0.875rem);
|
|
75
|
+
font-style: normal;
|
|
76
|
+
font-weight: 700;
|
|
77
|
+
line-height: var(--Link-on-Surface-Small-font-link-on-surface-small-lineheight, 1.25rem);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.is-extra-small {
|
|
81
|
+
font-family: var(--Link-on-Surface-font-link-family, Montserrat);
|
|
82
|
+
font-size: var(--Link-on-Surface-ExtraSmall-font-link-on-surface-xs-size, 0.75rem);
|
|
83
|
+
font-style: normal;
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
line-height: var(--Body-ExtraSmall-font-body-xs-lineheight, 1rem);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backwards Compatibility Aliases
|
|
3
|
+
*
|
|
4
|
+
* This file provides aliases for old variable names to maintain
|
|
5
|
+
* backwards compatibility with existing code.
|
|
6
|
+
*
|
|
7
|
+
* Mapping old names → new generated token names
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
/* Old --spacing-* variables → new --sizes-* */
|
|
12
|
+
--spacing-xxs: var(--sizes-5xsmall); /* 0.125rem */
|
|
13
|
+
--spacing-xs: var(--sizes-4xsmall); /* 0.25rem */
|
|
14
|
+
--spacing-s: var(--sizes-3xsmall); /* 0.5rem */
|
|
15
|
+
--spacing-m: var(--sizes-xxsmall); /* 0.75rem */
|
|
16
|
+
--spacing-l: var(--sizes-medium); /* 1rem */
|
|
17
|
+
--spacing-xl: var(--sizes-large); /* 1.125rem */
|
|
18
|
+
--spacing-xxl: var(--sizes-xxlarge); /* 1.5rem */
|
|
19
|
+
--spacing-3xl: var(--sizes-3xlarge); /* 2rem */
|
|
20
|
+
--spacing-4xl: var(--sizes-4xlarge); /* 2.5rem */
|
|
21
|
+
--spacing-5xl: var(--sizes-5xlarge); /* 3rem */
|
|
22
|
+
--spacing-6xl: var(--sizes-6xlarge); /* 3.5rem */
|
|
23
|
+
--spacing-7xl: var(--sizes-7xlarge); /* 4rem */
|
|
24
|
+
|
|
25
|
+
/* Old --scale-* variables → new --sizes-scale-* */
|
|
26
|
+
--scale-xxsmall: var(--sizes-scale-25); /* 0.125rem */
|
|
27
|
+
--scale-xsmall: var(--sizes-scale-50); /* 0.25rem */
|
|
28
|
+
--scale-small: var(--sizes-scale-100); /* 0.5rem */
|
|
29
|
+
--scale-medium: var(--sizes-scale-150); /* 0.75rem */
|
|
30
|
+
--scale-large: var(--sizes-scale-200); /* 1rem */
|
|
31
|
+
--scale-xlarge: var(--sizes-scale-225); /* 1.125rem */
|
|
32
|
+
--scale-xxlarge: var(--sizes-scale-300); /* 1.5rem */
|
|
33
|
+
--scale-3xlarge: var(--sizes-scale-400); /* 2rem */
|
|
34
|
+
--scale-6xlarge: var(--sizes-scale-700); /* 3.5rem */
|
|
35
|
+
|
|
36
|
+
--Extended-Colors-link-default-on-primary: #ecfdff;
|
|
37
|
+
--Extended-Colors-link-hover-on-primary: #25cef7;
|
|
38
|
+
--Extended-Colors-link-visited-on-primary: #e9ccf2;
|
|
39
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
@import "./
|
|
1
|
+
/* Design tokens from Figma */
|
|
2
|
+
@import "./tokens.css";
|
|
3
|
+
|
|
4
|
+
/* Global styles */
|
|
3
5
|
@import "./typography.css";
|
|
4
6
|
@import "./main.css";
|
|
7
|
+
|
|
8
|
+
/* Utilities and elements */
|
|
5
9
|
@import "./utilities/index.css";
|
|
6
10
|
@import "./elements/index.css";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Tokens - Master Import
|
|
3
|
+
*
|
|
4
|
+
* This file imports all design tokens from Figma in the correct cascade order.
|
|
5
|
+
* Generated tokens are synced from Figma using: npm run tokens:sync
|
|
6
|
+
*
|
|
7
|
+
* Import order matters! Tokens are layered from primitives → schemes:
|
|
8
|
+
* 1. Primitives (base colors with actual values)
|
|
9
|
+
* 2. Palettes (color ramps that reference primitives)
|
|
10
|
+
* 3. Schemes (semantic tokens that reference palettes)
|
|
11
|
+
* 4. Extended Colors (special colors)
|
|
12
|
+
* 5. Sizes (spacing, dimensions)
|
|
13
|
+
* 6. Typography (font definitions)
|
|
14
|
+
* 7. Other (borders, breakpoints, component config)
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/* Layer 1: Primitives - Base color values */
|
|
18
|
+
@import "./generated/primitives.css";
|
|
19
|
+
|
|
20
|
+
/* Layer 2: Palettes - Color ramps (50-750 scales) */
|
|
21
|
+
@import "./generated/palettes.css";
|
|
22
|
+
|
|
23
|
+
/* Layer 3: Schemes - Semantic color tokens */
|
|
24
|
+
@import "./generated/schemes.css";
|
|
25
|
+
|
|
26
|
+
/* Layer 4: Extended Colors - Additional semantic colors */
|
|
27
|
+
@import "./generated/extended-colors.css";
|
|
28
|
+
|
|
29
|
+
/* Layer 5: Sizes - Spacing and dimensions */
|
|
30
|
+
@import "./generated/sizes.css";
|
|
31
|
+
|
|
32
|
+
/* Layer 6: Typography - Font definitions */
|
|
33
|
+
@import "./generated/typography.css";
|
|
34
|
+
|
|
35
|
+
/* Layer 7: Other - Borders, breakpoints, component tokens */
|
|
36
|
+
@import "./generated/other.css";
|
|
37
|
+
|
|
38
|
+
/* Backwards Compatibility - Aliases for old variable names */
|
|
39
|
+
@import "./legacy.css";
|
|
@@ -50,6 +50,9 @@ TODO: figma not clear on margins between headings / paragraphs, or how these ele
|
|
|
50
50
|
&.has-text-body-small {
|
|
51
51
|
margin: 0 0 var(--spacing-l) 0;
|
|
52
52
|
}
|
|
53
|
+
&.has-text-body-default {
|
|
54
|
+
margin: 0 0 var(--spacing-m) 0;
|
|
55
|
+
}
|
|
53
56
|
&.has-text-body-large {
|
|
54
57
|
margin: 0 0 var(--spacing-xl) 0;
|
|
55
58
|
}
|
|
@@ -144,3 +147,45 @@ TODO: figma not clear on margins between headings / paragraphs, or how these ele
|
|
|
144
147
|
font-style: italic;
|
|
145
148
|
}
|
|
146
149
|
}
|
|
150
|
+
|
|
151
|
+
/* Links */
|
|
152
|
+
a {
|
|
153
|
+
text-decoration-line: underline;
|
|
154
|
+
text-decoration-style: solid;
|
|
155
|
+
text-decoration-skip-ink: auto;
|
|
156
|
+
text-decoration-thickness: 10%;
|
|
157
|
+
text-underline-offset: auto;
|
|
158
|
+
text-underline-position: from-font;
|
|
159
|
+
|
|
160
|
+
font-family: var(--Link-on-Surface-Default-font-link-on-surface-default-family, Montserrat);
|
|
161
|
+
font-style: normal;
|
|
162
|
+
font-weight: 700;
|
|
163
|
+
|
|
164
|
+
color: var(--Extended-Colors-link-default, #2176d2);
|
|
165
|
+
text-decoration-color: var(--Base-font-variables-Color-Link-link-default, #2176d2);
|
|
166
|
+
|
|
167
|
+
&:hover {
|
|
168
|
+
color: var(--Extended-Colors-link-hover, #000);
|
|
169
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:focus-visible {
|
|
173
|
+
color: var(--Extended-Colors-link-hover, #000);
|
|
174
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
175
|
+
outline: var(--stroke-stroke-thin, 2px) solid var(--Base-font-variables-Color-Link-link-default, #2176d2);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&:visited {
|
|
179
|
+
color: var(--Extended-Colors-link-visited, #4b0083);
|
|
180
|
+
text-decoration-color: var(--Extended-Colors-link-visited, #4b0083);
|
|
181
|
+
|
|
182
|
+
&:focus-visible {
|
|
183
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:hover {
|
|
187
|
+
color: var(--Extended-Colors-link-hover, #000);
|
|
188
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.has-background-ben-franklin-blue {
|
|
2
|
+
background-color: var(--dark-ben-franklin-blue);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.has-background-primary {
|
|
6
|
+
--Base-font-variables-Color-Link-link-default: var(--Schemes-On-Primary-Container);
|
|
7
|
+
--Extended-Colors-link-default: var(--Extended-Colors-link-default-on-primary);
|
|
8
|
+
--Extended-Colors-link-hover: var(--Extended-Colors-link-hover-on-primary);
|
|
9
|
+
--Extended-Colors-link-visited: var(--Extended-Colors-link-visited-on-primary);
|
|
10
|
+
|
|
11
|
+
background-color: var(--Schemes-Primary);
|
|
12
|
+
color: var(--Schemes-On-Primary-Container);
|
|
13
|
+
}
|
|
14
|
+
.has-background-ghost-gray {
|
|
15
|
+
--Base-font-variables-Color-Link-link-default: var(--Schemes-Primary);
|
|
16
|
+
--Extended-Colors-link-default: var(--Schemes-Primary);
|
|
17
|
+
--Extended-Colors-link-hover: var(--Schemes-On-Surface);
|
|
18
|
+
--Extended-Colors-link-visited: var(--Extended-Colors-link-visited);
|
|
19
|
+
background-color: var(--primitive-colors-ghost-gray);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.has-background-secondary {
|
|
23
|
+
--Schemes-On-Primary-Container: #ecfdff;
|
|
24
|
+
--Schemes-On-Surface: #ecfdff;
|
|
25
|
+
background-color: var(--Schemes-Secondary);
|
|
26
|
+
}
|