Skip to content

Commit 32a29c2

Browse files
committed
define font family, remove useeffects
1 parent 6372145 commit 32a29c2

File tree

3 files changed

+191
-180
lines changed

3 files changed

+191
-180
lines changed

apps/developer-hub/src/components/RewardSimulator/index.module.scss

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@
2323

2424
.input {
2525
padding: theme.spacing(2) theme.spacing(3);
26-
border: 1px solid var(--color-fd-border);
26+
border: 1px solid theme.color("border");
2727
border-radius: theme.border-radius("lg");
28-
background-color: var(--color-fd-background);
29-
color: var(--color-fd-foreground);
28+
background-color: theme.color("background", "primary");
29+
color: theme.color("foreground");
3030
transition: all 0.15s ease-in-out;
3131

3232
&:focus {
33-
outline: 2px solid var(--color-fd-accent);
33+
outline: 2px solid theme.color("focus");
3434
outline-offset: -2px;
3535
border-color: transparent;
3636
}
3737
}
3838

3939
.resultsSection {
40-
border-top: 1px solid var(--color-fd-border);
40+
border-top: 1px solid theme.color("border");
4141
margin-top: theme.spacing(6);
4242
padding: theme.spacing(6) theme.spacing(4) 0;
4343
}
@@ -61,25 +61,26 @@
6161
.resultTitle {
6262
font-size: theme.font-size("lg");
6363
font-weight: theme.font-weight("semibold");
64-
color: var(--color-fd-foreground);
64+
color: theme.color("foreground");
6565
}
6666

67-
.resultValues {
67+
.resultList {
6868
display: flex;
6969
flex-direction: column;
7070
gap: theme.spacing(1);
71+
margin: 0;
7172
}
7273

73-
.resultItem {
74+
.resultTerm {
7475
font-size: theme.font-size("sm");
75-
color: var(--color-fd-muted-foreground);
76-
}
77-
78-
.resultLabel {
76+
color: theme.color("muted");
7977
font-weight: theme.font-weight("medium");
78+
margin: 0;
8079
}
8180

8281
.resultValue {
83-
font-family:
84-
ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
82+
font-family: theme.font-family("monospace");
83+
font-size: theme.font-size("sm");
84+
margin: 0;
85+
margin-bottom: theme.spacing(2);
8586
}

0 commit comments

Comments
 (0)