athameui 0.0.8 → 0.0.10
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/components/Avatar/Avatar.tsx +0 -2
- package/components/Block/Block.tsx +22 -0
- package/components/Block/index.ts +1 -0
- package/components/Button/Button.tsx +14 -0
- package/components/Carousel/Carousel.tsx +84 -0
- package/components/Carousel/index.ts +1 -0
- package/components/DropDown/Dropdown.tsx +60 -0
- package/components/DropDown/index.ts +1 -0
- package/components/Layout/Main.tsx +21 -14
- package/components/Modal/Modal.tsx +1 -1
- package/components/SlideOut/SlideOut.tsx +71 -0
- package/components/SlideOut/index.ts +1 -0
- package/components/index.ts +4 -0
- package/dist/athameui.cjs +200 -39
- package/dist/athameui.cjs.map +1 -1
- package/dist/athameui.mjs +198 -41
- package/dist/athameui.mjs.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Block/Block.d.ts +13 -0
- package/dist/components/Block/Block.d.ts.map +1 -0
- package/dist/components/Block/index.d.ts +2 -0
- package/dist/components/Block/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +14 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/Carousel/index.d.ts.map +1 -0
- package/dist/components/DropDown/Dropdown.d.ts +14 -0
- package/dist/components/DropDown/Dropdown.d.ts.map +1 -0
- package/dist/components/DropDown/index.d.ts +2 -0
- package/dist/components/DropDown/index.d.ts.map +1 -0
- package/dist/components/Layout/Main.d.ts +7 -3
- package/dist/components/Layout/Main.d.ts.map +1 -1
- package/dist/components/SlideOut/SlideOut.d.ts +21 -0
- package/dist/components/SlideOut/SlideOut.d.ts.map +1 -0
- package/dist/components/SlideOut/index.d.ts +2 -0
- package/dist/components/SlideOut/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/styles/breakpoints.d.ts +13 -0
- package/dist/styles/breakpoints.d.ts.map +1 -0
- package/dist/styles/breakpoints.ts +13 -0
- package/dist/styles/components/accordion.css +8 -5
- package/dist/styles/components/block.css +8 -0
- package/dist/styles/components/button.css +1 -1
- package/dist/styles/components/carousel.css +43 -0
- package/dist/styles/components/dropdown.css +18 -0
- package/dist/styles/components/form-input.css +10 -1
- package/dist/styles/components/main.css +14 -3
- package/dist/styles/components/slide-out.css +69 -0
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.ts +1 -1
- package/dist/styles/theme.css +4 -0
- package/dist/styles/tokens.css +44 -28
- package/dist/styles/tokens.d.ts +0 -10
- package/dist/styles/tokens.d.ts.map +1 -1
- package/dist/styles/tokens.ts +16 -26
- package/package.json +1 -1
- package/styles/breakpoints.ts +13 -0
- package/styles/components/accordion.css +8 -5
- package/styles/components/block.css +8 -0
- package/styles/components/button.css +1 -1
- package/styles/components/carousel.css +43 -0
- package/styles/components/dropdown.css +18 -0
- package/styles/components/form-input.css +10 -1
- package/styles/components/main.css +14 -3
- package/styles/components/slide-out.css +69 -0
- package/styles/index.ts +1 -1
- package/styles/theme.css +4 -0
- package/styles/tokens.css +44 -28
- package/styles/tokens.ts +16 -26
- package/dist/styles/mediaQueries.d.ts +0 -11
- package/dist/styles/mediaQueries.d.ts.map +0 -1
- package/dist/styles/mediaQueries.ts +0 -10
- package/styles/mediaQueries.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../styles/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../styles/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKlB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC;AAGnC,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC;AAC9C,MAAM,MAAM,aAAa,GAAG,OAAO,MAAM,CAAC,OAAO,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC"}
|
package/dist/styles/tokens.ts
CHANGED
|
@@ -5,15 +5,15 @@ export const tokens = {
|
|
|
5
5
|
serif: "Libre Baskerville, serif"
|
|
6
6
|
},
|
|
7
7
|
size: {
|
|
8
|
-
xs: "0.
|
|
9
|
-
sm: "0.
|
|
10
|
-
md: "
|
|
11
|
-
lg: "
|
|
12
|
-
xl: "1.
|
|
13
|
-
"2xl": "
|
|
14
|
-
"3xl": "
|
|
15
|
-
"4xl": "
|
|
16
|
-
"5xl": "
|
|
8
|
+
xs: "0.75rem",
|
|
9
|
+
sm: "0.875rem",
|
|
10
|
+
md: "1rem",
|
|
11
|
+
lg: "1.25rem",
|
|
12
|
+
xl: "1.5rem",
|
|
13
|
+
"2xl": "2rem",
|
|
14
|
+
"3xl": "2.5rem",
|
|
15
|
+
"4xl": "3rem",
|
|
16
|
+
"5xl": "3.5rem"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
color: {
|
|
@@ -146,27 +146,18 @@ export const tokens = {
|
|
|
146
146
|
md: "5px",
|
|
147
147
|
lg: "8px"
|
|
148
148
|
},
|
|
149
|
-
screen: {
|
|
150
|
-
xs: "360px",
|
|
151
|
-
sm: "480px",
|
|
152
|
-
md: "768px",
|
|
153
|
-
lg: "896px",
|
|
154
|
-
xl: "1024px",
|
|
155
|
-
"2xl": "1280px",
|
|
156
|
-
"3xl": "1536px"
|
|
157
|
-
},
|
|
158
149
|
media: {
|
|
159
150
|
min: {
|
|
160
|
-
xs: "@media (min-width:
|
|
151
|
+
xs: "@media (min-width: 320px)",
|
|
161
152
|
sm: "@media (min-width: 480px)",
|
|
162
|
-
md: "@media (min-width:
|
|
163
|
-
lg: "@media (min-width:
|
|
164
|
-
xl: "@media (min-width:
|
|
165
|
-
"2xl": "@media (min-width:
|
|
166
|
-
"3xl": "@media (min-width:
|
|
153
|
+
md: "@media (min-width: 620px)",
|
|
154
|
+
lg: "@media (min-width: 768px)",
|
|
155
|
+
xl: "@media (min-width: 896px)",
|
|
156
|
+
"2xl": "@media (min-width: 1024px)",
|
|
157
|
+
"3xl": "@media (min-width: 1280px)"
|
|
167
158
|
},
|
|
168
159
|
max: {
|
|
169
|
-
xs: "@media (max-width:
|
|
160
|
+
xs: "@media (max-width: 319px)",
|
|
170
161
|
sm: "@media (max-width: 479px)",
|
|
171
162
|
md: "@media (max-width: 767px)",
|
|
172
163
|
lg: "@media (max-width: 895px)",
|
|
@@ -184,5 +175,4 @@ export type FontTokens = typeof tokens.font;
|
|
|
184
175
|
export type ColorTokens = typeof tokens.color;
|
|
185
176
|
export type PaddingTokens = typeof tokens.padding;
|
|
186
177
|
export type RadiusTokens = typeof tokens.radius;
|
|
187
|
-
export type ScreenTokens = typeof tokens.screen;
|
|
188
178
|
export type MediaTokens = typeof tokens.media;
|
package/package.json
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
.ath-accordion {
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
font-size: var(--font-size-md);
|
|
8
7
|
margin: 0;
|
|
9
8
|
width: 100%;
|
|
10
9
|
border-radius: 3px;
|
|
11
10
|
overflow: hidden;
|
|
12
11
|
|
|
13
12
|
.ath-accordion-item-heading {
|
|
13
|
+
white-space: normal;
|
|
14
14
|
width: 100%;
|
|
15
|
-
padding:
|
|
15
|
+
padding: 10px;
|
|
16
16
|
background-color: transparent;
|
|
17
17
|
border: none;
|
|
18
18
|
display: flex;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
flex: 1;
|
|
72
72
|
margin-right: 12px;
|
|
73
73
|
font-weight: 600;
|
|
74
|
-
font-size:
|
|
74
|
+
font-size: var(--font-size-md);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.ath-accordion-item-icon {
|
|
@@ -91,8 +91,11 @@
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.ath-accordion-content-wrapper {
|
|
94
|
-
padding: 14px 20px 14px
|
|
94
|
+
padding: 14px 20px 14px 20px;
|
|
95
|
+
/* padding: 14px 20px 14px 40px; */
|
|
95
96
|
background-color: rgb(from var(--color-primary-50) r g b / 0.01);
|
|
96
|
-
font-size: var(--font-size-lg);
|
|
97
|
+
/* font-size: var(--font-size-lg); */
|
|
98
|
+
font-size: var(--font-size-md);
|
|
99
|
+
line-height: 1.5;
|
|
97
100
|
}
|
|
98
101
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@import "../tokens.css";
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ath-carousel-wrapper {
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
.ath-carousel {
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
border: 5px solid var(--color-secondary-800);
|
|
13
|
+
border-radius: 10px;
|
|
14
|
+
padding: 10px;
|
|
15
|
+
overflow-x: auto;
|
|
16
|
+
gap: 10px;
|
|
17
|
+
scrollbar-width: none;
|
|
18
|
+
&::-webkit-scrollbar {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.ath-carousel-arrow {
|
|
23
|
+
position: absolute;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
background-color: var(--color-secondary-200);
|
|
26
|
+
opacity: 0;
|
|
27
|
+
top: 50%;
|
|
28
|
+
transform: translateY(-50%);
|
|
29
|
+
z-index: 1;
|
|
30
|
+
transition: opacity 0.2s ease-in-out;
|
|
31
|
+
}
|
|
32
|
+
.ath-carousel-left-arrow {
|
|
33
|
+
left: 5px;
|
|
34
|
+
}
|
|
35
|
+
.ath-carousel-right-arrow {
|
|
36
|
+
right: 5px;
|
|
37
|
+
}
|
|
38
|
+
.ath-carousel-hover {
|
|
39
|
+
.ath-carousel-arrow {
|
|
40
|
+
opacity: 0.75;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import "../tokens.css";
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ath-dropdown {
|
|
5
|
+
display: none;
|
|
6
|
+
position: absolute;
|
|
7
|
+
z-index: 10;
|
|
8
|
+
background-color: var(--color-tertiary-100);
|
|
9
|
+
border-radius: var(--radius-sm);
|
|
10
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
11
|
+
padding: 8px;
|
|
12
|
+
min-width: 160px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ath-dropdown-open {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
outline-offset: -1px;
|
|
25
25
|
transition: all 0.2s ease;
|
|
26
26
|
min-width: 0;
|
|
27
|
+
&:read-only {
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
outline: none;
|
|
30
|
+
color: var(--color-tertiary-600);
|
|
31
|
+
padding-left: 0;
|
|
32
|
+
}
|
|
27
33
|
}
|
|
28
34
|
.ath-form-text-input:focus {
|
|
29
35
|
outline: 2px solid var(--color-primary-vibrant-500);
|
|
@@ -52,13 +58,16 @@
|
|
|
52
58
|
/* Textarea specific */
|
|
53
59
|
.ath-form-textarea {
|
|
54
60
|
margin-top: 3px;
|
|
61
|
+
font-size: inherit;
|
|
62
|
+
line-height: 1.5;
|
|
63
|
+
padding: 0.75rem;
|
|
55
64
|
border: 1px solid var(--color-tertiary-500);
|
|
56
65
|
border-radius: var(--radius-md);
|
|
57
66
|
transition:
|
|
58
67
|
border-color 0.2s ease,
|
|
59
68
|
box-shadow 0.2s ease;
|
|
60
69
|
min-width: 0;
|
|
61
|
-
min-height:
|
|
70
|
+
min-height: 6rem;
|
|
62
71
|
resize: vertical;
|
|
63
72
|
overflow: auto;
|
|
64
73
|
}
|
|
@@ -4,11 +4,22 @@
|
|
|
4
4
|
.ath-main {
|
|
5
5
|
overflow-x: hidden;
|
|
6
6
|
position: relative;
|
|
7
|
-
padding:
|
|
7
|
+
padding: 25px 0;
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
|
-
|
|
10
|
+
align-items: stretch;
|
|
11
11
|
gap: 20px;
|
|
12
|
-
flex
|
|
12
|
+
flex: 1;
|
|
13
|
+
min-height: 100vh;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ath-main-content {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 15px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
margin-inline: auto;
|
|
22
|
+
max-width: 1200px;
|
|
23
|
+
padding: 0 15px;
|
|
13
24
|
}
|
|
14
25
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@import "../tokens.css";
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ath-slide-out {
|
|
5
|
+
display: flex;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ath-slide-out-overlay {
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
16
|
+
z-index: 100;
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
visibility: hidden;
|
|
21
|
+
transition:
|
|
22
|
+
opacity 0.3s ease,
|
|
23
|
+
visibility 0.3s ease;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ath-slide-out-overlay-open {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
visibility: visible;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ath-slide-out-panel {
|
|
32
|
+
position: fixed;
|
|
33
|
+
top: 0;
|
|
34
|
+
z-index: 100;
|
|
35
|
+
background-color: var(--color-primary-500);
|
|
36
|
+
width: 280px;
|
|
37
|
+
height: 100%;
|
|
38
|
+
padding: 20px;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
transition: transform 0.1s ease-in-out;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ath-slide-out-from-left {
|
|
46
|
+
left: 0;
|
|
47
|
+
transform: translateX(-100%);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ath-slide-out-from-right {
|
|
51
|
+
right: 0;
|
|
52
|
+
transform: translateX(100%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ath-slide-out-panel-open {
|
|
56
|
+
transform: translateX(0);
|
|
57
|
+
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ath-slide-out-close-button {
|
|
61
|
+
padding: 0;
|
|
62
|
+
align-self: flex-end;
|
|
63
|
+
margin-bottom: 10px;
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
package/styles/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./breakpoints";
|
|
2
2
|
export * from "./tokens";
|
package/styles/theme.css
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
@import "./components/accordion.css";
|
|
2
2
|
@import "./components/avatar.css";
|
|
3
|
+
@import "./components/block.css";
|
|
3
4
|
@import "./components/button.css";
|
|
4
5
|
@import "./components/button-group.css";
|
|
6
|
+
@import "./components/carousel.css";
|
|
7
|
+
@import "./components/dropdown.css";
|
|
5
8
|
@import "./components/footer.css";
|
|
6
9
|
@import "./components/form-input.css";
|
|
7
10
|
@import "./components/form-label.css";
|
|
@@ -10,4 +13,5 @@
|
|
|
10
13
|
@import "./components/main.css";
|
|
11
14
|
@import "./components/modals.css";
|
|
12
15
|
@import "./components/search.css";
|
|
16
|
+
@import "./components/slide-out.css";
|
|
13
17
|
@import "./tokens.css";
|
package/styles/tokens.css
CHANGED
|
@@ -126,36 +126,36 @@
|
|
|
126
126
|
--radius-lg: 8px;
|
|
127
127
|
|
|
128
128
|
/* ----- Font Sizes ----- */
|
|
129
|
-
--font-size-xs: 0.
|
|
130
|
-
--font-size-sm: 0.
|
|
131
|
-
--font-size-md:
|
|
132
|
-
--font-size-lg:
|
|
133
|
-
--font-size-xl: 1.
|
|
134
|
-
--font-size-2xl:
|
|
135
|
-
--font-size-3xl:
|
|
136
|
-
--font-size-4xl:
|
|
137
|
-
--font-size-5xl:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
--screen-
|
|
141
|
-
--screen-
|
|
142
|
-
--screen-
|
|
143
|
-
--screen-
|
|
144
|
-
--screen-
|
|
145
|
-
--screen-
|
|
146
|
-
--screen-
|
|
129
|
+
--font-size-xs: 0.75rem;
|
|
130
|
+
--font-size-sm: 0.875rem;
|
|
131
|
+
--font-size-md: 1rem;
|
|
132
|
+
--font-size-lg: 1.25rem;
|
|
133
|
+
--font-size-xl: 1.5rem;
|
|
134
|
+
--font-size-2xl: 2rem;
|
|
135
|
+
--font-size-3xl: 2.5rem;
|
|
136
|
+
--font-size-4xl: 3rem;
|
|
137
|
+
--font-size-5xl: 3.5rem;
|
|
138
|
+
|
|
139
|
+
--screen-xs: 320;
|
|
140
|
+
--screen-sm: 480;
|
|
141
|
+
--screen-md: 620;
|
|
142
|
+
--screen-lg: 768;
|
|
143
|
+
--screen-xl: 896;
|
|
144
|
+
--screen-2xl: 1024;
|
|
145
|
+
--screen-3xl: 1280;
|
|
146
|
+
--screen-4xl: 1536;
|
|
147
147
|
|
|
148
148
|
/* ----- Media Queries ----- */
|
|
149
149
|
/* Only useful for CSS-in-JS media query handling */
|
|
150
|
-
--media-min-xs: @media (min-width:
|
|
150
|
+
--media-min-xs: @media (min-width: 320px);
|
|
151
151
|
--media-min-sm: @media (min-width: 480px);
|
|
152
|
-
--media-min-md: @media (min-width:
|
|
153
|
-
--media-min-lg: @media (min-width:
|
|
154
|
-
--media-min-xl: @media (min-width:
|
|
155
|
-
--media-min-2xl: @media (min-width:
|
|
156
|
-
--media-min-3xl: @media (min-width:
|
|
152
|
+
--media-min-md: @media (min-width: 620px);
|
|
153
|
+
--media-min-lg: @media (min-width: 768px);
|
|
154
|
+
--media-min-xl: @media (min-width: 896px);
|
|
155
|
+
--media-min-2xl: @media (min-width: 1024px);
|
|
156
|
+
--media-min-3xl: @media (min-width: 1280px);
|
|
157
157
|
|
|
158
|
-
--media-max-xs: @media (max-width:
|
|
158
|
+
--media-max-xs: @media (max-width: 319px);
|
|
159
159
|
--media-max-sm: @media (max-width: 479px);
|
|
160
160
|
--media-max-md: @media (max-width: 767px);
|
|
161
161
|
--media-max-lg: @media (max-width: 895px);
|
|
@@ -165,6 +165,12 @@
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
@layer base {
|
|
168
|
+
|
|
169
|
+
*,
|
|
170
|
+
::before,
|
|
171
|
+
::after {
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
}
|
|
168
174
|
body {
|
|
169
175
|
background-color: var(--color-primary-500);
|
|
170
176
|
color: var(--color-text-light);
|
|
@@ -174,30 +180,39 @@
|
|
|
174
180
|
-moz-osx-font-smoothing: grayscale;
|
|
175
181
|
margin: 0;
|
|
176
182
|
}
|
|
183
|
+
|
|
177
184
|
h1 {
|
|
178
185
|
color: var(--color-text-light);
|
|
179
|
-
font-size: var(--font-size-
|
|
186
|
+
font-size: var(--font-size-2xl);
|
|
187
|
+
/* font-size: var(--font-size-3xl); */
|
|
180
188
|
font-weight: 300;
|
|
181
189
|
margin: 0 0 1rem;
|
|
182
190
|
line-height: normal;
|
|
191
|
+
@media (max-width: var(--screen-lg)) {
|
|
192
|
+
font-size: var(--font-size-4xl);
|
|
193
|
+
}
|
|
183
194
|
}
|
|
195
|
+
|
|
184
196
|
h2 {
|
|
185
197
|
color: var(--color-primary-300);
|
|
186
198
|
font-size: var(--font-size-lg);
|
|
187
199
|
font-weight: 400;
|
|
188
200
|
margin: 0;
|
|
189
201
|
}
|
|
202
|
+
|
|
190
203
|
h3 {
|
|
191
204
|
color: var(--color-primary-200);
|
|
192
|
-
font-size: var(--font-size-
|
|
205
|
+
font-size: var(--font-size-lg);
|
|
193
206
|
font-weight: 500;
|
|
194
|
-
margin: 0;
|
|
207
|
+
margin: 0 0 0.5rem 0;
|
|
195
208
|
}
|
|
209
|
+
|
|
196
210
|
p {
|
|
197
211
|
margin: 0;
|
|
198
212
|
margin-bottom: 1rem;
|
|
199
213
|
line-height: 1.5;
|
|
200
214
|
}
|
|
215
|
+
|
|
201
216
|
button {
|
|
202
217
|
font-family: inherit;
|
|
203
218
|
background-color: transparent;
|
|
@@ -207,6 +222,7 @@
|
|
|
207
222
|
outline: none;
|
|
208
223
|
}
|
|
209
224
|
}
|
|
225
|
+
|
|
210
226
|
a {
|
|
211
227
|
text-decoration: none;
|
|
212
228
|
color: inherit;
|
package/styles/tokens.ts
CHANGED
|
@@ -5,15 +5,15 @@ export const tokens = {
|
|
|
5
5
|
serif: "Libre Baskerville, serif"
|
|
6
6
|
},
|
|
7
7
|
size: {
|
|
8
|
-
xs: "0.
|
|
9
|
-
sm: "0.
|
|
10
|
-
md: "
|
|
11
|
-
lg: "
|
|
12
|
-
xl: "1.
|
|
13
|
-
"2xl": "
|
|
14
|
-
"3xl": "
|
|
15
|
-
"4xl": "
|
|
16
|
-
"5xl": "
|
|
8
|
+
xs: "0.75rem",
|
|
9
|
+
sm: "0.875rem",
|
|
10
|
+
md: "1rem",
|
|
11
|
+
lg: "1.25rem",
|
|
12
|
+
xl: "1.5rem",
|
|
13
|
+
"2xl": "2rem",
|
|
14
|
+
"3xl": "2.5rem",
|
|
15
|
+
"4xl": "3rem",
|
|
16
|
+
"5xl": "3.5rem"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
color: {
|
|
@@ -146,27 +146,18 @@ export const tokens = {
|
|
|
146
146
|
md: "5px",
|
|
147
147
|
lg: "8px"
|
|
148
148
|
},
|
|
149
|
-
screen: {
|
|
150
|
-
xs: "360px",
|
|
151
|
-
sm: "480px",
|
|
152
|
-
md: "768px",
|
|
153
|
-
lg: "896px",
|
|
154
|
-
xl: "1024px",
|
|
155
|
-
"2xl": "1280px",
|
|
156
|
-
"3xl": "1536px"
|
|
157
|
-
},
|
|
158
149
|
media: {
|
|
159
150
|
min: {
|
|
160
|
-
xs: "@media (min-width:
|
|
151
|
+
xs: "@media (min-width: 320px)",
|
|
161
152
|
sm: "@media (min-width: 480px)",
|
|
162
|
-
md: "@media (min-width:
|
|
163
|
-
lg: "@media (min-width:
|
|
164
|
-
xl: "@media (min-width:
|
|
165
|
-
"2xl": "@media (min-width:
|
|
166
|
-
"3xl": "@media (min-width:
|
|
153
|
+
md: "@media (min-width: 620px)",
|
|
154
|
+
lg: "@media (min-width: 768px)",
|
|
155
|
+
xl: "@media (min-width: 896px)",
|
|
156
|
+
"2xl": "@media (min-width: 1024px)",
|
|
157
|
+
"3xl": "@media (min-width: 1280px)"
|
|
167
158
|
},
|
|
168
159
|
max: {
|
|
169
|
-
xs: "@media (max-width:
|
|
160
|
+
xs: "@media (max-width: 319px)",
|
|
170
161
|
sm: "@media (max-width: 479px)",
|
|
171
162
|
md: "@media (max-width: 767px)",
|
|
172
163
|
lg: "@media (max-width: 895px)",
|
|
@@ -184,5 +175,4 @@ export type FontTokens = typeof tokens.font;
|
|
|
184
175
|
export type ColorTokens = typeof tokens.color;
|
|
185
176
|
export type PaddingTokens = typeof tokens.padding;
|
|
186
177
|
export type RadiusTokens = typeof tokens.radius;
|
|
187
|
-
export type ScreenTokens = typeof tokens.screen;
|
|
188
178
|
export type MediaTokens = typeof tokens.media;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mediaQueries.d.ts","sourceRoot":"","sources":["../../styles/mediaQueries.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;CASvB,CAAC"}
|