-
Notifications
You must be signed in to change notification settings - Fork 1
/
HankoAuth.css.ts
61 lines (59 loc) · 1.5 KB
/
HankoAuth.css.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { createTheme, style } from "@vanilla-extract/css";
import { responsiveStyle, themeTokens } from "@codeui/kit";
import { hankoComponent, hankoVars } from "./hanko-base.css";
export const [hankoAuthTheme, hankoAuthThemeVars] = createTheme({
containerPaddingXs: "0px",
containerPadding: hankoVars.containerPadding,
});
export const hankoAuth = style([
hankoComponent,
hankoAuthTheme,
{
vars: {
"--container-padding": hankoAuthThemeVars.containerPadding,
},
selectors: {
"&::part(headline1)": responsiveStyle({
xs: {
textAlign: "center",
},
lg: {
textAlign: "left",
},
}),
"&::part(paragraph)": responsiveStyle({
xs: {
textAlign: "center",
},
lg: {
textAlign: "left",
},
}),
"&::part(form-item)": {
minWidth: "100%",
},
"&::part(input)": {
minWidth: "100%",
// backgroundColor: "rgba(10, 10, 10, .75)",
},
"&::part(input passcode-input)": {
minWidth: "100%",
},
"&::part(container)": responsiveStyle({
xs: {
vars: {
"--container-padding": hankoAuthThemeVars.containerPaddingXs,
},
border: "none",
borderRadius: themeTokens.radii.lg,
backgroundColor: "transparent",
},
sm: {
vars: {
"--container-padding": hankoAuthThemeVars.containerPadding,
},
},
}),
},
},
]);