@pushui/styles 0.0.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.
@@ -0,0 +1,168 @@
1
+ $tx-color-base-link: var(--color-black);
2
+ $tx-color-base-link-active: var(--color-primary-2);
3
+ $tx-color-code: var(--color-white);
4
+ $bg-color-code: var(--color-black);
5
+ $bg-color-note: var(--color-primary-3);
6
+ $bd-color-note: var(--color-primary-1);
7
+ $tx-color-note: var(--color-primary-1);
8
+ $bd-color-table-row: var(--color-grey-5);
9
+ $bg-color-table-row-th: var(--color-grey-6);
10
+ $bg-color-table-row-even: var(--color-grey-7);
11
+ $bd-color-hr: var(--color-grey-5);
12
+ $bg-mark: var(--color-warning-3);
13
+ $heading-sizes: (
14
+ h1: 8,
15
+ h2: 7,
16
+ h3: 6,
17
+ h4: 5,
18
+ h5: 4,
19
+ h6: 3,
20
+ );
21
+
22
+ @mixin base-heading {
23
+ font-weight: var(--font-weight-heading);
24
+ line-height: var(--line-height-heading);
25
+ }
26
+
27
+ @mixin base-link {
28
+ background: none;
29
+ color: $tx-color-base-link;
30
+ font-size: var(--font-size-4);
31
+ outline: none;
32
+ text-decoration: underline;
33
+
34
+ &:hover,
35
+ &:focus-visible {
36
+ color: $tx-color-base-link-active;
37
+ text-decoration: none;
38
+ }
39
+ }
40
+
41
+ @mixin base-paragraph {
42
+ line-height: var(--line-height-default);
43
+ }
44
+
45
+ @mixin base-code-block {
46
+ background-color: $bg-color-code;
47
+ color: $tx-color-code;
48
+ overflow-x: auto;
49
+ padding: 2rem;
50
+
51
+ code {
52
+ background: none;
53
+ border-radius: 0;
54
+ padding: 0;
55
+ }
56
+ }
57
+
58
+ @mixin base-code-inline {
59
+ background-color: $bg-color-code;
60
+ border-radius: var(--radius-2);
61
+ color: $tx-color-code;
62
+ padding: 0.5rem;
63
+ }
64
+
65
+ @mixin base-keyboard {
66
+ background-color: $bg-color-code;
67
+ border-radius: var(--radius-2);
68
+ color: $tx-color-code;
69
+ padding: 0.5rem;
70
+ }
71
+
72
+ @mixin base-note {
73
+ background-color: $bg-color-note;
74
+ border-color: $bd-color-note;
75
+ border-left: 0.3rem solid;
76
+ color: $tx-color-note;
77
+ padding: 1rem;
78
+ }
79
+
80
+ @mixin base-blockquote {
81
+ @include base-note;
82
+ }
83
+
84
+ @mixin base-caption {
85
+ font-size: var(--font-size-2);
86
+ opacity: .5;
87
+ }
88
+
89
+ @mixin base-table {
90
+ border-collapse: collapse;
91
+ width: 100%;
92
+
93
+ th {
94
+ background-color: $bg-color-table-row-th;
95
+ font-weight: var(--font-weight-strong);
96
+ }
97
+
98
+ th,
99
+ td {
100
+ border: 0.1rem solid $bd-color-table-row;
101
+ padding: 1rem;
102
+ text-align: left;
103
+ }
104
+
105
+ tbody tr:nth-child(even) {
106
+ background-color: $bg-color-table-row-even;
107
+ }
108
+ }
109
+
110
+ @mixin base-hr {
111
+ border: none;
112
+ border-top: 0.1rem solid $bd-color-hr;
113
+ }
114
+
115
+ @mixin base-mark {
116
+ background-color: $bg-mark;
117
+ padding: 0.2rem 0.5rem;
118
+ }
119
+
120
+ @mixin base-list {
121
+ ul {
122
+ list-style-type: disc;
123
+ }
124
+
125
+ ol {
126
+ list-style-type: decimal;
127
+ }
128
+
129
+ ul ul {
130
+ list-style-type: circle;
131
+ }
132
+
133
+ ol ol {
134
+ list-style-type: lower-alpha;
135
+ }
136
+
137
+ ul ul ul {
138
+ list-style-type: square;
139
+ }
140
+
141
+ ol ol ol {
142
+ list-style-type: lower-roman;
143
+ }
144
+
145
+ ul,
146
+ ol {
147
+ margin: 0 0 2rem;
148
+ padding-left: 2rem;
149
+
150
+ li {
151
+ margin-bottom: 0.5rem;
152
+
153
+ &:last-child {
154
+ margin-bottom: 0;
155
+ }
156
+ }
157
+
158
+ ul,
159
+ ol {
160
+ margin: 0.5rem 0 0;
161
+ }
162
+
163
+ &:last-child {
164
+ margin-bottom: 0;
165
+ }
166
+ }
167
+ }
168
+
@@ -0,0 +1,96 @@
1
+ :root {
2
+ --color-black: #000;
3
+ --color-black-50: rgb(0 0 0 / 50%);
4
+ --color-black-40: rgb(0 0 0 / 40%);
5
+ --color-black-30: rgb(0 0 0 / 30%);
6
+ --color-black-20: rgb(0 0 0 / 20%);
7
+ --color-black-10: rgb(0 0 0 / 10%);
8
+ --color-black-05: rgb(0 0 0 / 5%);
9
+ --color-white: #fff;
10
+ --color-white-50: rgb(255 255 255 / 50%);
11
+ --color-white-40: rgb(255 255 255 / 40%);
12
+ --color-white-30: rgb(255 255 255 / 30%);
13
+ --color-white-20: rgb(255 255 255 / 20%);
14
+ --color-white-10: rgb(255 255 255 / 10%);
15
+ --color-white-05: rgb(255 255 255 / 5%);
16
+ --color-grey-1: #333;
17
+ --color-grey-2: #666;
18
+ --color-grey-3: #737373;
19
+ --color-grey-4: #949494;
20
+ --color-grey-5: #DDD;
21
+ --color-grey-6: #EEE;
22
+ --color-grey-7: #F5F5F5;
23
+ --color-default-1: #000;
24
+ --color-default-2: #333;
25
+ --color-default-3: #eee;
26
+ --color-default-contrast: #fff;
27
+ --color-primary-1: #002f5f;
28
+ --color-primary-2: #06c;
29
+ --color-primary-3: #cce0ff;
30
+ --color-primary-contrast: #60a5fa;
31
+ --color-secondary-1: #3d1480;
32
+ --color-secondary-2: #7c3aed;
33
+ --color-secondary-3: #ede9fe;
34
+ --color-secondary-contrast: #a78bfa;
35
+ --color-success-1: #115129;
36
+ --color-success-2: #15803d;
37
+ --color-success-3: #dcfce7;
38
+ --color-success-contrast: #4ade80;
39
+ --color-danger-1: #5c1010;
40
+ --color-danger-2: #dc2626;
41
+ --color-danger-3: #fee2e2;
42
+ --color-danger-contrast: #f87171;
43
+ --color-warning-1: #71320b;
44
+ --color-warning-2: #b45309;
45
+ --color-warning-3: #fef3c7;
46
+ --color-warning-contrast: #fbbf24;
47
+ --color-info-1: #104b5d;
48
+ --color-info-2: #0e7490;
49
+ --color-info-3: #cffafe;
50
+ --color-info-contrast: #22d3ee;
51
+ --font-size-1: 1rem;
52
+ --font-size-2: 1.2rem;
53
+ --font-size-3: 1.4rem;
54
+ --font-size-4: 1.6rem;
55
+ --font-size-5: 1.8rem;
56
+ --font-size-6: 2rem;
57
+ --font-size-7: 3rem;
58
+ --font-size-8: 4rem;
59
+ --font-size-9: 6rem;
60
+ --line-height-heading: 1.2;
61
+ --line-height-default: 1.4;
62
+ --font-weight-body: 400;
63
+ --font-weight-button: 600;
64
+ --font-weight-strong: 600;
65
+ --font-weight-heading: 800;
66
+ --z-index-1: 100;
67
+ --z-index-2: 200;
68
+ --z-index-3: 300;
69
+ --z-index-4: 400;
70
+ --z-index-5: 500;
71
+ --z-index-6: 600;
72
+ --screen-max-width: 168rem;
73
+ --container-max-width: 120rem;
74
+ --site-font: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', arial,
75
+ sans-serif;
76
+ --spacing-1: 0.5rem;
77
+ --spacing-2: 1rem;
78
+ --spacing-3: 2rem;
79
+ --spacing-4: 3rem;
80
+ --spacing-5: 4rem;
81
+ --spacing-6: 5rem;
82
+ --spacing-7: 6rem;
83
+ --spacing-8: 8rem;
84
+ --spacing-9: 10rem;
85
+ --radius-1: 0.2rem;
86
+ --radius-2: 0.4rem;
87
+ --radius-3: 0.6rem;
88
+ --radius-4: 0.8rem;
89
+ --radius-5: 1rem;
90
+ --radius-6: 1.5rem;
91
+ --radius-7: 2rem;
92
+ --height-mobile-menu: 6rem;
93
+ --height-main-menu: 6rem;
94
+ --height-top-menu: 3rem;
95
+ --transition-default: 0.2s ease;
96
+ }