@collectivetrait/lineaui 0.0.0-stage → 1.0.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.
Files changed (130) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/LICENSE +21 -0
  3. package/README.md +113 -2
  4. package/config.json +3 -0
  5. package/dist/blocks.css +5042 -0
  6. package/dist/blocks.css.map +1 -0
  7. package/dist/bundle.js +873 -0
  8. package/dist/core.css +1641 -0
  9. package/dist/core.css.map +1 -0
  10. package/dist/icons-manifest.json +1 -0
  11. package/dist/icons.css +158 -0
  12. package/dist/styles.css +10546 -0
  13. package/dist/styles.css.map +1 -0
  14. package/dist/theme-init.js +8 -0
  15. package/dist/utilities.css +3865 -0
  16. package/dist/utilities.css.map +1 -0
  17. package/humans.txt +8 -0
  18. package/js/config.js +3 -0
  19. package/js/index.js +45 -0
  20. package/js/modules/copy.js +64 -0
  21. package/js/modules/dialog.js +55 -0
  22. package/js/modules/dismiss.js +43 -0
  23. package/js/modules/dropdown.js +108 -0
  24. package/js/modules/gallery.js +84 -0
  25. package/js/modules/highlight.js +89 -0
  26. package/js/modules/navigation.js +104 -0
  27. package/js/modules/quantity.js +63 -0
  28. package/js/modules/rhythm.js +21 -0
  29. package/js/modules/table.js +109 -0
  30. package/js/modules/tabs.js +112 -0
  31. package/js/modules/toast.js +97 -0
  32. package/js/modules/tooltip.js +106 -0
  33. package/js/theme-init.js +8 -0
  34. package/package.json +71 -4
  35. package/scss/_blocks-only.scss +4 -0
  36. package/scss/_core.scss +7 -0
  37. package/scss/_index.scss +12 -0
  38. package/scss/_layers.scss +2 -0
  39. package/scss/_utilities-only.scss +4 -0
  40. package/scss/base/_code.scss +50 -0
  41. package/scss/base/_forms.scss +110 -0
  42. package/scss/base/_index.scss +7 -0
  43. package/scss/base/_interactive.scss +25 -0
  44. package/scss/base/_media.scss +28 -0
  45. package/scss/base/_reset.scss +53 -0
  46. package/scss/base/_tables.scss +49 -0
  47. package/scss/base/_typography.scss +232 -0
  48. package/scss/blocks/_accordion.scss +88 -0
  49. package/scss/blocks/_alert.scss +101 -0
  50. package/scss/blocks/_avatar.scss +104 -0
  51. package/scss/blocks/_badge.scss +72 -0
  52. package/scss/blocks/_breadcrumb.scss +65 -0
  53. package/scss/blocks/_button-group.scss +73 -0
  54. package/scss/blocks/_button.scss +212 -0
  55. package/scss/blocks/_card.scss +146 -0
  56. package/scss/blocks/_choice.scss +163 -0
  57. package/scss/blocks/_code.scss +157 -0
  58. package/scss/blocks/_data-list.scss +92 -0
  59. package/scss/blocks/_divider.scss +54 -0
  60. package/scss/blocks/_drawer.scss +160 -0
  61. package/scss/blocks/_dropdown.scss +167 -0
  62. package/scss/blocks/_empty-state.scss +61 -0
  63. package/scss/blocks/_field.scss +146 -0
  64. package/scss/blocks/_form.scss +87 -0
  65. package/scss/blocks/_gallery.scss +120 -0
  66. package/scss/blocks/_index.scss +49 -0
  67. package/scss/blocks/_input-group.scss +95 -0
  68. package/scss/blocks/_line-item.scss +105 -0
  69. package/scss/blocks/_list.scss +117 -0
  70. package/scss/blocks/_media.scss +105 -0
  71. package/scss/blocks/_menu.scss +191 -0
  72. package/scss/blocks/_meta.scss +59 -0
  73. package/scss/blocks/_modal.scss +156 -0
  74. package/scss/blocks/_navbar.scss +227 -0
  75. package/scss/blocks/_order-summary.scss +92 -0
  76. package/scss/blocks/_page-header.scss +88 -0
  77. package/scss/blocks/_pagination.scss +110 -0
  78. package/scss/blocks/_price.scss +88 -0
  79. package/scss/blocks/_product-card.scss +138 -0
  80. package/scss/blocks/_progress.scss +68 -0
  81. package/scss/blocks/_prose.scss +165 -0
  82. package/scss/blocks/_quantity.scss +73 -0
  83. package/scss/blocks/_quote.scss +71 -0
  84. package/scss/blocks/_rating.scss +50 -0
  85. package/scss/blocks/_site-footer.scss +135 -0
  86. package/scss/blocks/_skeleton.scss +63 -0
  87. package/scss/blocks/_spinner.scss +44 -0
  88. package/scss/blocks/_stat.scss +111 -0
  89. package/scss/blocks/_steps.scss +147 -0
  90. package/scss/blocks/_swatch.scss +117 -0
  91. package/scss/blocks/_table.scss +242 -0
  92. package/scss/blocks/_tabs.scss +168 -0
  93. package/scss/blocks/_tag.scss +72 -0
  94. package/scss/blocks/_timeline.scss +84 -0
  95. package/scss/blocks/_toast.scss +146 -0
  96. package/scss/blocks/_toolbar.scss +67 -0
  97. package/scss/blocks/_tooltip.scss +63 -0
  98. package/scss/helpers/_index.scss +2 -0
  99. package/scss/helpers/_rhythm.scss +64 -0
  100. package/scss/helpers/_typography.scss +4 -0
  101. package/scss/layout/_cluster.scss +43 -0
  102. package/scss/layout/_container.scss +26 -0
  103. package/scss/layout/_grid.scss +90 -0
  104. package/scss/layout/_index.scss +5 -0
  105. package/scss/layout/_section.scss +78 -0
  106. package/scss/layout/_shell.scss +87 -0
  107. package/scss/settings/_blocks.scss +3 -0
  108. package/scss/settings/_breakpoints.scss +7 -0
  109. package/scss/settings/_fonts.scss +5 -0
  110. package/scss/settings/_index.scss +7 -0
  111. package/scss/settings/_layout.scss +5 -0
  112. package/scss/settings/_prefix.scss +1 -0
  113. package/scss/settings/_rhythm.scss +6 -0
  114. package/scss/settings/_utilities.scss +2 -0
  115. package/scss/tokens/_borders.scss +16 -0
  116. package/scss/tokens/_elevation.scss +37 -0
  117. package/scss/tokens/_index.scss +8 -0
  118. package/scss/tokens/_layout.scss +17 -0
  119. package/scss/tokens/_motion.scss +17 -0
  120. package/scss/tokens/_palette.scss +50 -0
  121. package/scss/tokens/_roles.scss +90 -0
  122. package/scss/tokens/_space.scss +9 -0
  123. package/scss/tokens/_type.scss +57 -0
  124. package/scss/tools/_bem.scss +22 -0
  125. package/scss/tools/_index.scss +4 -0
  126. package/scss/tools/_rhythm.scss +26 -0
  127. package/scss/tools/_role-engine.scss +16 -0
  128. package/scss/tools/_utility-generator.scss +74 -0
  129. package/scss/utilities/_index.scss +8 -0
  130. package/scss/utilities/_map.scss +321 -0
@@ -0,0 +1,67 @@
1
+ @use 'sass:list';
2
+ @use '../settings' as s;
3
+ @use '../tools/bem' as b;
4
+
5
+ @if list.length(s.$blocks) == 0 or list.index(s.$blocks, 'toolbar') {
6
+ @layer blocks {
7
+ @include b.block('toolbar') {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ gap: var(--s2);
12
+ padding-block: var(--s2);
13
+
14
+ @include b.element('start') {
15
+ display: flex;
16
+ align-items: center;
17
+ gap: var(--s2);
18
+ }
19
+
20
+ @include b.element('end') {
21
+ display: flex;
22
+ align-items: center;
23
+ gap: var(--s2);
24
+ }
25
+
26
+ @include b.element('group') {
27
+ display: flex;
28
+ align-items: center;
29
+ gap: var(--s1);
30
+ }
31
+
32
+ @include b.element('search') {
33
+ max-width: 240px;
34
+ }
35
+
36
+ @include b.element('count') {
37
+ font: var(--t-body-sm-s)/var(--t-body-sm-lh) var(--f-ui);
38
+ color: var(--c-muted);
39
+ white-space: nowrap;
40
+ }
41
+
42
+ @include b.element('divider') {
43
+ width: 0;
44
+ height: 24px;
45
+ border-left: var(--bd1) solid var(--border);
46
+ margin-inline: var(--s1);
47
+ }
48
+
49
+ @include b.modifier('bulk') {
50
+ background-color: var(--primary-subtle);
51
+ padding: var(--s2) var(--s3);
52
+ border-radius: var(--r-md);
53
+ }
54
+
55
+ @include b.modifier('sticky') {
56
+ position: sticky;
57
+ top: 0;
58
+ z-index: 10;
59
+ background-color: var(--surface);
60
+ }
61
+
62
+ @include b.modifier('compact') {
63
+ padding-block: var(--s1);
64
+ }
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,63 @@
1
+ @use 'sass:list';
2
+ @use '../settings' as s;
3
+ @use '../tools/bem' as b;
4
+
5
+ @if list.length(s.$blocks) == 0 or list.index(s.$blocks, 'tooltip') {
6
+ @layer blocks {
7
+ @include b.block('tooltip') {
8
+ position: absolute;
9
+ z-index: 1000;
10
+ max-width: 250px;
11
+ padding: var(--s1) var(--s2);
12
+ font: 500 var(--t-meta-s)/var(--t-meta-lh) var(--f-ui);
13
+ color: var(--c-inverse);
14
+ background-color: var(--surface-inverse);
15
+ border-radius: var(--r-md);
16
+ box-shadow: var(--sh2);
17
+ pointer-events: none;
18
+ white-space: normal;
19
+ word-wrap: break-word;
20
+
21
+ @include b.element('arrow') {
22
+ position: absolute;
23
+ width: 8px;
24
+ height: 8px;
25
+ background-color: var(--surface-inverse);
26
+ transform: rotate(45deg);
27
+ }
28
+
29
+ // Position modifiers
30
+ @include b.modifier('top') {
31
+ .#{s.$prefix}tooltip__arrow {
32
+ bottom: -4px;
33
+ left: 50%;
34
+ margin-left: -4px;
35
+ }
36
+ }
37
+
38
+ @include b.modifier('bottom') {
39
+ .#{s.$prefix}tooltip__arrow {
40
+ top: -4px;
41
+ left: 50%;
42
+ margin-left: -4px;
43
+ }
44
+ }
45
+
46
+ @include b.modifier('start') {
47
+ .#{s.$prefix}tooltip__arrow {
48
+ right: -4px;
49
+ top: 50%;
50
+ margin-top: -4px;
51
+ }
52
+ }
53
+
54
+ @include b.modifier('end') {
55
+ .#{s.$prefix}tooltip__arrow {
56
+ left: -4px;
57
+ top: 50%;
58
+ margin-top: -4px;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,2 @@
1
+ @forward 'rhythm';
2
+ @forward 'typography';
@@ -0,0 +1,64 @@
1
+ @layer helpers {
2
+ .show-grid {
3
+ --grid-line: rgb(124 58 237 / 0.30);
4
+ --grid-base: rgb(124 58 237 / 0.15);
5
+
6
+ position: relative;
7
+
8
+ &::before {
9
+ content: "";
10
+ position: absolute;
11
+ inset: 0;
12
+ pointer-events: none;
13
+ z-index: 9999;
14
+ background-image:
15
+ repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 1.5rem),
16
+ repeating-linear-gradient(to bottom, var(--grid-base) 0 1px, transparent 1px 0.5rem);
17
+ }
18
+ }
19
+
20
+ @media (prefers-color-scheme: dark) {
21
+ .show-grid:not([data-theme="light"]) {
22
+ --grid-line: rgb(139 92 246 / 0.30);
23
+ --grid-base: rgb(139 92 246 / 0.15);
24
+ }
25
+ }
26
+
27
+ [data-theme="dark"] .show-grid,
28
+ .show-grid[data-theme="dark"] {
29
+ --grid-line: rgb(139 92 246 / 0.30);
30
+ --grid-base: rgb(139 92 246 / 0.15);
31
+ }
32
+
33
+ .grid-toggle {
34
+ position: fixed;
35
+ bottom: var(--s3);
36
+ right: var(--s3);
37
+ z-index: 10000;
38
+ display: inline-grid;
39
+ place-items: center;
40
+ width: var(--s4);
41
+ height: var(--s4);
42
+ padding: 0;
43
+ border: none;
44
+ border-radius: var(--r-sm);
45
+ background: transparent;
46
+ color: var(--c-muted);
47
+ cursor: pointer;
48
+
49
+ > i {
50
+ font-size: 1rem;
51
+ }
52
+
53
+ &:hover {
54
+ color: var(--text);
55
+ background: var(--surface-raised);
56
+ }
57
+
58
+ &[aria-pressed="true"] {
59
+ color: var(--primary-text);
60
+ background: var(--primary-subtle);
61
+ box-shadow: inset 0 0 0 1px var(--primary-border);
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,4 @@
1
+ // Typography helpers are now generated as responsive utilities
2
+ // via the utility generator in utilities/_map.scss.
3
+ // This file is kept for the @layer helpers declaration.
4
+ @layer helpers {}
@@ -0,0 +1,43 @@
1
+ @use '../tools/bem' as b;
2
+ @use '../settings' as s;
3
+
4
+ @layer layout {
5
+ @include b.block('cluster') {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ gap: var(--_gap, var(--s1));
9
+ align-items: center;
10
+
11
+ @include b.modifier('gap-xs') { --_gap: var(--s1); }
12
+ @include b.modifier('gap-sm') { --_gap: var(--s2); }
13
+ @include b.modifier('gap-md') { --_gap: var(--s3); }
14
+
15
+ @include b.modifier('justify-start') { justify-content: flex-start; }
16
+ @include b.modifier('justify-center') { justify-content: center; }
17
+ @include b.modifier('justify-end') { justify-content: flex-end; }
18
+ @include b.modifier('justify-between') { justify-content: space-between; }
19
+
20
+ @include b.modifier('align-start') { align-items: flex-start; }
21
+ @include b.modifier('align-center') { align-items: center; }
22
+ @include b.modifier('align-baseline') { align-items: baseline; }
23
+ @include b.modifier('align-end') { align-items: flex-end; }
24
+
25
+ @include b.modifier('nowrap') { flex-wrap: nowrap; }
26
+
27
+ @each $bp, $val in s.$breakpoints {
28
+ @media (min-width: #{$val}) {
29
+ &--justify-start\@#{$bp} { justify-content: flex-start; }
30
+ &--justify-center\@#{$bp} { justify-content: center; }
31
+ &--justify-end\@#{$bp} { justify-content: flex-end; }
32
+ &--justify-between\@#{$bp} { justify-content: space-between; }
33
+
34
+ &--align-start\@#{$bp} { align-items: flex-start; }
35
+ &--align-center\@#{$bp} { align-items: center; }
36
+ &--align-baseline\@#{$bp} { align-items: baseline; }
37
+ &--align-end\@#{$bp} { align-items: flex-end; }
38
+
39
+ &--nowrap\@#{$bp} { flex-wrap: nowrap; }
40
+ }
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,26 @@
1
+ @use '../tools/bem' as b;
2
+
3
+ @layer layout {
4
+ @include b.block('container') {
5
+ width: 100%;
6
+ max-width: var(--container);
7
+ margin-inline: auto;
8
+ padding-inline: var(--gutter);
9
+
10
+ @include b.modifier('narrow') {
11
+ max-width: var(--measure);
12
+ }
13
+
14
+ @include b.modifier('wide') {
15
+ max-width: var(--container-wide);
16
+ }
17
+
18
+ @include b.modifier('full') {
19
+ max-width: none;
20
+ }
21
+
22
+ @include b.modifier('flush') {
23
+ padding-inline: 0;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,90 @@
1
+ @use 'sass:map';
2
+ @use '../tools/bem' as b;
3
+ @use '../settings' as s;
4
+
5
+ @layer layout {
6
+ @include b.block('grid') {
7
+ display: grid;
8
+ gap: var(--_gap, var(--s3));
9
+
10
+ @for $i from 1 through 6 {
11
+ @include b.modifier('cols-#{$i}') {
12
+ grid-template-columns: repeat(#{$i}, 1fr);
13
+ }
14
+ }
15
+
16
+ @include b.modifier('cols-12') {
17
+ grid-template-columns: repeat(12, 1fr);
18
+ }
19
+
20
+ @include b.modifier('auto') {
21
+ grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 15rem), 100%), 1fr));
22
+ }
23
+
24
+ @include b.modifier('gap-0') { --_gap: 0; }
25
+ @include b.modifier('gap-xs') { --_gap: var(--s1); }
26
+ @include b.modifier('gap-sm') { --_gap: var(--s2); }
27
+ @include b.modifier('gap-md') { --_gap: var(--s3); }
28
+ @include b.modifier('gap-lg') { --_gap: var(--s4); }
29
+
30
+ // Responsive column modifiers
31
+ @each $bp, $val in s.$breakpoints {
32
+ @media (min-width: #{$val}) {
33
+ @for $i from 1 through 6 {
34
+ &--cols-#{$i}\@#{$bp} {
35
+ grid-template-columns: repeat(#{$i}, 1fr);
36
+ }
37
+ }
38
+
39
+ &--cols-12\@#{$bp} {
40
+ grid-template-columns: repeat(12, 1fr);
41
+ }
42
+ }
43
+ }
44
+
45
+ @include b.element('item') {
46
+ @for $n from 1 through 12 {
47
+ @include b.modifier('span-#{$n}') {
48
+ grid-column: span #{$n};
49
+ }
50
+ }
51
+
52
+ @include b.modifier('span-full') {
53
+ grid-column: 1 / -1;
54
+ }
55
+
56
+ @for $n from 1 through 12 {
57
+ @include b.modifier('start-#{$n}') {
58
+ grid-column-start: #{$n};
59
+ }
60
+ }
61
+
62
+ @include b.modifier('subgrid') {
63
+ display: grid;
64
+ grid-template-rows: subgrid;
65
+ grid-row: span var(--rows, 3);
66
+ }
67
+
68
+ // Responsive span modifiers
69
+ @each $bp, $val in s.$breakpoints {
70
+ @media (min-width: #{$val}) {
71
+ @for $n from 1 through 12 {
72
+ &--span-#{$n}\@#{$bp} {
73
+ grid-column: span #{$n};
74
+ }
75
+ }
76
+
77
+ &--span-full\@#{$bp} {
78
+ grid-column: 1 / -1;
79
+ }
80
+
81
+ @for $n from 1 through 12 {
82
+ &--start-#{$n}\@#{$bp} {
83
+ grid-column-start: #{$n};
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,5 @@
1
+ @forward 'shell';
2
+ @forward 'container';
3
+ @forward 'grid';
4
+ @forward 'cluster';
5
+ @forward 'section';
@@ -0,0 +1,78 @@
1
+ @use 'sass:map';
2
+ @use '../tools/bem' as b;
3
+ @use '../tools/rhythm' as r;
4
+ @use '../settings' as s;
5
+
6
+ @layer layout {
7
+ @include b.block('section') {
8
+ padding-block: var(--s4);
9
+ position: relative;
10
+
11
+ @include b.element('inner') {
12
+ max-width: var(--container);
13
+ margin-inline: auto;
14
+ padding-inline: var(--gutter);
15
+ }
16
+
17
+ @include b.modifier('narrow') {
18
+ .#{s.$prefix}section__inner { max-width: var(--measure); }
19
+ }
20
+
21
+ @include b.modifier('wide') {
22
+ .#{s.$prefix}section__inner { max-width: var(--container-wide); }
23
+ }
24
+
25
+ @include b.modifier('space-lg') { padding-block: r.lines(2); }
26
+ @include b.modifier('space-xl') { padding-block: r.lines(3); }
27
+ @include b.modifier('space-2xl') { padding-block: r.lines(4); }
28
+ @include b.modifier('space-3xl') { padding-block: r.lines(6); }
29
+
30
+ @media (max-width: map.get(s.$breakpoints, md)) {
31
+ &--space-xl { padding-block: r.lines(2); }
32
+ &--space-2xl { padding-block: r.lines(2); }
33
+ &--space-3xl { padding-block: r.lines(3); }
34
+ }
35
+
36
+ @include b.modifier('surface-sunken') {
37
+ background: var(--surface-sunken);
38
+ }
39
+
40
+ @include b.modifier('surface-raised') {
41
+ background: var(--surface);
42
+ }
43
+
44
+ @include b.modifier('surface-inverse') {
45
+ background: var(--surface-inverse);
46
+ color: var(--c-inverse);
47
+ }
48
+
49
+
50
+ @include b.modifier('center') {
51
+ text-align: center;
52
+ }
53
+
54
+ @include b.element('header') {
55
+ margin-bottom: var(--s4);
56
+ }
57
+
58
+ @include b.element('eyebrow') {
59
+ font: 500 var(--t-meta-s)/var(--t-meta-lh) var(--f-mono);
60
+ letter-spacing: 0.08em;
61
+ text-transform: uppercase;
62
+ color: var(--c-muted);
63
+ margin-bottom: var(--s1);
64
+ }
65
+
66
+ @include b.element('title') {
67
+ font: 400 var(--t-h2-s)/var(--t-h2-lh) var(--f-prose);
68
+ letter-spacing: -0.005em;
69
+ text-wrap: balance;
70
+ }
71
+
72
+ @include b.element('lead') {
73
+ font-size: var(--t-lead-s);
74
+ line-height: var(--t-lead-lh);
75
+ color: var(--c-muted);
76
+ }
77
+ }
78
+ }
@@ -0,0 +1,87 @@
1
+ @use '../tools/bem' as b;
2
+ @use '../settings' as s;
3
+ @use 'sass:map';
4
+
5
+ @layer layout {
6
+ @include b.block('shell') {
7
+ display: grid;
8
+ grid-template-areas:
9
+ "header header"
10
+ "sidebar main";
11
+ grid-template-rows: 48px 1fr; // 2 rhythm lines = 48px
12
+ grid-template-columns: 240px 1fr;
13
+ min-block-size: 100svh;
14
+ background-color: var(--canvas);
15
+
16
+ @include b.element('header') {
17
+ grid-area: header;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: space-between;
21
+ padding-inline: var(--s3);
22
+ background-color: var(--surface);
23
+ border-block-end: 1px solid var(--border);
24
+ position: sticky;
25
+ top: 0;
26
+ z-index: 100;
27
+ }
28
+
29
+ @include b.element('sidebar') {
30
+ grid-area: sidebar;
31
+ overflow-y: auto;
32
+ border-inline-end: 1px solid var(--border);
33
+ background-color: var(--surface);
34
+ padding-block: var(--s3);
35
+ position: sticky;
36
+ top: 48px;
37
+ block-size: calc(100svh - 48px);
38
+ }
39
+
40
+ @include b.element('main') {
41
+ grid-area: main;
42
+ padding: var(--s4);
43
+ min-inline-size: 0; // prevent grid blowout
44
+ }
45
+
46
+ // Below lg: sidebar hidden, single column
47
+ @media (max-width: map.get(s.$breakpoints, lg)) {
48
+ grid-template-areas:
49
+ "header"
50
+ "main";
51
+ grid-template-columns: 1fr;
52
+
53
+ @include b.element('sidebar') {
54
+ position: fixed;
55
+ top: 0;
56
+ bottom: 0;
57
+ left: 0;
58
+ width: 240px;
59
+ z-index: 200;
60
+ transform: translateX(-100%);
61
+ visibility: hidden;
62
+ transition: transform var(--dur-base) var(--e-exit),
63
+ visibility var(--dur-base) var(--e-exit);
64
+ }
65
+
66
+ &[data-sidebar="open"] &__sidebar {
67
+ transform: translateX(0);
68
+ visibility: visible;
69
+ box-shadow: var(--sh4);
70
+ transition: transform var(--dur-base) var(--e-enter),
71
+ visibility var(--dur-base) var(--e-enter),
72
+ box-shadow var(--dur-base) var(--e-enter);
73
+ }
74
+
75
+ &[data-sidebar="open"]::before {
76
+ content: '';
77
+ position: fixed;
78
+ top: 0;
79
+ left: 0;
80
+ right: 0;
81
+ bottom: 0;
82
+ background: var(--overlay);
83
+ z-index: 199;
84
+ }
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,3 @@
1
+ // Empty list = emit all blocks.
2
+ // To restrict output: @use 'lineaui' with ($blocks: (button, card, table));
3
+ $blocks: () !default;
@@ -0,0 +1,7 @@
1
+ $breakpoints: (
2
+ sm: 576px,
3
+ md: 768px,
4
+ lg: 1024px,
5
+ xl: 1280px,
6
+ "2xl": 1536px,
7
+ ) !default;
@@ -0,0 +1,5 @@
1
+ $font-prose: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif !default;
2
+ $font-ui: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif !default;
3
+ $font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace !default;
4
+
5
+ $heading-font: $font-prose !default;
@@ -0,0 +1,7 @@
1
+ @forward 'prefix';
2
+ @forward 'rhythm';
3
+ @forward 'fonts';
4
+ @forward 'breakpoints';
5
+ @forward 'blocks';
6
+ @forward 'layout';
7
+ @forward 'utilities';
@@ -0,0 +1,5 @@
1
+ $container: 56.25rem !default; // 900px
2
+ $container-wide: 75rem !default; // 1200px
3
+ $measure: 37.5rem !default; // ~70ch at 16px prose
4
+ $gutter: 1rem !default; // mobile side gutter
5
+ $gutter-lg: 2rem !default; // md+ side gutter
@@ -0,0 +1 @@
1
+ $prefix: "ln-" !default;
@@ -0,0 +1,6 @@
1
+ $g: 8px !default; // base grid step
2
+ $r: 24px !default; // line grid step (= 3 × g)
3
+
4
+ // rem equivalents for rem-based rules
5
+ $g-rem: 0.5rem;
6
+ $r-rem: 1.5rem;
@@ -0,0 +1,2 @@
1
+ $utilities: () !default;
2
+ $responsive-utilities: null !default;
@@ -0,0 +1,16 @@
1
+ @layer tokens {
2
+ :root {
3
+ --bd1: 1px;
4
+ --bd2: 2px;
5
+ --bd3: 3px;
6
+
7
+ --r-none: 0;
8
+ --r-xs: 2px;
9
+ --r-sm: 4px;
10
+ --r-md: 8px;
11
+ --r-lg: 12px;
12
+ --r-xl: 16px;
13
+ --r-pill: 9999px;
14
+ --r-circle: 50%;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
1
+ @layer tokens {
2
+ :root {
3
+ --sh0: none;
4
+ --sh1: 0 0 2px rgb(9 9 11 / 0.05);
5
+ --sh2: 0 0 12px rgb(9 9 11 / 0.07);
6
+ --sh3: 0 0 24px rgb(9 9 11 / 0.09);
7
+ --sh4: 0 0 48px rgb(9 9 11 / 0.12);
8
+ --sh-inset-1: inset 0 0 2px rgb(0 0 0 / 0.05);
9
+ --sh-inset-2: inset 0 0 4px rgb(0 0 0 / 0.08);
10
+ --sh-inset-3: inset 0 0 8px rgb(0 0 0 / 0.12);
11
+ --sh-inset-4: inset 0 0 16px rgb(0 0 0 / 0.16);
12
+ }
13
+
14
+ @media (prefers-color-scheme: dark) {
15
+ :root:not([data-theme="light"]) {
16
+ --sh1: 0 0 2px rgb(0 0 0 / 0.40);
17
+ --sh2: 0 0 12px rgb(0 0 0 / 0.44);
18
+ --sh3: 0 0 24px rgb(0 0 0 / 0.48);
19
+ --sh4: 0 0 48px rgb(0 0 0 / 0.56);
20
+ --sh-inset-1: inset 0 0 2px rgb(0 0 0 / 0.16);
21
+ --sh-inset-2: inset 0 0 4px rgb(0 0 0 / 0.22);
22
+ --sh-inset-3: inset 0 0 8px rgb(0 0 0 / 0.28);
23
+ --sh-inset-4: inset 0 0 16px rgb(0 0 0 / 0.36);
24
+ }
25
+ }
26
+
27
+ [data-theme="dark"] {
28
+ --sh1: 0 0 2px rgb(0 0 0 / 0.40);
29
+ --sh2: 0 0 12px rgb(0 0 0 / 0.44);
30
+ --sh3: 0 0 24px rgb(0 0 0 / 0.48);
31
+ --sh4: 0 0 48px rgb(0 0 0 / 0.56);
32
+ --sh-inset-1: inset 0 0 2px rgb(0 0 0 / 0.16);
33
+ --sh-inset-2: inset 0 0 4px rgb(0 0 0 / 0.22);
34
+ --sh-inset-3: inset 0 0 8px rgb(0 0 0 / 0.28);
35
+ --sh-inset-4: inset 0 0 16px rgb(0 0 0 / 0.36);
36
+ }
37
+ }
@@ -0,0 +1,8 @@
1
+ @forward 'palette';
2
+ @forward 'roles';
3
+ @forward 'type';
4
+ @forward 'space';
5
+ @forward 'elevation';
6
+ @forward 'borders';
7
+ @forward 'motion';
8
+ @forward 'layout';
@@ -0,0 +1,17 @@
1
+ @use 'sass:map';
2
+ @use '../settings' as s;
3
+
4
+ @layer tokens {
5
+ :root {
6
+ --container: #{s.$container};
7
+ --container-wide: #{s.$container-wide};
8
+ --measure: #{s.$measure};
9
+ --gutter: #{s.$gutter};
10
+ }
11
+
12
+ @media (min-width: #{map.get(s.$breakpoints, md)}) {
13
+ :root {
14
+ --gutter: #{s.$gutter-lg};
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ @layer tokens {
2
+ :root {
3
+ --dur-fast: 120ms;
4
+ --dur-base: 200ms;
5
+ --dur-slow: 320ms;
6
+
7
+ --e-standard: cubic-bezier(0.4, 0, 0.2, 1);
8
+ --e-enter: cubic-bezier(0, 0, 0.2, 1);
9
+ --e-exit: cubic-bezier(0.4, 0, 1, 1);
10
+
11
+ @media (prefers-reduced-motion: reduce) {
12
+ --dur-fast: 1ms;
13
+ --dur-base: 1ms;
14
+ --dur-slow: 1ms;
15
+ }
16
+ }
17
+ }