Skip to content

Commit 4138be6

Browse files
Use CSS variables for re-usable colors
1 parent 8c47428 commit 4138be6

File tree

1 file changed

+18
-18
lines changed
  • lib/ts/recipe/webauthn/components/themes

1 file changed

+18
-18
lines changed

lib/ts/recipe/webauthn/components/themes/styles.css

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
[data-supertokens~="continueWithoutPasskey"] [data-supertokens~="continueWithoutPasskeyLabel"] {
17-
font-size: 14px;
17+
font-size: var(--font-size-1);
1818
font-weight: 700;
1919
line-height: 21px;
2020
text-align: center;
@@ -28,7 +28,7 @@
2828
padding: 14px;
2929
background: #ff95001a;
3030
color: #7c603e;
31-
font-size: 14px;
31+
font-size: var(--font-size-1);
3232
font-weight: 400;
3333
line-height: 20px;
3434
text-align: center;
@@ -45,19 +45,19 @@
4545
[data-supertokens~="passkeyConfirmationContainer"]
4646
[data-supertokens~="passkeyConfirmationEmailContainer"]
4747
[data-supertokens~="continueWithLabel"] {
48-
font-size: 12px;
48+
font-size: var(--font-size-0);
4949
font-weight: 400;
5050
line-height: 13.8px;
5151
text-align: center;
5252
text-underline-position: from-font;
5353
text-decoration-skip-ink: none;
54-
color: #808080;
54+
color: rgb(var(--palette-textGray));
5555
}
5656

5757
[data-supertokens~="passkeyConfirmationContainer"]
5858
[data-supertokens~="passkeyConfirmationEmailContainer"]
5959
[data-supertokens~="enteredEmailId"] {
60-
font-size: 14px;
60+
font-size: var(--font-size-1);
6161
font-weight: 700;
6262
line-height: 16.1px;
6363
text-align: center;
@@ -87,27 +87,27 @@
8787
[data-supertokens~="passkeyFeatureBlock"]
8888
[data-supertokens~="passkeyFeatureBlockDetails"]
8989
[data-supertokens~="passkeyFeatureBlockTitle"] {
90-
font-size: 14px;
90+
font-size: var(--font-size-1);
9191
font-weight: 700;
9292
line-height: 16.1px;
9393
text-align: left;
9494
text-underline-position: from-font;
9595
text-decoration-skip-ink: none;
96-
color: #000000;
96+
color: rgb(var(--palette-textTitle));
9797
}
9898

9999
[data-supertokens~="passkeyConfirmationContainer"]
100100
[data-supertokens~="passkeyFeatureBlocksContainer"]
101101
[data-supertokens~="passkeyFeatureBlock"]
102102
[data-supertokens~="passkeyFeatureBlockDetails"]
103103
[data-supertokens~="passkeyFeatureBlockSubText"] {
104-
font-size: 12px;
104+
font-size: var(--font-size-0);
105105
font-weight: 400;
106106
line-height: 13.8px;
107107
text-align: left;
108108
text-underline-position: from-font;
109109
text-decoration-skip-ink: none;
110-
color: #808080;
110+
color: rgb(var(--palette-textGray));
111111
margin-top: 9px;
112112
}
113113

@@ -117,7 +117,7 @@
117117
background-color: #fceaeb;
118118
color: #cf3644;
119119
padding: 10px;
120-
font-size: 14px;
120+
font-size: var(--font-size-1);
121121
font-weight: 400;
122122
line-height: 16.59px;
123123
text-align: center;
@@ -133,7 +133,7 @@
133133
[data-supertokens~="somethingWentWrongErrorDetailsContainer"]
134134
[data-supertokens~="label"] {
135135
margin-top: 4px;
136-
font-size: 24px;
136+
font-size: var(--font-size-4);
137137
font-weight: 500;
138138
line-height: 40px;
139139
letter-spacing: 0.5799999833106995px;
@@ -146,7 +146,7 @@
146146
[data-supertokens~="somethingWentWrongContainer"]
147147
[data-supertokens~="somethingWentWrongErrorDetailsContainer"]
148148
[data-supertokens~="errorDetails"] {
149-
font-size: 14px;
149+
font-size: var(--font-size-1);
150150
font-weight: 400;
151151
line-height: 21px;
152152
letter-spacing: 0.4000000059604645px;
@@ -163,7 +163,7 @@
163163
[data-supertokens~="somethingWentWrongContainer"]
164164
[data-supertokens~="goBackButtonContainer"]
165165
[data-supertokens~="errorGoBackLabel"] {
166-
font-size: 14px;
166+
font-size: var(--font-size-1);
167167
font-weight: 500;
168168
line-height: 21px;
169169
text-align: center;
@@ -187,13 +187,13 @@
187187
[data-supertokens~="passkeyRecoverAccountFormSubHeader"] {
188188
width: 75%;
189189
margin: 0 auto;
190-
font-size: 14px;
190+
font-size: var(--font-size-1);
191191
font-weight: 400;
192192
line-height: 16.1px;
193193
text-align: center;
194194
text-underline-position: from-font;
195195
text-decoration-skip-ink: none;
196-
color: #808080;
196+
color: rgb(var(--palette-textGray));
197197
margin-bottom: 20px;
198198
}
199199

@@ -203,13 +203,13 @@
203203

204204
[data-supertokens~="passkeyEmailSentContainer"] [data-supertokens~="emailSentDescription"] {
205205
margin: 0 auto;
206-
font-size: 14px;
206+
font-size: var(--font-size-1);
207207
font-weight: 400;
208208
line-height: 16.1px;
209209
text-align: center;
210210
text-underline-position: from-font;
211211
text-decoration-skip-ink: none;
212-
color: #808080;
212+
color: rgb(var(--palette-textGray));
213213
}
214214

215215
[data-supertokens~="passkeyEmailSentContainer"]
@@ -228,5 +228,5 @@
228228
text-align: center;
229229
text-underline-position: from-font;
230230
text-decoration-skip-ink: none;
231-
color: #000000;
231+
color: rgb(var(--palette-textTitle));
232232
}

0 commit comments

Comments
 (0)