@terrahq/design-system 0.0.6 → 0.1.0
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 +74 -55
- package/bin/terra-ds.mjs +46 -0
- package/dist/style.css +1 -1
- package/package.json +36 -3
- package/src/scss/framework/_var/_vars.scss +16 -9
- package/src/scss/framework/foundation/_foundation.scss +9 -1
- package/src/scss/framework/foundation/background/_background.scss +6 -3
- package/src/scss/framework/foundation/grid/_columns.scss +33 -33
- package/src/scss/framework/foundation/grid/_container.scss +8 -8
- package/src/scss/framework/foundation/grid/_make-container.scss +2 -1
- package/src/scss/framework/foundation/radius/_radius.scss +7 -0
- package/src/scss/framework/foundation/shadow/_shadow.scss +7 -0
- package/src/scss/framework/utilities/_align-items.scss +1 -1
- package/src/scss/framework/utilities/_border.scss +8 -0
- package/src/scss/framework/utilities/_display.scss +3 -3
- package/src/scss/framework/utilities/_font-weight.scss +1 -1
- package/src/scss/framework/utilities/_height.scss +2 -1
- package/src/scss/framework/utilities/_justify-content.scss +1 -1
- package/src/scss/framework/utilities/_position.scss +1 -1
- package/src/scss/framework/utilities/_spacing.scss +12 -15
- package/src/scss/framework/utilities/_utilities.scss +1 -0
- package/src/scss/framework/utilities/_width.scss +2 -1
- package/src/scss/index.scss +4 -2
- package/terra.config.example.js +9 -0
- package/decs.d.ts +0 -2
- package/public/vite.svg +0 -1
- package/src/index.html +0 -67
- package/src/style.css +0 -99
- package/src/vite-env.d.ts +0 -3
- package/tsconfig.json +0 -24
- package/vite.config.js +0 -37
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrahq/design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dist/style.css"
|
|
@@ -9,12 +9,45 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vite",
|
|
11
11
|
"build": "tsc && vite build",
|
|
12
|
-
"preview": "vite preview"
|
|
12
|
+
"preview": "vite preview",
|
|
13
|
+
"check": "node scripts/check-foundation.mjs",
|
|
14
|
+
"docs:dev": "npm run build && npm --prefix docs run dev",
|
|
15
|
+
"docs:build": "npm run build && npm --prefix docs run build",
|
|
16
|
+
"prepublishOnly": "npm run build && npm run check"
|
|
13
17
|
},
|
|
14
18
|
"devDependencies": {
|
|
15
19
|
"@types/node": "^20.8.5",
|
|
16
|
-
"sass": "^1.69.3",
|
|
17
20
|
"typescript": "^5.0.2",
|
|
18
21
|
"vite": "^4.4.5"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"terra-ds": "bin/terra-ds.mjs"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"src/scss",
|
|
29
|
+
"bin",
|
|
30
|
+
"terra.config.example.js"
|
|
31
|
+
],
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"sass": "^1.69.3"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/terra-hq/design-system.git"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/terra-hq/design-system#readme",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/terra-hq/design-system/issues"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"terra",
|
|
45
|
+
"design-system",
|
|
46
|
+
"css",
|
|
47
|
+
"utility-classes",
|
|
48
|
+
"sass"
|
|
49
|
+
],
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=18"
|
|
19
52
|
}
|
|
20
53
|
}
|
|
@@ -26,18 +26,17 @@ $color-options: (
|
|
|
26
26
|
g: $color-g,
|
|
27
27
|
h: $color-h,
|
|
28
28
|
i: $color-i,
|
|
29
|
-
);
|
|
29
|
+
) !default;
|
|
30
30
|
|
|
31
|
-
$
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
e: $color-e,
|
|
37
|
-
);
|
|
31
|
+
// Which of $color-options also get an f--background-* class (keys missing from $color-options are skipped).
|
|
32
|
+
$colorbg-keys: (a, b, c, d, e) !default;
|
|
33
|
+
|
|
34
|
+
// Spacing steps for u--p-*, u--m-* (x $measure)
|
|
35
|
+
$space-values: (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15) !default;
|
|
38
36
|
|
|
39
37
|
// * TYPOGRAPHY
|
|
40
|
-
|
|
38
|
+
// Terra's typeface. The package does not ship the font files: load Uncut Sans yourself, or the fallbacks are used.
|
|
39
|
+
$type-a: 'Uncut Sans', system-ui, sans-serif !default;
|
|
41
40
|
|
|
42
41
|
// * LAYOUT
|
|
43
42
|
$viewport-type: max-width;
|
|
@@ -80,6 +79,14 @@ $measure: 0.5rem; /* 0.5rem = 8px */
|
|
|
80
79
|
|
|
81
80
|
// * border
|
|
82
81
|
$border-radius-a: $measure;
|
|
82
|
+
// f--radius-* a 8 · b 12 · c 16 · d 20 · full (pills) · round (circles)
|
|
83
|
+
$radius-options: (a: $measure, b: $measure * 1.5, c: $measure * 2, d: $measure * 2.5, full: 999px, round: 50%) !default;
|
|
84
|
+
// f--shadow-* a float-sm · b float-md · c float-lg
|
|
85
|
+
$shadow-options: (
|
|
86
|
+
a: (0 1px 2px rgb(15 15 15 / 0.06), 0 4px 16px rgb(15 15 15 / 0.08)),
|
|
87
|
+
b: (0 2px 4px rgb(15 15 15 / 0.06), 0 12px 32px rgb(15 15 15 / 0.12)),
|
|
88
|
+
c: (0 24px 64px rgb(15 15 15 / 0.2)),
|
|
89
|
+
) !default;
|
|
83
90
|
|
|
84
91
|
// * Time
|
|
85
92
|
$time-a: 0.1s; // * Micro-interactions such as button and toggle
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
2
3
|
@use "@scss/framework/_var/_vars.scss" as *;
|
|
3
4
|
|
|
4
|
-
@each $color-name
|
|
5
|
-
.
|
|
6
|
-
background
|
|
5
|
+
@each $color-name in $colorbg-keys {
|
|
6
|
+
@if map.has-key($color-options, $color-name) {
|
|
7
|
+
.f--background-#{$color-name}{
|
|
8
|
+
background: map.get($color-options, $color-name);
|
|
9
|
+
}
|
|
7
10
|
}
|
|
8
11
|
}
|
|
@@ -7,28 +7,28 @@
|
|
|
7
7
|
|
|
8
8
|
// * columns
|
|
9
9
|
$available-columns: (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
1,
|
|
11
|
+
2,
|
|
12
|
+
3,
|
|
13
|
+
4,
|
|
14
|
+
5,
|
|
15
15
|
6,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
7,
|
|
17
|
+
8,
|
|
18
|
+
9,
|
|
19
|
+
10,
|
|
20
|
+
11,
|
|
21
21
|
12,
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
$columns-breakpoints: (
|
|
25
25
|
all: $all,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
desktop: $desktop,
|
|
27
|
+
laptop: $laptop,
|
|
28
|
+
tabletl: $tabletl,
|
|
29
|
+
tabletm: $tabletm,
|
|
30
|
+
tablets: $tablets,
|
|
31
|
+
mobile: $mobile,
|
|
32
32
|
);
|
|
33
33
|
@mixin build-columns ($size,$bkpt,$availablecolumns) {
|
|
34
34
|
@for $i from 1 through $columns {
|
|
@@ -61,28 +61,28 @@ $columns-breakpoints: (
|
|
|
61
61
|
|
|
62
62
|
/* Start Responsive Offset */
|
|
63
63
|
$available-offset: (
|
|
64
|
-
|
|
64
|
+
0,
|
|
65
65
|
1,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
66
|
+
2,
|
|
67
|
+
3,
|
|
68
|
+
4,
|
|
69
|
+
5,
|
|
70
|
+
6,
|
|
71
|
+
7,
|
|
72
|
+
8,
|
|
73
|
+
9,
|
|
74
|
+
10,
|
|
75
|
+
11
|
|
76
76
|
);
|
|
77
77
|
|
|
78
78
|
$offset-breakpoints: (
|
|
79
79
|
all: $all,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
desktop: $desktop,
|
|
81
|
+
laptop: $laptop,
|
|
82
|
+
tabletl: $tabletl,
|
|
83
|
+
tabletm: $tabletm,
|
|
84
|
+
tablets: $tablets,
|
|
85
|
+
mobile: $mobile,
|
|
86
86
|
);
|
|
87
87
|
@mixin build-offset ($size,$bkpt,$availableoffset) {
|
|
88
88
|
@for $i from 0 through $columns {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
.f--container {
|
|
5
5
|
@include make-container();
|
|
6
6
|
// * container fluid
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
&--fluid {
|
|
8
|
+
@include make-container-fluid();
|
|
9
|
+
}
|
|
10
10
|
|
|
11
11
|
// * container fluid responsive
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
&--tabletm-fluid {
|
|
13
|
+
@media all and ($viewport-type: $tabletm) {
|
|
14
|
+
@include make-container-fluid();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
1
2
|
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
3
|
|
|
3
4
|
@mixin make-container () {
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
@mixin make-container-fluid () {
|
|
15
16
|
padding: 0;
|
|
16
17
|
width: 100%;
|
|
17
|
-
@if variable-exists(g-container-fluid-max-width) {
|
|
18
|
+
@if meta.variable-exists(g-container-fluid-max-width) {
|
|
18
19
|
max-width: $g-container-fluid-max-width;
|
|
19
20
|
} @else {
|
|
20
21
|
max-width: 100%;
|
|
@@ -5,9 +5,9 @@ $display-values: (
|
|
|
5
5
|
none: none,
|
|
6
6
|
inline-block:inline-block,
|
|
7
7
|
inline:inline,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
table:table,
|
|
9
|
+
table-cell:table-cell,
|
|
10
|
+
table-row:table-row,
|
|
11
11
|
flex: flex,
|
|
12
12
|
inline-flex:inline-flex
|
|
13
13
|
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
1
2
|
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
3
|
|
|
3
4
|
$height-values: (
|
|
@@ -38,7 +39,7 @@ $height-breakpoints: (
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
@if variable-exists(height-breakpoints) {
|
|
42
|
+
@if meta.variable-exists(height-breakpoints) {
|
|
42
43
|
@include height-utility($height-values, $height-breakpoints);
|
|
43
44
|
}
|
|
44
45
|
@else {
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
2
|
|
|
3
|
-
$space-values : (
|
|
4
|
-
0,
|
|
5
|
-
1,
|
|
6
|
-
2,
|
|
7
|
-
3,
|
|
8
|
-
4,
|
|
9
|
-
5,
|
|
10
|
-
7,
|
|
11
|
-
8,
|
|
12
|
-
10,
|
|
13
|
-
15,
|
|
14
|
-
) !default;
|
|
15
3
|
|
|
16
4
|
$space-prefixes : (
|
|
17
5
|
p : padding,
|
|
@@ -24,6 +12,13 @@ $space-values : (
|
|
|
24
12
|
mr : margin-right,
|
|
25
13
|
mb : margin-bottom,
|
|
26
14
|
ml : margin-left,
|
|
15
|
+
px : (padding-left, padding-right),
|
|
16
|
+
py : (padding-top, padding-bottom),
|
|
17
|
+
mx : (margin-left, margin-right),
|
|
18
|
+
my : (margin-top, margin-bottom),
|
|
19
|
+
gap : gap,
|
|
20
|
+
row-gap : row-gap,
|
|
21
|
+
col-gap : column-gap,
|
|
27
22
|
) !default;
|
|
28
23
|
|
|
29
24
|
$space-breakpoints: (
|
|
@@ -44,7 +39,7 @@ $space-values : (
|
|
|
44
39
|
@each $attr-short, $attr-long in $prefixes {
|
|
45
40
|
@each $value in $values {
|
|
46
41
|
.u--#{$attr-short}-#{$value} {
|
|
47
|
-
|
|
42
|
+
@each $prop in $attr-long { #{$prop}: calc(#{$measure} * #{$value}); }
|
|
48
43
|
}
|
|
49
44
|
}
|
|
50
45
|
}
|
|
@@ -55,7 +50,7 @@ $space-values : (
|
|
|
55
50
|
@each $attr-short, $attr-long in $prefixes {
|
|
56
51
|
@each $value in $values {
|
|
57
52
|
.u--#{$attr-short}-#{$breakpoint-name}-#{$value} {
|
|
58
|
-
|
|
53
|
+
@each $prop in $attr-long { #{$prop}: calc(#{$measure} * #{$value}); }
|
|
59
54
|
}
|
|
60
55
|
}
|
|
61
56
|
}
|
|
@@ -64,4 +59,6 @@ $space-values : (
|
|
|
64
59
|
}
|
|
65
60
|
}
|
|
66
61
|
|
|
67
|
-
@include make-spaces($space-values, $space-prefixes,$space-breakpoints);
|
|
62
|
+
@include make-spaces($space-values, $space-prefixes,$space-breakpoints);
|
|
63
|
+
|
|
64
|
+
.u--mx-auto { margin-left: auto; margin-right: auto; }
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
1
2
|
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
3
|
|
|
3
4
|
$width-values: (
|
|
@@ -38,7 +39,7 @@ $width-breakpoints: (
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
@if variable-exists(width-breakpoints) {
|
|
42
|
+
@if meta.variable-exists(width-breakpoints) {
|
|
42
43
|
@include width-utility($width-values, $width-breakpoints);
|
|
43
44
|
}
|
|
44
45
|
@else {
|
package/src/scss/index.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// _vars is forwarded first so `@use "<pkg>" with (...)` configures it before anything else loads it.
|
|
2
|
+
@forward "./framework/_var/vars";
|
|
2
3
|
|
|
3
|
-
@use "./
|
|
4
|
+
@use "./framework/foundation/foundation";
|
|
5
|
+
@use "./framework/utilities/utilities";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copy to your project as terra.config.js, then: npx terra-ds build
|
|
2
|
+
export default {
|
|
3
|
+
colors: { a: '#0f0f0f', b: '#fefefe' }, // replaces the palette; "a" and "b" are required
|
|
4
|
+
backgrounds: ['a', 'b'], // which colors also get f--background-*
|
|
5
|
+
spacing: [0, 1, 2, 4, 8], // replaces the u--p-* / u--m-* steps
|
|
6
|
+
font: "'Uncut Sans', system-ui, sans-serif", // font-family used by f--font-* (this is already the default)
|
|
7
|
+
radius: { a: '4px', full: '999px' }, // replaces f--radius-*
|
|
8
|
+
output: 'public/terra.css',
|
|
9
|
+
}
|
package/decs.d.ts
DELETED
package/public/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/src/index.html
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8" />
|
|
6
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<link rel="stylesheet" href="./scss/index.scss">
|
|
9
|
-
<title>Design System by Terra</title>
|
|
10
|
-
</head>
|
|
11
|
-
|
|
12
|
-
<body>
|
|
13
|
-
<section class="f--section-a">
|
|
14
|
-
<div class="f--container">
|
|
15
|
-
<div class="f--row">
|
|
16
|
-
<div class="f--col-12">
|
|
17
|
-
<div class="f--font-a f--sp-c u--font-bold">Design System <span class="f--font-c">By Terra</span></div>
|
|
18
|
-
<p class="f--font-d">A small collection of css helpers that include</p>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</section>
|
|
23
|
-
<section class="f--section-b">
|
|
24
|
-
<div class="f--container">
|
|
25
|
-
<div class="f--row f--gap-b">
|
|
26
|
-
<div class="f--col-6 f--col-tablets-12">
|
|
27
|
-
<p class="f--font-d f--sp-d">Foundation</p>
|
|
28
|
-
<ul class="f--font-e">
|
|
29
|
-
<li>Grid ( container, row, col offset)</li>
|
|
30
|
-
<li>Color (terra branded)</li>
|
|
31
|
-
<li>Background (terra branded)</li>
|
|
32
|
-
<li>Font</li>
|
|
33
|
-
<li>Spaces</li>
|
|
34
|
-
<li>Section</li>
|
|
35
|
-
<li>Gap</li>
|
|
36
|
-
</ul>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="f--col-6 f--col-tablets-12">
|
|
39
|
-
<p class="f--font-d f--sp-d">Utilities</p>
|
|
40
|
-
<ul class="f--font-e" style="columns: 2;">
|
|
41
|
-
<li>Align items</li>
|
|
42
|
-
<li>Aspect ratio</li>
|
|
43
|
-
<li>Display </li>
|
|
44
|
-
<li>Flex-direction</li>
|
|
45
|
-
<li>Flex-wrap</li>
|
|
46
|
-
<li>Font style</li>
|
|
47
|
-
<li>Font Weight</li>
|
|
48
|
-
<li>Height</li>
|
|
49
|
-
<li>Justify Content</li>
|
|
50
|
-
<li>Order</li>
|
|
51
|
-
<li>Overflow</li>
|
|
52
|
-
<li>Position</li>
|
|
53
|
-
<li>Spacing</li>
|
|
54
|
-
<li>Text-align</li>
|
|
55
|
-
<li>Width</li>
|
|
56
|
-
</ul>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</section>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</body>
|
|
64
|
-
|
|
65
|
-
</html>
|
|
66
|
-
|
|
67
|
-
|
package/src/style.css
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
3
|
-
/* line-height: 1.5;
|
|
4
|
-
font-weight: 400;
|
|
5
|
-
|
|
6
|
-
color-scheme: light dark;
|
|
7
|
-
color: rgba(255, 255, 255, 0.87);
|
|
8
|
-
background-color: #242424;
|
|
9
|
-
|
|
10
|
-
font-synthesis: none;
|
|
11
|
-
text-rendering: optimizeLegibility;
|
|
12
|
-
-webkit-font-smoothing: antialiased;
|
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
|
14
|
-
-webkit-text-size-adjust: 100%; */
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
a {
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
color: #646cff;
|
|
22
|
-
text-decoration: inherit;
|
|
23
|
-
}
|
|
24
|
-
a:hover {
|
|
25
|
-
color: #535bf2;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
body,html {
|
|
29
|
-
margin: 0;
|
|
30
|
-
min-height: 100svh;
|
|
31
|
-
/* display: flex;
|
|
32
|
-
place-items: center; */
|
|
33
|
-
background-color: rgb(55, 55, 82);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
h1 {
|
|
37
|
-
font-size: 3.2em;
|
|
38
|
-
line-height: 1.1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
#app {
|
|
42
|
-
max-width: 1280px;
|
|
43
|
-
margin: 0 auto;
|
|
44
|
-
padding: 2rem;
|
|
45
|
-
text-align: center;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.logo {
|
|
49
|
-
height: 6em;
|
|
50
|
-
padding: 1.5em;
|
|
51
|
-
will-change: filter;
|
|
52
|
-
transition: filter 300ms;
|
|
53
|
-
}
|
|
54
|
-
.logo:hover {
|
|
55
|
-
filter: drop-shadow(0 0 2em #646cffaa);
|
|
56
|
-
}
|
|
57
|
-
.logo.vanilla:hover {
|
|
58
|
-
filter: drop-shadow(0 0 2em #3178c6aa);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.card {
|
|
62
|
-
padding: 2em;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.read-the-docs {
|
|
66
|
-
color: #888;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
button {
|
|
70
|
-
border-radius: 8px;
|
|
71
|
-
border: 1px solid transparent;
|
|
72
|
-
padding: 0.6em 1.2em;
|
|
73
|
-
font-size: 1em;
|
|
74
|
-
font-weight: 500;
|
|
75
|
-
font-family: inherit;
|
|
76
|
-
background-color: #1a1a1a;
|
|
77
|
-
cursor: pointer;
|
|
78
|
-
transition: border-color 0.25s;
|
|
79
|
-
}
|
|
80
|
-
button:hover {
|
|
81
|
-
border-color: #646cff;
|
|
82
|
-
}
|
|
83
|
-
button:focus,
|
|
84
|
-
button:focus-visible {
|
|
85
|
-
outline: 4px auto -webkit-focus-ring-color;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@media (prefers-color-scheme: light) {
|
|
89
|
-
:root {
|
|
90
|
-
color: #213547;
|
|
91
|
-
background-color: #ffffff;
|
|
92
|
-
}
|
|
93
|
-
a:hover {
|
|
94
|
-
color: #747bff;
|
|
95
|
-
}
|
|
96
|
-
button {
|
|
97
|
-
background-color: #f9f9f9;
|
|
98
|
-
}
|
|
99
|
-
}
|
package/src/vite-env.d.ts
DELETED
package/tsconfig.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"isolatedModules": true,
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"noFallthroughCasesInSwitch": true
|
|
22
|
-
},
|
|
23
|
-
"include": ["src", "decs.d.ts"]
|
|
24
|
-
}
|