@cirthcss/cirth 0.8.5 → 0.10.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.
@@ -1,8 +1,8 @@
1
- [data-theme="light"], :root:not([data-theme="dark"]), :host(:not([data-theme="dark"])) {
2
- --cirth-background-color: oklch(97.4% .004 258);
1
+ :where([data-theme="light"]), :root:where(:not([data-theme="dark"])), :host(:where(:not([data-theme="dark"]))) {
2
+ --cirth-background-color: oklch(97.4% .002 258);
3
3
  --cirth-card-background-color: oklch(100% 0 0);
4
- --cirth-muted-color: oklch(50% .02 258);
5
- --cirth-muted-border-color: oklch(88% .015 258);
4
+ --cirth-muted-color: oklch(50% .01 258);
5
+ --cirth-muted-border-color: oklch(88% .008 258);
6
6
  --cirth-text-selection-color: oklch(46% .095 258 / .25);
7
7
  --cirth-primary: oklch(30% .085 258);
8
8
  --cirth-primary-background: oklch(30% .085 258);
@@ -10,11 +10,12 @@
10
10
  --cirth-primary-hover: oklch(22% .07 258);
11
11
  --cirth-primary-hover-background: oklch(26% .08 258);
12
12
  --cirth-primary-focus: oklch(46% .095 258 / .7);
13
+ --cirth-link-visited-color: oklch(48.3% .02 258);
13
14
  --cirth-box-shadow: 0 0 0 .0625rem oklch(30% .085 258 / .14);
14
15
  }
15
16
 
16
17
  @media only screen and (prefers-color-scheme: dark) {
17
- :root:not([data-theme]), :host(:not([data-theme])) {
18
+ :root:where(:not([data-theme])), :host(:where(:not([data-theme]))) {
18
19
  --cirth-background-color: oklch(19.5% .006 258);
19
20
  --cirth-card-background-color: oklch(23% .008 258);
20
21
  --cirth-muted-color: oklch(65% .02 258);
@@ -26,11 +27,12 @@
26
27
  --cirth-primary-hover: oklch(72% .075 258);
27
28
  --cirth-primary-hover-background: oklch(34% .09 258);
28
29
  --cirth-primary-focus: oklch(64% .09 258 / .7);
30
+ --cirth-link-visited-color: oklch(65% .02 258);
29
31
  --cirth-box-shadow: 0 0 0 .0625rem oklch(64% .09 258 / .2);
30
32
  }
31
33
  }
32
34
 
33
- [data-theme="dark"] {
35
+ :where([data-theme="dark"]) {
34
36
  --cirth-background-color: oklch(19.5% .006 258);
35
37
  --cirth-card-background-color: oklch(23% .008 258);
36
38
  --cirth-muted-color: oklch(65% .02 258);
@@ -42,9 +44,46 @@
42
44
  --cirth-primary-hover: oklch(72% .075 258);
43
45
  --cirth-primary-hover-background: oklch(34% .09 258);
44
46
  --cirth-primary-focus: oklch(64% .09 258 / .7);
47
+ --cirth-link-visited-color: oklch(65% .02 258);
45
48
  --cirth-box-shadow: 0 0 0 .0625rem oklch(64% .09 258 / .2);
46
49
  }
47
50
 
51
+ @media (prefers-contrast: more) {
52
+ :where([data-theme="light"]), :root:where(:not([data-theme="dark"])), :host(:where(:not([data-theme="dark"]))) {
53
+ --cirth-muted-color: oklch(40% .01 258);
54
+ --cirth-muted-border-color: oklch(57% .01 258);
55
+ --cirth-primary-underline: var(--cirth-primary);
56
+ --cirth-primary-focus: oklch(46% .095 258);
57
+ --cirth-link-visited-color: oklch(40% .02 258);
58
+ }
59
+ }
60
+
61
+ @media only screen and (prefers-contrast: more) and (prefers-color-scheme: dark) {
62
+ :root:where(:not([data-theme])), :host(:where(:not([data-theme]))) {
63
+ --cirth-muted-color: oklch(80% .02 258);
64
+ --cirth-muted-border-color: oklch(57% .01 258);
65
+ --cirth-card-border-color: var(--cirth-muted-border-color);
66
+ --cirth-primary: oklch(80% .07 258);
67
+ --cirth-primary-hover: oklch(86% .05 258);
68
+ --cirth-primary-underline: var(--cirth-primary);
69
+ --cirth-primary-focus: oklch(64% .09 258);
70
+ --cirth-link-visited-color: oklch(80% .02 258);
71
+ }
72
+ }
73
+
74
+ @media (prefers-contrast: more) {
75
+ :where([data-theme="dark"]) {
76
+ --cirth-muted-color: oklch(80% .02 258);
77
+ --cirth-muted-border-color: oklch(57% .01 258);
78
+ --cirth-card-border-color: var(--cirth-muted-border-color);
79
+ --cirth-primary: oklch(80% .07 258);
80
+ --cirth-primary-hover: oklch(86% .05 258);
81
+ --cirth-primary-underline: var(--cirth-primary);
82
+ --cirth-primary-focus: oklch(64% .09 258);
83
+ --cirth-link-visited-color: oklch(80% .02 258);
84
+ }
85
+ }
86
+
48
87
  :root, :host {
49
88
  --cirth-border-radius: 0;
50
89
  --cirth-radius-pill: 0;
@@ -1 +1 @@
1
- [data-theme=light],:root:not([data-theme=dark]),:host(:not([data-theme=dark])){--cirth-background-color:oklch(97.4% .004 258);--cirth-card-background-color:oklch(100% 0 0);--cirth-muted-color:oklch(50% .02 258);--cirth-muted-border-color:oklch(88% .015 258);--cirth-text-selection-color:oklch(46% .095 258/.25);--cirth-primary:oklch(30% .085 258);--cirth-primary-background:oklch(30% .085 258);--cirth-primary-underline:oklch(30% .085 258/.5);--cirth-primary-hover:oklch(22% .07 258);--cirth-primary-hover-background:oklch(26% .08 258);--cirth-primary-focus:oklch(46% .095 258/.7);--cirth-box-shadow:0 0 0 .0625rem oklch(30% .085 258/.14)}@media only screen and (prefers-color-scheme:dark){:root:not([data-theme]),:host(:not([data-theme])){--cirth-background-color:oklch(19.5% .006 258);--cirth-card-background-color:oklch(23% .008 258);--cirth-muted-color:oklch(65% .02 258);--cirth-muted-border-color:oklch(30% .02 258);--cirth-text-selection-color:oklch(52% .1 258/.1875);--cirth-primary:oklch(64% .09 258);--cirth-primary-background:oklch(30% .085 258);--cirth-primary-underline:oklch(64% .09 258/.5);--cirth-primary-hover:oklch(72% .075 258);--cirth-primary-hover-background:oklch(34% .09 258);--cirth-primary-focus:oklch(64% .09 258/.7);--cirth-box-shadow:0 0 0 .0625rem oklch(64% .09 258/.2)}}[data-theme=dark]{--cirth-background-color:oklch(19.5% .006 258);--cirth-card-background-color:oklch(23% .008 258);--cirth-muted-color:oklch(65% .02 258);--cirth-muted-border-color:oklch(30% .02 258);--cirth-text-selection-color:oklch(52% .1 258/.1875);--cirth-primary:oklch(64% .09 258);--cirth-primary-background:oklch(30% .085 258);--cirth-primary-underline:oklch(64% .09 258/.5);--cirth-primary-hover:oklch(72% .075 258);--cirth-primary-hover-background:oklch(34% .09 258);--cirth-primary-focus:oklch(64% .09 258/.7);--cirth-box-shadow:0 0 0 .0625rem oklch(64% .09 258/.2)}:root,:host{--cirth-border-radius:0;--cirth-radius-pill:0;--cirth-font-family:Arial, "Helvetica Neue", Helvetica, sans-serif, var(--cirth-font-family-emoji);--cirth-font-family-display:var(--cirth-font-family);--cirth-spacing:var(--cirth-space-3);--cirth-transition:var(--cirth-duration-fast) var(--cirth-ease-out)}
1
+ :where([data-theme=light]),:root:where(:not([data-theme=dark])),:host(:where(:not([data-theme=dark]))){--cirth-background-color:oklch(97.4% .002 258);--cirth-card-background-color:oklch(100% 0 0);--cirth-muted-color:oklch(50% .01 258);--cirth-muted-border-color:oklch(88% .008 258);--cirth-text-selection-color:oklch(46% .095 258/.25);--cirth-primary:oklch(30% .085 258);--cirth-primary-background:oklch(30% .085 258);--cirth-primary-underline:oklch(30% .085 258/.5);--cirth-primary-hover:oklch(22% .07 258);--cirth-primary-hover-background:oklch(26% .08 258);--cirth-primary-focus:oklch(46% .095 258/.7);--cirth-link-visited-color:oklch(48.3% .02 258);--cirth-box-shadow:0 0 0 .0625rem oklch(30% .085 258/.14)}@media only screen and (prefers-color-scheme:dark){:root:where(:not([data-theme])),:host(:where(:not([data-theme]))){--cirth-background-color:oklch(19.5% .006 258);--cirth-card-background-color:oklch(23% .008 258);--cirth-muted-color:oklch(65% .02 258);--cirth-muted-border-color:oklch(30% .02 258);--cirth-text-selection-color:oklch(52% .1 258/.1875);--cirth-primary:oklch(64% .09 258);--cirth-primary-background:oklch(30% .085 258);--cirth-primary-underline:oklch(64% .09 258/.5);--cirth-primary-hover:oklch(72% .075 258);--cirth-primary-hover-background:oklch(34% .09 258);--cirth-primary-focus:oklch(64% .09 258/.7);--cirth-link-visited-color:oklch(65% .02 258);--cirth-box-shadow:0 0 0 .0625rem oklch(64% .09 258/.2)}}:where([data-theme=dark]){--cirth-background-color:oklch(19.5% .006 258);--cirth-card-background-color:oklch(23% .008 258);--cirth-muted-color:oklch(65% .02 258);--cirth-muted-border-color:oklch(30% .02 258);--cirth-text-selection-color:oklch(52% .1 258/.1875);--cirth-primary:oklch(64% .09 258);--cirth-primary-background:oklch(30% .085 258);--cirth-primary-underline:oklch(64% .09 258/.5);--cirth-primary-hover:oklch(72% .075 258);--cirth-primary-hover-background:oklch(34% .09 258);--cirth-primary-focus:oklch(64% .09 258/.7);--cirth-link-visited-color:oklch(65% .02 258);--cirth-box-shadow:0 0 0 .0625rem oklch(64% .09 258/.2)}@media (prefers-contrast:more){:where([data-theme=light]),:root:where(:not([data-theme=dark])),:host(:where(:not([data-theme=dark]))){--cirth-muted-color:oklch(40% .01 258);--cirth-muted-border-color:oklch(57% .01 258);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(46% .095 258);--cirth-link-visited-color:oklch(40% .02 258)}}@media only screen and (prefers-contrast:more) and (prefers-color-scheme:dark){:root:where(:not([data-theme])),:host(:where(:not([data-theme]))){--cirth-muted-color:oklch(80% .02 258);--cirth-muted-border-color:oklch(57% .01 258);--cirth-card-border-color:var(--cirth-muted-border-color);--cirth-primary:oklch(80% .07 258);--cirth-primary-hover:oklch(86% .05 258);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(64% .09 258);--cirth-link-visited-color:oklch(80% .02 258)}}@media (prefers-contrast:more){:where([data-theme=dark]){--cirth-muted-color:oklch(80% .02 258);--cirth-muted-border-color:oklch(57% .01 258);--cirth-card-border-color:var(--cirth-muted-border-color);--cirth-primary:oklch(80% .07 258);--cirth-primary-hover:oklch(86% .05 258);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(64% .09 258);--cirth-link-visited-color:oklch(80% .02 258)}}:root,:host{--cirth-border-radius:0;--cirth-radius-pill:0;--cirth-font-family:Arial, "Helvetica Neue", Helvetica, sans-serif, var(--cirth-font-family-emoji);--cirth-font-family-display:var(--cirth-font-family);--cirth-spacing:var(--cirth-space-3);--cirth-transition:var(--cirth-duration-fast) var(--cirth-ease-out)}
@@ -1,5 +1,5 @@
1
- [data-theme="light"], :root:not([data-theme="dark"]), :host(:not([data-theme="dark"])) {
2
- --cirth-background-color: oklch(97.4% .008 35);
1
+ :where([data-theme="light"]), :root:where(:not([data-theme="dark"])), :host(:where(:not([data-theme="dark"]))) {
2
+ --cirth-background-color: oklch(97.4% .004 35);
3
3
  --cirth-card-background-color: oklch(100% 0 0);
4
4
  --cirth-muted-color: oklch(52% .02 35);
5
5
  --cirth-muted-border-color: oklch(88% .02 35);
@@ -10,13 +10,14 @@
10
10
  --cirth-primary-hover: oklch(45% .15 35);
11
11
  --cirth-primary-hover-background: oklch(50% .16 35);
12
12
  --cirth-primary-focus: oklch(55% .17 35 / .75);
13
+ --cirth-link-visited-color: oklch(48.3% .03 35);
13
14
  --cirth-box-shadow: .0145rem .029rem .174rem oklch(65% .17 35 / .01698), .0335rem .067rem .402rem oklch(65% .17 35 / .024), .0625rem .125rem .75rem oklch(65% .17 35 / .03), .1125rem .225rem 1.35rem oklch(65% .17 35 / .036), .2085rem .417rem 2.502rem oklch(65% .17 35 / .04302), .5rem 1rem 6rem oklch(65% .17 35 / .06), 0 0 0 .0625rem oklch(65% .17 35 / .015);
14
15
  --cirth-button-hover-box-shadow: 0 .5rem 1rem
15
16
  oklch(65% .17 35 / .35);
16
17
  }
17
18
 
18
19
  @media only screen and (prefers-color-scheme: dark) {
19
- :root:not([data-theme]), :host(:not([data-theme])) {
20
+ :root:where(:not([data-theme])), :host(:where(:not([data-theme]))) {
20
21
  --cirth-background-color: oklch(19.5% .006 35);
21
22
  --cirth-card-background-color: oklch(23% .008 35);
22
23
  --cirth-muted-color: oklch(66% .02 35);
@@ -28,13 +29,14 @@
28
29
  --cirth-primary-hover: oklch(80% .1 35);
29
30
  --cirth-primary-hover-background: oklch(60% .18 35);
30
31
  --cirth-primary-focus: oklch(68% .16 35 / .7);
32
+ --cirth-link-visited-color: oklch(65% .03 35);
31
33
  --cirth-box-shadow: .0145rem .029rem .174rem oklch(68% .16 35 / .01698), .0335rem .067rem .402rem oklch(68% .16 35 / .024), .0625rem .125rem .75rem oklch(68% .16 35 / .03), .1125rem .225rem 1.35rem oklch(68% .16 35 / .036), .2085rem .417rem 2.502rem oklch(68% .16 35 / .04302), .5rem 1rem 6rem oklch(68% .16 35 / .06), 0 0 0 .0625rem oklch(68% .16 35 / .015);
32
34
  --cirth-button-hover-box-shadow: 0 .5rem 1rem
33
35
  oklch(80% .1 35 / .4);
34
36
  }
35
37
  }
36
38
 
37
- [data-theme="dark"] {
39
+ :where([data-theme="dark"]) {
38
40
  --cirth-background-color: oklch(19.5% .006 35);
39
41
  --cirth-card-background-color: oklch(23% .008 35);
40
42
  --cirth-muted-color: oklch(66% .02 35);
@@ -46,11 +48,50 @@
46
48
  --cirth-primary-hover: oklch(80% .1 35);
47
49
  --cirth-primary-hover-background: oklch(60% .18 35);
48
50
  --cirth-primary-focus: oklch(68% .16 35 / .7);
51
+ --cirth-link-visited-color: oklch(65% .03 35);
49
52
  --cirth-box-shadow: .0145rem .029rem .174rem oklch(68% .16 35 / .01698), .0335rem .067rem .402rem oklch(68% .16 35 / .024), .0625rem .125rem .75rem oklch(68% .16 35 / .03), .1125rem .225rem 1.35rem oklch(68% .16 35 / .036), .2085rem .417rem 2.502rem oklch(68% .16 35 / .04302), .5rem 1rem 6rem oklch(68% .16 35 / .06), 0 0 0 .0625rem oklch(68% .16 35 / .015);
50
53
  --cirth-button-hover-box-shadow: 0 .5rem 1rem
51
54
  oklch(80% .1 35 / .4);
52
55
  }
53
56
 
57
+ @media (prefers-contrast: more) {
58
+ :where([data-theme="light"]), :root:where(:not([data-theme="dark"])), :host(:where(:not([data-theme="dark"]))) {
59
+ --cirth-muted-color: oklch(40% .02 35);
60
+ --cirth-muted-border-color: oklch(57% .02 35);
61
+ --cirth-primary: oklch(40% .14 35);
62
+ --cirth-primary-hover: oklch(35% .12 35);
63
+ --cirth-primary-underline: var(--cirth-primary);
64
+ --cirth-primary-focus: oklch(45% .15 35);
65
+ --cirth-link-visited-color: oklch(40% .03 35);
66
+ }
67
+ }
68
+
69
+ @media only screen and (prefers-contrast: more) and (prefers-color-scheme: dark) {
70
+ :root:where(:not([data-theme])), :host(:where(:not([data-theme]))) {
71
+ --cirth-muted-color: oklch(80% .02 35);
72
+ --cirth-muted-border-color: oklch(57% .02 35);
73
+ --cirth-card-border-color: var(--cirth-muted-border-color);
74
+ --cirth-primary: oklch(80% .1 35);
75
+ --cirth-primary-hover: oklch(85% .08 35);
76
+ --cirth-primary-underline: var(--cirth-primary);
77
+ --cirth-primary-focus: oklch(68% .16 35);
78
+ --cirth-link-visited-color: oklch(80% .03 35);
79
+ }
80
+ }
81
+
82
+ @media (prefers-contrast: more) {
83
+ :where([data-theme="dark"]) {
84
+ --cirth-muted-color: oklch(80% .02 35);
85
+ --cirth-muted-border-color: oklch(57% .02 35);
86
+ --cirth-card-border-color: var(--cirth-muted-border-color);
87
+ --cirth-primary: oklch(80% .1 35);
88
+ --cirth-primary-hover: oklch(85% .08 35);
89
+ --cirth-primary-underline: var(--cirth-primary);
90
+ --cirth-primary-focus: oklch(68% .16 35);
91
+ --cirth-link-visited-color: oklch(80% .03 35);
92
+ }
93
+ }
94
+
54
95
  :root, :host {
55
96
  --cirth-border-radius: var(--cirth-radius-2xl);
56
97
  --cirth-font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif,
@@ -1 +1 @@
1
- [data-theme=light],:root:not([data-theme=dark]),:host(:not([data-theme=dark])){--cirth-background-color:oklch(97.4% .008 35);--cirth-card-background-color:oklch(100% 0 0);--cirth-muted-color:oklch(52% .02 35);--cirth-muted-border-color:oklch(88% .02 35);--cirth-text-selection-color:oklch(65% .17 35/.25);--cirth-primary:oklch(55% .17 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(55% .17 35/.5);--cirth-primary-hover:oklch(45% .15 35);--cirth-primary-hover-background:oklch(50% .16 35);--cirth-primary-focus:oklch(55% .17 35/.75);--cirth-box-shadow:.0145rem .029rem .174rem oklch(65% .17 35/.01698), .0335rem .067rem .402rem oklch(65% .17 35/.024), .0625rem .125rem .75rem oklch(65% .17 35/.03), .1125rem .225rem 1.35rem oklch(65% .17 35/.036), .2085rem .417rem 2.502rem oklch(65% .17 35/.04302), .5rem 1rem 6rem oklch(65% .17 35/.06), 0 0 0 .0625rem oklch(65% .17 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(65% .17 35/.35)}@media only screen and (prefers-color-scheme:dark){:root:not([data-theme]),:host(:not([data-theme])){--cirth-background-color:oklch(19.5% .006 35);--cirth-card-background-color:oklch(23% .008 35);--cirth-muted-color:oklch(66% .02 35);--cirth-muted-border-color:oklch(30% .025 35);--cirth-text-selection-color:oklch(68% .16 35/.1875);--cirth-primary:oklch(68% .16 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(68% .16 35/.5);--cirth-primary-hover:oklch(80% .1 35);--cirth-primary-hover-background:oklch(60% .18 35);--cirth-primary-focus:oklch(68% .16 35/.7);--cirth-box-shadow:.0145rem .029rem .174rem oklch(68% .16 35/.01698), .0335rem .067rem .402rem oklch(68% .16 35/.024), .0625rem .125rem .75rem oklch(68% .16 35/.03), .1125rem .225rem 1.35rem oklch(68% .16 35/.036), .2085rem .417rem 2.502rem oklch(68% .16 35/.04302), .5rem 1rem 6rem oklch(68% .16 35/.06), 0 0 0 .0625rem oklch(68% .16 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(80% .1 35/.4)}}[data-theme=dark]{--cirth-background-color:oklch(19.5% .006 35);--cirth-card-background-color:oklch(23% .008 35);--cirth-muted-color:oklch(66% .02 35);--cirth-muted-border-color:oklch(30% .025 35);--cirth-text-selection-color:oklch(68% .16 35/.1875);--cirth-primary:oklch(68% .16 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(68% .16 35/.5);--cirth-primary-hover:oklch(80% .1 35);--cirth-primary-hover-background:oklch(60% .18 35);--cirth-primary-focus:oklch(68% .16 35/.7);--cirth-box-shadow:.0145rem .029rem .174rem oklch(68% .16 35/.01698), .0335rem .067rem .402rem oklch(68% .16 35/.024), .0625rem .125rem .75rem oklch(68% .16 35/.03), .1125rem .225rem 1.35rem oklch(68% .16 35/.036), .2085rem .417rem 2.502rem oklch(68% .16 35/.04302), .5rem 1rem 6rem oklch(68% .16 35/.06), 0 0 0 .0625rem oklch(68% .16 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(80% .1 35/.4)}:root,:host{--cirth-border-radius:var(--cirth-radius-2xl);--cirth-font-family:"Trebuchet MS", "Segoe UI", Verdana, sans-serif, var(--cirth-font-family-emoji);--cirth-font-family-display:var(--cirth-font-family);--cirth-spacing:var(--cirth-space-5);--cirth-transition:var(--cirth-duration-slow) cubic-bezier(.34, 1.56, .64, 1)}
1
+ :where([data-theme=light]),:root:where(:not([data-theme=dark])),:host(:where(:not([data-theme=dark]))){--cirth-background-color:oklch(97.4% .004 35);--cirth-card-background-color:oklch(100% 0 0);--cirth-muted-color:oklch(52% .02 35);--cirth-muted-border-color:oklch(88% .02 35);--cirth-text-selection-color:oklch(65% .17 35/.25);--cirth-primary:oklch(55% .17 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(55% .17 35/.5);--cirth-primary-hover:oklch(45% .15 35);--cirth-primary-hover-background:oklch(50% .16 35);--cirth-primary-focus:oklch(55% .17 35/.75);--cirth-link-visited-color:oklch(48.3% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(65% .17 35/.01698), .0335rem .067rem .402rem oklch(65% .17 35/.024), .0625rem .125rem .75rem oklch(65% .17 35/.03), .1125rem .225rem 1.35rem oklch(65% .17 35/.036), .2085rem .417rem 2.502rem oklch(65% .17 35/.04302), .5rem 1rem 6rem oklch(65% .17 35/.06), 0 0 0 .0625rem oklch(65% .17 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(65% .17 35/.35)}@media only screen and (prefers-color-scheme:dark){:root:where(:not([data-theme])),:host(:where(:not([data-theme]))){--cirth-background-color:oklch(19.5% .006 35);--cirth-card-background-color:oklch(23% .008 35);--cirth-muted-color:oklch(66% .02 35);--cirth-muted-border-color:oklch(30% .025 35);--cirth-text-selection-color:oklch(68% .16 35/.1875);--cirth-primary:oklch(68% .16 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(68% .16 35/.5);--cirth-primary-hover:oklch(80% .1 35);--cirth-primary-hover-background:oklch(60% .18 35);--cirth-primary-focus:oklch(68% .16 35/.7);--cirth-link-visited-color:oklch(65% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(68% .16 35/.01698), .0335rem .067rem .402rem oklch(68% .16 35/.024), .0625rem .125rem .75rem oklch(68% .16 35/.03), .1125rem .225rem 1.35rem oklch(68% .16 35/.036), .2085rem .417rem 2.502rem oklch(68% .16 35/.04302), .5rem 1rem 6rem oklch(68% .16 35/.06), 0 0 0 .0625rem oklch(68% .16 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(80% .1 35/.4)}}:where([data-theme=dark]){--cirth-background-color:oklch(19.5% .006 35);--cirth-card-background-color:oklch(23% .008 35);--cirth-muted-color:oklch(66% .02 35);--cirth-muted-border-color:oklch(30% .025 35);--cirth-text-selection-color:oklch(68% .16 35/.1875);--cirth-primary:oklch(68% .16 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(68% .16 35/.5);--cirth-primary-hover:oklch(80% .1 35);--cirth-primary-hover-background:oklch(60% .18 35);--cirth-primary-focus:oklch(68% .16 35/.7);--cirth-link-visited-color:oklch(65% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(68% .16 35/.01698), .0335rem .067rem .402rem oklch(68% .16 35/.024), .0625rem .125rem .75rem oklch(68% .16 35/.03), .1125rem .225rem 1.35rem oklch(68% .16 35/.036), .2085rem .417rem 2.502rem oklch(68% .16 35/.04302), .5rem 1rem 6rem oklch(68% .16 35/.06), 0 0 0 .0625rem oklch(68% .16 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(80% .1 35/.4)}@media (prefers-contrast:more){:where([data-theme=light]),:root:where(:not([data-theme=dark])),:host(:where(:not([data-theme=dark]))){--cirth-muted-color:oklch(40% .02 35);--cirth-muted-border-color:oklch(57% .02 35);--cirth-primary:oklch(40% .14 35);--cirth-primary-hover:oklch(35% .12 35);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(45% .15 35);--cirth-link-visited-color:oklch(40% .03 35)}}@media only screen and (prefers-contrast:more) and (prefers-color-scheme:dark){:root:where(:not([data-theme])),:host(:where(:not([data-theme]))){--cirth-muted-color:oklch(80% .02 35);--cirth-muted-border-color:oklch(57% .02 35);--cirth-card-border-color:var(--cirth-muted-border-color);--cirth-primary:oklch(80% .1 35);--cirth-primary-hover:oklch(85% .08 35);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(68% .16 35);--cirth-link-visited-color:oklch(80% .03 35)}}@media (prefers-contrast:more){:where([data-theme=dark]){--cirth-muted-color:oklch(80% .02 35);--cirth-muted-border-color:oklch(57% .02 35);--cirth-card-border-color:var(--cirth-muted-border-color);--cirth-primary:oklch(80% .1 35);--cirth-primary-hover:oklch(85% .08 35);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(68% .16 35);--cirth-link-visited-color:oklch(80% .03 35)}}:root,:host{--cirth-border-radius:var(--cirth-radius-2xl);--cirth-font-family:"Trebuchet MS", "Segoe UI", Verdana, sans-serif, var(--cirth-font-family-emoji);--cirth-font-family-display:var(--cirth-font-family);--cirth-spacing:var(--cirth-space-5);--cirth-transition:var(--cirth-duration-slow) cubic-bezier(.34, 1.56, .64, 1)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirthcss/cirth",
3
- "version": "0.8.5",
3
+ "version": "0.10.0",
4
4
  "description": "Semantic-first CSS framework for production-ready interfaces",
5
5
  "author": "Riccardo Pastori",
6
6
  "main": "dist/cirth.min.css",
@@ -57,13 +57,15 @@
57
57
  "check:variables": "node scripts/check-css-variables.js",
58
58
  "check:doc-links": "node scripts/check-doc-links.js",
59
59
  "check:size": "node scripts/check-css-size.js",
60
+ "check:sri": "node scripts/update-sri.js --check",
60
61
  "check:types": "tsc --noEmit",
61
62
  "check:visual": "playwright test",
62
63
  "check:visual:update": "playwright test --update-snapshots",
63
64
  "dev": "node scripts/watch.js",
64
65
  "format": "prettier --write --log-level silent 'src/**/*.scss'",
65
- "lint": "stylelint 'src/**/*.scss' && node scripts/check-css-variables.js && node scripts/check-doc-links.js && tsc --noEmit",
66
- "lint:fix": "stylelint 'src/**/*.scss' --fix && node scripts/check-css-variables.js && node scripts/check-doc-links.js",
66
+ "lint": "stylelint 'src/**/*.scss' && node scripts/check-css-variables.js && node scripts/check-doc-links.js && node scripts/update-sri.js --check && tsc --noEmit",
67
+ "lint:fix": "stylelint 'src/**/*.scss' --fix && node scripts/check-css-variables.js && node scripts/check-doc-links.js && node scripts/update-sri.js --check",
68
+ "sri": "node scripts/update-sri.js",
67
69
  "docs:assets": "node scripts/build-docs.js",
68
70
  "docs:dev": "npm run docs:assets && eleventy --config=docs/eleventy.config.js --serve",
69
71
  "docs:build": "npm run docs:assets && eleventy --config=docs/eleventy.config.js"