sate-lib 1.1.2 → 1.1.3

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/README.md CHANGED
@@ -21,7 +21,16 @@ A lightweight and modular React component library designed for modern web interf
21
21
  pnpm dev
22
22
  ```
23
23
 
24
- ## Usage
24
+ ## Fonts
25
+
26
+ SATE Lib uses custom fonts to define the typographic styles used in components like Typography.
27
+ To keep the bundle lightweight and flexible, fonts are not bundled with the main library output but are still included in the dist/assets/fonts directory.
28
+
29
+ ```bash
30
+ import "sate-lib/dist/assets/styles/fonts.scss";
31
+ ```
32
+
33
+ ## Component usage
25
34
 
26
35
  ```bash
27
36
  import { Badge } from "sate-lib";
@@ -0,0 +1,31 @@
1
+ @font-face {
2
+ font-family: "Author";
3
+ src: url("../fonts/author-bold.woff2") format("woff2");
4
+ font-weight: bold;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
8
+
9
+ @font-face {
10
+ font-family: "Golos UI";
11
+ src: url("../fonts/golos-ui-regular.woff2") format("woff2");
12
+ font-weight: 400;
13
+ font-style: normal;
14
+ font-display: swap;
15
+ }
16
+
17
+ @font-face {
18
+ font-family: "Golos UI";
19
+ src: url("../fonts/golos-ui-medium.woff2") format("woff2");
20
+ font-weight: 500;
21
+ font-style: normal;
22
+ font-display: swap;
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "Golos UI";
27
+ src: url("../fonts/golos-ui-bold.woff2") format("woff2");
28
+ font-weight: 700;
29
+ font-style: normal;
30
+ font-display: swap;
31
+ }
@@ -1,164 +1 @@
1
- *,
2
- *::before,
3
- *::after {
4
- box-sizing: border-box;
5
- }
6
-
7
- * {
8
- margin: 0;
9
- padding: 0;
10
- outline: none;
11
- }
12
-
13
- ul,
14
- ol {
15
- list-style: none;
16
- }
17
-
18
- html:focus-within {
19
- scroll-behavior: smooth;
20
- }
21
-
22
- a:not([class]) {
23
- text-decoration-skip-ink: auto;
24
- color: inherit;
25
- }
26
-
27
- img,
28
- picture,
29
- svg,
30
- video,
31
- canvas {
32
- max-width: 100%;
33
- height: auto;
34
- vertical-align: middle;
35
- background-repeat: no-repeat;
36
- background-size: cover;
37
- }
38
-
39
- input,
40
- button,
41
- textarea,
42
- select {
43
- font: inherit;
44
- color: inherit;
45
- border: none;
46
- background: none;
47
- outline: none;
48
- }
49
-
50
- @media (prefers-reduced-motion: reduce) {
51
- html:focus-within {
52
- scroll-behavior: auto;
53
- }
54
- *,
55
- *::before,
56
- *::after {
57
- animation-duration: 0.01ms !important;
58
- animation-iteration-count: 1 !important;
59
- transition-duration: 0.01ms !important;
60
- scroll-behavior: auto !important;
61
- transition: none;
62
- }
63
- }
64
- body,
65
- html {
66
- height: 100%;
67
- scroll-behavior: smooth;
68
- }
69
-
70
- body {
71
- -webkit-font-smoothing: antialiased;
72
- }
73
-
74
- p,
75
- h1,
76
- h2,
77
- h3,
78
- h4,
79
- h5,
80
- h6 {
81
- overflow-wrap: break-word;
82
- }
83
-
84
- button {
85
- cursor: pointer;
86
- }
87
-
88
- :root {
89
- --box-shadow-1: 0px 1px 0px 0px rgba(17, 17, 26, 0.1);
90
- --box-shadow-2: 0px 1px 0px rgba(17, 17, 26, 0.05),
91
- 0px 0px 8px rgba(17, 17, 26, 0.1);
92
- --opacity-disabled: 0.38;
93
- --color-theme-core-bright: #317c6c;
94
- --color-theme-core-dark: #b80f0f;
95
- --color-system-content-primary: #0e0e0e;
96
- --color-system-content-secondary: #474747;
97
- --color-system-content-tertiary: #767676;
98
- --radius-radii-10: 0.625rem;
99
- --radius-radii-16: 1rem;
100
- --radius-radii-24: 1.5rem;
101
- --radius-large-container: 1rem;
102
- --radius-chip: 0.5rem;
103
- --radius-medium-container: 0.75rem;
104
- --typeface-theme: "Bebas Neue";
105
- --typescale-display-large-font: "Bebas Neue";
106
- --typescale-display-large-font-size: 6rem;
107
- --typescale-display-large-weight: 600;
108
- --typescale-display-large-font-size: 6rem;
109
- --typescale-display-large-letter-spacing: 0;
110
- --spacing-size-4: 0.25rem;
111
- --spacing-size-154: 9.625rem;
112
- --spacing-size-0: 0;
113
- --padding-x-small: 0.5rem;
114
- --padding-small: 1rem;
115
- --padding-medium: 1.5rem;
116
- --padding-large: 2rem;
117
- --size-x-small: 1.5rem;
118
- --size-medium: 2.5rem;
119
- --size-large: 3rem;
120
- --size-x-large: 3.5rem;
121
- --size-small: 2rem;
122
- --size-2x-large: 4.5rem;
123
- --size-2x-small: 1rem;
124
- --spacing-column-gap-cards: 0.75rem;
125
- --spacing-column-gap-chips: 0.5rem;
126
- --spacing-column-margin-screen-mobile: 1.5rem;
127
- --typescale-title-screen-paragraph-spacing: 0.5rem;
128
- --typescale-title-section-paragraph-spacing: 0.5rem;
129
- }
130
-
131
- html {
132
- --zindex-input: 1;
133
- --zindex-input-hover: 2;
134
- --zindex-input-focus: 3;
135
- --zindex-input-active: 4;
136
- --zindex-input-clear-button: 5;
137
- --zindex-modal: 50;
138
- }
139
-
140
- @font-face {
141
- font-family: "Bebas Neue";
142
- src: url("../fonts/bebas-neue-v14-latin-regular.woff2") format("woff2");
143
- font-weight: 400;
144
- font-style: normal;
145
- font-display: swap;
146
- }.c-test {
147
- border-radius: 0.25rem;
148
- }@font-face {
149
- font-family: "Bebas Neue";
150
- src: url("../fonts/bebas-neue-v14-latin-regular.woff2") format("woff2");
151
- font-weight: 400;
152
- font-style: normal;
153
- font-display: swap;
154
- }
155
- .c-badge {
156
- font-family: var(--typescale-display-large-font, "Bebas Neue");
157
- font-size: var(--typescale-display-large-font-size, 6rem);
158
- font-weight: var(--typescale-display-large-weight, 700);
159
- line-height: var(--typescale-display-large-line-height, 5.125rem);
160
- letter-spacing: var(--typescale-display-large-letter-spacing, 0rem);
161
- padding: var(--spacing-size-4, 0.25rem);
162
- color: var(--color-system-content-secondary, #474747);
163
- border-radius: 0.25rem;
164
- }
1
+ *,:after,:before{box-sizing:border-box}*{margin:0;outline:none;padding:0}ol,ul{list-style:none}html:focus-within{scroll-behavior:smooth}a:not([class]){color:inherit;text-decoration-skip-ink:auto}canvas,img,picture,svg,video{background-repeat:no-repeat;background-size:cover;height:auto;max-width:100%;vertical-align:middle}button,input,select,textarea{background:none;border:none;color:inherit;font:inherit;outline:none}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important;transition:none}}body,html{height:100%;scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}button{cursor:pointer}:root{--box-shadow-1:0px 1px 0px 0px rgba(17,17,26,.1);--box-shadow-2:0px 1px 0px rgba(17,17,26,.05),0px 0px 8px rgba(17,17,26,.1);--opacity-disabled:0.38;--color-theme-core-bright:#317c6c;--color-theme-core-dark:#b80f0f;--color-system-content-primary:#0e0e0e;--color-system-content-secondary:#474747;--color-system-content-tertiary:#767676;--radius-radii-10:0.625rem;--radius-radii-16:1rem;--radius-radii-24:1.5rem;--radius-large-container:1rem;--radius-chip:0.5rem;--radius-medium-container:0.75rem;--spacing-size-4:0.25rem;--spacing-size-154:9.625rem;--spacing-size-0:0;--padding-x-small:0.5rem;--padding-small:1rem;--padding-medium:1.5rem;--padding-large:2rem;--size-x-small:1.5rem;--size-medium:2.5rem;--size-large:3rem;--size-x-large:3.5rem;--size-small:2rem;--size-2x-large:4.5rem;--size-2x-small:1rem;--spacing-column-gap-cards:0.75rem;--spacing-column-gap-chips:0.5rem;--spacing-column-margin-screen-mobile:1.5rem}.c-badge{border-radius:.25rem;color:var(--color-system-content-secondary,#474747);padding:var(--spacing-size-4,.25rem)}.c-typography{color:#111;margin:0}.c-typography-title{font-family:Author,Arial Black,Impact,sans-serif;font-size:4rem;font-weight:700;line-height:1.1}.c-typography-header .c-typography-body .c-typography-caption{font-family:Golos UI,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.c-typography-header{font-size:2rem;font-weight:500;line-height:1.3}.c-typography-body{font-size:1rem;font-weight:400;line-height:1.6}.c-typography-caption{font-size:.875rem;font-weight:400;line-height:1.4;opacity:.7}.c-test{border-radius:.25rem}