@semanticus/semanticus-css 0.9.0 → 1.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.
Files changed (148) hide show
  1. package/NOTICE +16 -16
  2. package/README.md +128 -29
  3. package/dist/semanticus-no-utilities.css +11 -0
  4. package/dist/semanticus-semantics.css +3 -4
  5. package/dist/semanticus-utilities.css +11 -0
  6. package/dist/semanticus.css +4 -12
  7. package/dist/semanticus.palette.amber.css +1 -1
  8. package/dist/semanticus.palette.azure.css +1 -0
  9. package/dist/semanticus.palette.blue.css +1 -1
  10. package/dist/semanticus.palette.cyan.css +1 -1
  11. package/dist/semanticus.palette.fuchsia.css +1 -1
  12. package/dist/semanticus.palette.green.css +1 -1
  13. package/dist/semanticus.palette.grey.css +1 -1
  14. package/dist/semanticus.palette.indigo.css +1 -1
  15. package/dist/semanticus.palette.jade.css +1 -1
  16. package/dist/semanticus.palette.lime.css +1 -1
  17. package/dist/semanticus.palette.orange.css +1 -1
  18. package/dist/semanticus.palette.pink.css +1 -1
  19. package/dist/semanticus.palette.pumpkin.css +1 -1
  20. package/dist/semanticus.palette.purple.css +1 -1
  21. package/dist/semanticus.palette.red.css +1 -1
  22. package/dist/semanticus.palette.sand.css +1 -1
  23. package/dist/semanticus.palette.slate.css +1 -1
  24. package/dist/semanticus.palette.violet.css +1 -1
  25. package/dist/semanticus.palette.yellow.css +1 -1
  26. package/dist/semanticus.palette.zinc.css +1 -1
  27. package/dist/semanticus.size.pico.css +1 -1
  28. package/package.json +24 -15
  29. package/src/components/_card.css +47 -0
  30. package/src/{variants → components}/_container.css +3 -10
  31. package/src/components/_icons.css +59 -0
  32. package/src/components/_pane.css +19 -0
  33. package/src/{variants → components}/_sidebar.css +3 -5
  34. package/src/components/modules.css +5 -0
  35. package/src/index.css +8 -10
  36. package/src/no-utilities.css +22 -0
  37. package/src/palettes/amber.css +28 -53
  38. package/src/palettes/azure.css +31 -0
  39. package/src/palettes/blue.css +28 -53
  40. package/src/palettes/cyan.css +28 -53
  41. package/src/palettes/fuchsia.css +28 -53
  42. package/src/palettes/green.css +28 -53
  43. package/src/palettes/grey.css +28 -53
  44. package/src/palettes/indigo.css +28 -53
  45. package/src/palettes/jade.css +28 -53
  46. package/src/palettes/lime.css +28 -53
  47. package/src/palettes/orange.css +28 -53
  48. package/src/palettes/pink.css +28 -53
  49. package/src/palettes/pumpkin.css +28 -53
  50. package/src/palettes/purple.css +28 -53
  51. package/src/palettes/red.css +28 -53
  52. package/src/palettes/sand.css +28 -53
  53. package/src/palettes/slate.css +28 -53
  54. package/src/palettes/violet.css +28 -53
  55. package/src/palettes/yellow.css +28 -53
  56. package/src/palettes/zinc.css +28 -53
  57. package/src/semantics/attributes/_aria-busy.css +0 -3
  58. package/src/semantics/attributes/_aria-disabled.css +25 -0
  59. package/src/semantics/attributes/_hidden.css +0 -3
  60. package/src/semantics/attributes/_role-group-search.css +11 -14
  61. package/src/semantics/attributes/_role-status-alert.css +123 -0
  62. package/src/semantics/attributes/_role-toolbar.css +2 -5
  63. package/src/semantics/attributes/_role-tooltip.css +7 -10
  64. package/src/semantics/elements/_article.css +0 -3
  65. package/src/semantics/elements/_aside.css +1 -7
  66. package/src/semantics/elements/_blockquote.css +2 -2
  67. package/src/semantics/elements/_body.css +1 -4
  68. package/src/semantics/elements/_button.css +25 -31
  69. package/src/semantics/elements/_code.css +5 -8
  70. package/src/semantics/elements/_del.css +1 -1
  71. package/src/semantics/elements/_details.css +39 -40
  72. package/src/semantics/elements/_dialog.css +19 -43
  73. package/src/semantics/elements/_document.css +10 -4
  74. package/src/semantics/elements/_embedded.css +0 -3
  75. package/src/semantics/elements/_figure.css +0 -3
  76. package/src/semantics/elements/_footer.css +0 -3
  77. package/src/semantics/elements/_header.css +0 -3
  78. package/src/semantics/elements/_headings.css +7 -17
  79. package/src/semantics/elements/_hgroup.css +1 -1
  80. package/src/semantics/elements/_hr.css +1 -4
  81. package/src/semantics/elements/_input.css +33 -36
  82. package/src/semantics/elements/_ins.css +1 -1
  83. package/src/semantics/elements/_links.css +22 -18
  84. package/src/semantics/elements/_main.css +0 -4
  85. package/src/semantics/elements/_mark.css +2 -2
  86. package/src/semantics/elements/_nav.css +5 -8
  87. package/src/semantics/elements/_progress.css +5 -8
  88. package/src/semantics/elements/_section.css +0 -3
  89. package/src/semantics/elements/_small.css +3 -0
  90. package/src/semantics/elements/_table.css +3 -5
  91. package/src/semantics/elements/_type-checkbox-radio.css +19 -22
  92. package/src/semantics/elements/_type-color.css +2 -5
  93. package/src/semantics/elements/_type-date.css +1 -4
  94. package/src/semantics/elements/_type-file.css +7 -10
  95. package/src/semantics/elements/_type-range.css +11 -14
  96. package/src/semantics/elements/_type-search.css +6 -10
  97. package/src/semantics/index.css +2 -5
  98. package/src/semantics/modules.css +3 -7
  99. package/src/sizes/pico.css +20 -33
  100. package/src/utilities/_grid.css +306 -0
  101. package/src/utilities/_variables.css +27 -42
  102. package/src/utilities/borders/_border-radius.css +54 -79
  103. package/src/utilities/borders/_border-style.css +15 -5
  104. package/src/utilities/borders/_border-width.css +0 -28
  105. package/src/utilities/colors/_bg-colors.css +75 -0
  106. package/src/utilities/colors/_border-colors.css +17 -39
  107. package/src/utilities/colors/_subtle-colors.css +145 -0
  108. package/src/utilities/colors/_text-bg-colors.css +62 -0
  109. package/src/utilities/colors/_text-colors.css +32 -409
  110. package/src/utilities/effects/_focus-ring.css +33 -0
  111. package/src/utilities/effects/_shadows.css +0 -33
  112. package/src/utilities/index.css +16 -0
  113. package/src/utilities/layout/_misc.css +2 -5
  114. package/src/utilities/layout/{_grid.css → _ratio.css} +0 -19
  115. package/src/utilities/modules.css +9 -3
  116. package/src/utilities/sizing/_width.css +8 -0
  117. package/src/utilities/spacing/_gap.css +144 -144
  118. package/src/utilities/spacing/_margin.css +324 -324
  119. package/src/utilities/spacing/_padding.css +324 -324
  120. package/src/utilities/typography/_font-sizes.css +6 -6
  121. package/src/variables/_all.css +2 -20
  122. package/src/variables/_elements.css +29 -28
  123. package/src/variables/_theme.css +336 -0
  124. package/src/variants/_variables.css +24 -0
  125. package/src/variants/intent/_contrast.css +47 -0
  126. package/src/variants/intent/_danger.css +39 -0
  127. package/src/variants/intent/_info.css +39 -0
  128. package/src/variants/intent/_primary.css +39 -0
  129. package/src/variants/intent/_secondary.css +39 -0
  130. package/src/variants/intent/_success.css +39 -0
  131. package/src/variants/intent/_warning.css +39 -0
  132. package/src/variants/modifiers/_ghost.css +164 -0
  133. package/src/variants/modifiers/_striped.css +11 -0
  134. package/src/variants/modifiers/_subtle.css +133 -0
  135. package/src/variants/modules.css +11 -14
  136. package/src/_normalize.css +0 -214
  137. package/src/semantics/_misc.css +0 -3
  138. package/src/utilities/colors/_background-colors.css +0 -248
  139. package/src/variables/_colors.css +0 -355
  140. package/src/variables/_components.css +0 -330
  141. package/src/variables/_icons.css +0 -55
  142. package/src/variables/_layout.css +0 -123
  143. package/src/variants/_contained.css +0 -43
  144. package/src/variants/_contrast.css +0 -61
  145. package/src/variants/_ghost.css +0 -68
  146. package/src/variants/_pane-panel-card.css +0 -54
  147. package/src/variants/_secondary.css +0 -48
  148. package/src/variants/_striped.css +0 -10
@@ -1,55 +0,0 @@
1
- /* ==========================================================================
2
- Theme-Aware Icon Variables
3
- ==========================================================================
4
-
5
- Validation icons that change color based on the current theme.
6
- These are defined separately from base icons because they use
7
- theme-specific colors (success/danger) for stroke values.
8
-
9
- Base icons (checkbox, chevron, date, time, search, close, loading)
10
- are defined in _layout.css as they use consistent colors across themes.
11
- ========================================================================== */
12
-
13
- :root,
14
- :host {
15
- --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
16
- --icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
17
- --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
18
- --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
19
- --icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
20
- --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
21
- --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
22
- --icon-loading: url("data:image/svg+xml,%3Csvg fill='none' height='24' width='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E g %7B animation: rotate 2s linear infinite; transform-origin: center center; %7D circle %7B stroke-dasharray: 75,100; stroke-dashoffset: -5; animation: dash 1.5s ease-in-out infinite; stroke-linecap: round; %7D @keyframes rotate %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D @keyframes dash %7B 0%25 %7B stroke-dasharray: 1,100; stroke-dashoffset: 0; %7D 50%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -17.5; %7D 100%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -62; %7D %7D %3C/style%3E%3Cg%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='rgb(136, 145, 164)' stroke-width='4' /%3E%3C/g%3E%3C/svg%3E");
23
- }
24
-
25
- /* ==========================================================================
26
- Light Theme Validation Icons
27
- ========================================================================== */
28
-
29
- [data-theme="light"],
30
- :root:not([data-theme="dark"]),
31
- :host(:not([data-theme="dark"])) {
32
- --icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(43, 122, 76)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
33
- --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(197, 47, 33)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
34
- }
35
-
36
- /* ==========================================================================
37
- Dark Theme Validation Icons (System Preference)
38
- ========================================================================== */
39
-
40
- @media only screen and (prefers-color-scheme: dark) {
41
- :root:not([data-theme]),
42
- :host(:not([data-theme])) {
43
- --icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(110, 213, 157)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
44
- --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(243, 143, 121)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
45
- }
46
- }
47
-
48
- /* ==========================================================================
49
- Dark Theme Validation Icons (Explicit)
50
- ========================================================================== */
51
-
52
- [data-theme="dark"] {
53
- --icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(110, 213, 157)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
54
- --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(243, 143, 121)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
55
- }
@@ -1,123 +0,0 @@
1
- /* ==========================================================================
2
- Layout & Typography Variables
3
- ==========================================================================
4
-
5
- Global sizing, spacing, and typography variables. These define the
6
- foundational rhythm of the design system.
7
-
8
- Includes:
9
- - Font families and typography scale
10
- - Spacing units and component padding
11
- - Border radius and border widths
12
- - Responsive typography adjustments
13
- ========================================================================== */
14
-
15
- :root,
16
- :host {
17
- /* Font Families */
18
- --font-family-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
19
- --font-family-sans-serif: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif, var(--font-family-emoji);
20
- --font-family-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace, var(--font-family-emoji);
21
- --font-family: var(--font-family-sans-serif);
22
-
23
- /* Typography - base defaults */
24
- --line-height: 1.5;
25
- --font-weight: 400;
26
- --font-size: 97%;
27
- --text-underline-offset: 0.1rem;
28
-
29
- /* Font Size Scale - semantic heading sizes (h1-h6) */
30
- --fs-1: 2rem;
31
- --fs-2: 1.75rem;
32
- --fs-3: 1.5rem;
33
- --fs-4: 1.25rem;
34
- --fs-5: 1.125rem;
35
- --fs-6: 1rem;
36
-
37
- /* Borders & Effects */
38
- --border-radius: 0.25rem;
39
- --border-width: 0.0625rem;
40
- --outline-width: 0.125rem;
41
- --transition: 0.2s ease-in-out;
42
-
43
- /* Spacing - shared base unit */
44
- --base-spacing: 0.75rem;
45
- --responsive-multiplier: 1;
46
- --spacing: calc(var(--base-spacing) * var(--responsive-multiplier));
47
- --typography-spacing-vertical: 1rem;
48
- --grid-column-gap: var(--spacing);
49
- --grid-row-gap: var(--spacing);
50
- --form-element-spacing-vertical: 0.5rem;
51
- --form-element-spacing-horizontal: 0.7rem;
52
-
53
- /* Group Shadows */
54
- --group-shadow: 0 0 0 rgba(0, 0, 0, 0);
55
- --group-shadow-focus-with-button: 0 0 0 var(--outline-width) var(--color-primary-focus);
56
- --group-shadow-focus-with-input: 0 0 0 0.0625rem var(--form-border-color);
57
-
58
- /* Navigation */
59
- --nav-link-spacing: calc(var(--spacing) * 0.5);
60
- --nav-breadcrumb-divider: ">";
61
-
62
- /* Sidebar */
63
- --sidebar-width: 25%;
64
- }
65
-
66
- /* ==========================================================================
67
- Responsive Typography & Layout Adjustments
68
- ========================================================================== */
69
-
70
- @media (--breakpoint-sm) {
71
- :root,
72
- :host {
73
- --font-size: 98%;
74
- --sidebar-width: max(25%, 150px);
75
- --responsive-multiplier: 1.1;
76
- --spacing: calc(var(--base-spacing) * var(--responsive-multiplier));
77
- --nav-link-spacing: calc(var(--spacing) * 0.5);
78
- }
79
- }
80
-
81
- @media (--breakpoint-md) {
82
- :root,
83
- :host {
84
- --font-size: 99%;
85
- --sidebar-width: max(22%, 180px);
86
- --responsive-multiplier: 1.2;
87
- --spacing: calc(var(--base-spacing) * var(--responsive-multiplier));
88
- --nav-link-spacing: calc(var(--spacing) * 0.5);
89
- }
90
- }
91
-
92
- @media (--breakpoint-lg) {
93
- :root,
94
- :host {
95
- --font-size: 100%;
96
- --sidebar-width: max(20%, 200px);
97
- --responsive-multiplier: 1.3;
98
- --spacing: calc(var(--base-spacing) * var(--responsive-multiplier));
99
- --nav-link-spacing: calc(var(--spacing) * 0.5);
100
- }
101
- }
102
-
103
- @media (--breakpoint-xl) {
104
- :root,
105
- :host {
106
- --font-size: 101%;
107
- --sidebar-width: max(18%, 220px);
108
- --responsive-multiplier: 1.4;
109
- --spacing: calc(var(--base-spacing) * var(--responsive-multiplier));
110
- --nav-link-spacing: calc(var(--spacing) * 0.5);
111
- }
112
- }
113
-
114
- @media (--breakpoint-xxl) {
115
- :root,
116
- :host {
117
- --font-size: 102%;
118
- --sidebar-width: clamp(240px, 16%, 300px);
119
- --responsive-multiplier: 1.5;
120
- --spacing: calc(var(--base-spacing) * var(--responsive-multiplier));
121
- --nav-link-spacing: calc(var(--spacing) * 0.5);
122
- }
123
- }
@@ -1,43 +0,0 @@
1
- /**
2
- * Contained
3
- * Applies container constraints (max-width and horizontal margins) to all direct children
4
- * instead of the container itself
5
- */
6
- .contained,
7
- .contained-fluid {
8
- width: 100%;
9
-
10
- & > * {
11
- margin-right: auto;
12
- margin-left: auto;
13
- padding-right: var(--spacing);
14
- padding-left: var(--spacing);
15
- width: 100%;
16
- }
17
- }
18
-
19
- .contained {
20
- & > * {
21
- @media (--breakpoint-sm) {
22
- max-width: 510px;
23
- padding-right: 0;
24
- padding-left: 0;
25
- }
26
-
27
- @media (--breakpoint-md) {
28
- max-width: 700px;
29
- }
30
-
31
- @media (--breakpoint-lg) {
32
- max-width: 950px;
33
- }
34
-
35
- @media (--breakpoint-xl) {
36
- max-width: 1200px;
37
- }
38
-
39
- @media (--breakpoint-xxl) {
40
- max-width: 1450px;
41
- }
42
- }
43
- }
@@ -1,61 +0,0 @@
1
- /**
2
- * Contrast variant
3
- * Used on links, buttons, and accordion elements
4
- */
5
-
6
- /* Links */
7
- :where(a:not([role="button"])),
8
- [role="link"] {
9
- &.contrast {
10
- --color-text: rgb(var(--color-contrast-rgb));
11
- --underline: var(--color-contrast-underline);
12
-
13
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
14
- --color-text: var(--color-contrast-hover);
15
- --underline: var(--color-contrast-hover-underline);
16
- }
17
- }
18
- }
19
-
20
- :is(button, [type="submit"], [type="button"], [role="button"]) {
21
- &.contrast {
22
- --color-background: var(--color-contrast-bg);
23
- --border-color: var(--color-contrast-border);
24
- --color-text: var(--color-contrast-inverse);
25
-
26
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
27
- --color-background: var(--color-contrast-hover-bg);
28
- --border-color: var(--color-contrast-hover-border);
29
- --color-text: var(--color-contrast-inverse);
30
- }
31
-
32
- &:focus,
33
- &:is([aria-current]:not([aria-current="false"])):focus {
34
- --shadow-lg: var(--button-shadow-hover, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--outline-width) var(--color-contrast-focus);
35
- }
36
- }
37
- }
38
-
39
- /* Accordion chevron dark mode override */
40
- @media only screen and (prefers-color-scheme: dark) {
41
- :root:not([data-theme]) details summary[role="button"].contrast::after,
42
- :host(:not([data-theme])) details summary[role="button"].contrast::after {
43
- filter: brightness(0);
44
- }
45
- }
46
-
47
- [data-theme="dark"] details summary[role="button"].contrast::after {
48
- filter: brightness(0);
49
- }
50
-
51
- :is(.card, .pane, .panel).contrast {
52
- --color-text: rgb(var(--color-contrast-emphasis-rgb)) !important;
53
- --color-heading-base: color-mix(in srgb, var(--color-text), black 18%);
54
- --pane-bg: var(--color-contrast-bg-subtle);
55
- --pane-section-bg: rgba(var(--color-contrast-rgb), 0.6);
56
- --pane-section-border: var(--color-contrast-border-subtle);
57
- }
58
-
59
- :is(.panel).contrast {
60
- --pane-border: var(--color-contrast-border);
61
- }
@@ -1,68 +0,0 @@
1
- /**
2
- * Ghost variant
3
- * Transparent background with colored text/border
4
- * Used on buttons and accordion elements
5
- */
6
-
7
- .ghost {
8
- --color-background: transparent;
9
-
10
- background-color: var(--color-background) !important;
11
- }
12
-
13
- :is(button, [type="submit"], [type="button"], [role="button"]) {
14
- &.ghost {
15
- --color-background: transparent;
16
- --border-color: rgb(var(--color-primary-rgb));
17
- --color-text: rgb(var(--color-primary-rgb));
18
-
19
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
20
- --color-background: var(--color-primary-hover-bg);
21
- --border-color: var(--color-primary-hover-border);
22
- --color-text: var(--color-primary-inverse);
23
- }
24
-
25
- &.secondary {
26
- --color-background: transparent;
27
- --border-color: rgb(var(--color-secondary-rgb));
28
- --color-text: rgb(var(--color-secondary-rgb));
29
-
30
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
31
- --color-background: var(--color-secondary-hover-bg);
32
- --border-color: var(--color-secondary-hover-border);
33
- --color-text: var(--color-secondary-inverse);
34
- }
35
- }
36
-
37
- &.contrast {
38
- --color-background: transparent;
39
- --border-color: rgb(var(--color-contrast-rgb));
40
- --color-text: rgb(var(--color-contrast-rgb));
41
-
42
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
43
- --color-background: var(--color-contrast-hover-bg);
44
- --border-color: var(--color-contrast-hover-border);
45
- --color-text: var(--color-contrast-inverse);
46
- }
47
- }
48
- }
49
- }
50
-
51
- /* Reset buttons */
52
- [type="reset"].ghost {
53
- --color-background: transparent;
54
- --border-color: rgb(var(--color-secondary-rgb));
55
- --color-text: rgb(var(--color-secondary-rgb));
56
-
57
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
58
- --color-background: var(--color-secondary-hover-bg);
59
- --border-color: var(--color-secondary-hover-border);
60
- --color-text: var(--color-secondary-inverse);
61
- }
62
- }
63
-
64
- /* Accordion - ghost buttons have transparent backgrounds with colored text,
65
- so the chevron should remain dark to match the text color */
66
- details summary[role="button"].ghost::after {
67
- filter: none;
68
- }
@@ -1,54 +0,0 @@
1
- /**
2
- * Pane, Panel and Card
3
- * A container component for grouped content with visual pane, panel and card styling
4
- * Can be applied to any element (article, div, section, etc.)
5
- */
6
- .pane,
7
- .panel,
8
- .card {
9
- padding-block: var(--spacing);
10
- padding-inline: var(--spacing);
11
- margin-bottom: var(--spacing);
12
- border-radius: var(--border-radius);
13
- border: var(--border-width) solid var(--pane-border);
14
- background: var(--pane-bg);
15
- box-shadow: var(--pane-shadow);
16
-
17
- & > header,
18
- & > footer {
19
- width: auto;
20
- margin-inline: calc(var(--spacing) * -1);
21
- padding-inline: var(--spacing);
22
- background-color: var(--pane-section-bg);
23
- }
24
-
25
- & > header {
26
- margin-top: calc(var(--spacing) * -1);
27
- border-bottom: var(--border-width) solid var(--pane-section-border);
28
- border-top-right-radius: var(--border-radius);
29
- border-top-left-radius: var(--border-radius);
30
- }
31
-
32
- & > footer {
33
- margin-bottom: calc(var(--spacing) * -1);
34
- border-top: var(--border-width) solid var(--pane-section-border);
35
- border-bottom-right-radius: var(--border-radius);
36
- border-bottom-left-radius: var(--border-radius);
37
- display: flex;
38
- justify-content: end;
39
- gap: calc(var(--nav-link-spacing) * 1.5);
40
- }
41
- }
42
-
43
- .pane,
44
- .panel {
45
- --pane-shadow: none;
46
- }
47
-
48
- .panel {
49
- --pane-border: var(--pane-section-border);
50
- }
51
-
52
- .card {
53
- --pane-shadow: var(--shadow-lg);
54
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * Secondary variant
3
- * Used on links, buttons, and form elements
4
- */
5
-
6
- /* Links */
7
- :where(a:not([role="button"])),
8
- [role="link"] {
9
- &.secondary {
10
- --color-text: rgb(var(--color-secondary-rgb));
11
- --underline: var(--color-secondary-underline);
12
-
13
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
14
- --color-text: var(--color-secondary-hover);
15
- --underline: var(--color-secondary-hover-underline);
16
- }
17
- }
18
- }
19
-
20
- :is(button, [type="submit"], [type="button"], [role="button"]) {
21
- &.secondary {
22
- --color-background: var(--color-secondary-bg);
23
- --border-color: var(--color-secondary-border);
24
- --color-text: var(--color-secondary-inverse);
25
-
26
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
27
- --color-background: var(--color-secondary-hover-bg);
28
- --border-color: var(--color-secondary-hover-border);
29
- --color-text: var(--color-secondary-inverse);
30
- }
31
-
32
- &:focus,
33
- &:is([aria-current]:not([aria-current="false"])):focus {
34
- --shadow-lg: var(--button-shadow-hover, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--outline-width) var(--color-secondary-focus);
35
- }
36
- }
37
- }
38
-
39
- :is(.card, .pane, .panel).secondary {
40
- --color-text: rgb(var(--color-secondary-emphasis-rgb)) !important;
41
- --color-heading-base: color-mix(in srgb, var(--color-text), black 18%);
42
- --pane-bg: var(--color-secondary-bg-subtle);
43
- }
44
-
45
- :is(.panel).secondary {
46
- --pane-section-border: var(--color-secondary-border-subtle);
47
- --pane-border: var(--color-secondary-border-subtle);
48
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Striped variant
3
- * Alternating row background colors for tables
4
- */
5
- table.striped tbody tr:nth-child(odd) {
6
- & th,
7
- & td {
8
- background-color: var(--table-row-stripe-bg);
9
- }
10
- }