Skip to content

Commit d992974

Browse files
committed
inline css vars
1 parent a0353d7 commit d992974

File tree

8 files changed

+19
-39
lines changed

8 files changed

+19
-39
lines changed

src/components/button.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
display: block;
1010

1111
line-height: 24px;
12-
transition: background 150ms linear;
12+
transition: background 50ms linear;
1313
position: relative;
1414
}
1515

src/components/contactForm.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
.eta {
2525
display: flex;
2626
align-items: center;
27-
color: var(--textColorMuted);
27+
color: #626B7F;
2828
}

src/components/formField.module.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,4 @@
44
font-size: 13px;
55
margin-bottom: 8px;
66
display: block;
7-
}
8-
9-
.helpText {
10-
margin-bottom: 12px;
11-
color: var(--textColorMuted);
12-
display: block;
137
}

src/components/formField.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import styles from './formField.module.css';
44
export interface FormFieldProps {
55
label?: string;
66
labelFor?: string;
7-
helpText?: string | null;
8-
errorMessage?: string | null;
97
children: React.ReactNode;
108
}
119

@@ -16,7 +14,6 @@ export const FormField = (props: FormFieldProps) => (
1614
{props.label}
1715
</label>
1816
)}
19-
{props.helpText && <span className={styles.helpText}>{props.helpText}</span>}
2017
<div>{props.children}</div>
2118
</div>
2219
);

src/components/helpButton.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@
6666
}
6767

6868
.popoverTitle {
69-
color: var(--textColor);
69+
color: #262F40;
7070
font-weight: 500;
7171
font-size: 1.05rem;
7272
margin-bottom: 8px;
7373
}
7474

7575
.popoverNudge {
76-
color: var(--textColorMuted);
76+
color: #626B7F;
7777
margin-bottom: 16px;
7878
font-size: 0.8rem;
7979
}

src/components/texarea.module.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.textarea {
2-
box-shadow: var(--inputBoxShadow);
3-
color: var(--textColor);
4-
background: var(--inputBackground);
2+
box-shadow: 0 0 0 1px #cdccda66 inset;
3+
color: #262F40;
4+
background: #FFF;
55
border-radius: 8px;
66
padding: 8px 12px;
77
outline: none;
@@ -10,18 +10,18 @@
1010
width: 100%;
1111
font-size: 13px;
1212
line-height: 24px;
13-
resize: vertical;
13+
resize: none;
1414
min-height: 100px;
1515
}
1616

1717
.textarea::placeholder {
18-
color: var(--textColorMuted);
18+
color: #626B7F;
1919
}
2020

2121
.textarea:hover {
22-
box-shadow: var(--inputBoxShadowHover);
22+
box-shadow: 0 0 0 1px #aaaac73d inset;
2323
}
2424

2525
.textarea:focus {
26-
box-shadow: var(--inputBoxShadowFocus);
26+
box-shadow: 0 0 0 2px #7e22ce;
2727
}

src/components/textInput.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.input {
2-
box-shadow: var(--inputBoxShadow);
3-
color: var(--textColor);
4-
background: var(--inputBackground);
2+
box-shadow: 0 0 0 1px #cdccda66 inset;
3+
color: #262F40;
4+
background: #FFF;
55
border-radius: 8px;
66
padding: 6px 12px;
77
outline: none;
@@ -13,13 +13,13 @@
1313
}
1414

1515
.input::placeholder {
16-
color: var(--textColorMuted);
16+
color: #626B7F;
1717
}
1818

1919
.input:hover {
20-
box-shadow: var(--inputBoxShadowHover);
20+
box-shadow: 0 0 0 1px #aaaac73d inset;
2121
}
2222

2323
.input:focus {
24-
box-shadow: var(--inputBoxShadowFocus);
24+
box-shadow: 0 0 0 2px #7e22ce;
2525
}

styles/globals.css

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ html, body {
1414

1515
body {
1616
-webkit-font-smoothing: antialiased;
17-
background: var(--background);
18-
color: var(--textColor);
17+
background: #FFF;
18+
color: #262F40;
1919
font-size: 14px;
2020
font-weight: 400;
2121
font-family: 'Inter', sans-serif;
@@ -38,15 +38,4 @@ p, h1, h2, h3, h4, h5, h6 {
3838
display: flex;
3939
flex-direction: column;
4040
height: 100%;
41-
}
42-
43-
:root {
44-
--background: #FFF;
45-
--textColor: #262F40;
46-
--textColorMuted: #626B7F;
47-
--inputBackground: #FFFFFF;
48-
--inputBackgroundSelected: #7e22ce;
49-
--inputBoxShadow: 0 0 0 1px #cdccda66 inset;
50-
--inputBoxShadowHover: 0 0 0 1px #aaaac73d inset;
51-
--inputBoxShadowFocus: 0 0 0 2px #7e22ce;
5241
}

0 commit comments

Comments
 (0)