@cirthcss/cirth 0.8.5 → 0.9.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.
- package/README.md +24 -17
- package/dist/cirth.classless.css +25 -8
- package/dist/cirth.classless.min.css +1 -1
- package/dist/cirth.classless.scoped.css +25 -8
- package/dist/cirth.classless.scoped.min.css +1 -1
- package/dist/cirth.css +25 -8
- package/dist/cirth.min.css +1 -1
- package/dist/cirth.scoped.css +25 -8
- package/dist/cirth.scoped.min.css +1 -1
- package/dist/presets/cobalt.css +6 -3
- package/dist/presets/cobalt.min.css +1 -1
- package/dist/presets/coral.css +4 -1
- package/dist/presets/coral.min.css +1 -1
- package/package.json +5 -3
package/dist/presets/cobalt.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[data-theme="light"], :root:not([data-theme="dark"]), :host(:not([data-theme="dark"])) {
|
|
2
|
-
--cirth-background-color: oklch(97.4% .
|
|
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% .
|
|
5
|
-
--cirth-muted-border-color: oklch(88% .
|
|
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,6 +10,7 @@
|
|
|
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
|
|
|
@@ -26,6 +27,7 @@
|
|
|
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
|
}
|
|
@@ -42,6 +44,7 @@
|
|
|
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
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-theme=light],:root:not([data-theme=dark]),:host(:not([data-theme=dark])){--cirth-background-color:oklch(97.4% .
|
|
1
|
+
[data-theme=light],:root:not([data-theme=dark]),:host(: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: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-link-visited-color:oklch(65% .02 258);--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-link-visited-color:oklch(65% .02 258);--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)}
|
package/dist/presets/coral.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[data-theme="light"], :root:not([data-theme="dark"]), :host(:not([data-theme="dark"])) {
|
|
2
|
-
--cirth-background-color: oklch(97.4% .
|
|
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,6 +10,7 @@
|
|
|
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);
|
|
@@ -28,6 +29,7 @@
|
|
|
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);
|
|
@@ -46,6 +48,7 @@
|
|
|
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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-theme=light],:root:not([data-theme=dark]),:host(:not([data-theme=dark])){--cirth-background-color:oklch(97.4% .
|
|
1
|
+
[data-theme=light],:root:not([data-theme=dark]),:host(: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: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-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)}}[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)}: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.
|
|
3
|
+
"version": "0.9.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"
|