igniteui-astro-components 0.0.1 → 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.
- package/README.md +21 -0
- package/package.json +3 -1
- package/src/assets/icons/angular-logo.svg +38 -0
- package/src/assets/icons/arrow-down.svg +3 -0
- package/src/assets/icons/arrow.svg +3 -0
- package/src/assets/icons/blazor-logo.svg +10 -0
- package/src/assets/icons/bullet-poiont.svg +3 -0
- package/src/assets/icons/chatGPT,.svg +4 -0
- package/src/assets/icons/check-circle.svg +3 -0
- package/src/assets/icons/check.svg +3 -0
- package/src/assets/icons/cheked.svg +3 -0
- package/src/assets/icons/chevron.svg +3 -0
- package/src/assets/icons/classes.svg +3 -0
- package/src/assets/icons/claude.svg +3 -0
- package/src/assets/icons/clear.svg +3 -0
- package/src/assets/icons/close.svg +3 -0
- package/src/assets/icons/code.svg +3 -0
- package/src/assets/icons/collapse.svg +5 -0
- package/src/assets/icons/command.svg +3 -0
- package/src/assets/icons/copy-clipboard.svg +3 -0
- package/src/assets/icons/copy.svg +3 -0
- package/src/assets/icons/crown.svg +3 -0
- package/src/assets/icons/dot.svg +3 -0
- package/src/assets/icons/download.svg +3 -0
- package/src/assets/icons/dropdown-indicator-bold.svg +3 -0
- package/src/assets/icons/dropdown-indicator.svg +3 -0
- package/src/assets/icons/enter-fullscreen.svg +3 -0
- package/src/assets/icons/enumerations.svg +3 -0
- package/src/assets/icons/exit-fullscreen.svg +3 -0
- package/src/assets/icons/expand-all.svg +5 -0
- package/src/assets/icons/expand-icon.svg +3 -0
- package/src/assets/icons/eye.svg +3 -0
- package/src/assets/icons/filter-clear.svg +1 -0
- package/src/assets/icons/filter.svg +3 -0
- package/src/assets/icons/functions.svg +5 -0
- package/src/assets/icons/github-logo.svg +3 -0
- package/src/assets/icons/hamburger-menu.svg +3 -0
- package/src/assets/icons/info.svg +3 -0
- package/src/assets/icons/interfaces.svg +3 -0
- package/src/assets/icons/link-blank.svg +3 -0
- package/src/assets/icons/link.svg +3 -0
- package/src/assets/icons/moon.svg +3 -0
- package/src/assets/icons/note.svg +3 -0
- package/src/assets/icons/open-link-blank.svg +3 -0
- package/src/assets/icons/page.svg +3 -0
- package/src/assets/icons/palette,.svg +3 -0
- package/src/assets/icons/pen.svg +3 -0
- package/src/assets/icons/play-circle.svg +10 -0
- package/src/assets/icons/premium.svg +3 -0
- package/src/assets/icons/react.svg +4 -0
- package/src/assets/icons/refresh.svg +3 -0
- package/src/assets/icons/rocket.svg +10 -0
- package/src/assets/icons/search.svg +10 -0
- package/src/assets/icons/shine.svg +3 -0
- package/src/assets/icons/show-more.svg +3 -0
- package/src/assets/icons/source-code.svg +3 -0
- package/src/assets/icons/start.svg +3 -0
- package/src/assets/icons/sub-directory-indicator.svg +3 -0
- package/src/assets/icons/sun.svg +3 -0
- package/src/assets/icons/system-theme.svg +3 -0
- package/src/assets/icons/system.svg +3 -0
- package/src/assets/icons/type-alias.svg +3 -0
- package/src/assets/icons/variables.svg +3 -0
- package/src/assets/icons/warning.svg +3 -0
- package/src/assets/icons/web-component-logo.svg +23 -0
- package/src/assets/icons/wrap-text.svg +3 -0
- package/src/assets/ig-logo.svg +33 -0
- package/src/assets/illustrations/classes.svg +3 -0
- package/src/assets/illustrations/enumerations.svg +3 -0
- package/src/assets/illustrations/functions.svg +5 -0
- package/src/assets/illustrations/interfaces.svg +3 -0
- package/src/assets/illustrations/type-alias.svg +3 -0
- package/src/assets/illustrations/variables.svg +3 -0
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +57 -0
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +51 -0
- package/src/components/DocsBreadcrumb/README.md +66 -0
- package/src/components/DocsSidebar/DocsSidebar.astro +28 -58
- package/src/components/DocsSidebar/DocsSidebar.scss +18 -0
- package/src/components/DocsSidebar/SidebarFilterInput.astro +22 -57
- package/src/components/DocsSidebar/SidebarFilterInput.scss +69 -0
- package/src/components/DocsSidebar/SidebarLabel.astro +2 -7
- package/src/components/DocsSubHeader/DocsSubHeader.astro +60 -248
- package/src/components/DocsSubHeader/DocsSubHeader.scss +69 -0
- package/src/components/DocsSubHeader/README.md +6 -37
- package/src/components/DocsToc/DocsToc.astro +38 -83
- package/src/components/DocsToc/DocsToc.scss +33 -0
- package/src/components/DocsTree/DocsTree.astro +16 -2
- package/src/components/DocsTree/DocsTreeItem.astro +21 -16
- package/src/components/DocsTree/docs-tree.scss +185 -0
- package/src/components/GlobalFooter/GlobalFooter.astro +1 -1
- package/src/components/GlobalFooter/GlobalFooter.module.scss +1 -0
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +217 -196
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +2 -47
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.scss +0 -0
- package/src/components/Search/Search.astro +14 -103
- package/src/components/Search/Search.scss +50 -0
- package/src/components/ThemingWidget/ThemingWidget.astro +1 -5
- package/src/components/ThemingWidget/ThemingWidget.scss +3 -0
- package/src/components/mdx/DocsAside/DocsAside.astro +15 -47
- package/src/components/mdx/DocsAside/DocsAside.scss +36 -0
- package/src/components/mdx/DocsAside/README.md +6 -6
- package/src/components/mdx/Sample/Sample.astro +1 -32
- package/src/components/mdx/Sample/Sample.scss +32 -0
- package/src/integration.ts +9 -0
- package/src/layouts/DocsLayout/DocsLayout.astro +88 -204
- package/src/layouts/DocsLayout/DocsLayout.scss +125 -0
- package/src/scripts/icon-registry.ts +57 -0
- package/src/styles/custom.scss +17 -251
- package/src/styles/global/_breakpoints.scss +48 -0
- package/src/styles/global/_code-blocks.scss +77 -0
- package/src/styles/global/_component-themes.scss +68 -0
- package/src/styles/global/_index.scss +9 -0
- package/src/styles/global/_markdown.scss +120 -0
- package/src/styles/global/_members.scss +85 -0
- package/src/styles/global/_palette.scss +131 -0
- package/src/styles/global/_type-scale.scss +182 -0
- package/src/styles/global/_variables.scss +71 -0
- package/src/styles/theme.scss +58 -0
- package/src/components/DocsTree/docs-tree.css +0 -227
- package/src/styles/ig-theme.scss +0 -43
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@use 'igniteui-theming/sass/typography' as *;
|
|
2
|
+
|
|
3
|
+
// 'code' and 'small' are custom type-scale entries — their CSS vars are
|
|
4
|
+
// generated by typography() but type-style() only accepts standard names.
|
|
5
|
+
// Read the generated --ig-* vars directly to avoid the warning.
|
|
6
|
+
.igd-main-content__markdown {
|
|
7
|
+
padding: var(--igd-page-padding);
|
|
8
|
+
|
|
9
|
+
pre,
|
|
10
|
+
code {
|
|
11
|
+
@include type-style('code', false) {
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
ul {
|
|
17
|
+
@include type-style('body-2') {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
list-style-type: none;
|
|
22
|
+
padding: 0;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
li > code {
|
|
26
|
+
background: var(--ig-primary-50);
|
|
27
|
+
color: var(--ig-primary-800);
|
|
28
|
+
border: rem(1px) solid var(--ig-primary-100);
|
|
29
|
+
|
|
30
|
+
padding: rem(2px) rem(4px);
|
|
31
|
+
border-radius: rem(4px);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
li {
|
|
35
|
+
@include type-style('body-1') {
|
|
36
|
+
margin: 0;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
> strong {
|
|
40
|
+
@include type-style('subtitle-2') {
|
|
41
|
+
margin: 0;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
color: var(--ig-gray-700);
|
|
46
|
+
padding: rem(4px) 0;
|
|
47
|
+
|
|
48
|
+
> .shiki {
|
|
49
|
+
margin-top: rem(8px);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
p,h1,h2,h3,h4,h5,h6:only-child {
|
|
54
|
+
margin: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
margin-bottom: rem(26px);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
a {
|
|
61
|
+
color: light-dark(var(--ig-primary-500), var(--ig-primary-200));
|
|
62
|
+
|
|
63
|
+
&:hover,
|
|
64
|
+
&:focus {
|
|
65
|
+
color: light-dark(var(--ig-primary-600), var(--ig-primary-100));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.igd-defined-in {
|
|
70
|
+
> span {
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
border: 1px solid light-dark(var(--ig-primary-500), var(--ig-primary-800));
|
|
75
|
+
padding: rem(8px) rem(16px);
|
|
76
|
+
border-radius: var(--igd-border-radius);
|
|
77
|
+
|
|
78
|
+
@include type-style('body-1');
|
|
79
|
+
|
|
80
|
+
display: grid;
|
|
81
|
+
align-items: start;
|
|
82
|
+
grid-template-columns: auto 1fr;
|
|
83
|
+
gap: rem(8px);
|
|
84
|
+
color: var(--ig-secondary-500);
|
|
85
|
+
margin-block-end: rem(26px);
|
|
86
|
+
|
|
87
|
+
a {
|
|
88
|
+
min-width: 0;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.igd-anchor-link {
|
|
96
|
+
opacity: 0;
|
|
97
|
+
display: grid;
|
|
98
|
+
place-items: center;
|
|
99
|
+
min-width: rem(24px);
|
|
100
|
+
aspect-ratio: 1;
|
|
101
|
+
background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
|
|
102
|
+
border: rem(1px) solid light-dark(var(--ig-gray-100), var(--ig-secondary-700));
|
|
103
|
+
border-radius: var(--igd-border-radius);
|
|
104
|
+
|
|
105
|
+
&:focus-visible {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
outline: none;
|
|
108
|
+
outline-offset: 2px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
igc-icon {
|
|
112
|
+
--size: rem(18px);
|
|
113
|
+
--color: var(--ig-secondary-500);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.lead {
|
|
118
|
+
margin-bottom: rem(26px)
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@use 'igniteui-theming' as *;
|
|
2
|
+
|
|
3
|
+
/* ============================================================
|
|
4
|
+
API Members
|
|
5
|
+
Styles for member articles (properties, methods, accessors,
|
|
6
|
+
events), headings, badges, inheritance tree, and metadata.
|
|
7
|
+
|
|
8
|
+
WHY GLOBAL: These styles target `section > article`,
|
|
9
|
+
`.member-badge`, `.inheritance-tree`, and `.inherited-from`
|
|
10
|
+
which are rendered across all 5 detail page templates
|
|
11
|
+
(classes, interfaces, functions, types, variables). While
|
|
12
|
+
AnchoredName.astro renders `.member-badge`, the surrounding
|
|
13
|
+
article/section structure lives directly in each page
|
|
14
|
+
template, so no single component fully owns these styles.
|
|
15
|
+
Once a shared detail page layout component exists, this file
|
|
16
|
+
should be moved there.
|
|
17
|
+
============================================================ */
|
|
18
|
+
|
|
19
|
+
/* Inheritance tree */
|
|
20
|
+
.inheritance-tree {
|
|
21
|
+
margin-top: 0.5em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.inheritance-tree-item {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
font-family: var(--sl-font-mono, monospace), sans-serif;
|
|
28
|
+
font-size: 1em;
|
|
29
|
+
line-height: 1.7;
|
|
30
|
+
white-space: pre;
|
|
31
|
+
margin-top: 0.1em;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.inheritance-tree-item .inheritance-arrow {
|
|
35
|
+
margin-right: 0.5em;
|
|
36
|
+
margin-top: 0.1em;
|
|
37
|
+
color: #888;
|
|
38
|
+
font-size: 1.1em;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.inheritance-tree-item.last strong {
|
|
42
|
+
font-weight: bold;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* "Inherited from" metadata line shown under member headings */
|
|
46
|
+
.inherited-from {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: rem(8px);
|
|
50
|
+
padding: rem(8px) rem(16px);
|
|
51
|
+
color: var(--igd-accent);
|
|
52
|
+
border: rem(1px) solid light-dark(var(--ig-primary-500), var(--ig-primary-800));
|
|
53
|
+
border-radius: rem(4px);
|
|
54
|
+
|
|
55
|
+
strong {
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
a {
|
|
60
|
+
|
|
61
|
+
text-decoration: underline;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Visual separation between member articles */
|
|
66
|
+
section > article {
|
|
67
|
+
margin-block: var(--igd-page-padding);
|
|
68
|
+
|
|
69
|
+
> * {
|
|
70
|
+
margin-block-end: rem(26px);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.member-badge {
|
|
75
|
+
@include type-style('body-1') {
|
|
76
|
+
margin: 0;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
display: inline-block;
|
|
80
|
+
color: light-dark(var(--ig-secondary-800), var(--ig-secondary-200));
|
|
81
|
+
background: light-dark(var(--ig-secondary-100), var(--ig-secondary-900));
|
|
82
|
+
border: rem(1px) solid light-dark(var(--ig-secondary-300),var(--ig-secondary-700));
|
|
83
|
+
padding: var(--igd-members-spacing);
|
|
84
|
+
border-radius: rem(4px);
|
|
85
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@use 'igniteui-theming' as *;
|
|
2
|
+
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
// Handmade palettes — all primary / secondary / gray shades are explicit so
|
|
5
|
+
// you can tune each stop individually. Surface, info, success, warn, and error
|
|
6
|
+
// are auto-generated from their base colours via shades().
|
|
7
|
+
//
|
|
8
|
+
// Gray progression:
|
|
9
|
+
// light → 50 = near-white … 900 = near-black (standard)
|
|
10
|
+
// dark → 50 = darkest … 900 = lightest (inverted, for contrast)
|
|
11
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
// ── Light ─────────────────────────────────────────────────────────────────────
|
|
14
|
+
|
|
15
|
+
$light-palette: (
|
|
16
|
+
'primary': (
|
|
17
|
+
'50': #E6F2FF, '50-contrast': adaptive-contrast(#E6F2FF), '50-raw': #E6F2FF,
|
|
18
|
+
'100': #CCE4FF, '100-contrast': adaptive-contrast(#CCE4FF), '100-raw': #CCE4FF,
|
|
19
|
+
'200': #99C9FF, '200-contrast': adaptive-contrast(#99C9FF), '200-raw': #99C9FF,
|
|
20
|
+
'300': #66ADFF, '300-contrast': adaptive-contrast(#66ADFF), '300-raw': #66ADFF,
|
|
21
|
+
'400': #3392FF, '400-contrast': adaptive-contrast(#3392FF), '400-raw': #3392FF,
|
|
22
|
+
'500': #0176FF, '500-contrast': adaptive-contrast(#0176FF), '500-raw': #0176FF,
|
|
23
|
+
'600': #006AE6, '600-contrast': adaptive-contrast(#006AE6), '600-raw': #006AE6,
|
|
24
|
+
'700': #005DCC, '700-contrast': adaptive-contrast(#005DCC), '700-raw': #005DCC,
|
|
25
|
+
'800': #004699, '800-contrast': adaptive-contrast(#004699), '800-raw': #004699,
|
|
26
|
+
'900': #002B5C, '900-contrast': adaptive-contrast(#002B5C), '900-raw': #002B5C,
|
|
27
|
+
'A100': #C8DEFF, 'A100-contrast': adaptive-contrast(#C8DEFF), 'A100-raw': #C8DEFF,
|
|
28
|
+
'A200': #8BBEFF, 'A200-contrast': adaptive-contrast(#8BBEFF), 'A200-raw': #8BBEFF,
|
|
29
|
+
'A400': #2E7FFF, 'A400-contrast': adaptive-contrast(#2E7FFF), 'A400-raw': #2E7FFF,
|
|
30
|
+
'A700': #0050D6, 'A700-contrast': adaptive-contrast(#0050D6), 'A700-raw': #0050D6,
|
|
31
|
+
),
|
|
32
|
+
'secondary': (
|
|
33
|
+
'50': #FFF0EB, '50-contrast': adaptive-contrast(#FFF0EB), '50-raw': #FFF0EB,
|
|
34
|
+
'100': #FFE1D6, '100-contrast': adaptive-contrast(#FFE1D6), '100-raw': #FFE1D6,
|
|
35
|
+
'200': #FFC3AD, '200-contrast': adaptive-contrast(#FFC3AD), '200-raw': #FFC3AD,
|
|
36
|
+
'300': #FFA685, '300-contrast': adaptive-contrast(#FFA685), '300-raw': #FFA685,
|
|
37
|
+
'400': #FF885C, '400-contrast': adaptive-contrast(#FF885C), '400-raw': #FF885C,
|
|
38
|
+
'500': #F95924, '500-contrast': adaptive-contrast(#F95924), '500-raw': #F95924,
|
|
39
|
+
'600': #E04F1F, '600-contrast': adaptive-contrast(#E04F1F), '600-raw': #E04F1F,
|
|
40
|
+
'700': #C6451B, '700-contrast': adaptive-contrast(#C6451B), '700-raw': #C6451B,
|
|
41
|
+
'800': #933313, '800-contrast': adaptive-contrast(#933313), '800-raw': #933313,
|
|
42
|
+
'900': #5A1F0C, '900-contrast': adaptive-contrast(#5A1F0C), '900-raw': #5A1F0C,
|
|
43
|
+
'A100': #FFD0C0, 'A100-contrast': adaptive-contrast(#FFD0C0), 'A100-raw': #FFD0C0,
|
|
44
|
+
'A200': #FFAA88, 'A200-contrast': adaptive-contrast(#FFAA88), 'A200-raw': #FFAA88,
|
|
45
|
+
'A400': #FF6B45, 'A400-contrast': adaptive-contrast(#FF6B45), 'A400-raw': #FF6B45,
|
|
46
|
+
'A700': #FF4D25, 'A700-contrast': adaptive-contrast(#FF4D25), 'A700-raw': #FF4D25,
|
|
47
|
+
),
|
|
48
|
+
'gray': (
|
|
49
|
+
'50': #FCFCFC, '50-contrast': adaptive-contrast(#FCFCFC), '50-raw': #FCFCFC,
|
|
50
|
+
'100': #F3F6FA, '100-contrast': adaptive-contrast(#F3F6FA), '100-raw': #F3F6FA,
|
|
51
|
+
'200': #E5EBF3, '200-contrast': adaptive-contrast(#E5EBF3), '200-raw': #E5EBF3,
|
|
52
|
+
'300': #D2DBE8, '300-contrast': adaptive-contrast(#D2DBE8), '300-raw': #D2DBE8,
|
|
53
|
+
'400': #A9B8CC, '400-contrast': adaptive-contrast(#A9B8CC), '400-raw': #A9B8CC,
|
|
54
|
+
'500': #7D91AB, '500-contrast': adaptive-contrast(#7D91AB), '500-raw': #7D91AB,
|
|
55
|
+
'600': #556C86, '600-contrast': adaptive-contrast(#556C86), '600-raw': #556C86,
|
|
56
|
+
'700': #344B65, '700-contrast': adaptive-contrast(#344B65), '700-raw': #344B65,
|
|
57
|
+
'800': #1A314A, '800-contrast': adaptive-contrast(#1A314A), '800-raw': #1A314A,
|
|
58
|
+
'900': #00142B, '900-contrast': adaptive-contrast(#00142B), '900-raw': #00142B,
|
|
59
|
+
),
|
|
60
|
+
'surface': shades('surface', #fafafa, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
61
|
+
'info': shades('info', #1151C1, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
62
|
+
'success': shades('success', #028A54, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
63
|
+
'warn': shades('warn', #faa419, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
64
|
+
'error': shades('error', #ff134a, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
65
|
+
'_meta': ('variant': light),
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
// ── Dark ──────────────────────────────────────────────────────────────────────
|
|
69
|
+
// Primary and secondary are identical to light (chromatic colors never invert).
|
|
70
|
+
// Gray is inverted: 50 = darkest, 900 = lightest.
|
|
71
|
+
|
|
72
|
+
$dark-palette: (
|
|
73
|
+
'primary': (
|
|
74
|
+
'50': #E6F2FF, '50-contrast': adaptive-contrast(#E6F2FF), '50-raw': #E6F2FF,
|
|
75
|
+
'100': #CCE4FF, '100-contrast': adaptive-contrast(#CCE4FF), '100-raw': #CCE4FF,
|
|
76
|
+
'200': #99C9FF, '200-contrast': adaptive-contrast(#99C9FF), '200-raw': #99C9FF,
|
|
77
|
+
'300': #66ADFF, '300-contrast': adaptive-contrast(#66ADFF), '300-raw': #66ADFF,
|
|
78
|
+
'400': #3392FF, '400-contrast': adaptive-contrast(#3392FF), '400-raw': #3392FF,
|
|
79
|
+
'500': #0176FF, '500-contrast': adaptive-contrast(#0176FF), '500-raw': #0176FF,
|
|
80
|
+
'600': #006AE6, '600-contrast': adaptive-contrast(#006AE6), '600-raw': #006AE6,
|
|
81
|
+
'700': #005DCC, '700-contrast': adaptive-contrast(#005DCC), '700-raw': #005DCC,
|
|
82
|
+
'800': #004699, '800-contrast': adaptive-contrast(#004699), '800-raw': #004699,
|
|
83
|
+
'900': #002B5C, '900-contrast': adaptive-contrast(#002B5C), '900-raw': #002B5C,
|
|
84
|
+
'A100': #C8DEFF, 'A100-contrast': adaptive-contrast(#C8DEFF), 'A100-raw': #C8DEFF,
|
|
85
|
+
'A200': #8BBEFF, 'A200-contrast': adaptive-contrast(#8BBEFF), 'A200-raw': #8BBEFF,
|
|
86
|
+
'A400': #2E7FFF, 'A400-contrast': adaptive-contrast(#2E7FFF), 'A400-raw': #2E7FFF,
|
|
87
|
+
'A700': #0050D6, 'A700-contrast': adaptive-contrast(#0050D6), 'A700-raw': #0050D6,
|
|
88
|
+
),
|
|
89
|
+
'secondary': (
|
|
90
|
+
'50': #FFF0EB, '50-contrast': adaptive-contrast(#FFF0EB), '50-raw': #FFF0EB,
|
|
91
|
+
'100': #FFE1D6, '100-contrast': adaptive-contrast(#FFE1D6), '100-raw': #FFE1D6,
|
|
92
|
+
'200': #FFC3AD, '200-contrast': adaptive-contrast(#FFC3AD), '200-raw': #FFC3AD,
|
|
93
|
+
'300': #FFA685, '300-contrast': adaptive-contrast(#FFA685), '300-raw': #FFA685,
|
|
94
|
+
'400': #FF885C, '400-contrast': adaptive-contrast(#FF885C), '400-raw': #FF885C,
|
|
95
|
+
'500': #F95924, '500-contrast': adaptive-contrast(#F95924), '500-raw': #F95924,
|
|
96
|
+
'600': #E04F1F, '600-contrast': adaptive-contrast(#E04F1F), '600-raw': #E04F1F,
|
|
97
|
+
'700': #C6451B, '700-contrast': adaptive-contrast(#C6451B), '700-raw': #C6451B,
|
|
98
|
+
'800': #933313, '800-contrast': adaptive-contrast(#933313), '800-raw': #933313,
|
|
99
|
+
'900': #5A1F0C, '900-contrast': adaptive-contrast(#5A1F0C), '900-raw': #5A1F0C,
|
|
100
|
+
'A100': #FFD0C0, 'A100-contrast': adaptive-contrast(#FFD0C0), 'A100-raw': #FFD0C0,
|
|
101
|
+
'A200': #FFAA88, 'A200-contrast': adaptive-contrast(#FFAA88), 'A200-raw': #FFAA88,
|
|
102
|
+
'A400': #FF6B45, 'A400-contrast': adaptive-contrast(#FF6B45), 'A400-raw': #FF6B45,
|
|
103
|
+
'A700': #FF4D25, 'A700-contrast': adaptive-contrast(#FF4D25), 'A700-raw': #FF4D25,
|
|
104
|
+
),
|
|
105
|
+
'gray': (
|
|
106
|
+
'50': #00142B, '50-contrast': adaptive-contrast(#00142B), '50-raw': #00142B,
|
|
107
|
+
'100': #1A314A, '100-contrast': adaptive-contrast(#1A314A), '100-raw': #1A314A,
|
|
108
|
+
'200': #344B65, '200-contrast': adaptive-contrast(#344B65), '200-raw': #344B65,
|
|
109
|
+
'300': #556C86, '300-contrast': adaptive-contrast(#556C86), '300-raw': #556C86,
|
|
110
|
+
'400': #7D91AB, '400-contrast': adaptive-contrast(#7D91AB), '400-raw': #7D91AB,
|
|
111
|
+
'500': #A9B8CC, '500-contrast': adaptive-contrast(#A9B8CC), '500-raw': #A9B8CC,
|
|
112
|
+
'600': #D2DBE8, '600-contrast': adaptive-contrast(#D2DBE8), '600-raw': #D2DBE8,
|
|
113
|
+
'700': #E5EBF3, '700-contrast': adaptive-contrast(#E5EBF3), '700-raw': #E5EBF3,
|
|
114
|
+
'800': #F3F6FA, '800-contrast': adaptive-contrast(#F3F6FA), '800-raw': #F3F6FA,
|
|
115
|
+
'900': #FCFCFC, '900-contrast': adaptive-contrast(#FCFCFC), '900-raw': #FCFCFC,
|
|
116
|
+
),
|
|
117
|
+
'surface': shades('surface', #111111, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
118
|
+
'info': shades('info', #1151C1, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
119
|
+
'success': shades('success', #028A54, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
120
|
+
'warn': shades('warn', #faa419, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
121
|
+
'error': shades('error', #ff134a, ('50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700')),
|
|
122
|
+
'_meta': ('variant': dark),
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
[data-theme='light'] {
|
|
126
|
+
@include palette($light-palette);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[data-theme='dark'] {
|
|
130
|
+
@include palette($dark-palette);
|
|
131
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
@use 'igniteui-theming' as *;
|
|
2
|
+
|
|
3
|
+
$typeface: 'Instrument Sans Variable', 'Segoe UI', system-ui, sans-serif;
|
|
4
|
+
|
|
5
|
+
$h1: type-style(
|
|
6
|
+
$font-size: rem(36px),
|
|
7
|
+
$font-weight: 600,
|
|
8
|
+
$letter-spacing: normal,
|
|
9
|
+
$line-height: rem(40px),
|
|
10
|
+
$text-transform: none,
|
|
11
|
+
$margin-top: 0,
|
|
12
|
+
$margin-bottom: rem(26px),
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
$h2: type-style(
|
|
16
|
+
$font-size: rem(28px),
|
|
17
|
+
$font-weight: 500,
|
|
18
|
+
$letter-spacing: normal,
|
|
19
|
+
$line-height: rem(28px),
|
|
20
|
+
$text-transform: none,
|
|
21
|
+
$margin-top: 0,
|
|
22
|
+
$margin-bottom: rem(26px),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
$h3: type-style(
|
|
26
|
+
$font-size: rem(24px),
|
|
27
|
+
$font-weight: 600,
|
|
28
|
+
$letter-spacing: normal,
|
|
29
|
+
$line-height: rem(24px),
|
|
30
|
+
$text-transform: none,
|
|
31
|
+
$margin-top: 0,
|
|
32
|
+
$margin-bottom: rem(26px),
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
$h4: type-style(
|
|
36
|
+
$font-size: rem(20px),
|
|
37
|
+
$font-weight: 400,
|
|
38
|
+
$letter-spacing: normal,
|
|
39
|
+
$line-height: rem(20px),
|
|
40
|
+
$text-transform: none,
|
|
41
|
+
$margin-top: 0,
|
|
42
|
+
$margin-bottom: rem(26px),
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
$h5: type-style(
|
|
46
|
+
$font-size: rem(18px),
|
|
47
|
+
$font-weight: 500,
|
|
48
|
+
$letter-spacing: normal,
|
|
49
|
+
$line-height: rem(18px),
|
|
50
|
+
$text-transform: none,
|
|
51
|
+
$margin-top: 0,
|
|
52
|
+
$margin-bottom: rem(26px),
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
$h6: type-style(
|
|
56
|
+
$font-size: rem(16px),
|
|
57
|
+
$font-weight: 700,
|
|
58
|
+
$letter-spacing: normal,
|
|
59
|
+
$line-height: rem(18px),
|
|
60
|
+
$text-transform: none,
|
|
61
|
+
$margin-top: 0,
|
|
62
|
+
$margin-bottom: rem(26px),
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
$body-1: type-style(
|
|
66
|
+
$font-size: rem(16px),
|
|
67
|
+
$font-weight: 400,
|
|
68
|
+
$letter-spacing: 0.44px,
|
|
69
|
+
$line-height: rem(28px),
|
|
70
|
+
$text-transform: none,
|
|
71
|
+
$margin-top: 0,
|
|
72
|
+
$margin-bottom: rem(26px),
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
$body-2: type-style(
|
|
76
|
+
$font-size: rem(14px),
|
|
77
|
+
$font-weight: 500,
|
|
78
|
+
$letter-spacing: 0.25px,
|
|
79
|
+
$line-height: rem(20px),
|
|
80
|
+
$text-transform: none,
|
|
81
|
+
$margin-top: 0,
|
|
82
|
+
$margin-bottom: rem(26px),
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
$detail-1: type-style(
|
|
86
|
+
$font-size: rem(13px),
|
|
87
|
+
$font-weight: 400,
|
|
88
|
+
$letter-spacing: 0.3px,
|
|
89
|
+
$line-height: rem(20px),
|
|
90
|
+
$text-transform: none,
|
|
91
|
+
$margin-top: 0,
|
|
92
|
+
$margin-bottom: rem(26px),
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
$detail-2: type-style(
|
|
96
|
+
$font-size: rem(13px),
|
|
97
|
+
$font-weight: 600,
|
|
98
|
+
$letter-spacing: 0.15px,
|
|
99
|
+
$line-height: rem(16px),
|
|
100
|
+
$text-transform: none,
|
|
101
|
+
$margin-top: 0,
|
|
102
|
+
$margin-bottom: rem(26px),
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
$subtitle-1: type-style(
|
|
106
|
+
$font-size: rem(16px),
|
|
107
|
+
$font-weight: 400,
|
|
108
|
+
$letter-spacing: 0.15px,
|
|
109
|
+
$line-height: rem(24px),
|
|
110
|
+
$text-transform: none,
|
|
111
|
+
$margin-top: 0,
|
|
112
|
+
$margin-bottom: rem(26px),
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
$subtitle-2: type-style(
|
|
116
|
+
$font-size: rem(14px),
|
|
117
|
+
$font-weight: 600,
|
|
118
|
+
$letter-spacing: 0.1px,
|
|
119
|
+
$line-height: rem(24px),
|
|
120
|
+
$text-transform: none,
|
|
121
|
+
$margin-top: 0,
|
|
122
|
+
$margin-bottom: rem(26px),
|
|
123
|
+
);
|
|
124
|
+
$button: type-style(
|
|
125
|
+
$font-size: rem(16px),
|
|
126
|
+
$font-weight: 400,
|
|
127
|
+
$letter-spacing: normal,
|
|
128
|
+
$line-height: rem(24px),
|
|
129
|
+
$text-transform: none,
|
|
130
|
+
$margin-top: 0,
|
|
131
|
+
$margin-bottom: 0,
|
|
132
|
+
);
|
|
133
|
+
$caption: type-style(
|
|
134
|
+
$font-size: rem(12px),
|
|
135
|
+
$font-weight: 500,
|
|
136
|
+
$letter-spacing: normal,
|
|
137
|
+
$line-height: rem(18px),
|
|
138
|
+
$text-transform: none,
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
$overline: type-style(
|
|
142
|
+
$font-size: rem(10px),
|
|
143
|
+
$font-weight: 400,
|
|
144
|
+
$letter-spacing: rem(1.5px),
|
|
145
|
+
$line-height: rem(20px),
|
|
146
|
+
$text-transform: uppercase,
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
$igd-code: type-style(
|
|
150
|
+
$font-size: rem(14px),
|
|
151
|
+
$font-weight: 400,
|
|
152
|
+
$letter-spacing: normal,
|
|
153
|
+
$line-height: rem(24px),
|
|
154
|
+
$text-transform: none,
|
|
155
|
+
$margin-top: 0,
|
|
156
|
+
$margin-bottom: rem(26px),
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
$_base-scale: type-scale(
|
|
160
|
+
$h1: $h1,
|
|
161
|
+
$h2: $h2,
|
|
162
|
+
$h3: $h3,
|
|
163
|
+
$h4: $h4,
|
|
164
|
+
$h5: $h5,
|
|
165
|
+
$h6: $h6,
|
|
166
|
+
$body-1: $body-1,
|
|
167
|
+
$body-2: $body-2,
|
|
168
|
+
$subtitle-1: $subtitle-1,
|
|
169
|
+
$subtitle-2: $subtitle-2,
|
|
170
|
+
$button: $button,
|
|
171
|
+
$caption: $caption,
|
|
172
|
+
$overline: $overline,
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
$igd-type-scale: extend(
|
|
176
|
+
$_base-scale,
|
|
177
|
+
(
|
|
178
|
+
code: $igd-code,
|
|
179
|
+
detail-1: $detail-1,
|
|
180
|
+
detail-2: $detail-2,
|
|
181
|
+
)
|
|
182
|
+
);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@use 'igniteui-theming/sass/typography' as *;
|
|
2
|
+
@use 'palette' as *;
|
|
3
|
+
@use 'breakpoints' as *;
|
|
4
|
+
|
|
5
|
+
/* ============================================================
|
|
6
|
+
CSS Custom Properties
|
|
7
|
+
Global design tokens: widths, heights, and theme-aware colors.
|
|
8
|
+
============================================================ */
|
|
9
|
+
|
|
10
|
+
/* DOCS PALETTE */
|
|
11
|
+
:root {
|
|
12
|
+
--igd-font-sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
|
|
13
|
+
--igd-font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
|
|
14
|
+
|
|
15
|
+
// Those are the real igniteui logo type colors not related to the palette
|
|
16
|
+
--igd-logo-type: light-dark(#27265f, #fff);
|
|
17
|
+
|
|
18
|
+
--igd-accent: var(--ig-primary-500);
|
|
19
|
+
--igd-illustration: var(--igd-accent);
|
|
20
|
+
--igd-on-accent: var(--ig-primary-500-contrast);
|
|
21
|
+
--igd-border-radius: #{rem(4px)};
|
|
22
|
+
|
|
23
|
+
--igd-app-bg: light-dark(var(--ig-surface-50), #0A0B10);
|
|
24
|
+
--igd-on-app-bg: light-dark(var(--ig-surface-900-contrast), var(--ig-surface-50-contrast));
|
|
25
|
+
|
|
26
|
+
--igd-layout-sections-bg: var(--igd-app-bg);
|
|
27
|
+
--igd-app-outline-color: light-dark(var(--ig-gray-400), var(--igd-accent));
|
|
28
|
+
--igd-app-outline-size: #{rem(1px)};
|
|
29
|
+
--igd-app-outline-style: solid;
|
|
30
|
+
--igd-app-outline: var(--igd-app-outline-size) var(--igd-app-outline-style) var(--igd-app-outline-color);
|
|
31
|
+
|
|
32
|
+
--igd-sidebar-spacing: #{rem(46px)} #{rem(24px)};
|
|
33
|
+
|
|
34
|
+
--igd-header-height: #{rem(50px)};
|
|
35
|
+
|
|
36
|
+
@media (min-width: #{$bp-tablet-max}) {
|
|
37
|
+
--igd-header-height: #{rem(75px)};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
--sticky-sidebar-top: 0;
|
|
41
|
+
|
|
42
|
+
--igd-members-spacing: var(--igd-border-radius) #{rem(16px)};
|
|
43
|
+
|
|
44
|
+
--igd-page-layout-grid: #{minmax(rem(300px), rem(400px)) 1fr};
|
|
45
|
+
--igd-page-padding: #{rem(50px)};
|
|
46
|
+
|
|
47
|
+
// Padding
|
|
48
|
+
--igd-padding-sm: #{rem(16px)};
|
|
49
|
+
--igd-padding-md: #{rem(24px)};
|
|
50
|
+
--igd-padding-lg: #{rem(32px)};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-theme] {
|
|
54
|
+
--igd-updated-bg: light-dark(#EAF6FE, #0D1E38);
|
|
55
|
+
--igd-updated-color: light-dark(#1151C1, #6B9FE8);
|
|
56
|
+
--igd-updated-border: light-dark(#BAE2F5, #1E3D6A);
|
|
57
|
+
|
|
58
|
+
--igd-new-bg: light-dark(#EAFEF6, #0A2A1C);
|
|
59
|
+
--igd-new-color: light-dark(#028A54, #3DBF85);
|
|
60
|
+
--igd-new-border: light-dark(#BAF5D7, #154A30);
|
|
61
|
+
|
|
62
|
+
--igd-preview-bg: light-dark(#FEF5EA, #2D1507);
|
|
63
|
+
--igd-preview-color: light-dark(#AF390A, #E06030);
|
|
64
|
+
--igd-preview-border: light-dark(#F5C8BA, #5C2810);
|
|
65
|
+
|
|
66
|
+
--igd-premium-color: light-dark(#A065FF, #B585FF);
|
|
67
|
+
--igd-premium-bg: light-dark(#F3EEFF, #1E1030);
|
|
68
|
+
--igd-premium-border: light-dark(#D4B8FF, #5A3A99);
|
|
69
|
+
|
|
70
|
+
--igd-expantion-panel-color: light-dark(var(--ig-secondary-500), var(--ig-secondary-500));
|
|
71
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use 'igniteui-theming' as *;
|
|
2
|
+
@use 'igniteui-theming/sass/typography/presets' as *;
|
|
3
|
+
@use 'igniteui-theming/sass/elevations/presets' as *;
|
|
4
|
+
@use 'global' as *;
|
|
5
|
+
|
|
6
|
+
// Define font CSS custom properties so components can reference or override them.
|
|
7
|
+
// The actual @font-face rules come from @fontsource-variable (imported in DocsLayout.astro).
|
|
8
|
+
:root {
|
|
9
|
+
--ig-theme: fluent;
|
|
10
|
+
--font-sans: 'Instrument Sans Variable';
|
|
11
|
+
--font-mono: 'JetBrains Mono Variable'; // fallback should be 'Cascadia Code', 'Fira Code', monospace
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include sizing();
|
|
15
|
+
@include spacing();
|
|
16
|
+
@include elevations($material-elevations);
|
|
17
|
+
|
|
18
|
+
@include typography(
|
|
19
|
+
$font-family: '"Instrument Sans Variable", "Segoe UI", system-ui, sans-serif',
|
|
20
|
+
$type-scale: $igd-type-scale
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
html {
|
|
24
|
+
// Smooth scroll for TOC anchor navigation.
|
|
25
|
+
// prefers-reduced-motion respected: browsers override this automatically.
|
|
26
|
+
scroll-behavior: smooth;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Scope our brand font to the docs content area only.
|
|
30
|
+
// The IG nav and footer have their own font-family rules in their CDN
|
|
31
|
+
// stylesheets — setting font-family on html/body would override those
|
|
32
|
+
// via inheritance. Scoping to .igd-page-layout keeps them isolated.
|
|
33
|
+
.igd-page-layout {
|
|
34
|
+
font-family: var(--font-sans), 'Segoe UI', system-ui, sans-serif;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.visually-hidden {
|
|
38
|
+
visibility: hidden;
|
|
39
|
+
opacity: 0;
|
|
40
|
+
position: absolute;
|
|
41
|
+
user-select: none;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// PREVENT FOUC (Flash of Unstyled Content) for Ignite UI Web Components
|
|
48
|
+
igc-badge:not(:defined),
|
|
49
|
+
igc-icon:not(:defined),
|
|
50
|
+
igc-accordion:not(:defined),
|
|
51
|
+
igc-select:not(:defined),
|
|
52
|
+
igc-input:not(:defined) {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
igc-icon {
|
|
57
|
+
padding: 0;
|
|
58
|
+
}
|