@unkn0wndo3s/nova-design-system 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/LICENSE.md +47 -0
- package/README.md +165 -0
- package/package.json +29 -0
- package/src/components/Button/_button.scss +37 -0
- package/src/components/Button/button.astro +15 -0
- package/src/components/Icons/Arrow2/Arrow2.astro +45 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-16-down.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-16-left.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-16-right.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-16-up.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-24-down.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-24-left.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-24-right.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-24-up.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-32-down.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-32-left.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-32-right.svg +3 -0
- package/src/components/Icons/Arrow2/svgs/arrow2-32-up.svg +3 -0
- package/src/components/Icons/bin/bin.astro +26 -0
- package/src/components/Icons/bin/svgs/bin-16.svg +3 -0
- package/src/components/Icons/bin/svgs/bin-24.svg +3 -0
- package/src/components/Icons/bin/svgs/bin-32.svg +3 -0
- package/src/components/Icons/burger/burger.astro +26 -0
- package/src/components/Icons/burger/svgs/burger-16.svg +3 -0
- package/src/components/Icons/burger/svgs/burger-24.svg +3 -0
- package/src/components/Icons/burger/svgs/burger-32.svg +3 -0
- package/src/components/Icons/calendar/calendar.astro +26 -0
- package/src/components/Icons/calendar/svgs/calendar-16.svg +3 -0
- package/src/components/Icons/calendar/svgs/calendar-24.svg +3 -0
- package/src/components/Icons/calendar/svgs/calendar-32.svg +3 -0
- package/src/components/Icons/check/check.astro +26 -0
- package/src/components/Icons/check/svgs/check-16.svg +3 -0
- package/src/components/Icons/check/svgs/check-24.svg +3 -0
- package/src/components/Icons/check/svgs/check-32.svg +3 -0
- package/src/components/Icons/close/close.astro +27 -0
- package/src/components/Icons/close/svgs/close-16.svg +3 -0
- package/src/components/Icons/close/svgs/close-24.svg +3 -0
- package/src/components/Icons/close/svgs/close-32.svg +3 -0
- package/src/components/Icons/code/code.astro +26 -0
- package/src/components/Icons/code/svgs/code-16.svg +3 -0
- package/src/components/Icons/code/svgs/code-24.svg +3 -0
- package/src/components/Icons/code/svgs/code-32.svg +3 -0
- package/src/components/Icons/cube/cube.astro +26 -0
- package/src/components/Icons/cube/svgs/cube-16.svg +3 -0
- package/src/components/Icons/cube/svgs/cube-24.svg +3 -0
- package/src/components/Icons/cube/svgs/cube-32.svg +3 -0
- package/src/components/Icons/download/download.astro +26 -0
- package/src/components/Icons/download/svgs/download-16.svg +5 -0
- package/src/components/Icons/download/svgs/download-24.svg +4 -0
- package/src/components/Icons/download/svgs/download-32.svg +4 -0
- package/src/components/Icons/filter/filter.astro +26 -0
- package/src/components/Icons/filter/svgs/filter-16.svg +3 -0
- package/src/components/Icons/filter/svgs/filter-24.svg +3 -0
- package/src/components/Icons/filter/svgs/filter-32.svg +3 -0
- package/src/components/Icons/help/help.astro +26 -0
- package/src/components/Icons/help/svgs/help-16.svg +5 -0
- package/src/components/Icons/help/svgs/help-24.svg +5 -0
- package/src/components/Icons/help/svgs/help-32.svg +4 -0
- package/src/components/Icons/home/home.astro +26 -0
- package/src/components/Icons/home/svgs/home-16.svg +3 -0
- package/src/components/Icons/home/svgs/home-24.svg +3 -0
- package/src/components/Icons/home/svgs/home-32.svg +3 -0
- package/src/components/Icons/index.ts +25 -0
- package/src/components/Icons/link/link.astro +26 -0
- package/src/components/Icons/link/svgs/link-16.svg +3 -0
- package/src/components/Icons/link/svgs/link-24.svg +3 -0
- package/src/components/Icons/link/svgs/link-32.svg +3 -0
- package/src/components/Icons/minus/minus.astro +26 -0
- package/src/components/Icons/minus/svgs/minus-16.svg +3 -0
- package/src/components/Icons/minus/svgs/minus-24.svg +3 -0
- package/src/components/Icons/minus/svgs/minus-32.svg +3 -0
- package/src/components/Icons/more/more.astro +26 -0
- package/src/components/Icons/more/svgs/more-16.svg +3 -0
- package/src/components/Icons/more/svgs/more-24.svg +3 -0
- package/src/components/Icons/more/svgs/more-32.svg +3 -0
- package/src/components/Icons/overview/overview.astro +26 -0
- package/src/components/Icons/overview/svgs/overview-16.svg +3 -0
- package/src/components/Icons/overview/svgs/overview-24.svg +3 -0
- package/src/components/Icons/overview/svgs/overview-32.svg +3 -0
- package/src/components/Icons/plus/plus.astro +26 -0
- package/src/components/Icons/plus/svgs/plus-16.svg +3 -0
- package/src/components/Icons/plus/svgs/plus-24.svg +3 -0
- package/src/components/Icons/plus/svgs/plus-32.svg +3 -0
- package/src/components/Icons/profile/profile.astro +27 -0
- package/src/components/Icons/profile/svgs/profile-16.svg +3 -0
- package/src/components/Icons/profile/svgs/profile-24.svg +3 -0
- package/src/components/Icons/profile/svgs/profile-32.svg +3 -0
- package/src/components/Icons/search/search.astro +27 -0
- package/src/components/Icons/search/svgs/search-16.svg +3 -0
- package/src/components/Icons/search/svgs/search-24.svg +3 -0
- package/src/components/Icons/search/svgs/search-32.svg +3 -0
- package/src/components/Icons/settings/settings.astro +26 -0
- package/src/components/Icons/settings/svgs/settings-16.svg +3 -0
- package/src/components/Icons/settings/svgs/settings-24.svg +3 -0
- package/src/components/Icons/settings/svgs/settings-32.svg +3 -0
- package/src/components/Icons/share/share.astro +27 -0
- package/src/components/Icons/share/svgs/share-16.svg +3 -0
- package/src/components/Icons/share/svgs/share-24.svg +3 -0
- package/src/components/Icons/share/svgs/share-32.svg +3 -0
- package/src/components/Icons/shield/shield.astro +26 -0
- package/src/components/Icons/shield/svgs/shield-16.svg +3 -0
- package/src/components/Icons/shield/svgs/shield-24.svg +3 -0
- package/src/components/Icons/shield/svgs/shield-32.svg +3 -0
- package/src/components/Icons/sort/sort.astro +38 -0
- package/src/components/Icons/sort/svgs/sort-16-ascend.svg +4 -0
- package/src/components/Icons/sort/svgs/sort-16-default.svg +3 -0
- package/src/components/Icons/sort/svgs/sort-16-descend.svg +4 -0
- package/src/components/Icons/sort/svgs/sort-24-ascend.svg +4 -0
- package/src/components/Icons/sort/svgs/sort-24-default.svg +3 -0
- package/src/components/Icons/sort/svgs/sort-24-descend.svg +4 -0
- package/src/components/Icons/sort/svgs/sort-32-ascend.svg +4 -0
- package/src/components/Icons/sort/svgs/sort-32-default.svg +3 -0
- package/src/components/Icons/sort/svgs/sort-32-descend.svg +4 -0
- package/src/components/Icons/stats/stats.astro +26 -0
- package/src/components/Icons/stats/svgs/stats-16.svg +3 -0
- package/src/components/Icons/stats/svgs/stats-24.svg +3 -0
- package/src/components/Icons/stats/svgs/stats-32.svg +3 -0
- package/src/components/Icons/upload/svgs/upload-16.svg +3 -0
- package/src/components/Icons/upload/svgs/upload-24.svg +3 -0
- package/src/components/Icons/upload/svgs/upload-32.svg +3 -0
- package/src/components/Icons/upload/upload.astro +27 -0
- package/src/components/Link/_link.scss +30 -0
- package/src/components/Link/link.astro +16 -0
- package/src/components/ListItem/_listItem.scss +21 -0
- package/src/components/ListItem/listItem.astro +15 -0
- package/src/components/ListItem/listItemSubtitle.astro +7 -0
- package/src/components/ListItem/listItemTitle.astro +7 -0
- package/src/components/Notifications/_notification.scss +61 -0
- package/src/components/Notifications/notification.astro +23 -0
- package/src/components/Tabs/_tab.scss +33 -0
- package/src/components/Tabs/tab.astro +54 -0
- package/src/components/Tabs/tabContent.astro +21 -0
- package/src/components/Tabs/tabItem.astro +41 -0
- package/src/components/Toggle/_toggle.scss +33 -0
- package/src/components/Toggle/toggle.astro +62 -0
- package/src/components/index.ts +10 -0
- package/src/index.ts +1 -0
- package/src/layouts/Layout.astro +29 -0
- package/src/pages/index.astro +338 -0
- package/src/styles/index.scss +10 -0
- package/src/styles/tokens/_colors.scss +69 -0
- package/src/styles/tokens/_spacing.scss +32 -0
- package/src/styles/tokens/_typography.scss +51 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@mixin _light {
|
|
2
|
+
--nds-text: #050A0A;
|
|
3
|
+
--nds-neutral: #7C8282;
|
|
4
|
+
--nds-disabled: #C2D4D4;
|
|
5
|
+
--nds-background: #F4FBFB;
|
|
6
|
+
--nds-primary: #43C9D0;
|
|
7
|
+
--nds-secondary: #71EAEA;
|
|
8
|
+
--nds-accent: #05D1D1;
|
|
9
|
+
|
|
10
|
+
--nds-success-high: #3B6D11;
|
|
11
|
+
--nds-success-medium: #639922;
|
|
12
|
+
--nds-success-low: #EAF3DE;
|
|
13
|
+
|
|
14
|
+
--nds-error-high: #A32D2D;
|
|
15
|
+
--nds-error-medium: #E24B4A;
|
|
16
|
+
--nds-error-low: #FCEBEB;
|
|
17
|
+
|
|
18
|
+
--nds-warning-high: #854F0B;
|
|
19
|
+
--nds-warning-medium: #BA7517;
|
|
20
|
+
--nds-warning-low: #FAEEDA;
|
|
21
|
+
|
|
22
|
+
--nds-info-high: #185FA5;
|
|
23
|
+
--nds-info-medium: #378ADD;
|
|
24
|
+
--nds-info-low: #E6F1FB;
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin _dark {
|
|
29
|
+
|
|
30
|
+
--nds-text: #F5FAFA;
|
|
31
|
+
--nds-neutral: #5A7878;
|
|
32
|
+
--nds-disabled: #7C8282;
|
|
33
|
+
--nds-background: #040B0B;
|
|
34
|
+
--nds-primary: #2FB5BC;
|
|
35
|
+
--nds-secondary: #288181;
|
|
36
|
+
--nds-accent: #2EFAFA;
|
|
37
|
+
|
|
38
|
+
--nds-success-high: #97C459;
|
|
39
|
+
--nds-success-medium: #97C459;
|
|
40
|
+
--nds-success-low: #173404;
|
|
41
|
+
|
|
42
|
+
--nds-error-high: #F09595;
|
|
43
|
+
--nds-error-medium: #A32D2D;
|
|
44
|
+
--nds-error-low: #501313;
|
|
45
|
+
|
|
46
|
+
--nds-warning-high: #EF9F27;
|
|
47
|
+
--nds-warning-medium: #EF9F27;
|
|
48
|
+
--nds-warning-low: #412402;
|
|
49
|
+
|
|
50
|
+
--nds-info-high: #85B7EB;
|
|
51
|
+
--nds-info-medium: #85B7EB;
|
|
52
|
+
--nds-info-low: #042C53;
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:root,
|
|
57
|
+
[data-theme="light"] {
|
|
58
|
+
@include _light;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-theme="dark"] {
|
|
62
|
+
@include _dark;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (prefers-color-scheme: dark) {
|
|
66
|
+
:root:not([data-theme="light"]) {
|
|
67
|
+
@include _dark;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// ─── Base tokens (theme-independent) ──────────────────────────────────────────
|
|
2
|
+
// Source: Light.tokens.json / Dark.tokens.json — Spacing, Radius, Border (same in both themes)
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--nds-none: 0;
|
|
6
|
+
|
|
7
|
+
// ── Spacing ───────────────────────────────────────────────────────────────
|
|
8
|
+
--nds-spacing-3xs: 2px;
|
|
9
|
+
--nds-spacing-2xs: 4px;
|
|
10
|
+
--nds-spacing-xs: 8px;
|
|
11
|
+
--nds-spacing-sm: 12px;
|
|
12
|
+
--nds-spacing-md: 16px;
|
|
13
|
+
--nds-spacing-lg: 24px;
|
|
14
|
+
--nds-spacing-xl: 32px;
|
|
15
|
+
--nds-spacing-2xl: 48px;
|
|
16
|
+
--nds-spacing-3xl: 64px;
|
|
17
|
+
|
|
18
|
+
// ── Radius ────────────────────────────────────────────────────────────────
|
|
19
|
+
--nds-radius-xs: 2px;
|
|
20
|
+
--nds-radius-sm: 4px;
|
|
21
|
+
--nds-radius-md: 8px;
|
|
22
|
+
--nds-radius-lg: 12px;
|
|
23
|
+
--nds-radius-xl: 16px;
|
|
24
|
+
--nds-radius-2xl: 24px;
|
|
25
|
+
--nds-radius-3xl: 32px;
|
|
26
|
+
--nds-radius-full: 9999px;
|
|
27
|
+
|
|
28
|
+
// ── Border widths ─────────────────────────────────────────────────────────
|
|
29
|
+
--nds-border-width-thin: 1px;
|
|
30
|
+
--nds-border-width-medium: 2px;
|
|
31
|
+
--nds-border-width-thick: 4px;
|
|
32
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css?family=Intel%20One%20Mono:700|Intel%20One%20Mono:400');
|
|
2
|
+
|
|
3
|
+
$font-mono: 'Intel One Mono', monospace;
|
|
4
|
+
|
|
5
|
+
@mixin text-sm {
|
|
6
|
+
font-size: 0.600rem;
|
|
7
|
+
font-family: $font-mono;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin text-base {
|
|
12
|
+
font-size: 0.8rem;
|
|
13
|
+
font-family: $font-mono;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin text-label {
|
|
18
|
+
font-size: 0.8rem;
|
|
19
|
+
font-family: $font-mono;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin text-xl {
|
|
24
|
+
font-size: 1.066rem;
|
|
25
|
+
font-family: $font-mono;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin text-2xl {
|
|
30
|
+
font-size: 1.421rem;
|
|
31
|
+
font-family: $font-mono;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin text-3xl {
|
|
36
|
+
font-size: 1.894rem;
|
|
37
|
+
font-family: $font-mono;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin text-4xl {
|
|
42
|
+
font-size: 2.525rem;
|
|
43
|
+
font-family: $font-mono;
|
|
44
|
+
font-weight: 700;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin text-5xl {
|
|
48
|
+
font-size: 3.366rem;
|
|
49
|
+
font-family: $font-mono;
|
|
50
|
+
font-weight: 700;
|
|
51
|
+
}
|