@semanticus/semanticus-css 0.3.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 (122) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +53 -0
  3. package/README.md +151 -0
  4. package/dist/semanticus-semantics.css +2 -0
  5. package/dist/semanticus-utilities.css +7 -0
  6. package/dist/semanticus-variants.css +1 -0
  7. package/dist/semanticus.css +7 -0
  8. package/dist/semanticus.palette.amber.css +1 -0
  9. package/dist/semanticus.palette.blue.css +1 -0
  10. package/dist/semanticus.palette.cyan.css +1 -0
  11. package/dist/semanticus.palette.fuchsia.css +1 -0
  12. package/dist/semanticus.palette.green.css +1 -0
  13. package/dist/semanticus.palette.grey.css +1 -0
  14. package/dist/semanticus.palette.indigo.css +1 -0
  15. package/dist/semanticus.palette.jade.css +1 -0
  16. package/dist/semanticus.palette.lime.css +1 -0
  17. package/dist/semanticus.palette.orange.css +1 -0
  18. package/dist/semanticus.palette.pink.css +1 -0
  19. package/dist/semanticus.palette.pumpkin.css +1 -0
  20. package/dist/semanticus.palette.purple.css +1 -0
  21. package/dist/semanticus.palette.red.css +1 -0
  22. package/dist/semanticus.palette.sand.css +1 -0
  23. package/dist/semanticus.palette.slate.css +1 -0
  24. package/dist/semanticus.palette.violet.css +1 -0
  25. package/dist/semanticus.palette.yellow.css +1 -0
  26. package/dist/semanticus.palette.zinc.css +1 -0
  27. package/dist/semanticus.size.slim.css +1 -0
  28. package/package.json +102 -0
  29. package/src/_normalize.css +214 -0
  30. package/src/_variables.css +863 -0
  31. package/src/index.css +20 -0
  32. package/src/palettes/amber.css +56 -0
  33. package/src/palettes/blue.css +56 -0
  34. package/src/palettes/cyan.css +56 -0
  35. package/src/palettes/fuchsia.css +56 -0
  36. package/src/palettes/green.css +56 -0
  37. package/src/palettes/grey.css +56 -0
  38. package/src/palettes/indigo.css +56 -0
  39. package/src/palettes/jade.css +56 -0
  40. package/src/palettes/lime.css +56 -0
  41. package/src/palettes/orange.css +56 -0
  42. package/src/palettes/pink.css +56 -0
  43. package/src/palettes/pumpkin.css +56 -0
  44. package/src/palettes/purple.css +56 -0
  45. package/src/palettes/red.css +56 -0
  46. package/src/palettes/sand.css +56 -0
  47. package/src/palettes/slate.css +56 -0
  48. package/src/palettes/violet.css +56 -0
  49. package/src/palettes/yellow.css +56 -0
  50. package/src/palettes/zinc.css +56 -0
  51. package/src/semantics/_aria-busy.css +34 -0
  52. package/src/semantics/_article.css +6 -0
  53. package/src/semantics/_body.css +10 -0
  54. package/src/semantics/_button.css +106 -0
  55. package/src/semantics/_code.css +50 -0
  56. package/src/semantics/_details.css +292 -0
  57. package/src/semantics/_dialog.css +163 -0
  58. package/src/semantics/_document.css +18 -0
  59. package/src/semantics/_embedded.css +41 -0
  60. package/src/semantics/_figure.css +13 -0
  61. package/src/semantics/_hidden.css +7 -0
  62. package/src/semantics/_hr.css +10 -0
  63. package/src/semantics/_input.css +306 -0
  64. package/src/semantics/_links.css +33 -0
  65. package/src/semantics/_main.css +3 -0
  66. package/src/semantics/_nav.css +116 -0
  67. package/src/semantics/_progress.css +62 -0
  68. package/src/semantics/_role-group-search.css +129 -0
  69. package/src/semantics/_role-toolbar.css +17 -0
  70. package/src/semantics/_role-tooltip.css +138 -0
  71. package/src/semantics/_section.css +6 -0
  72. package/src/semantics/_table.css +28 -0
  73. package/src/semantics/_type-checkbox-radio.css +142 -0
  74. package/src/semantics/_type-color.css +22 -0
  75. package/src/semantics/_type-date.css +40 -0
  76. package/src/semantics/_type-file.css +26 -0
  77. package/src/semantics/_type-range.css +90 -0
  78. package/src/semantics/_type-search.css +34 -0
  79. package/src/semantics/_typography.css +137 -0
  80. package/src/semantics/index.css +14 -0
  81. package/src/semantics/modules.css +35 -0
  82. package/src/sizes/slim.css +12 -0
  83. package/src/utilities/_variables.css +244 -0
  84. package/src/utilities/borders/_border-radius.css +216 -0
  85. package/src/utilities/borders/_border-style.css +39 -0
  86. package/src/utilities/borders/_border-width.css +39 -0
  87. package/src/utilities/colors/_background-colors.css +209 -0
  88. package/src/utilities/colors/_border-colors.css +69 -0
  89. package/src/utilities/colors/_text-colors.css +371 -0
  90. package/src/utilities/display/_display.css +259 -0
  91. package/src/utilities/display/_overflow.css +47 -0
  92. package/src/utilities/display/_visibility.css +27 -0
  93. package/src/utilities/effects/_opacity.css +19 -0
  94. package/src/utilities/effects/_shadows.css +48 -0
  95. package/src/utilities/effects/_transforms.css +11 -0
  96. package/src/utilities/index.css +14 -0
  97. package/src/utilities/layout/_flexbox.css +846 -0
  98. package/src/utilities/layout/_grid.css +51 -0
  99. package/src/utilities/layout/_misc.css +77 -0
  100. package/src/utilities/media/_object-fit.css +139 -0
  101. package/src/utilities/modules.css +56 -0
  102. package/src/utilities/positioning/_floats.css +72 -0
  103. package/src/utilities/positioning/_inset.css +47 -0
  104. package/src/utilities/positioning/_position.css +108 -0
  105. package/src/utilities/positioning/_z-index.css +19 -0
  106. package/src/utilities/sizing/_height.css +31 -0
  107. package/src/utilities/sizing/_width.css +31 -0
  108. package/src/utilities/spacing/_gap.css +393 -0
  109. package/src/utilities/spacing/_margin.css +1030 -0
  110. package/src/utilities/spacing/_padding.css +885 -0
  111. package/src/utilities/typography/_font-family.css +7 -0
  112. package/src/utilities/typography/_font-sizes.css +38 -0
  113. package/src/utilities/typography/_font-weight.css +51 -0
  114. package/src/utilities/typography/_text-alignment.css +141 -0
  115. package/src/variants/_card.css +41 -0
  116. package/src/variants/_container.css +36 -0
  117. package/src/variants/_contrast.css +50 -0
  118. package/src/variants/_ghost.css +58 -0
  119. package/src/variants/_secondary.css +38 -0
  120. package/src/variants/_striped.css +10 -0
  121. package/src/variants/index.css +6 -0
  122. package/src/variants/modules.css +12 -0
@@ -0,0 +1,56 @@
1
+ /*
2
+ Semanticus CSS Palette: Pumpkin
3
+ Overrides primary color variables for the pumpkin palette
4
+ */
5
+
6
+ /* Light theme - Pumpkin */
7
+ [data-theme="light"],
8
+ :root:not([data-theme="dark"]),
9
+ :host(:not([data-theme="dark"])) {
10
+ --color-text-selection: rgba(232, 120, 62, 0.25);
11
+ --color-primary: #9e3806;
12
+ --color-primary-bg: #f4a37d;
13
+ --color-primary-border: var(--color-primary-bg);
14
+ --color-primary-underline: rgba(158, 56, 6, 0.5);
15
+ --color-primary-hover: #7a2b05;
16
+ --color-primary-hover-bg: #f6b091;
17
+ --color-primary-hover-border: var(--color-primary-hover-bg);
18
+ --color-primary-hover-underline: var(--color-primary-hover);
19
+ --color-primary-focus: rgba(232, 120, 62, 0.5);
20
+ --color-primary-inverse: #000;
21
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
22
+ }
23
+
24
+ /* Dark theme - Pumpkin */
25
+ @media only screen and (prefers-color-scheme: dark) {
26
+ :root:not([data-theme]),
27
+ :host(:not([data-theme])) {
28
+ --color-text-selection: rgba(243, 153, 111, 0.1875);
29
+ --color-primary: #f3996f;
30
+ --color-primary-bg: #f4a37d;
31
+ --color-primary-border: var(--color-primary-bg);
32
+ --color-primary-underline: rgba(243, 153, 111, 0.5);
33
+ --color-primary-hover: #f5b7a8;
34
+ --color-primary-hover-bg: #f5b7a8;
35
+ --color-primary-hover-border: var(--color-primary-hover-bg);
36
+ --color-primary-hover-underline: var(--color-primary-hover);
37
+ --color-primary-focus: rgba(243, 153, 111, 0.375);
38
+ --color-primary-inverse: #000;
39
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
40
+ }
41
+ }
42
+
43
+ [data-theme="dark"] {
44
+ --color-text-selection: rgba(243, 153, 111, 0.1875);
45
+ --color-primary: #f3996f;
46
+ --color-primary-bg: #f4a37d;
47
+ --color-primary-border: var(--color-primary-bg);
48
+ --color-primary-underline: rgba(243, 153, 111, 0.5);
49
+ --color-primary-hover: #f5b7a8;
50
+ --color-primary-hover-bg: #f5b7a8;
51
+ --color-primary-hover-border: var(--color-primary-hover-bg);
52
+ --color-primary-hover-underline: var(--color-primary-hover);
53
+ --color-primary-focus: rgba(243, 153, 111, 0.375);
54
+ --color-primary-inverse: #000;
55
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
56
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ Semanticus CSS Palette: Purple
3
+ Overrides primary color variables for the purple palette
4
+ */
5
+
6
+ /* Light theme - Purple */
7
+ [data-theme="light"],
8
+ :root:not([data-theme="dark"]),
9
+ :host(:not([data-theme="dark"])) {
10
+ --color-text-selection: rgba(205, 104, 224, 0.25);
11
+ --color-primary: #9236a4;
12
+ --color-primary-bg: #9236a4;
13
+ --color-primary-border: var(--color-primary-bg);
14
+ --color-primary-underline: rgba(146, 54, 164, 0.5);
15
+ --color-primary-hover: #802e90;
16
+ --color-primary-hover-bg: #802e90;
17
+ --color-primary-hover-border: var(--color-primary-hover-bg);
18
+ --color-primary-hover-underline: var(--color-primary-hover);
19
+ --color-primary-focus: rgba(205, 104, 224, 0.5);
20
+ --color-primary-inverse: #fff;
21
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
22
+ }
23
+
24
+ /* Dark theme - Purple */
25
+ @media only screen and (prefers-color-scheme: dark) {
26
+ :root:not([data-theme]),
27
+ :host(:not([data-theme])) {
28
+ --color-text-selection: rgba(219, 144, 232, 0.1875);
29
+ --color-primary: #db90e8;
30
+ --color-primary-bg: #9236a4;
31
+ --color-primary-border: var(--color-primary-bg);
32
+ --color-primary-underline: rgba(219, 144, 232, 0.5);
33
+ --color-primary-hover: #e7b6ee;
34
+ --color-primary-hover-bg: #aa40bf;
35
+ --color-primary-hover-border: var(--color-primary-hover-bg);
36
+ --color-primary-hover-underline: var(--color-primary-hover);
37
+ --color-primary-focus: rgba(219, 144, 232, 0.375);
38
+ --color-primary-inverse: #fff;
39
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
40
+ }
41
+ }
42
+
43
+ [data-theme="dark"] {
44
+ --color-text-selection: rgba(219, 144, 232, 0.1875);
45
+ --color-primary: #db90e8;
46
+ --color-primary-bg: #9236a4;
47
+ --color-primary-border: var(--color-primary-bg);
48
+ --color-primary-underline: rgba(219, 144, 232, 0.5);
49
+ --color-primary-hover: #e7b6ee;
50
+ --color-primary-hover-bg: #aa40bf;
51
+ --color-primary-hover-border: var(--color-primary-hover-bg);
52
+ --color-primary-hover-underline: var(--color-primary-hover);
53
+ --color-primary-focus: rgba(219, 144, 232, 0.375);
54
+ --color-primary-inverse: #fff;
55
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
56
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ Semanticus CSS Palette: Red
3
+ Overrides primary color variables for the red palette
4
+ */
5
+
6
+ /* Light theme - Red */
7
+ [data-theme="light"],
8
+ :root:not([data-theme="dark"]),
9
+ :host(:not([data-theme="dark"])) {
10
+ --color-text-selection: rgba(240, 96, 72, 0.25);
11
+ --color-primary: #c52f21;
12
+ --color-primary-bg: #c52f21;
13
+ --color-primary-border: var(--color-primary-bg);
14
+ --color-primary-underline: rgba(197, 47, 33, 0.5);
15
+ --color-primary-hover: #9b2318;
16
+ --color-primary-hover-bg: #af291d;
17
+ --color-primary-hover-border: var(--color-primary-hover-bg);
18
+ --color-primary-hover-underline: var(--color-primary-hover);
19
+ --color-primary-focus: rgba(240, 96, 72, 0.5);
20
+ --color-primary-inverse: #fff;
21
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
22
+ }
23
+
24
+ /* Dark theme - Red */
25
+ @media only screen and (prefers-color-scheme: dark) {
26
+ :root:not([data-theme]),
27
+ :host(:not([data-theme])) {
28
+ --color-text-selection: rgba(243, 143, 121, 0.1875);
29
+ --color-primary: #f38f79;
30
+ --color-primary-bg: #c52f21;
31
+ --color-primary-border: var(--color-primary-bg);
32
+ --color-primary-underline: rgba(243, 143, 121, 0.5);
33
+ --color-primary-hover: #f5b7a8;
34
+ --color-primary-hover-bg: #ee402e;
35
+ --color-primary-hover-border: var(--color-primary-hover-bg);
36
+ --color-primary-hover-underline: var(--color-primary-hover);
37
+ --color-primary-focus: rgba(243, 143, 121, 0.375);
38
+ --color-primary-inverse: #fff;
39
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
40
+ }
41
+ }
42
+
43
+ [data-theme="dark"] {
44
+ --color-text-selection: rgba(243, 143, 121, 0.1875);
45
+ --color-primary: #f38f79;
46
+ --color-primary-bg: #c52f21;
47
+ --color-primary-border: var(--color-primary-bg);
48
+ --color-primary-underline: rgba(243, 143, 121, 0.5);
49
+ --color-primary-hover: #f5b7a8;
50
+ --color-primary-hover-bg: #ee402e;
51
+ --color-primary-hover-border: var(--color-primary-hover-bg);
52
+ --color-primary-hover-underline: var(--color-primary-hover);
53
+ --color-primary-focus: rgba(243, 143, 121, 0.375);
54
+ --color-primary-inverse: #fff;
55
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
56
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ Semanticus CSS Palette: Sand
3
+ Overrides primary color variables for the sand palette
4
+ */
5
+
6
+ /* Light theme - Sand */
7
+ [data-theme="light"],
8
+ :root:not([data-theme="dark"]),
9
+ :host(:not([data-theme="dark"])) {
10
+ --color-text-selection: rgba(181, 157, 119, 0.25);
11
+ --color-primary: #6b5733;
12
+ --color-primary-bg: #e6d5b8;
13
+ --color-primary-border: var(--color-primary-bg);
14
+ --color-primary-underline: rgba(107, 87, 51, 0.5);
15
+ --color-primary-hover: #544229;
16
+ --color-primary-hover-bg: #ebdcc3;
17
+ --color-primary-hover-border: var(--color-primary-hover-bg);
18
+ --color-primary-hover-underline: var(--color-primary-hover);
19
+ --color-primary-focus: rgba(181, 157, 119, 0.5);
20
+ --color-primary-inverse: #000;
21
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
22
+ }
23
+
24
+ /* Dark theme - Sand */
25
+ @media only screen and (prefers-color-scheme: dark) {
26
+ :root:not([data-theme]),
27
+ :host(:not([data-theme])) {
28
+ --color-text-selection: rgba(201, 178, 140, 0.1875);
29
+ --color-primary: #c9b28c;
30
+ --color-primary-bg: #e6d5b8;
31
+ --color-primary-border: var(--color-primary-bg);
32
+ --color-primary-underline: rgba(201, 178, 140, 0.5);
33
+ --color-primary-hover: #dcc6a5;
34
+ --color-primary-hover-bg: #ebdcc3;
35
+ --color-primary-hover-border: var(--color-primary-hover-bg);
36
+ --color-primary-hover-underline: var(--color-primary-hover);
37
+ --color-primary-focus: rgba(201, 178, 140, 0.375);
38
+ --color-primary-inverse: #000;
39
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
40
+ }
41
+ }
42
+
43
+ [data-theme="dark"] {
44
+ --color-text-selection: rgba(201, 178, 140, 0.1875);
45
+ --color-primary: #c9b28c;
46
+ --color-primary-bg: #e6d5b8;
47
+ --color-primary-border: var(--color-primary-bg);
48
+ --color-primary-underline: rgba(201, 178, 140, 0.5);
49
+ --color-primary-hover: #dcc6a5;
50
+ --color-primary-hover-bg: #ebdcc3;
51
+ --color-primary-hover-border: var(--color-primary-hover-bg);
52
+ --color-primary-hover-underline: var(--color-primary-hover);
53
+ --color-primary-focus: rgba(201, 178, 140, 0.375);
54
+ --color-primary-inverse: #000;
55
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
56
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ Semanticus CSS Palette: Slate
3
+ Overrides primary color variables for the slate palette
4
+ */
5
+
6
+ /* Light theme - Slate */
7
+ [data-theme="light"],
8
+ :root:not([data-theme="dark"]),
9
+ :host(:not([data-theme="dark"])) {
10
+ --color-text-selection: rgba(130, 146, 170, 0.25);
11
+ --color-primary: #48536b;
12
+ --color-primary-bg: #48536b;
13
+ --color-primary-border: var(--color-primary-bg);
14
+ --color-primary-underline: rgba(72, 83, 107, 0.5);
15
+ --color-primary-hover: #383f54;
16
+ --color-primary-hover-bg: #383f54;
17
+ --color-primary-hover-border: var(--color-primary-hover-bg);
18
+ --color-primary-hover-underline: var(--color-primary-hover);
19
+ --color-primary-focus: rgba(130, 146, 170, 0.5);
20
+ --color-primary-inverse: #fff;
21
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
22
+ }
23
+
24
+ /* Dark theme - Slate */
25
+ @media only screen and (prefers-color-scheme: dark) {
26
+ :root:not([data-theme]),
27
+ :host(:not([data-theme])) {
28
+ --color-text-selection: rgba(159, 176, 200, 0.1875);
29
+ --color-primary: #9fb0c8;
30
+ --color-primary-bg: #48536b;
31
+ --color-primary-border: var(--color-primary-bg);
32
+ --color-primary-underline: rgba(159, 176, 200, 0.5);
33
+ --color-primary-hover: #bdcce0;
34
+ --color-primary-hover-bg: #525f7a;
35
+ --color-primary-hover-border: var(--color-primary-hover-bg);
36
+ --color-primary-hover-underline: var(--color-primary-hover);
37
+ --color-primary-focus: rgba(159, 176, 200, 0.375);
38
+ --color-primary-inverse: #fff;
39
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
40
+ }
41
+ }
42
+
43
+ [data-theme="dark"] {
44
+ --color-text-selection: rgba(159, 176, 200, 0.1875);
45
+ --color-primary: #9fb0c8;
46
+ --color-primary-bg: #48536b;
47
+ --color-primary-border: var(--color-primary-bg);
48
+ --color-primary-underline: rgba(159, 176, 200, 0.5);
49
+ --color-primary-hover: #bdcce0;
50
+ --color-primary-hover-bg: #525f7a;
51
+ --color-primary-hover-border: var(--color-primary-hover-bg);
52
+ --color-primary-hover-underline: var(--color-primary-hover);
53
+ --color-primary-focus: rgba(159, 176, 200, 0.375);
54
+ --color-primary-inverse: #fff;
55
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
56
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ Semanticus CSS Palette: Violet
3
+ Overrides primary color variables for the violet palette
4
+ */
5
+
6
+ /* Light theme - Violet */
7
+ [data-theme="light"],
8
+ :root:not([data-theme="dark"]),
9
+ :host(:not([data-theme="dark"])) {
10
+ --color-text-selection: rgba(167, 128, 212, 0.25);
11
+ --color-primary: #7540bf;
12
+ --color-primary-bg: #7540bf;
13
+ --color-primary-border: var(--color-primary-bg);
14
+ --color-primary-underline: rgba(117, 64, 191, 0.5);
15
+ --color-primary-hover: #6935b3;
16
+ --color-primary-hover-bg: #6935b3;
17
+ --color-primary-hover-border: var(--color-primary-hover-bg);
18
+ --color-primary-hover-underline: var(--color-primary-hover);
19
+ --color-primary-focus: rgba(167, 128, 212, 0.5);
20
+ --color-primary-inverse: #fff;
21
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
22
+ }
23
+
24
+ /* Dark theme - Violet */
25
+ @media only screen and (prefers-color-scheme: dark) {
26
+ :root:not([data-theme]),
27
+ :host(:not([data-theme])) {
28
+ --color-text-selection: rgba(189, 159, 223, 0.1875);
29
+ --color-primary: #bd9fdf;
30
+ --color-primary-bg: #7540bf;
31
+ --color-primary-border: var(--color-primary-bg);
32
+ --color-primary-underline: rgba(189, 159, 223, 0.5);
33
+ --color-primary-hover: #d3bfe8;
34
+ --color-primary-hover-bg: #8352c5;
35
+ --color-primary-hover-border: var(--color-primary-hover-bg);
36
+ --color-primary-hover-underline: var(--color-primary-hover);
37
+ --color-primary-focus: rgba(189, 159, 223, 0.375);
38
+ --color-primary-inverse: #fff;
39
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
40
+ }
41
+ }
42
+
43
+ [data-theme="dark"] {
44
+ --color-text-selection: rgba(189, 159, 223, 0.1875);
45
+ --color-primary: #bd9fdf;
46
+ --color-primary-bg: #7540bf;
47
+ --color-primary-border: var(--color-primary-bg);
48
+ --color-primary-underline: rgba(189, 159, 223, 0.5);
49
+ --color-primary-hover: #d3bfe8;
50
+ --color-primary-hover-bg: #8352c5;
51
+ --color-primary-hover-border: var(--color-primary-hover-bg);
52
+ --color-primary-hover-underline: var(--color-primary-hover);
53
+ --color-primary-focus: rgba(189, 159, 223, 0.375);
54
+ --color-primary-inverse: #fff;
55
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
56
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ Semanticus CSS Palette: Yellow
3
+ Overrides primary color variables for the yellow palette
4
+ */
5
+
6
+ /* Light theme - Yellow */
7
+ [data-theme="light"],
8
+ :root:not([data-theme="dark"]),
9
+ :host(:not([data-theme="dark"])) {
10
+ --color-text-selection: rgba(209, 188, 0, 0.25);
11
+ --color-primary: #8a7a00;
12
+ --color-primary-bg: #fcf19c;
13
+ --color-primary-border: var(--color-primary-bg);
14
+ --color-primary-underline: rgba(138, 122, 0, 0.5);
15
+ --color-primary-hover: #6b5f00;
16
+ --color-primary-hover-bg: #fdf2b4;
17
+ --color-primary-hover-border: var(--color-primary-hover-bg);
18
+ --color-primary-hover-underline: var(--color-primary-hover);
19
+ --color-primary-focus: rgba(209, 188, 0, 0.5);
20
+ --color-primary-inverse: #000;
21
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
22
+ }
23
+
24
+ /* Dark theme - Yellow */
25
+ @media only screen and (prefers-color-scheme: dark) {
26
+ :root:not([data-theme]),
27
+ :host(:not([data-theme])) {
28
+ --color-text-selection: rgba(233, 212, 0, 0.1875);
29
+ --color-primary: #e9d400;
30
+ --color-primary-bg: #fcf19c;
31
+ --color-primary-border: var(--color-primary-bg);
32
+ --color-primary-underline: rgba(233, 212, 0, 0.5);
33
+ --color-primary-hover: #f7ec58;
34
+ --color-primary-hover-bg: #fcf4b6;
35
+ --color-primary-hover-border: var(--color-primary-hover-bg);
36
+ --color-primary-hover-underline: var(--color-primary-hover);
37
+ --color-primary-focus: rgba(233, 212, 0, 0.375);
38
+ --color-primary-inverse: #000;
39
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
40
+ }
41
+ }
42
+
43
+ [data-theme="dark"] {
44
+ --color-text-selection: rgba(233, 212, 0, 0.1875);
45
+ --color-primary: #e9d400;
46
+ --color-primary-bg: #fcf19c;
47
+ --color-primary-border: var(--color-primary-bg);
48
+ --color-primary-underline: rgba(233, 212, 0, 0.5);
49
+ --color-primary-hover: #f7ec58;
50
+ --color-primary-hover-bg: #fcf4b6;
51
+ --color-primary-hover-border: var(--color-primary-hover-bg);
52
+ --color-primary-hover-underline: var(--color-primary-hover);
53
+ --color-primary-focus: rgba(233, 212, 0, 0.375);
54
+ --color-primary-inverse: #000;
55
+ --switch-thumb-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
56
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ Semanticus CSS Palette: Zinc
3
+ Overrides primary color variables for the zinc palette
4
+ */
5
+
6
+ /* Light theme - Zinc */
7
+ [data-theme="light"],
8
+ :root:not([data-theme="dark"]),
9
+ :host(:not([data-theme="dark"])) {
10
+ --color-text-selection: rgba(127, 139, 158, 0.25);
11
+ --color-primary: #525f7a;
12
+ --color-primary-bg: #525f7a;
13
+ --color-primary-border: var(--color-primary-bg);
14
+ --color-primary-underline: rgba(82, 95, 122, 0.5);
15
+ --color-primary-hover: #424b61;
16
+ --color-primary-hover-bg: #424b61;
17
+ --color-primary-hover-border: var(--color-primary-hover-bg);
18
+ --color-primary-hover-underline: var(--color-primary-hover);
19
+ --color-primary-focus: rgba(127, 139, 158, 0.5);
20
+ --color-primary-inverse: #fff;
21
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
22
+ }
23
+
24
+ /* Dark theme - Zinc */
25
+ @media only screen and (prefers-color-scheme: dark) {
26
+ :root:not([data-theme]),
27
+ :host(:not([data-theme])) {
28
+ --color-text-selection: rgba(155, 168, 189, 0.1875);
29
+ --color-primary: #9ba8bd;
30
+ --color-primary-bg: #525f7a;
31
+ --color-primary-border: var(--color-primary-bg);
32
+ --color-primary-underline: rgba(155, 168, 189, 0.5);
33
+ --color-primary-hover: #bac5d4;
34
+ --color-primary-hover-bg: #5d6b89;
35
+ --color-primary-hover-border: var(--color-primary-hover-bg);
36
+ --color-primary-hover-underline: var(--color-primary-hover);
37
+ --color-primary-focus: rgba(155, 168, 189, 0.375);
38
+ --color-primary-inverse: #fff;
39
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
40
+ }
41
+ }
42
+
43
+ [data-theme="dark"] {
44
+ --color-text-selection: rgba(155, 168, 189, 0.1875);
45
+ --color-primary: #9ba8bd;
46
+ --color-primary-bg: #525f7a;
47
+ --color-primary-border: var(--color-primary-bg);
48
+ --color-primary-underline: rgba(155, 168, 189, 0.5);
49
+ --color-primary-hover: #bac5d4;
50
+ --color-primary-hover-bg: #5d6b89;
51
+ --color-primary-hover-border: var(--color-primary-hover-bg);
52
+ --color-primary-hover-underline: var(--color-primary-hover);
53
+ --color-primary-focus: rgba(155, 168, 189, 0.375);
54
+ --color-primary-inverse: #fff;
55
+ --switch-thumb-shadow: 0 0 0 rgba(0, 0, 0, 0);
56
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Loading ([aria-busy=true])
3
+ */
4
+ [aria-busy=true]:not(input, select, textarea, html, form) {
5
+ white-space: nowrap;
6
+
7
+ &::before {
8
+ display: inline-block;
9
+ width: 1em;
10
+ height: 1em;
11
+ background-image: var(--icon-loading);
12
+ background-size: 1em auto;
13
+ background-repeat: no-repeat;
14
+ content: "";
15
+ vertical-align: -0.125em;
16
+ }
17
+
18
+ &:not(:empty)::before {
19
+ margin-inline-end: calc(var(--spacing) * 0.5);
20
+ }
21
+
22
+ &:empty {
23
+ text-align: center;
24
+ }
25
+ }
26
+
27
+ button[aria-busy=true],
28
+ [type=submit][aria-busy=true],
29
+ [type=button][aria-busy=true],
30
+ [type=reset][aria-busy=true],
31
+ [role=button][aria-busy=true],
32
+ a[aria-busy=true] {
33
+ pointer-events: none;
34
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Article (<article>)
3
+ * Represents a self-contained composition that can stand alone
4
+ * and be independently distributed (blog post, widget, etc.)
5
+ * Styling is provided by the .card class
6
+ */
@@ -0,0 +1,10 @@
1
+ body {
2
+ width: 100%;
3
+ margin: 0;
4
+
5
+ & > header,
6
+ & > main,
7
+ & > footer {
8
+ padding-block: var(--block-spacing-vertical);
9
+ }
10
+ }
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Button
3
+ */
4
+ button {
5
+ margin: 0;
6
+ overflow: visible;
7
+ font-family: inherit;
8
+ text-transform: none;
9
+ }
10
+
11
+ button,
12
+ [type=submit],
13
+ [type=reset],
14
+ [type=button] {
15
+ -webkit-appearance: button;
16
+ }
17
+
18
+ button,
19
+ [type=submit],
20
+ [type=reset],
21
+ [type=button],
22
+ [type=file]::file-selector-button,
23
+ [role=button] {
24
+ --color-background: var(--color-primary-bg);
25
+ --border-color: var(--color-primary-border);
26
+ --color-text: var(--color-primary-inverse);
27
+ --shadow-lg: var(--button-shadow, 0 0 0 rgba(0, 0, 0, 0));
28
+ padding: var(--form-element-spacing-vertical) var(--form-element-spacing-horizontal);
29
+ border: var(--border-width) solid var(--border-color);
30
+ border-radius: var(--border-radius);
31
+ outline: none;
32
+ background-color: var(--color-background);
33
+ box-shadow: var(--shadow-lg);
34
+ color: var(--color-text);
35
+ font-weight: var(--font-weight);
36
+ font-size: 1rem;
37
+ line-height: var(--line-height);
38
+ text-align: center;
39
+ text-decoration: none;
40
+ cursor: pointer;
41
+ user-select: none;
42
+ transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
43
+ }
44
+
45
+ button:is([aria-current]:not([aria-current=false])), button:is(:hover, :active, :focus),
46
+ [type=submit]:is([aria-current]:not([aria-current=false])),
47
+ [type=submit]:is(:hover, :active, :focus),
48
+ [type=reset]:is([aria-current]:not([aria-current=false])),
49
+ [type=reset]:is(:hover, :active, :focus),
50
+ [type=button]:is([aria-current]:not([aria-current=false])),
51
+ [type=button]:is(:hover, :active, :focus),
52
+ [type=file]::file-selector-button:is(:hover, :active, :focus),
53
+ [role=button]:is([aria-current]:not([aria-current=false])),
54
+ [role=button]:is(:hover, :active, :focus) {
55
+ --color-background: var(--color-primary-hover-bg);
56
+ --border-color: var(--color-primary-hover-border);
57
+ --shadow-lg: var(--button-shadow-hover, 0 0 0 rgba(0, 0, 0, 0));
58
+ --color-text: var(--color-primary-inverse);
59
+ }
60
+
61
+ button:focus, button:is([aria-current]:not([aria-current=false])):focus,
62
+ [type=submit]:focus,
63
+ [type=submit]:is([aria-current]:not([aria-current=false])):focus,
64
+ [type=reset]:focus,
65
+ [type=reset]:is([aria-current]:not([aria-current=false])):focus,
66
+ [type=button]:focus,
67
+ [type=button]:is([aria-current]:not([aria-current=false])):focus,
68
+ [type=file]::file-selector-button:focus,
69
+ [role=button]:focus,
70
+ [role=button]:is([aria-current]:not([aria-current=false])):focus {
71
+ --shadow-lg: var(--button-shadow-hover, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--outline-width) var(--color-primary-focus);
72
+ }
73
+
74
+ [type=submit],
75
+ [type=reset],
76
+ [type=button] {
77
+ margin-bottom: var(--spacing);
78
+ }
79
+
80
+ [type=reset],
81
+ [type=file]::file-selector-button,
82
+ [aria-label="Close"] {
83
+ --color-background: var(--color-secondary-bg);
84
+ --border-color: var(--color-secondary-border);
85
+ --color-text: var(--color-secondary-inverse);
86
+ cursor: pointer;
87
+ }
88
+
89
+ [type=reset]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
90
+ [type=file]::file-selector-button:is(:hover, :active, :focus) {
91
+ --color-background: var(--color-secondary-hover-bg);
92
+ --border-color: var(--color-secondary-hover-border);
93
+ --color-text: var(--color-secondary-inverse);
94
+ }
95
+
96
+ [type=reset]:focus,
97
+ [type=reset]:is([aria-current]:not([aria-current=false])):focus,
98
+ [type=file]::file-selector-button:focus {
99
+ --shadow-lg: var(--button-shadow-hover, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--outline-width) var(--color-secondary-focus);
100
+ }
101
+
102
+ :is(button, [type=submit], [type=reset], [type=button], [role=button])[disabled],
103
+ fieldset[disabled] :is(button, [type=submit], [type=button], [type=reset], [role=button]) {
104
+ opacity: 0.5;
105
+ pointer-events: none;
106
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Code
3
+ */
4
+ pre,
5
+ code,
6
+ kbd,
7
+ samp {
8
+ font-size: 0.875em;
9
+ font-family: var(--font-family);
10
+ border-radius: var(--border-radius);
11
+ background: var(--color-code-bg);
12
+ color: var(--color-code-text);
13
+ font-weight: var(--font-weight);
14
+ line-height: initial;
15
+ }
16
+
17
+ code,
18
+ kbd,
19
+ samp {
20
+ display: inline-block;
21
+ padding: 0.375rem;
22
+ }
23
+
24
+ pre {
25
+ -ms-overflow-style: scrollbar;
26
+ overflow: auto;
27
+ display: block;
28
+ margin-bottom: var(--spacing);
29
+ overflow-x: auto;
30
+
31
+ & code,
32
+ & samp {
33
+ font-size: inherit;
34
+ font-family: inherit;
35
+ }
36
+
37
+ & > code,
38
+ & > samp {
39
+ display: block;
40
+ padding: var(--spacing);
41
+ background: none;
42
+ line-height: var(--line-height);
43
+ }
44
+ }
45
+
46
+ kbd {
47
+ background-color: var(--color-kbd-bg);
48
+ color: var(--color-kbd-text);
49
+ vertical-align: baseline;
50
+ }